For the relatively low cost of specifying your servlet mapping, you
can use the JSTL c:url/c:param tags and achieve all of this much more
concisely:
">Click Here
There's an enhancement request filed to add "c:param" type
functionality to , and I think I even assigned it to
myself, but to
Phani wrote:
> Here is my code in the JSP page:
>
> property="storeNumber"/>
>
> property="storeName"/>
>
> <%
>java.util.HashMap params = new java.util.HashMap();
>params.put("storeNo",param1);
>params.put("storeName",param2);
>pageContext.setAttribute("storeInfo", params);
>
).
Regards,
Abdullah
-Original Message-
From: Phani [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 1:30 PM
To: struts-user@jakarta.apache.org
Subject: trouble passing multiple parameters using
Here is my code in the JSP page:
<%
java.util.HashMap params =
Are you sure stockingStoreSalesReviewForm.getStoreNumber() is returning valid
data?
L.
Phani wrote:
Here is my code in the JSP page:
<%
java.util.HashMap params = new java.util.HashMap();
params.put("storeNo",param1);
params.put("storeName",param2);
pageContext.setAtt
Phani wrote:
In the Action class:
String storeNumber =
(String)request.getParameter("storeNo");
I am getting null in the storeNumber.
What went wrong!! Any help appreciated...
But you give at the Action a java.util.HashMap not a String and its
name is "storeInfo" not "storeNo".
am I mi
Here is my code in the JSP page:
<%
java.util.HashMap params = new java.util.HashMap();
params.put("storeNo",param1);
params.put("storeName",param2);
pageContext.setAttribute("storeInfo", params);
%>
Click Here
In the Action class:
String storeNumber =
(String)request
6 matches
Mail list logo