• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Debugging servlets in Eclipse - Cannot see RequestParameters in debug perspective

 
ravi vinnamuri
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic