RE: How to auto submit a jsp page after loading

2019-10-06 Thread Rouse, Ed


From: Lukasz Lenart 
Sent: Thursday, October 3, 2019 8:27 AM
To: Struts Users Mailing List 
Subject: Re: How to auto submit a jsp page after loading

[External email: Use caution! Do not open attachments or click on links from 
unknown senders or unexpected emails.]
czw., 3 paź 2019 o 13:57 albert kao 
mailto:albertk...@gmail.com>> napisał(a):
>
> How to auto submit a jsp page after loading is done?
> i.e. after a jsp page is completely loading, it will auto submit - advance
> to the next page without one of the Submit buttons is pressed or a link is
> clicked.
> This is desired for saving time when testing a web application.

The only option is to use JavaScript IMO


Regards
--
Łukasz
+ 48 606 323 122 
http://www.lenart.org.pl/

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




Call the submit script from the page onload event.


RE: How to pass parameters to s:component inside s:iterator?

2019-10-06 Thread Yasser Zamani
Hi Albert,

Could you try without the inner s:if tag? I remember that some tags don't work 
inside each other :(

Despite if it was the problem or not, I think it's more readable design to move 
iterator and if tags inside the component (items.jsp) itself, have you ever 
considered it?

Regards.

>-Original Message-
>From: albert kao 
>Sent: Saturday, October 5, 2019 7:26 PM
>To: Struts Users Mailing List 
>Subject: How to pass parameters to s:component inside s:iterator?
>
>How to pass parameters to s:component inside s:iterator?
>e.g. These simpilied codes pass the parameter "John" to items.jsp.
>However, the browser displays an empty string.
>
>status="status">
>  name="%{'client['+#status.index+'].firstName'}" label="firstName.label">
>
>  
>
>  
>
>
>
>items.jsp:
>  name="%{#fieldname}"
>  value="%{parameters.inputValue}"/>
>/>