DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   jsp command for open a page (http://www.daniweb.com/forums/thread22077.html)

mojtabamaster Apr 18th, 2005 1:50 am
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
:?:

jwenting Apr 19th, 2005 8:02 am
Re: jsp command for open a page
 
??????

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.

mojtabamaster Apr 20th, 2005 2:09 am
Re: jsp command for open a page
 
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:

jwenting Apr 20th, 2005 6:23 am
Re: jsp command for open a page
 
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.

paradox814 Apr 26th, 2005 4:19 am
Re: jsp command for open a page
 
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


All times are GMT -4. The time now is 2:26 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC