Hi All,
I'm facing a similar problem with the servlet-servlet call.
In the first servlet, I have the foll code,
// Open a URL connection to the destination object.
URLConnection connector = porterURL.openConnection();
connector.setUseCaches(false);
connector.setDoOutput(true);
// Set the following attributes in the request object.
request.setAttribute("sessionid", ""); // login session
ID
// Connect to the destination url
connector.connect();
In the second servlet, I have the foll code.
Enumeration requestAttributes = request.getAttributeNames();
System.out.println("Request attr :<" +
requestAttributes.hasMoreElements() + ">");
while(requestAttributes.hasMoreElements()) {
String attributeKey =
requestAttributes.nextElement().toString();
String attributeValue =
request.getAttribute(attributeKey).toString();
}
I get an exception when I use getAttributeNames() (NoSuchMethodError). When
I use getParameterNames(), the enumeration does not contain any elements.
Can anyone tell what I'm doing wrong ? Please suggest!!
Regards,
Girish
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html