I want to create a scriptlet variable with tag struts, how can I do it???

for example:

I have:   
 String testStr = session.getAttribute("test");

but I don�t want use it, it�s ugly!!!

I saw the tag <bean:define id="testStr" property="test"/>

but whe I try show it with a expression ( <%=testStr%>)
I have canot resolve the symbol!!!! error!!!
But when I use the <bean:write name="testStr"/> I show the value, but I have to use 
<%=testStr%>


Anybody can help me?

Reply via email to