I really don't like using the property on the button for the dispatch parameter. I've run into problems with this before. For example are you use the page always looks the same each time you are doing the post? The reason I ask is I found really weird behavior when you end up with more than one submit button the page with the same property name. I've had behavior similar to yours. I'd view the source before each submit to make sure the page is looking exactly the same. I know it's a big uglier but I prefer to simply have hidden parameter and I set that manually with javascript if I need to have different buttons do different things...

<input type="hidden" name="method" value="theDefaultMethod"/>

<html:submit onclick="document.myformname.method.value='addComponent'">
<bean:message key="function.addcomponent"/>
<html:submit>

Eoin Dunne wrote the following on 4/29/2005 1:01 PM:

Nial I used a packet sniffer to see what was actually being posted from the browser to the server.


for some reason the &method=addcomponent gets dropped off the post. There doesn't seem to be any logic to it either. I tried spaces in the text field and that works fine most of the time. But it also drops the &method=addcomponent even when there is no white space in the text field.

So sometimes the post looks like :

componentName=some+Component+Name&method=AddComponent

and sometimes it will look like :

componentName=some+Component+Name

and that's it.

ideas? Is it strictly the browser that is screwing up the post or is struts not creating the html properly.

I'm running internet explorer 6.9.xxxx with the latest service packs.



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



--
Rick

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



Reply via email to