Peter Pilgrim wrote:
> [...]
> 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 ~~~~~~~~~~~~~

When you set rtexprvalue to true for an attribute, it means you can
use a JSP expression (<%= ... %>) as the value, not an action element.
That's why this case fails.

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

There are two problems with this case:
1) You're using invalid syntax for an expression. An expression starts
   with <%=, not <%.
2) You're using double quotes both to enclose the attribute value and
   as a string delimiter *in* the value. This confuses the container.
   Use single quotes to enclose the value or escape the double quotes
   in the value.

This should work:

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

But a better approach, IMHO, is to let your custom action deal with
adding the context path so you don't need to use this complex syntax.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

===========================================================================
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