looking at roller upgrade again

Greg Huber <[email protected]>
Newsgroups gmane.comp.jakarta.struts.devel
Message-ID <[email protected]>
Maybe a user question (sorry)

Using action like this : action="%{#mainAction}!saveDraft"/> struts 
seems to get the "id" wrong?  ...but the "name" correct.

eg:

<s:set var="mainAction">entryEdit</s:set>

<s:submit cssClass="btn btn-warning"
               value="%{getText('weblogEdit.save')}"
               action="%{#mainAction}!saveDraft"/>

renders:

<input type="submit" value="Save as Draft" 
id="entry____mainAction__saveDraft" name="action:entryAdd!saveDraft" 
class="btn btn-warning">


Should be

<input type="submit" value="Save as Draft" id="entry_entryAdd_saveDraft" 
name="action:entryAdd!saveDraft" class="btn btn-warning">


#####

If I try it on my app it does the same thing

<form name="myConfig" id="myConfig" action="/app/myConfig.action" 
method="post">

<s:set var="myConfigzzzzz" value="'myConfig'" />
<s:submit value="%{getText('button.save')}" action="%{myConfigz}!save"  
accesskey="s" />

</form>

renders:

<input name="action:myConfig!save" type="submit" value="Save" 
id="myConfig___myConfigzzzzz__save" accesskey="s">


should be

<input name="action:myConfig!save" type="submit" value="Save" 
id="myConfig_myConfig_save" accesskey="s">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.