aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Debugging servlets in Eclipse - Cannot see RequestParameters in debug perspective Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Debugging servlets in Eclipse - Cannot see RequestParameters in debug perspective" Watch "Debugging servlets in Eclipse - Cannot see RequestParameters in debug perspective" New topic
Author

Debugging servlets in Eclipse - Cannot see RequestParameters in debug perspective

ravi vinnamuri
Greenhorn

Joined: Jun 17, 2003
Posts: 6
I'm new to eclipse. I am debugging a servlet and wanted to look at the various request parameters in the variables list in the debug perspective. I checked "ParameterMap" varaibale but I dont find the parameters there. Any idea which variable should I look into?

I'm using eclipse 3.1 with Sysdeo plugin, thanks in advance for the help.
jiju ka
Ranch Hand

Joined: Oct 12, 2004
Posts: 306

I checked "ParameterMap" varaibale but I dont find the parameters there. Any idea which variable should I look into?

Assumes you are in the debug perspective and the program is paused on a breakpoint(or statement) where variable req:HttpServletRequest have scope.

In the variables tab look for req. It contains key value pairs.
ravi vinnamuri
Greenhorn

Joined: Jun 17, 2003
Posts: 6
Thanks for the response.
I took a copy of all the variables under request, this is what it looks like.

request= Request (id=2247)
attributes= HashMap<K,V> (id=2252)
authType= null
connector= Connector (id=2253)
context= StandardContext (id=2254)
cookies= null
cookiesParsed= false
coyoteRequest= Request (id=2255)
dispatcherType= Integer (id=2256)
facade= RequestFacade (id=2128)
filterChain= ApplicationFilterChain (id=2124)
formats= SimpleDateFormat[3] (id=2257)
inputBuffer= InputBuffer (id=2258)
inputStream= CoyoteInputStream (id=2259)
localAddr= null
locales= ArrayList<E> (id=2260)
localesParsed= false
localName= null
localPort= -1
log= null
mappingData= MappingData (id=2261)
notes= HashMap<K,V> (id=2262)
parameterMap= ParameterMap (id=2263)
parametersParsed= true
parser= StringParser (id=2264)
postData= null
reader= CoyoteReader (id=2265)
readOnlyAttributes= HashMap<K,V> (id=2266)
remoteAddr= null
remoteHost= null
remotePort= -1
requestDispatcherPath= MessageBytes (id=2267)
requestedSessionCookie= true
requestedSessionId= "27627666C1742BAE2EE8FDC81800799E"
requestedSessionURL= false
response= Response (id=2269)
secure= false
session= StandardSession (id=2270)
sessionParsed= false
subject= null
URIConverter= null
userPrincipal= null
usingInputStream= false
usingReader= false
wrapper= StandardWrapper (id=2271)

And I looked at each of these items, none of them have the Request Parameter name,value list.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Debugging servlets in Eclipse - Cannot see RequestParameters in debug perspective