Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

How to use wget to get information of a jsp page

Thread view: 
Yang - 17 Apr 2007 22:40 GMT
I have a jsp page that takes one parameter say: http://www.a.com/a.jsp?id=1

and use different id to generate different pages,
now I want to get the results from that and I use
>> wget "http://www.a.com/a.jsp?id=1"

unfortunately, I can only get the source code of a.jsp, which is
useless to me.
Is there any other methods for doing this?
Arne Vajhøj - 18 Apr 2007 00:19 GMT
> I have a jsp page that takes one parameter say: http://www.a.com/a.jsp?id=1
>
[quoted text clipped - 5 lines]
> useless to me.
> Is there any other methods for doing this?

wget just gets what the server sends.

If you get the JSP source, then the server is misconfigured.

Arne
Yang - 18 Apr 2007 03:18 GMT
> > I have a jsp page that takes one parameter say:http://www.a.com/a.jsp?id=1
>
[quoted text clipped - 11 lines]
>
> Arne

But that's exactly what I've got! How should I set up a server?
Can you give an example of jsp sites with parameters that will
return not the source? Thanks.
Lew - 18 Apr 2007 04:16 GMT
> Can you give an example of jsp sites with parameters that will
> return not the source? Thanks.

<http://onesearch.sun.com/search/onesearch/index.jsp?qt=jsp+with+parameters>

Signature

Lew

Yang - 18 Apr 2007 14:44 GMT
> > Can you give an example of jsp sites with parameters that will
> > return not the source? Thanks.
[quoted text clipped - 3 lines]
> --
> Lew

Thanks Lew, then how should I set up the server that it won't return
the source code but the result page?
Lew - 19 Apr 2007 00:29 GMT
> Thanks Lew, then how should I set up the server that it won't return
> the source code but the result page?

That all depends on what server you're using.

The JEE standard is to put a WAR file or its equivalent directory structure in
the server's web-app directory ("webapps/" for Tomcat).  Most application
servers have an administrator utility to help with the deployment process.
Some, like Tomcat, can deploy a web app as easily as dropping the WAR file in
its webapps/ directory.

What servlet container are you using, and what do its instructions indicate
for web-app deployment?

Signature

Lew

Yang - 20 Apr 2007 15:39 GMT
> Yangwrote:
> > Thanks Lew, then how should I set up the server that it won't return
[quoted text clipped - 13 lines]
> --
> Lew

I'm using tomcat, but since it's only a simple JSP page, I put it
directly under
webapps/ROOT/ directory, should I pack it up in a war file and put it
somewhere?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.