Isa,
Well, that fixed part of the problem...I changed the 'name' in the putValue() to
match that used by my JSP, then had my servlet return an HTML page with a link
to the JSP
The JSP now 'sees' the data set into the bean by the servlet...Thanks for the
tip
However, I still get:
Error: 404
No detailed message
when I try to use RequestDispatcher.forward()
Any ideas?
- Neville
Please respond to Isa Hashim <[EMAIL PROTECTED]>
To: Neville Soares/Whittman-Hart LP@W-H
cc:
Subject: Re: Model II Problem
Hi Neville,
I see you have the following servlet code:
]2. Here's the servlet: (it compiles fine)
...
] //create the 'there' class
] there thing = new there() ;
] String text = "{" + request.getParameterValues("sample")[0] + "}" ;
]
] thing.setSample (text);
] session.putValue("thing", thing);
and JSP:
]4. Here's the JSP:
]
]<jsp:useBean id="foo" scope="session" class="hello.there" />
]<jsp:setProperty name="foo" property="*" />
]<html>
]<head>
] <title>Hello</title>
]</head>
]<body>
]<jsp:getProperty name="foo" property="Sample"/>
]</body>
]</html>
I believe the name you pass in to session.putValue("thing", thing)
has to match the 'id' attribute in the jsp:useBean tag (or the 'name'
attr in jsp:getProperty) . i.e. Try doing this instead:
session.putValue("foo", thing);
regards,
-isa
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".