Meaningless Drivel is fun!*
The moose likes JSP and the fly likes retreiving parameter from another web page made in different language altogether Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "retreiving parameter from another web page made in different language altogether" Watch "retreiving parameter from another web page made in different language altogether" New topic
Author

retreiving parameter from another web page made in different language altogether

Mehak Darti
Greenhorn

Joined: Dec 13, 2003
Posts: 18
hi...
i have a web page which is made in the perl language.I have another web page which is made in JSP .Now when a user logs on in the web page which uses perl language .. he/she is made to log on with user id and password .. ! now i want the same userid session to be carried on to JSP web page. How do i do that ??
The entire scenario works in this way:
In the perl web page the user logs on with user id and password. On that page he has a link which takes him to the JSP web page. Now I have a text box called empnum in the JSP web page.
Now i have a string variable called userid and password in the JSP code.
I have already set a session in the perl code for userid and password but how do i retreive those sessions in the JSP code..!
Can it be done.???
if so..please tell me how i can retreive a set session varaible in perl and then retreive it in the JSP code..!
Any ideas ..? :roll:
Donovan Thatcher
Greenhorn

Joined: Sep 17, 2002
Posts: 2
Hi
You have to set a request parameter on the PERL page. I have no PERL experience so I cannot help you here, but once you have reached the .jsp page, you can easily retrieve the parameter using the request object :
request.getParameter("parameterName");
Hope that helps


Donovan Thatcher<br />---------------------------<br />donovant@astrolabegroup.com<br />+ 27 72 2994597
Amit Delve
Ranch Hand

Joined: Dec 22, 2003
Posts: 33
Try finding out how perl pages interact with each other. Since I have not worked with Perl, the only way I think is to attach the username and password along with your Perl request dispatching mechanism which directs the request to the JSP page and access it.
Perl should have a method similar to <jsp:forward> in JSP which allows the page writer to attach more parameters in addition to the existing ones and send it to the forwarded page. Hope this helps.
- Amit Delve.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retreiving parameter from another web page made in different language altogether