How to get struts tag value inside JSP scriptlet
843840Apr 22 2010 — edited Apr 22 2010Hi,
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