Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

...I enjoy spending time on it for personal growth (I learn from the questions I don't answer, and I reinforce/stay sharp on the topics I do answer), and to give back to humanity at large...

Geography

Where in the world do Tek-Tips members come from?

Included page does not recognize parameter passed! Please help!

joshlam (Programmer)
20 Jul 00 2:21
Hi,

I have the following jsp 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:

<html>                    
Title: <%= request.getParameter("title") %>
</html>
                    
But I got the following result on the browser:

Title: null

What am I doing wrong?  Please help!

I am using Resin 1.1.2 as my JSP engine on IIS4.

Thanks in advance!

--
Josh
palbano (Programmer)
20 Jul 00 12:22
Dear Josh,

Never used Resin, but using the JWS I would do this:

<%@ include file="title.jsp" %>


Now assuming that your outer page contains <html></html> tags then you do not want them in your 'title.jsp' file

Also avoid mutiple <body> tags when using server side includes.

Hope this helps
-pete
joshlam (Programmer)
20 Jul 00 14:59
I found the problem.  It should be:

<jsp:param name="title" value="About Our Company"/>

ie I was missing the "jsp:" before the "param"

--
Josh

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close