Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

HTML form's POST method behaving like GET method

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am using Jboss Portal 2.6.6-GA. I have a form in a portlet that
collects username and password from the user and sends it to the
portlet logic to process it.

<form name="mainForm" action="<portlet:actionURL/>" method="POST">
<INPUT TYPE=TEXT NAME=username SIZE=20>
<INPUT TYPE=PASSWORD NAME=password SIZE=20>
</form>

Even though the form is sent using POST method, the form data is seen in
the address bar of the browser like including the password that the user
typed.

Here is what I am seeing in the address bar:

https://myserver.com:443/portal/sec/portal/default/default/MyPortletWindow?password=somepassword&action=e&windowstate=normal&mode=view&username=myself

What am I missing? Any clues?

Thanks.
.Bala.
 
Bala Ananthan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried the HelloWorld JSP Portlet - one of the simplest portlets from the portlet swap page at: http://www.jboss.org/portletswap/portlets_tutorial.html

There too when the form is submitted, the form data is appended in the URL and is visible in the address bar, even though the method of submission is POST.

Is this expected? What do I do to prevent this? Any help is much appreciated.

Thanks.
.Bala.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic