tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Gin" <Gin_C...@tvratings.com>
Subject setProperty
Date Tue, 26 Nov 2002 20:01:10 GMT
Hi all,
	I was wondering if there was a way using JSTL to set a property on a
bean?
For example:
	I have a page that shows the country.
If the country is null then I want to use USA as the default.
My code looks like:

	<c:if test="${empty applForm.country}">
		... i want to set it to USA but ...
		... i dont know what to use here ...
		... c:set only sets a scoped var but cant use the bean (if
i'm reading Shawn's book right)...
	</c:if>

	is this possible using jstl or struts? i looked at the struts doc
but dont see anything there either.
Thanks.
-Tim




--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message