-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3680130
By: gladiator
in my zscript I have:
RequestDispatcher disp=request.getRequestDispatcher("/a.jsp");
disp.forward(request,response);
then zk says _9.responseXML has no properties. why?
thanks
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3680149
By: tomyeh
Post a more complete ZUML codes (better to be a whole page)
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3681697
By: gladiator
[code]
<zk xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:zk="http://www.potix.com/2005/zk">
<h:table width="40%" align="center">
<h:tr><h:td>
<window title="Sign in to TOP" border="normal" >
<zscript>
import xxx.command.*;
import javax.servlet.*;
import javax.servlet.http.*;
void submit(){
String userName=name.value;
String pwd=password.value;
HttpServletRequest request=
page.resolveElVariable("pageContext").getRequest();
HttpServletResponse
response=page.resolveElVariable("pageContext").getResponse();
String err=Login.zk_service(request,userName,pwd);
if(err!=null)Messagebox.show(err, "Error", Messagebox.OK, Messagebox.ERROR);
else{
RequestDispatcher disp=request.getRequestDispatcher("/xxxx.jsp");
disp.forward(request,response);
}
}
</zscript>
<grid>
<rows>
<row>Username : <textbox id="name"/></row>
<row>Password: <textbox id="password"/></row>
<row><button label="submit" onClick="submit()"/></row>
</rows>
</grid>
</window>
</h:td></h:tr>
</h:table>
</zk>
[/code]
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3682343
By: tomyeh
You cannot use RequestDispatcher.forward in event listener.
Rather, use Executions.sendRedirect
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3780202
By: joken2006
I come from China.I have used your ZK pj for two months.It is very much project.What a great job you have done, this looks like it has huge potential..
now I hava a old code:
response.setContentType("application/x-msdownload");
response.setHeader("Contentosition", "attachment;"+ " filename=" + fileName); filemanager.write(response.getOutputStream(), localtion);
How can I use ZK to modify it!
Thanks!!
Asked: 2006-04-11 04:45:05 +0800
Seen: 263 times
Last updated: Jun 15 '06