Rob,

processRequest was in the JSP 0.92 spec. but has long since disppeared. TO
achieve what you need you can either write your own tag, or (in your case)
do something like this

<jsp:useBean id="registerbean" scope="session" class="AMCreg.register">
<jsp:setProperty name="registerbean" property="*" />
</jsp:useBean>

This will cause the JSP engine to set all the properties of the bean that
match parameters in the request,

Kevin Jones
DevelopMentor

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rob Fahey
> Sent: 20 January 2000 12:52
> To: [EMAIL PROTECTED]
> Subject: JSP included BeanLets and the processRequest method.
>
>
> Hi All,
>
> I'm just starting out with JSP programming, coming from a background in
> webdev.... I've hit a snag in including a beanlet on a page which I was
> hoping someone could help me with, as I'm sure it's pretty basic!
>
> I am including the bean on the page as follows:
>
> <jsp:useBean id="registerbean" scope="session" class="AMCreg.register"
> />
>
> I want to process all the data sent from a form on the previous page
> (thats quite a lot of data) in this beanlet. However, because it's a
> general purpose processing class, I don't know exactly what the fields
> in the POST/GET data will be... Hence, I have written a procedure into
> the beanlet which should process the request object, extract the data
> from it and store it in the Session object for later processing.
>
> public void processRequest(HttpServletRequest request) {
>  ... do stuff ...
> }
>
>
> Now, to my mind, based on my knowledge of general servlets, this process
> should be called as soon as I instantiate the beanlet on the page.
> However, as far as I can see, it isn't called at all... (I have debug
> lines in there which don't produce any output, which tells me that the
> method is never accessed).
>
> My question is, what am I doing wrong...? And am I approaching this in
> the right way in the first place? I have assumed all along that JSP
> beanlets have full access to the HttpServletRequest object... am I
> correct in this assumption?
>
> Thanks in advance for your help!
>
> Ja,
> Rob
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to