struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanlick <stanl...@gmail.com>
Subject Re: Strange namespace/action scenario
Date Sun, 02 Mar 2008 16:03:10 GMT

Alright!  In my pursuit of a solution, I blew past the fact that the method
attribute of the <s:form../> tag is the HTTP method!  Struts 2 does such a
nice job of lifting you out of the HTTP API's that I actually considered
method to be uhhhhhhhhh...... the method!

Anyways, I am still a bit confused as to why the attributes need to be
distributed across the two tags to get this to work correctly.  It seems
like maybe the namespace should be an attribute of the submit tag or else
the action-method an attribute of the form!  The only error I was seeing had
to do with the goofy ParametersInterceptor<sp?> and it had me chasing my
tail far too long!  Far too long!!!


Here is the current solution:
<s:form  action="gradeQuiz" namespace="quiz">
<s:submit key="gradeMe" method="score"/>
	













stanlick wrote:
> 
> Is there a limitation on when/where you can use the <s:submit..> tag to
> invoke action/methods in a namespace?   
> 
> 
> This works:
> <s:form action="gradeQuiz" namespace="quiz" method="score">
> <s:submit key="gradeMe"/>
> 
> 
> This does not:
> <s:form>
> <s:submit key="gradeMe" action="gradeQuiz" method="score"/>
> 

-- 
View this message in context: http://www.nabble.com/Strange-namespace-action-scenario-tp15780694p15789584.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message