Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

passing value from JSP to scriptlet

843840Sep 2 2009 — edited Sep 2 2009
Hi

I am trying to find a way to pass a value from jsp to the scriptlets, i.e.

<c:set var="testValue" value="123" />

<%

System.out.println(testValue);

%>

the above code just demonstrates what I was trying to achieve, by passing the value from the jsp into the scriptlet.

Can someone tell me if there's an easy way to do this?

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2009
Added on Sep 2 2009
1 comment
3,232 views