aspose file tools*
The moose likes Struts and the fly likes call remote url in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "call remote url in struts" Watch "call remote url in struts" New topic
Author

call remote url in struts

Mike Sever
Ranch Hand

Joined: Jul 24, 2006
Posts: 56
Previously, one action(process logic)->jsp file, its configuration in struts-config.xml is similar to :
<action path="path1" type="class name" name="form bean" scope="session">
<forward name="next" path="jsp file">
</action>

Currently, there is one change, that business logic can not be allowed in that action(of front end), can only be allowed in somewhere else, which provides its url. Thus, (1)action to call "the remote url" with input parameters; (2) remote side will reply to "our specific url"(maybe servlet,action name, etc.) with response parameters; (3) display jsp file.
It seems only one binding between request to/response from remote is the one of parameters "user id", which can indicate which reply belongs to which user.

How to implement the change with the same performance(click button, then see the next result page) as before in front end? Is it possible?
Thanks in advance!


<i>Mike</i>
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Moving to our Struts forum...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: call remote url in struts
 
Similar Threads
call remote url in struts
about struts
Display Check Boxes & Dropdowns in Struts with search results
ActionForm returning null in ActionClass
Struts 2 + Dynamic Struts.xml ??