Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Professional Java Server Programming


Message #1 by "Phil Perks" <philp@w...> on Wed, 16 Aug 2000 15:59:57
Probably the best way to do is to use one form and upload image to the
servlet first, then use the servlet to directly talks to bean. Servlet can
rewrite html-code, did you know that ?

Van.

----- Original Message -----
From: "Phil Perks" <philp@w...>
To: "Java Server" <pro_java_server@p...>
Sent: Wednesday, August 16, 2000 3:59 PM
Subject: Professional Java Server Programming


>
> -----Original Message-----
> From: Gonsalves, Jan [mailto:jgonsalves@i...]
> Sent: 16 August 2000 15:11
> To: 'support@w...'
> Subject: Professional Java Server Programming -2778
>
>
> Hi,
>
> I have a question I was unable to answer in your book.  If I have a web
> page that has two forms in it, how do I send a responce when the first
form
> is submitted?
>
> Details on problem:
> I'm doing two things with this web page, one is uploading an image from a
> client, the other is retrieving some data.  My first form allows the user
> to upload the image and it works fine, unfortunately when my servlet tries
> to respond saying that the image is ok or not it does not appear on the
> client side. I check to make sure the image is not a virus by checking
> certain bytes depending on file type.  My second form will submit the rest
> of the information to a bean.
>
> From a servlet, can I create a new browser page and display the message in
> that, That's what I really want to do!!  Any help would be great, thanks!
>
> Jan Gonsalves jan@i...
> One Indian Head Plaza
> Nashua,NH 03060
>  (xxx)xxx-xxxx
>

  Return to Index