**
Quick and dirty answer ... use the request.getParameter function of JSP
 
http://server/arsys/shared/changerequestform.jsp?ID=123456    (additional parameters would be passed as &param2=b&param3=c )
 
changerequestform.jsp file:
 
<jsp:forward page="/servlet/ViewFormServlet">
 <jsp:param name="server" value="devhc"/>
 <jsp:param name="mode" value="Search"/>
 <jsp:param name="form" value="WAL:BULK:RequestForm"/>
 <jsp:param name ="username" value="username"/>
 <jsp:param name ="pwd" value="password"/>
 <jsp:param name ="eid" value="<%=request.getParameter("ID")%>"/>
</jsp:forward>
 
If you want you can define variables to hold your info.  Look at the login_common.jsp in the shared directory of midtier for examples.
 
Fred
 


From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of George Tsai
Sent: Tuesday, October 31, 2006 10:01 AM
To: arslist@ARSLIST.ORG
Subject: Re: How to pass parameters to jsp file?

**
Hi Fred,
The issue here is how to pass the parameters from the url to the jsp file.  We use jsp file because we don't want to show the username and password on the url.

 Example url:

http://server/arsys/shared/changerequestform.jsp

Example changerequestform.jsp file:

<jsp:forward page="/servlet/ViewFormServlet"> <jsp:param name="server" value="de

vhc"/> <jsp:param name="mode" value="Search"/> <jsp:param name="form" value="WAL

:BULK:RequestForm"/> <jsp:param name ="username" value="username"/> <jsp:param na

me ="pwd" value="password"/> </jsp:forward>


Thanks.

George Tsai
IT Systems Architecture - Process Automation Initiatives
Walgreens Co.
847-914-5210



"Grooms, Frederick W" <[EMAIL PROTECTED]>
Sent by: "Action Request System discussion list(ARSList)" <arslist@ARSLIST.ORG>

10/30/2006 10:07 AM

Please respond to
arslist@ARSLIST.ORG

To
arslist@ARSLIST.ORG
cc
Subject
Re: How to pass parameters to jsp file?





**
<jsp:forward page="/servlet/ViewFormServlet"> <jsp:param name="server" value="devhc"/>
<jsp:param name="mode" value="Search"/> <jsp:param name="form" value="WAL:BULK:RequestForm"/>
<jsp:param name ="username" value="username"/> <jsp:param name ="pwd" value="password"/>
<jsp:param name ="eid" value="Your Request ID"/> </jsp:forward>
 
Look in Chapter 9 of the 6.3 Developing Applications:Basic guide (~ page 447) for a list of parameters.
 
Fred


From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of George Tsai
Sent:
Friday, October 27, 2006 1:11 PM
To:
arslist@ARSLIST.ORG
Subject:
How to pass parameters to jsp file?


**
We use a jsp file allowing user to login to Remedy Mid-Tier with a generic user name.  The question is that if we like to open up a specific request within the form, how can we pass the parameters through url to the jsp file.  We do not like to show the username/password/formname on the url.


Example jsp file:


<jsp:forward page="/servlet/ViewFormServlet"> <jsp:param name="server" value="de

vhc"/> <jsp:param name="mode" value="Search"/> <jsp:param name="form" value="WAL

:BULK:RequestForm"/> <jsp:param name ="username" value="username"/> <jsp:param na

me ="pwd" value="password"/> </jsp:forward>



Thanks.

George Tsai
IT Systems Architecture - Process Automation Initiatives
Walgreens Co.
847-914-5210
 
 
 
__20060125_______________________This posting was submitted with HTML in it___
__20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___

Reply via email to