Re: how do I use absolute url actions in html:form tag with struts 1.3.8

2010-01-03 Thread Brian Thompson
I'll echo the question of "why would you want to?", but it's easy to accomplish if you're not insistent on using the tag: " method="GET" action=""> ... -Brian P.S. Is it just me, or is the documentation on the struts form tag a bit lacking in examples? On Sun, Jan 3, 2010 at 1:28 AM, Paul

Re: how do I use absolute url actions in html:form tag with struts 1.3.8

2010-01-02 Thread Paul Benedict
I don't think you can. Why would you want to? On Tue, Dec 22, 2009 at 8:01 PM, Jason Novotny wrote: > Hi, > >    I'm a Struts newbie and am tasked with trying to change relative URLs on > our site to be absolute. I have a form that looks like: > > > > and once it renders it displays: > > onsubm

how do I use absolute url actions in html:form tag with struts 1.3.8

2009-12-22 Thread Jason Novotny
Hi, I'm a Struts newbie and am tasked with trying to change relative URLs on our site to be absolute. I have a form that looks like: and once it renders it displays: action="/modules/mymodule/fcon/MyAction.do" onsubmit="return validateFilterForm(event, this);"> What I'd like is to ha

Re: html:form windowstate

2008-12-16 Thread Nils-Helge Garli Hegvik
ch (from what I remember) created portlet urls automatically. Nils-H On Tue, Dec 16, 2008 at 5:27 PM, Evert Lammerts wrote: > Hi Nils, > > I've tried your suggestion but it doesn't seem to be possible. The action > attribute in html:form expects an Action URI, while actionURL cre

RE: html:form windowstate

2008-12-16 Thread Evert Lammerts
Hi Nils, I've tried your suggestion but it doesn't seem to be possible. The action attribute in html:form expects an Action URI, while actionURL creates an absolute URL. Still, being a beginner with this, I'm pretty sure I'm missing something - I guess it IS possible to cr

Re: html:form windowstate

2008-12-16 Thread Nils-Helge Garli Hegvik
You can probably use the 'var' attribute of the portlet:actionURL tag to store the url as a variable which you can reference by an expression in the html:form tag. Take a look at the tag reference for the portlet tags (PLT.22.2) in the JSR168 spec [1] for details. Nils-H [1] - http

html:form windowstate

2008-12-16 Thread Evert Lammerts
Hi all, Using struts 1.3.8 I'm trying to use the struts-html taglib to create a form attribute that submits the form to a maximized window state, like possible with the actionURL tag: "> " method="POST"> Is there a way to do this? Maybe with a hidde

RE: More html:form TAG in one page for struts 1

2008-10-22 Thread Kawczynski, David
, response) { ... } } -Original Message- From: D'Ottavio Alessandro [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 11:47 AM To: Struts Users Mailing List Subject: R: More html:form TAG in one page for struts 1 Ciao Antonio, Actually I'm using 2 differe

Re: R: More html:form TAG in one page for struts 1

2008-10-22 Thread Antonio
e bean using the setter present... > and the same will be done for the Action B with the associated FormBeanB > > this will solve the problem of the validation and mean that I can use > more html:form tag associate at the same page because the submit will > request one specific actio

R: More html:form TAG in one page for struts 1

2008-10-22 Thread D'Ottavio Alessandro
ested by function A need) struts automatically will valorised the bean using the setter present... and the same will be done for the Action B with the associated FormBeanB this will solve the problem of the validation and mean that I can use more html:form tag associate at the same page because the s

Re: More html:form TAG in one page for struts 1

2008-10-22 Thread Antonio
2008/10/22 D'Ottavio Alessandro <[EMAIL PROTECTED]>: > I have one page and one FormBean that is populated by the form but I > would like have 2 FormBean and 2 form associated at the same page Are you going to use 1 or 2 actions? Because you can associate only 1 form bean to 1 action, but the same

More html:form TAG in one page for struts 1

2008-10-22 Thread D'Ottavio Alessandro
Hi to all Sorry for my poor English I have one page and one FormBean that is populated by the form but I would like have 2 FormBean and 2 form associated at the same page Actually Form a logical point of view: My pages represent 2 different function, so there is one button for one fu

Re: Struts 1.3.8 problem html:form

2008-08-04 Thread Antonio Petrelli
2008/8/4 Alexis Abdel <[EMAIL PROTECTED]>: > That exeption in english it is: > > The server found an error,and cant fill this requirement. > > org.apache.jasper.JasperException: Exception in JSP: /index.jsp:16 Can you post the complete stack trace, especially the cause? Antonio P.S. I speak also

Re: Struts 1.3.8 problem html:form

2008-08-04 Thread Antonio Petrelli
2008/8/4 Alexis Abdel <[EMAIL PROTECTED]>: > Configuration 1.3//EN" > > "http://struts.apache.org/dtds/struts-config_1_0.dtd";> Shouldn't it be "1_3"? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Struts 1.3.8 problem html:form

2008-08-04 Thread Alexis Abdel
Hi! I am using Struts 1.3.8 and when i want to try some of the examples or when i want to develop something i always have the same error in the line with "html:form." This is a very simple example: Inside Web-inf,i have a lib folder with the following libs: Antlr-2.7.2.jar,commons

RE: styleId attribute in html:form

2007-10-11 Thread Slattery, Tim - BLS
> Right, that has sorted the problem with the form, thanks for the help. > > I'm wondering why that tag was put there in the first place, > what could have been the reasoning behind that? I'm hoping > that removing it won't have implication elsewhere in the process... Are you talking about the

RE: styleId attribute in html:form

2007-10-11 Thread whichit
Right, that has sorted the problem with the form, thanks for the help. I'm wondering why that tag was put there in the first place, what could have been the reasoning behind that? I'm hoping that removing it won't have implication elsewhere in the process... Slattery, Tim - BLS wrote: > >> We

RE: styleId attribute in html:form

2007-10-11 Thread Slattery, Tim - BLS
> We have a struts form, and we need to have a styleId element > (which translates into a standard HTML id element). When we > include it, the page breaks, with no errors logged, just a > blank page. If we leave it out completely, when the page > loads an id element has been included, with the

styleId attribute in html:form

2007-10-11 Thread whichit
Hello all. We have a struts form, and we need to have a styleId element (which translates into a standard HTML id element). When we include it, the page breaks, with no errors logged, just a blank page. If we leave it out completely, when the page loads an id element has been included, with the v

Re: html:form styleId name attribute javascript issue

2007-08-06 Thread Paul Benedict
Use the getElementById scripting method. On 8/6/07, john lee <[EMAIL PROTECTED]> wrote: > > I have two file, and try to test javascript, but javascript can not access > document.form. > > Can one know why? inside , styleId <> Name attribute? if so, > what is the solution for that? > > i use st

html:form styleId name attribute javascript issue

2007-08-06 Thread john lee
I have two file, and try to test javascript, but javascript can not access document.form. Can one know why? inside , styleId <> Name attribute? if so, what is the solution for that? i use strusts 1.3 tks in advance john one file is javacript file, called my.js

Help required for error html:form not closed

2007-05-30 Thread Kalpak Luniya
include file="/WEB-INF/jspf/PreFooter.jspf" %> We have defined the form attribute in PreHeader.jspf itself. Now when we thought of using taglibs through out our project, we are not able to define in PreHeader.jspf as it gives an error saying unterminated html:form Any idea how we co

Re: html:form array submit, capture inside ActionFrom question

2007-04-20 Thread john lee
David, tks for ur help. actually, my goal is to have multiple submit button on same page, do same thing, but carry different input value(different search result). john David Conrad <[EMAIL PROTECTED]> wrote: On 4/20/07, john lee wrote: > what is S1 tags? i still use struts 1.3.8. S

Re: html:form array submit, capture inside ActionFrom question

2007-04-20 Thread David Conrad
On 4/20/07, john lee <[EMAIL PROTECTED]> wrote: what is S1 tags? i still use struts 1.3.8. Struts 1.x. S2 would be Struts 2.x. So, with 1.3.8, you are still using S1. So, no possible to submit formay array? > possible for me to implement the following code? > > for (i=1:i>

Re: html:form array submit, capture inside ActionFrom question

2007-04-20 Thread john lee
what is S1 tags? i still use struts 1.3.8. So, no possible to submit formay array? tks john Dave Newton <[EMAIL PROTECTED]> wrote: --- john lee wrote: > possible for me to implement the following code? > > for (i=1:i> { >response.Write("> styleId="+i); >

Re: html:form array submit, capture inside ActionFrom question

2007-04-20 Thread Dave Newton
--- john lee <[EMAIL PROTECTED]> wrote: > possible for me to implement the following code? > <% > for (i=1:i<=10:i++) > { >response.Write(" styleId="+i); >response.Write(" value="+i); >response.Write(""); >response.Write(""); >} > %> >

html:form array submit, capture inside ActionFrom question

2007-04-20 Thread john lee
possible for me to implement the following code? <% for (i=1:i<=10:i++) { response.Write(""); response.Write(""); } %> but, how to capature form(0), form(1) with corrsponsed part inside ActionForm ? tks in advance john

RE: Re: EL expression in html:form action

2007-03-16 Thread Karr, David
50 PM > To: Struts Users Mailing List > Subject: RE: Re: EL expression in html:form action > > It should work OK if you're using the > http://struts.apache.org/tags-html-el taglib. > > -Original Message- > From: Lim Hock-Chai [mailto:[EMAIL PROTECTED] > Sent:

RE: Re: EL expression in html:form action

2007-03-15 Thread Strachan, Paul
It should work OK if you're using the http://struts.apache.org/tags-html-el taglib. -Original Message- From: Lim Hock-Chai [mailto:[EMAIL PROTECTED] Sent: Friday, 16 March 2007 4:08 AM To: Struts Users Mailing List Subject: RE: Re: EL expression in html:form action I'm pretty

RE: Re: EL expression in html:form action

2007-03-15 Thread Lim Hock-Chai
m: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Thursday, March 15, 2007 12:00 PM To: user@struts.apache.org Subject: Re: EL expression in html:form action Lim Hock-Chai wrote: > I'm getting the "cannot retrieve mapping for action" error when using > EL e

Re: EL expression in html:form action

2007-03-15 Thread Laurie Harper
Lim Hock-Chai wrote: I'm getting the "cannot retrieve mapping for action" error when using EL expression in the action attribute of tag. See below. AcctContact.jsp ==> .. . . struts-config.xml ==> .. . . Error ==> =

EL expression in html:form action

2007-03-15 Thread Lim Hock-Chai
I'm getting the "cannot retrieve mapping for action" error when using EL expression in the action attribute of tag. See below. AcctContact.jsp ==> . . . struts-config.xml ==> . . . Error ==> == ERROR - ServletEx

RE: From html:form direct to JSP

2007-02-09 Thread Kandelwal Abhishek
sage- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 4:14 AM To: user@struts.apache.org Subject: From html:form direct to JSP Hi everybody, New day, new problem :). I have a html:form in my page, with hidden fields (don't ask why, long explanation). W

From html:form direct to JSP

2007-02-09 Thread bjorn.de.bakker
Hi everybody, New day, new problem :). I have a html:form in my page, with hidden fields (don't ask why, long explanation). When you submit that form, an action is triggered, which forwards the user to a page. The problem is, the forward is the only thing that the action does (no addit

Re: specify html:form action property

2007-01-17 Thread Ilja S.
Sorry didn't get what you mean by "use JSTL/EL to navigate the servlet api" :) As I mentioned before request.getServletPath() gives Tiles layout jsp page, not action mapping. * Best Regards Ilja Joseph McGranaghan wrote: That MappingDispatchAction sounds l

Re: specify html:form action property

2007-01-17 Thread Joseph McGranaghan
That MappingDispatchAction sounds like a good idea. What if you use JSTL/EL to navigate the servlet api and do a similar filter for /admin/* etc? Could do it in a javascript function onSubmit. -Joe Ilja S. wrote: The thing is that I use MappingDispatchAction So in one action class I have 2 m

Re: specify html:form action property

2007-01-17 Thread Ilja S.
The thing is that I use MappingDispatchAction So in one action class I have 2 methods: 1 will be executed when /supervisor/deals is accessed and other when /admin/deals is executed. I found this convenient for handling authorization (user with role supervisor can't access /admin/* urls) and hav

Re: specify html:form action property

2007-01-17 Thread Joseph McGranaghan
What if you use a DispatchAction and one path. Either way you will need to check a parameter (or something) to ensure the proper route -Joe Ilja S. wrote: Hello This could be silly question but I'm kind stuck here. I have 2 ActionMappings in struts config with following paths: path="/admin/dea

specify html:form action property

2007-01-17 Thread Ilja S.
Hello This could be silly question but I'm kind stuck here. I have 2 ActionMappings in struts config with following paths: path="/admin/deals" path="/supervisor/deals" Both have the forward to same jsp with form. All I want to do is depending on a requested mapping submit form, well, to its' ac

Re: html:form action mapping

2006-12-07 Thread chuanjiang lo
On 12/7/06, chuanjiang lo <[EMAIL PROTECTED]> wrote: Hi all i have this jsp page with a form and the corresponding mapping in the struts config is When i view the source code of the jsp it shows Why is the action mapping to my context path? Appreciate an

html:form action mapping

2006-12-07 Thread chuanjiang lo
Hi all i have this jsp page with a form and the corresponding mapping in the struts config is When i view the source code of the jsp it shows Why is the action mapping to my context path? Appreciate any advice

Re: RES: html:form problem

2006-09-21 Thread Paul Benedict
st Assunto: Re: html:form problem It looks like you might be using modules...are you? -adam Roberto C. Lima Jr. wrote: Hi, everyone. I have an app that will be published at internet with apache + JBoss Server. So, it will be published on the address above: <http://sis.enovar.

RES: html:form problem

2006-09-21 Thread Roberto C. Lima Jr.
17:35 Para: Struts Users Mailing List Assunto: Re: html:form problem It looks like you might be using modules...are you? -adam Roberto C. Lima Jr. wrote: > Hi, everyone. > > > > I have an app that will be published at internet with apache + JBoss > Server. > > So, it wil

RES: html:form problem

2006-09-21 Thread Roberto C. Lima Jr.
17:31 Para: Struts Users Mailing List Assunto: Re: html:form problem Have you tried: (*Chris*) On 9/21/06, Roberto C. Lima Jr. <[EMAIL PROTECTED]> wrote: > > Hi, everyone. > > > > I have an app that will be published at internet with apache + JBoss > Server. > > S

Re: html:form problem

2006-09-21 Thread Adam Gordon
com.br/ But the problem is that html:form writes more than just the “.do” thing becomes So, when i submit the page, it is trying to go to http://sis.enovar.com.br/sis/example.do and actually I was wondering it goes to http://sis.enovar.com.br/example.do Does anyone ha

Re: html:form problem

2006-09-21 Thread Chris Pratt
m.br/ But the problem is that html:form writes more than just the ".do" thing becomes So, when i submit the page, it is trying to go to http://sis.enovar.com.br/sis/example.do and actually I was wondering it goes to http://sis.enovar.com.br/example.do Does anyone ha

html:form problem

2006-09-21 Thread Roberto C. Lima Jr.
Hi, everyone. I have an app that will be published at internet with apache + JBoss Server. So, it will be published on the address above: <http://sis.enovar.com.br/> http://sis.enovar.com.br/ But the problem is that html:form writes more than just the “.do” thing b

Re: html:form / styleId in xhtml mode

2006-08-08 Thread Laurie Harper
': Cannot specify "styleId" when in XHTML mode as the HTML "id" attribute is already used to store the bean name javax.servlet.ServletException: Cannot specify "styleId" when in XHTML mode as the HTML "id" attribute is already used to store the bean name

html:form / styleId in xhtml mode

2006-08-01 Thread Michael Rush
already used to store the bean name javax.servlet.ServletException: Cannot specify "styleId" when in XHTML mode as the HTML "id" attribute is already used to store the bean name FormTag dictates that the styleId attribute cannot be set in the html:form tag when using xhtml

RE: use html:form to pass the a child window to a parent window

2006-05-11 Thread José María Tristán
Ok. Thank you very much. -Mensaje original- De: M Faizal [mailto:[EMAIL PROTECTED] Enviado el: viernes, 12 de mayo de 2006 5:32 Para: Struts Users Mailing List Asunto: RE: use html:form to pass the a child window to a parent window Add target attrib. in the form of your popup window

RE: use html:form to pass the a child window to a parent window

2006-05-11 Thread M Faizal
Add target attrib. in the form of your popup window ... -Original Message- From: José María Tristán [mailto:[EMAIL PROTECTED] Sent: May 11, 2006 6:33 PM To: 'Struts Users Mailing List' Subject: use html:form to pass the a child window to a parent window Hi,

use html:form to pass the a child window to a parent window

2006-05-11 Thread José María Tristán
In the popup I'm forward html:form to a ActionFirstWindow.do. But this action open a new first window and not gets the data. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: newbie question about xhtml, html:form, submit button

2006-05-03 Thread David Byron
On Wednesday, May 3, Nathan Coast wrote: > You need to change your javascript to > document.getElementById('tryItForm').submit(); That does it. Thanks for your help. -DB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: newbie question about xhtml, html:form, submit button

2006-05-03 Thread Nathan Coast
without struts inserts the name="tryItForm" attribute for the form. With struts inserts the id="tryItForm" attribute. You need to change your javascript to document.getElementById('tryItForm').submit(); David Byron wrote: I've inherited some struts code and I have a question about the ht

newbie question about xhtml, html:form, submit button

2006-05-03 Thread David Byron
I've inherited some struts code and I have a question about the html that it generates. I have a feeling there's a bunch more stuff I need to read but I'm having trouble finding it. I've run the generated html through validator.w3.org and it gave me errors that I don't have end tags on input elem

Re: Submit a html:form with a link

2006-03-08 Thread Niall Pemberton
ot;Michael Jouravlev" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, March 09, 2006 2:33 AM Subject: Re: Submit a html:form with a link On 3/8/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > I see no real need to force people to change working i

Re: Submit a html:form with a link

2006-03-08 Thread Michael Jouravlev
On 3/8/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > I see no real need to force people to change working implementations that > use DispatchAction or LookupDispatchAction by deprecating them. Still some do the same job better than other. I am not saying about forcing people. Just telling them

Re: Submit a html:form with a link

2006-03-08 Thread Niall Pemberton
I see no real need to force people to change working implementations that use DispatchAction or LookupDispatchAction by deprecating them. We probably need better docs to explain the different implementations - but peoples opnions on whats best to use vary widely - some people don't think DispatchAc

Re: Submit a html:form with a link

2006-03-08 Thread Michael Jouravlev
On 3/8/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > The most common cause of this in LookupDispatchAction is the presence of > "whitespace" in the label value. So in the example I gave you, this happens > if you don't put the tags all on one line, something like this: > > > > > > You n

Re: Submit a html:form with a link

2006-03-08 Thread Wendy Smoak
On 3/8/06, Yariel Ramos Moreno <[EMAIL PROTECTED]> wrote: > I tried your solution but it does't work. I get the exception: > > SEVERE: Servlet.service() for servlet action threw exception > javax.servlet.ServletException: Request[/search] does not contain handler > parameter named searchType We

Re: Submit a html:form with a link

2006-03-08 Thread Niall Pemberton
L PROTECTED]> To: "Struts" Sent: Wednesday, March 08, 2006 3:19 PM Subject: Re: Submit a html:form with a link Niall: I tried your solution but it does't work. I get the exception: SEVERE: Servlet.service() for servlet action threw exception javax.servlet.ServletExcepti

Re: Submit a html:form with a link

2006-03-08 Thread Yariel Ramos Moreno
Niall: I tried your solution but it does't work. I get the exception: SEVERE: Servlet.service() for servlet action threw exception javax.servlet.ServletException: Request[/search] does not contain handler parameter named searchType at org.apache.struts.actions.LookupDispatchAction.execute(Looku

Re: Submit a html:form with a link

2006-03-08 Thread Wendy Smoak
On 3/8/06, Yariel Ramos Moreno <[EMAIL PROTECTED]> wrote: > It's there a way of submit an html:form to a LookUpDispathAction with > a link instead of a submit button? What problem are you trying to solve? * If you can get all of the request parameters into the link URL, yes.

Re: Submit a html:form with a link

2006-03-08 Thread Niall Pemberton
one parameter you need to build a java.util.Map of parameters and pass it to the tag using the name/property attributes. Niall - Original Message - From: "Yariel Ramos Moreno" <[EMAIL PROTECTED]> Sent: Wednesday, March 08, 2006 2:19 PM Hi everybody: It&

Submit a html:form with a link

2006-03-08 Thread Yariel Ramos Moreno
Hi everybody: It's there a way of submit an html:form to a LookUpDispathAction with a link instead of a submit button? Thanks and regards.

Re: html:form dynamic action value

2005-12-12 Thread Laurie Harper
Perry Jeung wrote: I have a html:form tag with a dynamic action value that works in one version of Struts and not in another. I'm new to Tiles and I want to do the following in one of the reusable tiles named report.jsp: " > In an experiment, I took the struts-example webapp fr

html:form dynamic action value

2005-12-11 Thread Perry Jeung
I have a html:form tag with a dynamic action value that works in one version of Struts and not in another. I'm new to Tiles and I want to do the following in one of the reusable tiles named report.jsp: " > In an experiment, I took the struts-example webapp from the Struts

Re: [struts-faces] html:form vs. s:form

2005-11-24 Thread Laurie Harper
) there's no instance of the form tag stored in any scope under that key; and (b) even if it were, the tag implementation class isn't type compatible with the standard Struts tag. So, the first question is should this be considered a bug in so much as s:form is documented as being funct

Re: [struts-faces] html:form vs. s:form

2005-11-24 Thread Craig McClanahan
a bug in so much as > s:form is documented as being functionally equivalent to html:form? Yah, that sounds like a bug ... or perhaps a change in functionality of the standard version that needs to be ported to the faces version. And second, how would I rewrite the above code so it works equivalen

[struts-faces] html:form vs. s:form

2005-11-24 Thread Laurie Harper
even if it were, the tag implementation class isn't type compatible with the standard Struts tag. So, the first question is should this be considered a bug in so much as s:form is documented as being functionally equivalent to html:form? And second, how would I rewrite the above code so it

Re: problem with html:form tag action property

2005-09-28 Thread Aman A
gt; > > -Original Message- > From: Jane Eisenstein [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 27, 2005 12:06 PM > To: Struts Users Mailing List > Subject: RE: problem with html:form tag action property > > Yes I have that mapping. The form ta

RE: problem with html:form tag action property

2005-09-27 Thread David G. Friedman
: problem with html:form tag action property Problem solved. The problem was due to the ordering of tags in our web.xml. When I rearranged the servlet-mappings for our action servlet so the *.do pattern is specified last, the form tag generates a correct action property: action

RE: problem with html:form tag action property

2005-09-27 Thread Jane Eisenstein
*.do -Original Message- From: Jane Eisenstein [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 12:06 PM To: Struts Users Mailing List Subject: RE: problem with html:form tag action property Yes I have that mapping. The form tag is not working irrespective of

RE: problem with html:form tag action property

2005-09-27 Thread Jane Eisenstein
Yes I have that mapping. The form tag is not working irrespective of whether the .do suffix is there. -Original Message- From: Catherine [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 10:02 AM To: user@struts.apache.org Subject: Re:problem with html:form tag action property

Re:problem with html:form tag action property

2005-09-27 Thread Catherine
Check if you have the following entry in your web.xml. ... action *.do Then in your form, you don't need to suffix .do, Struts will do that for you: Cheers, Catherine - http://Struts_User_List.roomity.c

RE: Re: problem with html:form tag action property

2005-09-26 Thread Jane Eisenstein
tical to step through the html:form tag's execution with a debugger and see where things are going wrong? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Monday, September 26, 2005 6:59 PM To: user@struts.apache.org Subject: Re: problem with htm

Re: problem with html:form tag action property

2005-09-26 Thread Laurie Harper
I think you need to remove the '.do' from the action (I'm using prefix rather than suffix mapping, though, so I could be wrong...). L. Jane Eisenstein wrote: I am converting an existing jsp to use struts tags. I replaced the original form tag that looked like this: with: The tag ge

problem with html:form tag action property

2005-09-26 Thread Jane Eisenstein
I am converting an existing jsp to use struts tags. I replaced the original form tag that looked like this: with: The tag generates a form tag that looks like: (CarePlannerWeb is the name of the web application) I don't understand why the wrong form action is being generated. The targ

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

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 foll

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 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 m

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 genera

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 cod

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 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 o

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 entire

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

2005-09-13 Thread Frank W. Zammetti
Tamas Szabo wrote: > So the whole decission comes down to: If I think that it's more likely that the name of the form will change in the action mapping(struts-config) than someone will add a new form to the jsp (before my form and without observing that I have javascript functions which rely on

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. ... OK,

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: Note that's untested (and probably wrong!), but it really is just a

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

2005-09-13 Thread Laurie Harper
Frank W. Zammetti wrote: Note also that styleId is the attribute of that you want, that renders an ID attribute (unfortunate naming choice since it encourages the usage of the ID attribute to assign CSS classes, which is another bad practice IMO, but whatever, it works!). Why do you say that

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 Frank W. Zammetti
otal newbie in javascript. I just ask because I had to reference the form and I used forms[0] despite of the fact that I'm using html:form and I have the name of the form. But the html:form is generated based on the action attribute so I thougth that if someone changes the action mapping in stru

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

2005-09-13 Thread Tamas Szabo
do you caution against using forms[0]? I'm not arguing against this, I'm a total newbie in javascript. I just ask because I had to reference the form and I used forms[0] despite of the fact that I'm using html:form and I have the name of the form. But the html:form is generated base

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

2005-09-13 Thread Gareth Evans
Sent: Tuesday, September 13, 2005 11:05 AM Subject: Re: How to replace normal html-from through html:form in Struts? Example gollinger wrote: document.next.submit(); The problem I have is that the form tag in Struts has no name! Why? So how can I execute the java-script? Which

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

2005-09-13 Thread Jason King
t" Sent: Tuesday, September 13, 2005 11:05 AM Subject: Re: How to replace normal html-from through html:form in Struts? Example gollinger wrote: document.next.submit(); The problem I have is that the form tag in Struts has no name! Why? So how can I execute the java-script? Which

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" Sent: Tuesday, September 13, 2005 11:05 AM Subject: Re: How to replace normal html-from through html:form in Struts? Example gollinger wrote: document.next.submit(); The

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

2005-09-13 Thread Jason King
gollinger wrote: document.next.submit(); 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 document.form[0] or form[1] will work. ---

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

2005-09-13 Thread gollinger
document.next.submit(); 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 - To unsubscribe, e-mail: [EMAIL PROTEC

Re: html:form not generating name="" attribute

2005-08-22 Thread Haroon Rafique
On Saturday at 9:36am, DB=>Don Brown <[EMAIL PROTECTED]> wrote: DB> Ok, I looked at the 1.2.7 source, and indeed, it doesn't generate an DB> "id" or"name" if xhtml mode is on. You are correct, the styleId is a DB> good workaround, especially if you use the commons-validator checked DB> out fro

  1   2   >