Thanks a lot Ate especially for such a quick response on Sunday !!! I think I understand my problem now.

Thanks again,
Amit

----Original Message Follows----
From: Ate Douma <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" <jetspeed-user@jakarta.apache.org>
To: Jetspeed Users List <jetspeed-user@jakarta.apache.org>
Subject: Re: Struts Bridge - ActionRequest Related Question
Date: Sun, 10 Apr 2005 21:34:49 +0200


Shah Amit wrote:
...
  <init-param>
    <name>ViewPage</name>
    <value>/r5prAction.do?dispatch=loadDropDowns</name>
  </init-param>
...
This is ok.

<javascript>
location='<html:rewrite href="/r5prAction.do"/>';
location=location+"?dispatch=loadSecondDropdown"
</javascript>
This is not ok!

You *must* encode the dispatch=loadSecondDropdown parameter using
the html:rewrite tag itself, *not* append it yourself.

Remember, the Struts Bridge versions of the html tags are created to deliver
a PortletURL. A PortletURL cannot be treated like a normal url as it (can) encode
much more than parameters for just your request, it might also need to encode the state
of other portlets on the same page. Your postfixed parameter won't be
recognized and thus not remembered by the portal, hence the error message.
Check the Struts documentation for the html:rewrite tag:
http://struts.apache.org/userGuide/struts-html.html#rewrite
You'll find out its easy to embed your parameters using the paramId and paramName
(and possibly paramProperty) attributes.




Now all of this works fine for the first time. I am able to click on the link from the menu-navigation system and come to this page, and then the dropdowns behave properly. But the thing is, once I fire an OnChange on any of the dropdowns, if I try to click on the maximize, minize buttons of the portlet, or even try to re-enter the portlet with the link from the menu-navigation system, I get the following error --

Request[/r5prAction.do] does not contain handler parameter named 'dispatch'.

I guess something is happening and I am loosing the "dispatch" parameter. But the thing is, as long as I haven't fired the onChange of the dropdown, meaning - as long as the window.top.location has not been called, I can click on maximize, minimize buttons and everything else works great. Its only that once I fire the window.top.location, I start getting this error. And after that, I have to logout and log back in.

I tried everything I can, but I can't figure out why this is happening. The problem is I want to use DispatchAction so that I dont have to write lot of classes for the same jsp. Also very sorry for such a long email.

Please help !!!!

Thanks,
Amit



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to