954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

jsp command for open a page

hello
I want to open a html or jsp page with a jsp command
please help me
thank you
:?:

mojtabamaster
Newbie Poster
3 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

??????

You can't open something on the client from the server. You can send a piece of html (when asked of course) that contains a piece of javascript that in turn requests another piece of html.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

true.
of course.
I don't want to open a html or jsp page in client.
I want to open a html or jsp page in server with a jsp command.
thank you.
please help me immediately. :sad:

mojtabamaster
Newbie Poster
3 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

you mean make an HTTP call to an HTML page or some other URL and capture the output?

HttpURLConnection is your friend. From it you can get an InputStream from which you can read the data returned by the request.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

do you want all html pages to be treated as jsp? modify your .htaccess file and AddType so that your html will be handled as jsp files, this is generally a bad idea, but you can do it if you want too

paradox814
Posting Whiz
351 posts since Oct 2004
Reputation Points: 13
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You