Results 1 to 1 of 1
Thread: struts2 tags problem
- 12-10-2010, 11:47 AM #1
Member
- Join Date
- Dec 2010
- Location
- Bucharest Romania
- Posts
- 41
- Rep Power
- 0
struts2 tags problem
Hi all, a have a problem related to struts2 tags.
in my jsp page i have something like :
PHP Code:<s:property value="location.outboundPrefix" /><s:property value="phones[0].phNo" default=""/> <s:if test="phones[0].phoneType == 1"> <s:url action="sms.html" id='smsUrl'> <s:param name="pid" value="phones[0].id"></s:param> </s:url> <s:a href="%{smsUrl}"> SMS</s:a> </s:if> // and <s:property value="location.outboundPrefix" /><s:property value="phones[1].phNo" default=""/> <s:if test="phones[1].phoneType == 1"> <s:url action="sms.html" id='smsUrl'> <s:param name="pid" value="phones[0].id"></s:param> </s:url> <s:a href="%{smsUrl}"> SMS</s:a> </s:if>
How can i test if phones[1] exists in order to prevent this ?
Similar Threads
-
Struts2.0 Error messages problem
By Sayed in forum Advanced JavaReplies: 0Last Post: 12-03-2008, 12:38 PM
Bookmarks