String somevariable=userID;
out.println("<INPUT type=hidden value='" + somevariable + "'
name=user_id>");
This will solve the problem
Regards
Deepak
http://www.roseindia.net
----- Original Message -----
From: Farooqui Hamid <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 05, 2001 2:24 AM
Subject: Global Variable
> Thanks everybody for your help
> I m now stuck at this point
> <INPUT type=hidden value=userID name=user_id>
>
> In the above line userID is the variable which i m getting from my earlier
> servlet
> How do i set the value=variable
> Right now my next servlet gets the value as "userID" hardcoded
>
> TIA
>
> HAMID
>
>
___________________________________________________________________________
> 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