• Post Reply Bookmark Topic Watch Topic
  • New Topic

Post data.  RSS feed

 
Viet Jav
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
In my jsp(source.jsp) using IFRAME tag to go to other jsp and enclose parameters as following
...
<iframe src="target.jsp?param1=XXX¶m2=YYY&..." .../>
If i do as above, anyone can see my data(param) by view source on browser.
I am thinking is using "post" data solution. However, i dont know to solve.
Anyone has a hints
Thanks in advance.
Vietjav.
 
damien malone
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try using the jsp:include tag instead of iframes. Iframes will give issues for some non ie browsers, and because the include is done server side, noone will see the parameters
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An include and an iframe are hardly equivalent.
My tactic would be to use a hidden form, with a method of post and a target of the iframe, to post the request into the iframe from the onload handler of the parent body.
hth,
bear
[ July 11, 2003: Message edited by: Bear Bibeault ]
 
Philip Shanks
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Viet Jav:

If i do as above, anyone can see my data(param) by view source on browser.
I am thinking is using "post" data solution. However, i dont know to solve.

POST or GET will not matter... the only difference in visibility there is whether your paramaters show up in the URL. If you are using an HTML form, then the parameters will be visible in the code regardless.
I'm afraid you have to choose between client requests (with visible parameters) or building the page on the server side.
 
Viet Jav
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your message
Bear Bibeault, do you know how to submit form automatically without using body tag.
Because my app run in framework, my app must be not used some tags as <html/>,<body/>,<head/>,<title/>
can anyone has a hints.
Vietjav.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ecause my app run in framework, my app must be not used some tags as <html/>,<body/>,<head/>,<title/>

I'm not sure what you mean by this. Could you explain? If you are emitting an HTML page to the browser, why would you not emit such markup?
bear
 
Viet Jav
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My framework is the same portal framework, it is actual website, Now I just program my apps(the same channel or portlet) and publish them into my framework. Because framework already contains tags <html/>,<head/>,<title/><body/>. So in my apps can not have those tags.
<html>
<head></head><title></title>
<body>
MY APPS START HERE...
</body>
</html>
So i can not put submit on onload in body tag to automatically submit.
Vietjav.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, understood!
Well, in all modern browsers, placing <script> tags in-line so that they execute when the page loads works just fine. How standards-compliant this is is open to interpretation.
hth,
bear
 
Viet Jav
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I'll try.
Vietjav.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!