You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Wong Kok Wai <wo...@yahoo.com> on 2001/01/05 10:56:00 UTC

form:link

Weblogic 5.1 refuse to compile the following line:

<form:link
href="quickNews.do?pageSearch=true&stockExchange=<%=
request.getParameter("stockExchange") %>&stockCode=<%=
request.getParameter("stockCode") %>&stockName=<%=
request.getParameter("stockName") %>&pPage=<%= p %>"
><u><%= p %></u></form:link>&nbsp;&nbsp;

Is the bug with Weblogic or I cannot use multiple RTE
inside the "href" attribute?




__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

Re: form:link

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Wong Kok Wai wrote:

> Weblogic 5.1 refuse to compile the following line:
>
> <form:link
> href="quickNews.do?pageSearch=true&stockExchange=<%=
> request.getParameter("stockExchange") %>&stockCode=<%=
> request.getParameter("stockCode") %>&stockName=<%=
> request.getParameter("stockName") %>&pPage=<%= p %>"
> ><u><%= p %></u></form:link>&nbsp;&nbsp;
>
> Is the bug with Weblogic or I cannot use multiple RTE
> inside the "href" attribute?
>

Note that you are trying to use double quotes nested inside double quotes, which
will create syntax errors in the resulting Java code.  It is also not legal to
make PART of an attribute a runtime expression -- it is all or nothing.

Try this:

<%=
  String temp = "..... the expression above ...";
%>

    <form:link href="<%= temp %>"/>

Craig