Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using jsp:param

843835Feb 10 2003 — edited Feb 10 2003
hi,

i am new to java and jsp programming and i am trying to use jsp:param nested in my
jsp:forward statement.

if i specify a value in jsp:param my page would display properly. however when i passed a variable in my jsp:param i get the error:

Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\star\jsp\Meeting_CreateMinutes_jsp.java:135: cannot resolve symbol
symbol : method encode (long)
location: class java.net.URLEncoder
pageContext.forward("Meeting_ActionItems.jsp" + "?" + "docno=" + java.net.URLEncoder.encode( carno ) + "&" + "formmode=" + "Add");

^
1 error

this is the snippet in my jsp page that (i suspect) caused the error:


<% long carno = newcar.getDocno(); %>
<jsp:forward page="Meeting_ActionItems.jsp">
<jsp:param name="docno" value="<%= carno %>"/>
<jsp:param name="formmode" value="Add"/>
</jsp:forward>

my question is : does jsp:param do not accept variables as values?

thanks in advance.

best regards,

noynoy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2003
Added on Feb 10 2003
4 comments
356 views