Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

request.getParameter() returns null

 
Saloon Keeper
Posts: 2671
130
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using GWT,
Usually we make async calls to the server.

But for one case, in our application, we are using a FormPanel with the action as a servlet at the server.

for those who do not know gwt,
the out HTML generated at the client is a Form Tag in HTML with the action specified as the servlet file at the server.

The form's Method is post.

Now, i recently introduced a Textbox at the client with some name specified and i am trying in vain to read its value at the server using the same name.

request.getParameter("name") gives null, AAMOF request.getParameterValues() too returns a null array.

I suspect this has something to do with spring...

Please Help

 
salvin francis
Saloon Keeper
Posts: 2671
130
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frankly i have no idea about spring,
The Html generated by GWT at the client is:




At the server:



output:
 
salvin francis
Saloon Keeper
Posts: 2671
130
Google Web Toolkit Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
problem resolved the problem was that
Spring does not allow a normal passing of the servlet request.

here is what i idd to get around this is issue

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

salvin francis wrote:problem resolved the problem was that
Spring does not allow a normal passing of the servlet request.

here is what i idd to get around this is issue



Can I use AJAX instead of that.?
if it feasible then please post a code
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic