Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parameters lost when posting

 
Dorte Skriver
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic