0

How to pass value of ZK Tags to JSP????

asked 2008-05-11 04:47:44 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4956565

By: firedup0205

Ex:
//First.zul
<textbox id="txtUserName"/>
<button label="Send"/>

//Second.jsp
<%
String str = request.getParameter("txtUserName");
%>

How to pass value of ZK Tags to JSP page??? Hic.. Hic..Oaa..Oaa


delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-05-13 06:07:39 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4959881

By: waterbottle

How do you forward to JSP?
if use form submit then assign name attribute of textbox with txtUserName if use sendRedirect then append parameter to url

link publish delete flag offensive edit

answered 2008-05-14 01:46:38 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4961782

By: zanyking

try this:

You can't use getParameter because it means HTTP requests parameters and HTTP requests parameters in concept are determined by the browser.

So, use request get set attributes.

Ex:
//First.zul
<textbox id="txtUserName"/>
<button label="Send"/>
<z:zscript>
Executions.getCurrent().setAttribute("txtUserName",txtUserName);
</z:zscript>

//Second.jsp
<%
String str = request.getAttribute("txtUserName");
%>

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-05-11 04:47:44 +0800

Seen: 189 times

Last updated: May 14 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More