This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts Newbie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Newbie" Watch "Struts Newbie" New topic
Author

Struts Newbie

Richa Sharma
Ranch Hand

Joined: Dec 06, 2008
Posts: 47
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.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Pl elaborate your problem little more. I'm not able to understand .


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not sure this is a Struts question.

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
Thanks David.

Actually we are trying to redirect the user to a Payment Gateway to take online payment.

We have to interact with the Payment Gateway.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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.
Richa Sharma
Ranch Hand

Joined: Dec 06, 2008
Posts: 47
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Newbie
 
Similar Threads
How to call struts application through JSON
I am newbie to Struts...should i start with struts1 or struts2?
struts tiles can't work with filter?
Best Struts Book
Struts - Sample CRUD application ?