Yes my tld file is correct

<taglib>
     ...

  <tag>
    <name>setCtrlParam</name>
    <tagclass>com.db.gdd3.emis.taglib.expresso.SetControllerParameterTag</tagclass>
    <bodycontent>empty</bodycontent>
    <info>
       Sets named parameter in a Expresso Controller object.
    </info>
    <attribute>
     <name>name</name>
     <required>true</required>
     <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
     <name>property</name>
     <required>true</required>
     <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
     <name>value</name>
     <required>true</required>
     <rtexprvalue>true</rtexprvalue>
    </attribute>
  </tag>

</taglib>

Yes I already discovered this and the following is correct
for my web application called "expresso"

     value="<%= request.getContextPath() + "/emis/user-profile-success.jsp" %>"

              ++++++++++++
          == "/expresso/emis/user-profile-success.jsp"
              ++++++++++++

but I am using a controller servlet with a path like
"servlet/AnyOldControllerServlet" the Controller Servlet is
using a request dispatcher to forward
back to the JSP that is why I need to the context path included.
That is why it needs the long absolute web app pathname instead
of a relative path.


But back to the original statement the REQUEST TIME EXPRESSION EVALUATION
does not appear to work even though I set the XML "<rtexprvalue>true</rtexprvalue>"
for the tag named "value" above in my tld!

    ~~~~~~~~~~~~  My Request Time Expression Fails Here ~~~~~~~~~~~~~
    <dbexpresso:setCtrlParam name="profileController"
      property="nextPage"
     value="<app:contextPath/>/emis/user-profile-success.jsp" />
    ~~~~~~~~~~~~  My Request Time Expression Fails Here ~~~~~~~~~~~~~

or

    <dbexpresso:setCtrlParam name="profileController"
      property="nextPage"
     value="<% request.getContextPath+
               "/emis/user-profile-success.jsp" %>" />

     both produce "/emis/user-profile-success.jsp" not
     the required "/expresso/emis/user-profile-success.jsp"
                 ++++++++++++


and I am using Tomcat 3.2.1 at the mo ... I wonder if there is
bug in this tomcat release.

--
Peter Pilgrim
G.O.A.T
                    "the Greatest Of All Time"



---------------------------------------- Message History 
----------------------------------------


From: Robert Nicholson <[EMAIL PROTECTED]>@java.sun.com> on 20/02/2001 10:19 PST

Please respond to A mailing list about Java Server Pages specification and             
 reference <[EMAIL PROTECTED]>

--<CUT>--

Assuming your tld file is correct.

What does it do when you put

value="<%= request.getContextPath() + \"/emis/user-profile-success.jsp\" %>"

Isn't the value of that subsequent forward or redirect always going to be
relative to your app context path?

ie. you shouldn't need <app:contextPath/> there at all if that's not
changing so this doesn't even have to be evaluated at request time.

--<CUT>--



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to