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!

How to get struts tag value inside JSP scriptlet

843840Apr 22 2010 — edited Apr 22 2010
Hi,

How i can get the formName, which is submitted from the previous screen inside the scriptlet?

Ex :

${ThisForm} // This will print in screen like... com.a.b.c.testForm@12345 (Its actually form name from the preview screen )

<%
String TempName = ""+pageContext.getAttribute("${ThisForm}");
if(TempName.startsWith("com.a.b.c.testFormm",0)) {
%>
${ThisForm.text}
<%
}
%>

I need the ${ThisForm} values inside this JSP scriptlet, and need to take action based on the name.

Thanks in Advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2010
Added on Apr 22 2010
2 comments
1,669 views