Win a copy of Emmy in the Key of Code this week in the General Computing 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

request.getParameter() returns null

 
Bartender
Posts: 2402
106
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
Bartender
Posts: 2402
106
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
Bartender
Posts: 2402
106
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
 
That feels good. Thanks. Here's a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!