• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retreiving parameter from another web page made in different language altogether

 
Mehak Darti
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Amit Delve
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic