473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

how to invoke perl URL which is running in netscape server

Hi,

I am Naresh. I am new to jsp technology.

In my application I need to transfer controle and perameters from JSP to perl program which is running in other port. I dont know how to implement this.

Could you please help me on this.
Jul 29 '08 #1
8 1452
Dököll
2,364 Expert 2GB
Hello Naresh!

Can you submit to a database using jsp?

I am not sure how Perl handles stuff, but if Perl can make available data to be used by other systems, a jsp can get to it.

Please write if I've missed your point.

In a bit!

Dököll
Aug 10 '08 #2
Hi Dököll,

Thanks for the response.

Actually, My question is which command that I have to use to transfer controle from jsp(which is in server A) to Perl part(which is server B). Here Forward command is not working. Is there any special procedure to do this?


Hello Naresh!

Can you submit to a database using jsp?

I am not sure how Perl handles stuff, but if Perl can make available data to be used by other systems, a jsp can get to it.

Please write if I've missed your point.

In a bit!

Dököll
Aug 11 '08 #3
JosAH
11,448 Expert 8TB
If you have the URL of that other page have a look at the URL class; you can
construct such a URL and ask it for its Stream (which is an input stream to
your JSP page). Simply read its content and pass it on in your JSP page to
its own output stream. You need to program a bit of Java for that.

kind regards,

Jos
Aug 11 '08 #4
But here I dont want controle back. I am using request.sendRedirect command. using this I am able to transfer controle to destination page(which is in another port).
<%response.sendRedirect("http://localhost:8080/check1/Success.jsp?xtn2=9790");%>

but can i pass dynamic content(here xtn2 variable) to destination page?
<%response.sendRedirect("http://localhost:8080/check1/Success.jsp?xtn2=<%=xtn2%>");%> it is showing syntax error.

or is there any other way that i should fallow?

Could you please help me on this?

If you have the URL of that other page have a look at the URL class; you can
construct such a URL and ask it for its Stream (which is an input stream to
your JSP page). Simply read its content and pass it on in your JSP page to
its own output stream. You need to program a bit of Java for that.

kind regards,

Jos
Aug 12 '08 #5
JosAH
11,448 Expert 8TB
I don't think putting <%=xtn2%> in a String literal makes it translate to the value
of xtn.

kind regards,

Jos
Aug 12 '08 #6
Hi JosAH,

Thanks a lot for suggestions.

Then can you guide me how to transfer controle from jsp to other other page(url which is in other port.).In this case I need to transfer variable, also it will be fine if the value of the variable is not displayed in browser and accessing session variable in destination url.
I don't think putting <%=xtn2%> in a String literal makes it translate to the value
of xtn.

kind regards,

Jos
Aug 13 '08 #7
r035198x
13,262 8TB
Hi JosAH,

Thanks a lot for suggestions.

Then can you guide me how to transfer controle from jsp to other other page(url which is in other port.).In this case I need to transfer variable, also it will be fine if the value of the variable is not displayed in browser and accessing session variable in destination url.
Why not use a routing servlet. Submit that JSP to the servlet and then forward to whatever path you want from that servlet.
Aug 13 '08 #8
But in this situation there is no manual trigering like submit button. Then how can I implement routing servlet? If possible Could you please guide me on this?

Why not use a routing servlet. Submit that JSP to the servlet and then forward to whatever path you want from that servlet.
Aug 19 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Christoph | last post by:
The following script works fine on two Webservers in the internet, but it doesn't work on my local Webserver (Xitami). I also tried the IIS, with the same result - the script isn't forwarding me ...
7
by: AznCollegeGuy | last post by:
Hello, Im trying to invoke a simple perl script with in my visual c++ gui program to with c++'s system call feature: when i call: system("dir"); it works
3
by: sir.linying | last post by:
My php script is to call perl scipt which makes use of Spreadsheet::ParseExcel module to parse Excel file. I am able to launch php script from command line so that perl script can run and properly...
3
by: Ricardo Vazquez | last post by:
Hi! I have a new problem with this SCENARIO I already described in a previous post: - PBX (a private telephone exchange or switch) - A Telephony Server Application running on computer "A" (it...
6
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
2
by: prakashpb | last post by:
Hello All, I am new to perl. I have to write some code in perl on windows. I have to invoke/run a shell file sample.sh from within perl file. When the perl while is executing, it should run to...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
2
by: sbettadpur | last post by:
hello, I am trying to install the Text::NLP::Stanford::EntityExtract perl module on windows xp. But its not installing properly... can anybody tell solution for the above problem. But its...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.