File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes string object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "string object" Watch "string object" New topic
Author

string object

puja shaw
Ranch Hand

Joined: Nov 06, 2012
Posts: 32
is it possible to send a string object to another page from javasript.?

if so how and how can i retrieve the same string object in the other page.?

please help



Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1


What are you trying to achieve here?
Do you want to pass the object to another page after a FORM submit (request-response cycle)?
Or is the new page a popup from the original page?

Cheers,
Raj.
puja shaw
Ranch Hand

Joined: Nov 06, 2012
Posts: 32
Raj Kamal wrote:
What are you trying to achieve here?
Do you want to pass the object to another page after a FORM submit (request-response cycle)?
Or is the new page a popup from the original page?

Cheers,
Raj.


form submit
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1


So this involves a server side Action/Servlet (for Request processing). You can fetch the String Object from the request and populate it in the next Response.

You would not be able to access Objects in different Request-Response cycles using JavaScript alone.

I know I am being rather generic but without more information its rather difficult to suggest an exact solution.

Cheers,
Raj.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Make it a get request and it will be on the querystring. If it is a post, you need to use the server to handle that.
 
 
subject: string object
 
Similar Threads
PageContext - Does it "actually" exists?
Pass objects through form submit
convert String into Object
character translation
char to string conversion