• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

retreiving parameter from another web page made in different language altogether

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic