• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action tag attributes

 
Frederik Ericsson
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ALL,


help me..

what are the mandatory attributes for these..

<jsp:setProperty name=�name� value=<%= expression %>
<jsp:include page=<%= expresion %>
<jsp aran name=�name� value=<%= expression %>
<jsp:getProperty name=<% expression %>


thanks in advance

with regards,
Chiyan
 
Sai Patnala
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the correct syntax:
<jsp:setProperty name="beanName" property="propName | *" [value="val"] [param="paramName"] /> name, property are mandatory.
Note: Only param or value can be used not both. Only value can take request time expressions. Param need not be specified if attribute name matches with request parameter name.

<jsp:include page="/pageToInclude" [flush="true/false"] /> Only page is mandatory.

<jsp:setProperty name="beanName" property="propName"> Both are mandatory.

<jsp aram name="name" value="val" /> Both are mandatory.
Note: This tag can only be used in <jsp:include>, <jsp:forward> and <jsp arams> standard actions. Only value can be request time attribute expression. When used with <jsp:include> or <jsp:forward> these values are augmented with original value, takig precedence over original values.

Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic