Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request.getParameter() returns null

 
salvin francis
Bartender
Posts: 1263
10
Eclipse IDE Google Web Toolkit 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: 1263
10
Eclipse IDE Google Web Toolkit 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: 1263
10
Eclipse IDE Google Web Toolkit 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

 
priyanka kulathilaka
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic