Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Newbie

 
Richa Sharma
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pl elaborate your problem little more. I'm not able to understand .
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic