Hi Tony,

I'm not 100% clear on what you're asking, but I'm guessing that you want
to present a form with prepopulated values.

The way to do this is to create a HTML page with the values preassigned.
So for instance if you have a form with the fields, first, last you
would do something like this in your servlet:

<form action="originalAction.jsp" name="update" method="post">

<td><input value="Joe" name="first" type="textfield"></td>
<td><input value="Blow" name="last" type="textfield"></td>

The first line should be identical to whatever it was that the original
servlet form was using.
The other lines should pre populate the default values, and the whole
thing should be constructed by your new servlet.

Another way to look at it is that you're contructing a form that's
identical to the original one other than the "value" fields.

Hope this helps,

Dror


On Sun, Dec 29, 2002 at 06:51:53PM -0500, Tony Dahbura wrote:
> It is the post of the data, and respond with the redirect that I am not sure
> how to do.  I would assume the login (original) servlet is going to do some
> setup and session stuff etc......How do I make sure the client browser sees
> this etc......
>
> Tony
>
>
> Michael Paduch wrote:
>
> > Hi Tony,
> >
> > Have the first request handled by your servlet. The servlet should post the
> > data to the original servlet. Make sure authentication was successful and
> > then respond with redirect command. From then on the browser will be
> > communicating directly with the original servlet, not the one that provided
> > log in capability.
> >
> > Regards,
> > Michael
> >
> > ----- Original Message -----
> > From: "Tony Dahbura" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, December 29, 2002 1:31 PM
> > Subject: circumnavigating security in commercial application
> >
> > All:
> > I have a web based application that uses a login page (html) via a
> > servlet and it requires about 5-6 different values to be filled in on
> > the page.  What I would like to do is put my own servlet in front of it
> > so that I can have a user login with with their userid/password and then
> > to prefill the other values and pass it off to this servlet.  This
> > servlet wants a response in post format, but I do nto want to proxy
> > everything (all future requests and interactions) between the
> > application and my servlet.
> >
> > Does anyone have a some strategies for implementation of something like
> > this.  I need to support this for a single sign on architecture.  Does
> > this sound possible and can anyone shed some light on how to implement
> > this (or even better some sample code).  At first glance it sounds like
> > a proxy servlet.....
> >
> > thanks,
> > tony
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

--
Dror Matalon
Zapatec Inc
1700 MLK Way
Berkeley, CA 94709
http://www.zapatec.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to