User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 375,264 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,228 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 3823 | Replies: 4
Reply
Join Date: Apr 2005
Posts: 3
Reputation: mojtabamaster is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mojtabamaster mojtabamaster is offline Offline
Newbie Poster

Help jsp command for open a page

  #1  
Apr 18th, 2005
hello
I want to open a html or jsp page with a jsp command
please help me
thank you
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 187
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: jsp command for open a page

  #2  
Apr 19th, 2005
??????

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.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Apr 2005
Posts: 3
Reputation: mojtabamaster is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mojtabamaster mojtabamaster is offline Offline
Newbie Poster

Solution Re: jsp command for open a page

  #3  
Apr 20th, 2005
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.
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 187
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: jsp command for open a page

  #4  
Apr 20th, 2005
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.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Oct 2004
Location: San Francisco, CA
Posts: 337
Reputation: paradox814 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: jsp command for open a page

  #5  
Apr 26th, 2005
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 5:35 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC