Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot get a value from jsf back to the html

 
ahmet temiz
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

I can send data to jsf app from an non-jsf ( a html page). But I cannot
get a value from jsf back to the html page from which I had sent the parameter.



how can I do that ?

regards

Ahmet Temiz
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as both pages are in the same WAR, this is easy. JSF session-scope managed beans are nothing but ordinary J2EE session objects which were constructed and initialized based on faces-config data instead of manual Java code. So just put the data into a session object.
 
ahmet temiz
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:As long as both pages are in the same WAR, this is easy. JSF session-scope managed beans are nothing but ordinary J2EE session objects which were constructed and initialized based on faces-config data instead of manual Java code. So just put the data into a session object.


thank you Tim

You mean I have to follow this procedure:

HTTPConnection con = new HTTPConnection("www.****");
HTTPResponse rsp = con.Get("/my/fie***");


regards


 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ahmet temiz wrote:
You mean I have to follow this procedure:

HTTPConnection con = new HTTPConnection("www.****");
HTTPResponse rsp = con.Get("/my/fie***");


No. In your servlet, just do this:


You would only create an HTTPUrlRequest if the object was in some other webapp where a different session environment existed. And in that case, you would have to set up an encoding scheme to serialize the data in an HTTP-friendly form (text) on the external webapp and a corresponding decoding scheme on the client side. XML is popular for that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic