Hi everybody!
I've a problem that puzzled me on how to assign a bean value to a local variable like String in JSP using struts.
we can have someting like this to display the value
<bean:write name="detailService" property="status" />
or
<bean:define id="theStatus" name="detailService" property="status"/>
This is country: <%=theStatus%>
but an error occured when I tried like this:
String currentStatus = "<bean:define id="theStatus" name="detailService" property="status"/>";
or
String currentStatus = "<bean:write name="detailService" property="status" />";
Is there a way to do this?.....
Any help pretty much appreciated