Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jsp include IllegalArgumentException

Status
Not open for further replies.

ttrinh

MIS
Jan 21, 2002
93
AU
Hi
I found I have posted this to a wrong forum earlier So plz bear with me.
I am having probs with a jsp include. the jsp compiles but there is an error at runtime . The error is this
java.lang.IllegalArgumentException: Resource / not found

I am trying to embed a graph in a jsp . The graph is dynamically generated via cgi
the code that gets this error is
<% Calendar today = Calendar.getInstance();
int day = today.DAY_OF_MONTH;
int month = today.MONTH;
int year = today.YEAR;
out.println(year); %>
<jsp:include page= &quot;<jsp:param name=&quot;dd&quot; value=&quot;<%=day%>&quot; />
<jsp:param name=&quot;mm&quot; value=&quot;<%=month%>&quot; />
<jsp:param name=&quot;yyyy&quot; value=&quot;<%=year%>&quot; />
<jsp:param name=&quot;zoom&quot; value=&quot;2&quot; />
<jsp:param name=&quot;yscale1&quot; value=&quot;100&quot; />
<jsp:param name=&quot;yscale2&quot; value=&quot;500&quot; />
<jsp:param name=&quot;yscale3&quot; value=&quot;0&quot; />
<jsp:param name=&quot;yscale4&quot; value=&quot;0&quot; />
<jsp:param name=&quot;yscale5&quot; value=&quot;0&quot; />
<jsp:param name=&quot;start&quot; value=&quot;96&quot; />
<jsp:param name=&quot;end&quot; value=&quot;216&quot; />
<jsp:param name=&quot;days&quot; value=&quot;62&quot; />
<jsp:param name=&quot;opt&quot; value=&quot;2629600&quot; />
<jsp:param name=&quot;type&quot; value=&quot;16&quot; />
<jsp:param name=&quot;ports&quot; value=&quot;185%20&quot; />
</jsp:include>

a second question is which does the calender object appear to be returning a date of 5/2 year 1??? i thought it would return todays date

Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top