Yes, you can pass parameters to the servlet as a 'query string'. We don't need
POST method for this. The 'query string' is appended to the url. The URL with
query string looks something like this
<frame src="../MainServlet?PARM=GetPrice" METHOD=GET name="window1" >
A general url with query string looks like this
http://host:port?param1=value1¶m2=value2
In the servlet we can access the parameters using getParameter() function.
- Ravi
"Gary D. Schechter" wrote:
> I would like to invoke a servlet from an HTML frame, along the lines of the
> following:
>
> <FRAMESET cols="30%,70%">
> <frame src="../MainServlet" METHOD=GET name="window1" />
> <frame src="../MainServlet" METHOD=GET name="window2"/>
> </FRAMESET>
> </FRAMESET>
>
> everything works fine, but i would also like to pass in servlet parameters, to
> be accessed with getParameter(). For example:
>
> <frame src="../MainServlet" METHOD=GET name="window1" PARM=GetPrice/>
> <frame src="../MainServlet" METHOD=GET name="window2"
> PARM=GetAvailableQuantity/>
>
> if i try to getParameter("PARM"), the parm is not found.
>
> Is there a way to pass parms in to my servlet without a form ?
> thanx
> [EMAIL PROTECTED]
>
> ___________________________________________________________________________
> 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
--
______________________________________________________________
Ravi Sankar Pabbati,
Wipro GE Medical Systems,
A-1, Golden Enclave, Airport Road, Bangalore,
India - 560 017.
Tel : (91)-(80)-5263121 ext 344 ; Fax : (91)-(80)-5263520
Visit us on the Internet : http://www.gemedicalsystems.com
http://www.wiproge.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