aspose file tools*
The moose likes Portals and Portlets and the fly likes Parameters lost when posting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Parameters lost when posting" Watch "Parameters lost when posting" New topic
Author

Parameters lost when posting

Dorte Skriver
Greenhorn

Joined: May 27, 2008
Posts: 7
I am not really sure, if this is a portal problem, since I have no clue, as to what is happening.

From a simple jsp, in my BEA-portal application, i post a parameter to /myportal.portal, but parameters are lost.
If I change the form method to "get", things work fine (except actual param-length is 4096, so it gets cut. No easy work-around here!).

This is the content of index.jsp:



ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Dorte Skriver wrote:I am not really sure, if this is a portal problem, since I have no clue, as to what is happening.

From a simple jsp, in my BEA-portal application, i post a parameter to /myportal.portal, but parameters are lost.
If I change the form method to "get", things work fine (except actual param-length is 4096, so it gets cut. No easy work-around here!).

This is the content of index.jsp:





Can a .portal file handle requests?

Usually I provide "action" name (a method name in page flow controller) in action tag of form.
Dorte Skriver
Greenhorn

Joined: May 27, 2008
Posts: 7
No, it probably can't - and that's my problem.

I need another app (different server), to post credentials.

My plan was to let the backingFile "intercept" the request, and authenticate the posted credentials, but I have a growing suspicion, that this is not feasible.

So right now I'm really stuck, and any ideas will be greatly appreciated.




ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Dorte Skriver wrote:No, it probably can't - and that's my problem.

I need another app (different server), to post credentials.

My plan was to let the backingFile "intercept" the request, and authenticate the posted credentials, but I have a growing suspicion, that this is not feasible.

So right now I'm really stuck, and any ideas will be greatly appreciated.






What usually happens in enterprise application is, you use some IDM (identity management) tool such as SiteMinder or Oracle SSO etc which “does” SSO (single sign on) between different applications.

I understand that you want to pass credential between applications without using any tool. How about building something custom? One application writes credential somewhere and other application reads from there... I am not sure how good it would be. Other ranchers are welcome to comments...
Dorte Skriver
Greenhorn

Joined: May 27, 2008
Posts: 7
thanks for the comment and suggestion :-)

Right now i'm implementing something along the line with, saving the credentials in a temp file on the server, and passing the filename as a parameter (using "get"!) to the portlet.

Pretty much along the line you suggested, I think.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parameters lost when posting