Use the <logic:notPresent> or the <logic:present> tags. Make sure you are
functioning in a proper MVC fashion. I am assuming that payForm is a bean.
you can access a beans property stored in a scope to verify whether or not
to reveal a portion of jsp.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-----Original Message-----
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 3:53 PM
To: Struts List
Subject: How to avoid having to use these scriplets in struts1.0.2?


To give a concrete example of what I want to avoid...I've tried
various tags for 1.0 but I'm not sure what does the trick. I want to
do the following using tags instead of scriplets...

<% if ( payForm.getVoluntaryReason() != null &&
!payForm.getVoluntaryReason().equals("") ) { %>
  <TR><TD>Voluntary Reason:</TD><TD><bean:write name="payrollChangeForm"
property="voluntaryReason"/></TD></TR>
<%}
if ( payForm.getInvoluntaryReason() != null  &&
!payForm.getInvoluntaryReason().equals("") ) { %>
  <TR><TD>Involuntary Reason:</TD><TD><bean:write name="payrollChangeForm"
property="involuntaryReason"/></TD></TR>
<%
}%>

Thanks for any help.

--

Rick
mailto:[EMAIL PROTECTED]

"I bet a fun thing would be to go way back in time to where there was
going to be an eclipse and tell the cave men, 'If I have come to
destroy you, may the sun be blotted out from the sky.' Just then the
eclipse would start, and they'd probably try to kill you or something,
but then you could explain about the rotation of the moon and all, and
everyone would get a good laugh."
  -Jack Handey


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



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

Reply via email to