Hello,
I am wondering what is the best method for loading a variable passed to a page as an attribute into a tag's attribute?


For Example:

I have a String stored in a request attribute and it's called "startDate".
In the JSP, I do the following:

<bean:define id="startDate" name="startDate"/>
<bean:message key="salesResults.main.table.title" arg0='<%= new String("" + startDate) %>'/>


It strikes me that there is probably a better, cleaner way to do this.
How would you use JSTL to do this? Originally, I wanted to use JSTL but it appears that the c:set tag doesn't make startDate available as a scripting value.


<c:set var="startDate" property="${startDate}"/>



Mike Zatko

* I know this topic has probably been covered before but the mailing list archive was giving me timeouts.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to