I'm trying to use the <s:component> tag to create a re-usable set of fields
in a form. In my JSP:

  <s:component template="addposition.jsp">
    <s:param name="name" value="foo"/>
  </s:component>

In template/simple/addposition.jsp, I have:

<%@ taglib uri="/struts-tags" prefix="s" %>

Name: <s:property value="%{parameters.name}"/>

For some reason, this doesn't work. 

Is there something I'm doing wrong? Can templates be JSPs or do they have to
be FreeMarker/Velocity?

Correct me if I'm wrong, but doesn't Struts' <s:component> tag accomplish
the same thing that can be accomplished with JSTL's <c:import> and <c:param>
tags? If so, it seems that JSP 2.0 tag files are a much more elegant
solution than <s:component> or <c:import>.

Thanks,

Matt
-- 
View this message in context: 
http://www.nabble.com/-s2--s%3Acomponent-and-reading-parameters-tf4226480.html#a12023494
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to