Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to see posted parameters in eclipse debugger variable view  RSS feed

 
Jay Nash
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to java web application development. I would like to know if there is a way to see the posted parameters to the servlet when running in debug mode on eclipse using variable view. When I expanded the request object in variable view I was seeing many sub values. I don't know where to look exactly.

Thanks in advance.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony,
Welcome to CodeRanch!

It depends on what server you are using, but it is usually called "parameters" or "parameterMap". However, the "request" object you see is usually a wrapper or facade so you first have to drill down to the real request.

There is an easier and more general way though:
1) Right click the request variable in the debug view and choose "inspect"
2) It opens a new view called expressions. Click "add new expression"
3) Type request.getParameter("nameYouCareAbout")
4) Tab

Now you see the value of that parameter.
 
Jay Nash
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much Jeanne.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!