Help me.. Struts nested tags
4 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sureshkumar_rengasamy
Posted On:   Saturday, November 25, 2006 06:35 AM

Does anyone know how to write nested tags like.


"/>


i tried this, but it shows error..
can anyone help me....

Re: Help me.. Struts nested tags

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, December 8, 2006 08:54 PM

I don't think the question was actually about the Struts "nested" taglib.... but I think one answer to the question would be to use a jsp expression e.g.



value='<%= tuples.getAirCode()%>'



(assuming you have first done something like a bean:define so that there is a local scripting variable named "tuples", in addition to an attribute of whatever scope))



another answer would be to use a JSTL expression (if you are deploying to a servlet container that supports JSTL EL).

Re: Help me.. Struts nested tags

Posted By:   kartik_sridhar  
Posted On:   Thursday, November 30, 2006 07:13 AM

Hi Suresh,





u can use nested tags in the following manner in a jsp page.





(write this piece of code within your body)







where "airCode" has been defined in your CTestBean.java class and the setter and getter methods for this bean have been declared in your actionform.




but i guess value='' will give you the value as a hardcoded string and therefore u need to use a tag as



and


" />






This piece of code shud work for you.

Re: Help me.. Struts nested tags

Posted By:   venkat_kolla  
Posted On:   Wednesday, November 29, 2006 10:55 AM

hi
you can't apply tag where another tag expecting a value for an atribute.in other terms struts cann't transform a tag which mentioned in quotes as a value for another tag.

Re: Help me.. Struts nested tags

Posted By:   Muthamil_selvi  
Posted On:   Wednesday, November 29, 2006 02:17 AM

Post the error which ur getting.
About | Sitemap | Contact