I have attached a file containing the generated HTML.
________________________________
De : Łukasz Lenart <[email protected]>
Envoyé : lundi 29 janvier 2024 16:43
À : Struts Users Mailing List <[email protected]>
Objet : Re: Velocity tags Issue after Struts upgrade to 2.5.33
Could you post the generated HTML?
The only change between 2.5.32 and .2.5.33 is this [1] which shouldn't
impact Velocity
[1]
https://github.com/apache/struts/commit/162e29fee9136f4bfd9b2376da2cbf590f9ea163
Regards
Lukasz
pon., 29 sty 2024 o 14:05 Lamia Wertani <[email protected]> napisał(a):
> Hello,
>
>
> I recently upgraded my Struts version from 2.5.22 to 2.5.33, and I'm
> encountering an issue with redirection in popups.
>
> For example, when I try to save a domain and click on the save button, the
> save operation works correctly.
>
> However, instead of redirecting me to the domains list, it leads to a
> blank page displaying the result.
>
> it seems that the Velocity tags are not functioning correctly. I tried
> changing them to HTML tags, and everything worked fine. I am using the
> #sform tag for my form, as shown below:
>
> *#*sform({"action":"save-domain", "method":"post", "validate":"true"})
>
> I'm using Velocity 1.7 and Velocity-tools version 2.0.
>
> I have attached a screenshot of the blank page showing the save operation
> result.
>
> Thanks in advance.
>
>
<form id="save_group" name="save_group" onsubmit="return
validateForm_save_group();" action="/iobeya/admin/group/save-group.action"
method="post" onreset="clearErrorMessages(this);clearErrorLabels(this);">
<table class="wwFormTable">
<tbody>
<tr style="display:none;">
<td colspan="2">
<input type="hidden" name="groupId" value="" id="id_group">
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="2">
<label for="groupName_group" class="label">Group name<span
class="required">*</span>
</label>
</td>
</tr>
<tr>
<td class="tdInput">
<input type="text" name="groupName" value="" id="groupName_group"
required="true">
</td>
</tr>
</tbody>
</table>
<div class="form-footer">
<a class="required">*</a><a class="required-field">Required field</a>
<a class="btn cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
<input id="save-group" type="submit" value="Save group" class="btn
btn-primary save">
</div>
<table>
</table>
</form>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]