calling JSP from java using URL class and pass object in query string

Hi all,

i have scenario,where i need to send a http request to web application from core java application and send a object with request.

URL url = new URL("http://localhost:6060/EVIPPOC1/first.jsp?invokehandler=this&ccxmlsessionid="+ccxmlid.toString());

URLConnection conn = url.openConnection();

Since we know that we can get only String from request.getParameter(""),i am able to get only the hashcode of object and i cant create object from it.

is there any way to get object from request and then use it in JSP.

also i want to clarify....whether we can send an object in httprequest or not?

[643 byte] By [rahul_yadava] at [2007-11-27 11:30:15]
# 1

hi,

simple solution for u is u can just override the toString() method . for example

if u have two members in that class just display the values of two members in toString() method by using one delimeter in between them

, so that u will get that by using getParameter() in string format. u can just re built the object by spliting that string.

get back to me if u have any queries!!

gopiponnegantia at 2007-7-29 16:32:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...