For example, JSP Standard Tag Library library's core set/out tags are good for that:

<c:set var="some_variable_name">
<NameOrder:Prefered_Name_Order
              nameordercodeid="SeFiFa"
              firstName="<%= firstName %>"
              secondName="<%= secondName %>"
              familyName="<%= familyName %>"/>
</c:set>

To get it:

<c:out value="${some_variable_name}" />

http://javaalmanac.com/egs/javax.servlet.jsp.jstl.core/attr.html?l=new

http://java.sun.com/products/jsp/jstl/

Hope this helps you.

 raju punith <[EMAIL PROTECTED]> wrote:

Hello,

I have a custom tag which is called in a jsp page at
diiferent locations as follows.

nameordercodeid="SeFiFa"
firstName="<%= firstName %>"
secondName="<%= secondName %>"
familyName="<%= familyName %>"/>


some jsp code

nameordercodeid="SeFiFa"
firstName="<%= firstName %>"
secondName="<%= secondName %>"
familyName="<%= familyName %>"/>


my question is how can i store the o/p of tag in a
variable so that i can use the same variable whereever
required.


thanks
Raju



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

___________________________________________________________________________
To unsubscri be, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Reply via email to