cancel
Showing results for 
Search instead for 
Did you mean: 

Display String Variable on ISA JSP page, that gets value from Z java class.

Former Member
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

former_member186148
Active Participant
0 Kudos

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

Answers (3)

Answers (3)

ravindra_bollapalli2
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi,

Try this code

<%=getCondValue%>

or

<% out.println(getCondValue);%>

Regards,

Sunaina Reddy T

Former Member
0 Kudos

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