Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

struts buttons to invoke actions

Session Mwamufiya

2007-07-28

Replies:

Hi,

I use the following code to display a list of buttons that are supposed to call their associated actions when pressed:

<s:form target="SMIG_Editor">
<s:submit value="Add Category" action="CategoryEditor" cssClass="actionButton"/>
<s:submit value="Add Question" action="QuestionEditor" cssClass="actionButton"/>
<s:submit value="Add Answer" action="AnswerEditor" cssClass="actionButton"/>
<s:submit value="Add Risk" action="RiskEditor" cssClass="actionButton"/>
<s:submit value="Add Mitigation" action="MitigationEditor" cssClass="actionButton"/>
</s:form>

None of the actions seem to be called (I use log4j logging to determine whether the execute() method in each of them is ever called; but it never is). I am trying to understand what could be wrong in the way I wrote this.

I read online that there is a s:button tag, but when I tried using it, I get a warning that the tag doesn't exist.

Any ideas?

Thanks,
Session


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.