on 01-12-2009 12:51 PM
Hi all,
In a Z Java class linked with Order.jsp, a string variable is getting the value as :
String getCondValue = ipset.getAvailableConditionTypeNames().getValues().toString();
How to display value of 'getCondValue' on the JSP page?
Thanks a lot!
Hi ET!
At first, you should pass your value to order.jsp. You can do it like this in your Z class:
request.setAttribute("getCondValue", getCondValue);
Secondly, in order.jsp you should get this value. You can do this between <% and %> like this:
String getCondValue = "";
if (request.getAttribute("getCondValue") != null){
getCondValue = (String)request.getAttribute("getCondValue");
}
And now you can display your variable anywhere in order.jsp like this:
<%= getCondValue %>
Regards, Lev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
this will help u a bi t
bvr
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this code
<%=getCondValue%>
or
<% out.println(getCondValue);%>
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ekta,
once you get the string in variable getCondValue by statement given by you you can print is in JSP by bellow line including JSP tags
<%=getCondValue %>
Ninad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.