I am trying to use html:link to "fix" a URL so that it has the context
path on it, but when the value of the page parameter requires quotes
inside it (to specify a string value to a function) then the page
won't compile.

I have this link in td in the page :

<html:link 
page="${bgdlr:loadPendingOrdersLink(sortOrders["DAYS_UNTIL_CONFIRMED"],
0, (sessionInfo.pendingOrdersSortOrder eq
sortOrders["DAYS_UNTIL_CONFIRMED"] ? not
sessionInfo.pendingOrdersSortedAscending : true))}"
styleClass="copywhite">remaining</html:link>

If it is just a straight <a href=""> tag it works fine, but when it is
like this I get the following compilation error :

org.apache.jasper.JasperException:  equal symbol expected
/WEB-INF/jspf/orderStackPanel.jspf(21,197)

(The line above is line 21, character 197 is the D in the end of the
first instance of DAYS_UNTIL_CONFIRMED.

sortOrders is an application scope map of SortOrder objects (my class)
keyed by String.

sessionInfo is my own class.

bgdlr:loadPendingOrders is a function I have in a tag library that
builds the appropriate URL (without the context path where the web app
might be installed).

I have a lot of instances of this type of URL building, which is why I
have put them in a custom tag library.

I am using Netbeans 5.5 to develop the web-app, and it is being
deployed on Sun Java Application Server 9, and both give that error. I
initially had the web-app deployed with an empty context path, but now
I need to change that, so  I am building the hrefs now using the
html:link tag instead of specifying an href directly.

Any ideas?

Thanks

Chris

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

Reply via email to