Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a parameter

 
sabino bolino
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
This is my problem:
From my webApp A i've to call a resource ( a servlet )on another webApp B ( neither in the same ear file nor in the same Application server ) and I need to pass an .xml file as parameter ( not as attribute ).
How can I do ?

Thanks a lot
Sabino
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch sabino sabino.

We don't have too many rules around here but we do have a Naming Policy. Please adjust your display name accordingly. You can do so by clicking here.

Thanks a bunch.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either have the XML stored on a shared database or a shared file sever of some sort and when you call the other webapp have it go get the file.

Another options is to have a servlet on App B handle a file upload post from App A.
 
sabino bolino
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Gregg...
I don't have the .xml file stored anywhere but WebApp create it at runtime trasforming some JavaBeans into .xml file.
I've in mind something like this:

create the .xml file in a .jsp ( using the classes of the framework which makes the trasformation JavaBean==> .xml file ) and make a submit ( calling the method post ) at loading the page...
What's your point ?

thanks again.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what exactly do you intend to POST?
 
sabino bolino
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<form name'...' action='someAction' method='post'>
<%...
using the framework to transform Javabean into .xml file
...%>
</form>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic