Hi,
On the click of the hyperlink call a JavaScript function say "doRequest()".
<SCRIPT Language="JavaScript">
function doRequest()
{
var temp1 = window.document.formname.fieldname.value;
this.location="\servlet\b?var=" + temp1;
return true;
}
</SCRIPT>
Hope this solves your problem.
Regards,
Iqbal Lakhani.
Oliver Wong wrote:
> How can I add the dynamic parameter?
> <a href=\servlet\b?var= >
>
> Fusun CITAK
> <[EMAIL PROTECTED] To:
>[EMAIL PROTECTED]
> > cc:
> Sent by: "A mailing Subject: Re: Communication
>between servlets
> list for discussion
> about Sun
> Microsystem's Java
> Servlet API
> Technology."
> <SERVLET-INTEREST@JAV
> A.SUN.COM>
>
> 25-09-2001 04:55 PM
> Please respond to "A
> mailing list for
> discussion about Sun
> Microsystem's Java
> Servlet API
> Technology."
>
> add parameter to hyper link. Does it ok for you?
>
> ----- Original Message -----
> From: "Oliver Wong" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 25, 2001 11:49 AM
> Subject: Communication between servlets
>
> > I create a two servlets A and B.
> > servlet A:
> > one text box and one hyper link to B.
> > servlet B:
> > show the value of text box of servlet A.
> > How can I pass the value to B?
> > But I don't want the submit button!
> > I hop use the link instead of submit button.
> > Thank you!
> >
> >
> ___________________________________________________________________________
> > 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
___________________________________________________________________________
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