File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Passing url parameters to ASP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Passing url parameters to ASP page" Watch "Passing url parameters to ASP page" New topic
Author

Passing url parameters to ASP page

Martin Lira
Ranch Hand

Joined: May 26, 2004
Posts: 97
Hi,
I have a jsp page that has an <iframe> in the <body>. Basically this is what I have:


It works fine. But when I do a view source you can see the user and password. I dont want that to happen. Is there any way you can send the request parameters to an external url and still hide it from being seen.
I dont have to be using an <iframe> but any thing similar will work.

Thanks,
Martin
[ October 28, 2004: Message edited by: Martin Lira ]
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
I suppose you could fetch the page yourself and include the contents from within you JSP file. Then you wouldn't have to do any username/password/iframe things on the client side.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Martin Lira
Ranch Hand

Joined: May 26, 2004
Posts: 97
Can you please elaborate on what you suggested.

Thanks,
ML
rahul V kumar
Ranch Hand

Joined: May 20, 2003
Posts: 82
Are you doing some validations in your iframe ?

If not why dont you just send the userid and query the database in the iframe and fetch whatever you want.
Martin Lira
Ranch Hand

Joined: May 26, 2004
Posts: 97
The asp page i am calling is not on my server and I cannot access the database.

ML
nilesh Katakkar
Ranch Hand

Joined: Oct 27, 2004
Posts: 35
I think what Nathaniel mean is, in your serverside servlet/JSP code, you can actually call this external url and embed the response of that in the output HTML.

Please check out HttpURLConnection class. It will allow you to call this external URL , get the response and embed it in your output.


nilesh<br />neilindallas@hotmail.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing url parameters to ASP page