• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to see posted parameters in eclipse debugger variable view

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks very much Jeanne.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic