Speaking of newbie tips, I've been banging my head with struts/JSTL for the
past two weeks and discovered this gem today.

<c:set var="image" value="${questionForm.image}"/>
<jsp:useBean id="image" type="java.lang.String" />
<% if (image.trim().length()>0) { %>
...


This lets me grab an object out of a form bean and switch to JSP script
mode so that I can use the full force of Java rather than figure out how to
do everything with JSTL or struts tags.
Bad form I know, but it helps get the job done while I get a grip on using
tags at a saner pace.


Regards,
John






>Well I have found the answer to the relative URI problem with the
>html:img, html:rewrite and html:link tags. Now those are quite useful!
>Unfortunately, the O'Reilly Struts book was of no help to me with any of
>these matters. If any newbie reads this and wants to get up to speed
>quickly, I found this site to be helpful:

>http://www.reumann.net/do/struts/main

>I may not have ever noticed the html:rewrite tag without it.

>Thanks again for your help.

>Erik





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

Reply via email to