Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Included Page Does Not Recognize Parameter?

 
Josh Lam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Resin 1.1.2 on IIS4.
I have the followingjsp page:
<jsp:include page="title.jsp" flush="true">
<param name="title" value="About Our Company"/>
</jsp:include>
And in the title.jsp page, I have the following:
Title: <%= request.getParameter("title") %>
But I got the following result on the browser:
Title: null
Sorry I am a newbie on JSP and got this out of a book.
What am I doing wrong? I do not have another JSP engine to try this.
Would appreciate any help.Thanks.
--Josh
 
Josh Lam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just found the problem:
it should be <jsp aram ...> instead of <param ...>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic