Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Laurie Harper
Frank W. Zammetti wrote: Laurie Harper wrote: Why do you say that's a bad practice? It's actually both supported and recommended; in fact, the 'name' attribute is deprecated in favour of the 'id' attribute so 'id' is the only way to target CSS to a particular page element rather than an

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Frank W. Zammetti
On Wed, September 14, 2005 6:35 am, Laurie Harper said: I never said you *shouldn't* use 'class' to style elements :-) True enough :) That's the right answer when you want to apply the same set of styles to multiple elements (although even without the 'class' attribute here, you'd still only

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Frank W. Zammetti
On Wed, September 14, 2005 6:35 am, Laurie Harper said: I never said you *shouldn't* use 'class' to style elements :-) True enough :) That's the right answer when you want to apply the same set of styles to multiple elements (although even without the 'class' attribute here, you'd still

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Tamas Szabo
I would say that the code that is yielded when you reference the form by name is clearer and thus better regardless and I would throw away the possibility of someone changing the name in the config file. It's more important that the code be as explicit IMO. I definitely like clean code

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Frank W. Zammetti
On Wed, September 14, 2005 10:15 am, Tamas Szabo said: I definitely like clean code and if I'm looking at the generated HTML I agree that it is cleaner if you reference the form by name. But in the JSP it's just doesn't seem right to reference a form name that will appear only in the generated

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Laurie Harper
Frank W. Zammetti wrote: If I don't want to use scripting I guess I could use something like ${requestScope['org.apache.struts.action.mapping.instance'].name} But what if the Globals.MAPPING_KEY will change ... :-) That's why you want to use the field in Globals... if the key under which the

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Laurie Harper
I think your 'semantics' arugment may be confusing two orthogonal sets of semantics, but I do see where you're coming from. We're well off-topic so I'm keeping this brief, but feel free to follow up off-list if you want to discuss further. L. Frank W. Zammetti wrote: On Wed, September 14,

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Frank W. Zammetti
On Wed, September 14, 2005 11:15 am, Laurie Harper said: I think your 'semantics' arugment may be confusing two orthogonal sets of semantics, but I do see where you're coming from. Could be. Wouldn't be the first time :) We're well off-topic so I'm keeping this brief, but feel free to follow

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Kishore Senji
A tag would be handy for this ... Indeed there is one, please take a look at bean:struts/

How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread gollinger
form name=next action=/jsp/awp/awpoutput.jsp target=display / script language=javascript document.next.submit(); /script The problem I have is that the form tag in Struts has no name! Why? So how can I execute the java-script? Which name should I use instead? Regards Antonio

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Jason King
gollinger wrote: form name=next action=/jsp/awp/awpoutput.jsp target=display / script language=javascript document.next.submit(); /script The problem I have is that the form tag in Struts has no name! Why? So how can I execute the java-script? Which name should I use instead? Regards

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Martin Gainty
Message - From: Jason King [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, September 13, 2005 11:05 AM Subject: Re: How to replace normal html-from through html:form in Struts? Example gollinger wrote: form name=next action=/jsp/awp/awpoutput.jsp

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Jason King
, September 13, 2005 11:05 AM Subject: Re: How to replace normal html-from through html:form in Struts? Example gollinger wrote: form name=next action=/jsp/awp/awpoutput.jsp target=display / script language=javascript document.next.submit(); /script The problem I have is that the form tag

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Gareth Evans
: Tuesday, September 13, 2005 11:05 AM Subject: Re: How to replace normal html-from through html:form in Struts? Example gollinger wrote: form name=next action=/jsp/awp/awpoutput.jsp target=display / script language=javascript document.next.submit(); /script The problem I have is that the form

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Tamas Szabo
Mailing List user@struts.apache.org Sent: Tuesday, September 13, 2005 11:05 AM Subject: Re: How to replace normal html-from through html:form in Struts? Example gollinger wrote: form name=next action=/jsp/awp/awpoutput.jsp target=display / script language=javascript

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Frank W. Zammetti
AM Subject: Re: How to replace normal html-from through html:form in Struts? Example gollinger wrote: form name=next action=/jsp/awp/awpoutput.jsp target=display / script language=javascript document.next.submit(); /script The problem I have is that the form tag in Struts has no name! Why

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Tamas Szabo
On 9/14/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: It's generally something to avoid because you may at some point change the order of your forms and then find that your code no longer works. Think of what happens if you put a form before this one later... now the form you want is

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Laurie Harper
Tamas Szabo wrote: Isn't there a struts tag which for a given action path it gives me the name of the associated form? No there isn't, though it'd be trivial to write. What you can do, though, is something like this: bean:define id=formTag name=org.apache.struts.taglib.html.FORM/

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Frank W. Zammetti
Laurie Harper wrote: Why do you say that's a bad practice? It's actually both supported and recommended; in fact, the 'name' attribute is deprecated in favour of the 'id' attribute so 'id' is the only way to target CSS to a particular page element rather than an entire display class. ...