This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am a newbie to struts. I am trying to call a servlet in some remote application from my java application. I do not want to redirect from the jsp. Is there any other approach I can take.
If you want to request data (from a remote URL) within your Java code for use in some other way (like scrape it then massage it into whatever you need) you'd need to use any of several HTTP client libraries.
I'm not a JavaRanch person but I suspect someone will tell you that you'll need to change your username as per the JavaRanch username policy. [ December 06, 2008: Message edited by: David Newton ]
Richa Sharma
Ranch Hand
Joined: Dec 06, 2008
Posts: 47
posted
0
Thanks David.
Actually we are trying to redirect the user to a Payment Gateway to take online payment.
Redirect from the action? Searching the web will turn up many hits on how to do that. But if you need to display the link to the payment processing site on the JSP then I'm not sure what the issue is.