RE: calling method of a bean from JSP

2006-09-16 Thread Strachan, Paul
you could move the logic into the view/jsp layer...something like:
 
c:forEach items=${item.values} var=value
  c:if test=${value.attribute.id == 'id'}
c:out value=${value.value} /
  /c:if
/c:forEach
 
or maybe a custom tag library...
 
 
 



From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Sat 16/09/2006 1:25 PM
To: Struts Users Mailing List
Subject: Re: calling method of a bean from JSP



i do not think it works.


**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: set value to an html:hidden in jsp page

2006-09-16 Thread Strachan, Paul
  html-el:hidden property=command value=save /
 
the property is just a normal property defined in your form, and you can set a 
value...
or via javascript:
 
function submitForm(var) {
self.document.yourform.command.value=var;
self.document.yourform.submit();
}
 
html:button onclick=javascript:submitForm('save'); value=Save title=Click 
to Save... / 
html:button onclick=javascript:submitForm('add'); value=Add title=Click 
to Add... /



From: Heidy Gutiérrez Guzmán [mailto:[EMAIL PROTECTED]
Sent: Sat 16/09/2006 6:49 AM
To: Struts Users Mailing List
Subject: set value to an html:hidden in jsp page



Hi

I need to put value to an html:hidden / field in the own page jsp.

Thanks


**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Restrict referesh from resending the request

2006-09-16 Thread Puneet Lakhina

Hi,
I think i maybe have my basics skewed, but this is what my problem is.
I have a form that on submit submits to an action which forwards to a page
which shows the page displaying that the submit was successful. Now if the
user presses refresh at that page the form is resubmitted and it creates an
incorrect entry.

Is there sum way I can restrict this.
Should i forward to a different action(say Action2) from the action (say
Action1)which handles the submit, and then Action2 would then forward to the
successful submit page?

--
Puneet


Re: Restrict referesh from resending the request

2006-09-16 Thread Nuwan Chandrasoma

Hi,

I had the same problem. so what i did was.., i created an forward action 
mapping (no action code is required for this) and when the submit button is 
click it would call the action mapping which has the action class that that 
would do the real process and the success forward would call the forward 
action mapping that i have said above with the redirect tag set to true.., 
so that when the processing is finish the address bar URL would change to 
this forward action mapping(a dummy one which is not wired to a action 
class). so that even if the user click refresh button he would only see the 
page that was loaded.


eg in struts-config.xml

 action path=/dummyForward forward=/Results.jsp/


 action name=MyForm path=/realAction scope=request
 type=foo.boo.action.MyAction validate=false 
  forward name=success path=/dummyForward.do redirect=true/
 /action

hope this would help.

Thanks,

Nuwan


- Original Message - 
From: Puneet Lakhina [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Saturday, September 16, 2006 5:01 PM
Subject: Restrict referesh from resending the request



Hi,
I think i maybe have my basics skewed, but this is what my problem is.
I have a form that on submit submits to an action which forwards to a page
which shows the page displaying that the submit was successful. Now if the
user presses refresh at that page the form is resubmitted and it creates 
an

incorrect entry.

Is there sum way I can restrict this.
Should i forward to a different action(say Action2) from the action (say
Action1)which handles the submit, and then Action2 would then forward to 
the

successful submit page?

--
Puneet




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IRC #struts on freenode

2006-09-16 Thread Wendy Smoak

On 8/26/06, Wendy Smoak [EMAIL PROTECTED] wrote:


If anyone is on IRC, we have a channel:  #struts on chat.freenode.net .

It now (well, if I'm there,) has a strutsbot, though it doesn't know
much yet and isn't *nearly*  as talented as fajita on #apache.  Drop
by and teach it a few things. :)


Just a reminder to come join us on #struts on chat.freenode.net :)

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IRC #struts on freenode

2006-09-16 Thread Rick Reumann

Don't forget about us on #funkycodemonkey on irc.darkmyst.org either.

All are welcome - although weekends and evenings are often quiet. Of coruse,
during the day when we are supposed to be doing our real work, we spend the
most time chatting:)

On 9/16/06, Wendy Smoak [EMAIL PROTECTED] wrote:


On 8/26/06, Wendy Smoak [EMAIL PROTECTED] wrote:

 If anyone is on IRC, we have a channel:  #struts on chat.freenode.net .

 It now (well, if I'm there,) has a strutsbot, though it doesn't know
 much yet and isn't *nearly*  as talented as fajita on #apache.  Drop
 by and teach it a few things. :)

Just a reminder to come join us on #struts on chat.freenode.net :)

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Rick