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!

Problems using <jsp:param> - passing null

843836Sep 28 2003 — edited Sep 29 2003
Hello,

I'm trying to pass multiple parameters within a <jsp:include> tag using <jsp:param>. My problem is that for most of, but not all, the values passed end up being null. I've done plenty of tests to prove that I have an actual value to pass. My syntax seems correct, and I have no idea why this is happening. Is there a limit to how many parameters can be passed? I doubt it. Here's a code snippet:

<jsp:include page="<%=filename%>" flush="true"/>
<jsp:param name="code" value="<%= p_code %>" />
<jsp:param name="start" value="<%= startDate %>" />
<jsp:param name="end" value="<%= endDate %>" />
<jsp:param name="date" value="<%= n_date %>" />
<jsp:param name="day" value="<%= n_day %>" />
<jsp:param name="jobnum" value="<%= n_jobnum %>" />
<jsp:param name="jobcode" value="<%= n_jobcode %>" />
<jsp:param name="custname" value="<%= n_custname %>" />
<jsp:param name="newWO" value="<%= n_newWO %>" />
<jsp:param name="hours" value="<%= n_hours %>" />
<jsp:param name="desc" value="<%= n_desc %>" />
<jsp:param name="TOhours" value="<%= n_TOhours %>" />
<jsp:param name="TOhours" value="<%= n_TOcode %>" />
</jsp:include>

Then the request code:

<% String _code = request.getParameter("code");
String _start = request.getParameter("start");
String _end = request.getParameter("end");
String _date = request.getParameter("date");
String _day = request.getParameter("day");
String _jobnum = request.getParameter("jobnum");
String _jobcode = request.getParameter("jobcode");
String _custname = request.getParameter("custname");
String _newWO = request.getParameter("newWO");
String _hours = request.getParameter("hours");
String _desc = request.getParameter("desc");
String _TOhours = request.getParameter("TOhours");
String _TOcode = request.getParameter("TOcode"); %>

Any help would be greatly appreciated! The first three values get passed, but not the rest. Can't figure out what's going on.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2003
Added on Sep 28 2003
2 comments
608 views