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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

HTML form's POST method behaving like GET method

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

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">

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

Here is what I am seeing in the address bar:

What am I missing? Any clues?

Bala Ananthan
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:

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.

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