Struts2 s:form to html form changes id attribute

2010-12-16 Thread webmeiker
Hi, Does somebody know what could be happening here? I have exactly same Struts2 web app deployed in two Tomcats but tag behaves strange in one of them. Lets explain myself… The next line of code in my JSP: …generates correct html form code in ‘A’ environment: …BUT

Re: Mapping a dynamic html form with ActionForm

2010-07-03 Thread Paweł Wielgus
in action You can check if this question >> has predefined answer and if yes select it as a response or if not use >> a response text from form. >> >> Best greetings, >> Paweł Wielgus. >> >> 2010/7/1 Jawahar Nayak : >>> >>> One Solution wha

Re: Mapping a dynamic html form with ActionForm

2010-07-02 Thread Jawahar Nayak
ck if this question > has predefined answer and if yes select it as a response or if not use > a response text from form. > > Best greetings, > Paweł Wielgus. > > 2010/7/1 Jawahar Nayak : >> >> One Solution what I am thinking... I don't know is it possible or

Re: Mapping a dynamic html form with ActionForm

2010-07-01 Thread Paweł Wielgus
swer and if yes select it as a response or if not use a response text from form. Best greetings, Paweł Wielgus. 2010/7/1 Jawahar Nayak : > > One Solution what I am thinking... I don't know is it possible or not > > - Creating a simple html form > - On submitting, I will make

Re: Mapping a dynamic html form with ActionForm

2010-07-01 Thread Jawahar Nayak
One Solution what I am thinking... I don't know is it possible or not - Creating a simple html form - On submitting, I will make a xml of user response i.e. Options selected, and not selected for examle ... then setting this xml stri

Mapping a dynamic html form with ActionForm

2010-07-01 Thread Jawahar Nayak
ActionForm. But the fields in ActionForm need to be defined in advance, we we want to show on html form. - I want to know, what structure should I follow to design and implement my application with such requirement. Can I make use of tag and ActionForm OR I should not use them completely. Thanks

how to highlight error field in struts html form?

2009-04-16 Thread abhishek reddy
hi, ***how to highlight error field in struts html form?* <http://www.coderanch.com/t/440529/Struts/highlight-error-field-struts-html> Note: Validations are performed on the server side (validate() method of respective form bean) Iam using struts 1.2.9 -- Abhishek

Re: Setting HTML form parameters to Custom classes (not action support)

2008-05-13 Thread Jim Kiley
ects into the stack... > > please correct me if i am wrong... any help would be great... > > cheers, > ravi > -- > View this message in context: > http://www.nabble.com/Setting-HTML-form-parameters-to-Custom-classes-%28no

Setting HTML form parameters to Custom classes (not action support)

2008-05-12 Thread ravi_eze
s into the stack... please correct me if i am wrong... any help would be great... cheers, ravi -- View this message in context: http://www.nabble.com/Setting-HTML-form-parameters-to-Custom-classes-%28not-action-support%29-tp17201248p17201248.html Sent from the Struts - User mailing list

RE: html form

2006-11-22 Thread Anil Kumar T
Try changing the form method to get. I think post does not sends the data in the way you have done. Just my guess.. Anil. -Original Message- From: temp temp [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 8:13 PM To: user@struts.apache.org Subject: html form I have a

Re: html form

2006-11-22 Thread Ed Griebel
In short, no. You should create hidden fields for each of the params you want to pass. On 11/22/06, temp temp <[EMAIL PROTECTED]> wrote: I have a html form Display OptionsShow 10 Show 20 Show 50 Show 100 Show 200 When I receive request

RE: html form instantiating form bean

2006-10-11 Thread Dave Newton
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > On 10/11/06, Ed Griebel <[EMAIL PROTECTED]> wrote: > > You should not instantiate manually your own formbean nor put it into > > the request scope, you must use the formbean passed into your action > > class via the ActionForm object. > Ok I think my

Re: html form instantiating form bean

2006-10-11 Thread Puneet Lakhina
On 10/11/06, Ed Griebel <[EMAIL PROTECTED]> wrote: You should not instantiate manually your own formbean nor put it into the request scope, you must use the formbean passed into your action class via the ActionForm object. Ok I think my question isnt clear. I have two action classes PrepareA

RE: html form instantiating form bean

2006-10-11 Thread Dave Newton
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > The prepare action needs to prepopulate values into the form that is > displayed subsequently. How else can i do this?? Populating a form is different than instantiating one and putting it in to scope: Struts1 already instantiates and scopes forms.

Re: html form instantiating form bean

2006-10-11 Thread Ed Griebel
You should not instantiate manually your own formbean nor put it into the request scope, you must use the formbean passed into your action class via the ActionForm object. When you get the handle to the formbean you can either cast the formbean to it's real class or you can use BeanUtils.populate

Re: html form instantiating form bean

2006-10-11 Thread Puneet Lakhina
On 10/11/06, Dave Newton <[EMAIL PROTECTED]> wrote: From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > the fooAction has formBeanName as its form bean defined in the struts > config. But Im not able to get any values into the fields in my form. Why are you doing this manually? If you have configu

RE: html form instantiating form bean

2006-10-11 Thread Dave Newton
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > the fooAction has formBeanName as its form bean defined in the struts > config. But Im not able to get any values into the fields in my form. Why are you doing this manually? If you have configured your actions properly the framework will do this bi

html form instantiating form bean

2006-10-11 Thread Puneet Lakhina
Hi, This has to be one of the most bewildering thing I have faced in my 3 months of learning struts. Now I have an action(PreapreAction) which I use to prepare a page for display. This for fetches values from a Database and creates an instance of the formbean and puts values into the form bean. No

Re: Can we specify variables in html form tags action attribute

2006-08-23 Thread Scott Van Wart
Chetan Pandey wrote: pageContext.setAttribute(propertyaction,"propertyaction");%> pageContext.setAttribute() is a standard map-based pattern. All of these use (key, value) and not (value, key) as you have above. Swap the two arguments. Remember your scope (third parameter). - Scott ---

RE: Can we specify variables in html form tags action attribute

2006-08-23 Thread Vidya Mahavadi
Exactly what you are trying to do.. -Original Message- From: Chetan Pandey [mailto:[EMAIL PROTECTED] Sent: Wednesday 23 August 2006 06:22 To: 'Struts Users Mailing List' Subject: Can we specify variables in html form tags action attribute Dear All: I am trying to put a v

Can we specify variables in html form tags action attribute

2006-08-22 Thread Chetan Pandey
Dear All: I am trying to put a variable in action attribute but it doesnt work. <%String propertyaction = "/manageProperty?function=edit"; pageContext.setAttribute(propertyaction,"propertyaction");%> Thanks. Chetan

RE: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread George.Dinwiddie
Wendy Smoak said: > > On 6/27/06, Steven Mitchell <[EMAIL PROTECTED]> wrote: > > > You can make the Action Servlet servlet-mapping anything you want. > > Rather than use /MyAction.do, I have used /do/MyAction for > years. In > > fact, I usually have two servlet-mapping patterns for the Action

Re: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread Wendy Smoak
On 6/27/06, Steven Mitchell <[EMAIL PROTECTED]> wrote: You can make the Action Servlet servlet-mapping anything you want. Rather than use /MyAction.do, I have used /do/MyAction for years. In fact, I usually have two servlet-mapping patterns for the Action servlet: "/do/*" and "logout". Ther

Re: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread Steven Mitchell
You can make the Action Servlet servlet-mapping anything you want. Rather than use /MyAction.do, I have used /do/MyAction for years. In fact, I usually have two servlet-mapping patterns for the Action servlet: "/do/*" and "logout". Notice the logout has no "do" at all. That allows me to put a

Re: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread Antonio Petrelli
Steven Mitchell ha scritto: action /do/* What? Isn't *.do ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Generated HTML FORM tag is missing "do" and Action Nme

2006-06-26 Thread Steven Mitchell
I've used Struts for years and thought I had seen every way to break it, but this one has me stumped. I'm starting a new Struts 1.2.9/Tiles project at home for http://www.byteworksinc.com. I'm working on the first submittable pages, which display fine, but clicking Submit sends you to the home

Re: Passing collection Objects from html form to Action class

2005-06-30 Thread Nitesh
ng collection Objects from html form to Action class Tell me which is performance efficient & desired way: Putting the form in session or making a trip to the database.. assuming we have collection of 50 - 60 records.. Phani.. --- Mark Benussi <[EMAIL PROTECTED]> wrote: Sadly you

RE: Passing collection Objects from html form to Action class

2005-06-30 Thread Mark Benussi
so much that I am going to crack on with it, I may let you know how I get on if it is a worthy solution. -Original Message- From: Phani [mailto:[EMAIL PROTECTED] Sent: 30 June 2005 17:38 To: Struts Users Mailing List Subject: RE: Passing collection Objects from html form to Action class T

Re: Passing collection Objects from html form to Action class

2005-06-30 Thread Phani
> > > Sadly you cannot unless you make the scope of the > form session. > > > > I find it limiting to say the least! > > > > > > > > -Original Message- > > From: Phani [mailto:[EMAIL PROTECTED] > > Sent: 30 June 2005 16:14 >

Re: Passing collection Objects from html form to Action class

2005-06-30 Thread Laurie Harper
- From: Phani [mailto:[EMAIL PROTECTED] Sent: 30 June 2005 16:14 To: Struts Users Mailing List Subject: Passing collection Objects from html form to Action class I have a Collection Object in my JSP which I am able to display using display Tag. I want to render those collection objects when I

RE: Passing collection Objects from html form to Action class

2005-06-30 Thread Phani
session. > > I find it limiting to say the least! > > > > -Original Message- > From: Phani [mailto:[EMAIL PROTECTED] > Sent: 30 June 2005 16:14 > To: Struts Users Mailing List > Subject: Passing collection Objects from html form > to Action class >

RE: Passing collection Objects from html form to Action class

2005-06-30 Thread Mark Benussi
Sadly you cannot unless you make the scope of the form session. I find it limiting to say the least! -Original Message- From: Phani [mailto:[EMAIL PROTECTED] Sent: 30 June 2005 16:14 To: Struts Users Mailing List Subject: Passing collection Objects from html form to Action class I

Passing collection Objects from html form to Action class

2005-06-30 Thread Phani
I have a Collection Object in my JSP which I am able to display using display Tag. I want to render those collection objects when I submit my html form, so that I can retrieve them in my Action class as form property. If it is a string, I can render it as hidden field.. And in the Action

RE: HTML Form

2005-04-12 Thread Fogleson, Allen
If there is a different rule on advocating Shale-Struts as Struts.next for Craig, that is understandable. But where in his post did he say that Shale-Struts was Struts.next? All he said was that the way the rest of the world is going (and imho HAS been going) with a variety of view techniques

Re: HTML Form

2005-04-12 Thread Craig McClanahan
On 4/12/05, Dakota Jack <[EMAIL PROTECTED]> wrote: > BINGO -- There is a rule on revolutionary developements in ASF which > is pretty much abridged by this comment, Craig, and made worse by your > repeating it. If you are doing revolutionary development, the ASF > rule is, as I understand it, that

Re: HTML Form

2005-04-12 Thread Dakota Jack
BINGO -- There is a rule on revolutionary developements in ASF which is pretty much abridged by this comment, Craig, and made worse by your repeating it. If you are doing revolutionary development, the ASF rule is, as I understand it, that you don't pretend to have superceded the present until aft

Re: HTML Form

2005-04-12 Thread Dave Newton
Craig McClanahan wrote: On Apr 12, 2005 2:27 PM, Joe Germuska <[EMAIL PROTECTED]> wrote: "I would caution new projects, however, to *not* use the Struts HTML tags. That part of Struts has received fairly little developer attention, and should be considered legacy at this point." This quo

Re: HTML Form

2005-04-12 Thread Craig McClanahan
On Apr 12, 2005 2:27 PM, Joe Germuska <[EMAIL PROTECTED]> wrote: > >"I would caution new projects, however, to *not* use the Struts HTML > >tags. That part of Struts has received fairly little developer > >attention, and should be considered legacy at this point." > > This quote has no attributi

Re: HTML Form

2005-04-12 Thread Joe Germuska
"I would caution new projects, however, to *not* use the Struts HTML tags. That part of Struts has received fairly little developer attention, and should be considered legacy at this point." This quote has no attribution, but as a committer, I would disagree with this assertion. There are certai

Re: HTML Form

2005-04-12 Thread Dave Newton
Dakota Jack wrote: This was not your mistake, Dave. Unfortunately, there is a source to that false rumor. Some of those so sanguine about the conduct of some members and the Struts community might want to consider how this happened and to make sure it does not continue. Maybe we should start

Re: HTML Form

2005-04-12 Thread Dakota Jack
This was not your mistake, Dave. Unfortunately, there is a source to that false rumor. Some of those so sanguine about the conduct of some members and the Struts community might want to consider how this happened and to make sure it does not continue. It is important that the rumor, like other

RE: HTML Form

2005-04-12 Thread Durham David R Jr Contr 805 CSPTS/SCE
> Its not true that the HTML tags are receiving no developer > attention. Ok, my mistake. Thanks for clearing that up. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: HTML Form

2005-04-12 Thread Niall Pemberton
Its not true that the HTML tags are receiving no developer attention. Since Version 1.2.4 was released the following changes have been made to the HTML taglib: 1) Highlighting Error Fields http://www.niallp.pwp.blueyonder.co.uk/strutshighlight.html 2) ErrorTag now has header, footer, prefix and s

RE: HTML Form

2005-04-12 Thread Slattery, Tim - BLS
> I recall reading something about the HTML tags not receiving > any developer attention and new project are encouraged not to > use them. My question is what is the alternative to them? > JSTL? Is there a guide or wiki page regarding the issues of > migrating from the HTML tags to whatever

HTML Form

2005-04-12 Thread Durham David R Jr Contr 805 CSPTS/SCE
I recall reading something about the HTML tags not receiving any developer attention and new project are encouraged not to use them. My question is what is the alternative to them? JSTL? Is there a guide or wiki page regarding the issues of migrating from the HTML tags to whatever the recommenda

Multiple Module Config with HTML Form

2005-03-16 Thread zw
Hi, I faced a problem when I use the multiple module method with HTML Frame. Could someone facing the same problem help I have 2 struts-config.xml files - one is main, the other is in the module /web/menu ... the one in /web/menu module looks like :

AW: UTF-8 encoding in html form

2004-11-30 Thread Otto, Frank
-Originalnachricht- Von: Joe Germuska An: Struts Users Mailing List Gesendet: 30.11.2004 17:10 Betreff: Re: UTF-8 encoding in html form > > Also note that Struts' multipart processing currently is rather clumsy > > in handling form encoding. If the request object

Re: UTF-8 encoding in html form

2004-11-30 Thread Joe Germuska
> Also note that Struts' multipart processing currently is rather clumsy > in handling form encoding. If the request object returns null from > "getCharacterEncoding()", then Struts assumes ISO-8859-1. I was Isn't it Tomcat itself? This is a behaviour per servlets specifications (see page 41 o

Re: UTF-8 encoding in html form

2004-11-30 Thread Guillaume Cottenceau
Joe Germuska writes: [...] > >As far as I know, the most reliable way is to specify > >"accept-charset" as UTF-8 in the of the HTML (w3.org's > >description of this parameter: "This attribute specifies the list > >of character encodings for input data that is accepted by the > >server processin

Re: UTF-8 encoding in html form

2004-11-30 Thread Joe Germuska
At 12:23 PM +0100 11/30/04, Guillaume Cottenceau wrote: "Otto, Frank" writes: Hi, I have a html form. The user can input text in ISO-8859-2 format. After submit the form the characters are wrong. I don't know why. I have set <%@ page contentType="text/html; charset=U

Re: UTF-8 encoding in html form

2004-11-30 Thread Guillaume Cottenceau
"Otto, Frank" writes: > Hi, > > I have a html form. The user can input text in ISO-8859-2 format. > > After submit the form the characters are wrong. I don't know why. > > I have set > > <%@ page contentType="text/html; charset=UTF-8&

UTF-8 encoding in html form

2004-11-29 Thread Otto, Frank
Hi, I have a html form. The user can input text in ISO-8859-2 format. After submit the form the characters are wrong. I don't know why. I have set <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> and there is a filter (filters.SetCharact

Re: Specifying HTML form names

2004-08-15 Thread jthompson
| | To: [EMAIL PROTECTED] | | cc:

Re: Specifying HTML form names

2004-08-14 Thread Matthew Van Horn
On Sun, 2004-08-15 at 00:19, Jacob Weber wrote: > I have a JSP with two forms, and they both need to go to the same > action. But Struts assumes that the "name" property of the HTML form > (e.g. ) should be the same as the name of the > associated form bean. As

Re: Specifying HTML form names

2004-08-14 Thread Hubert Rabago
IIRC, the form tag used to have an attribute so you can specify the form name, though I never used it because I never needed to. It was deprecated and eventually removed. Hubert --- Jacob Weber <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Hubert Rabago <[EMAIL PROTECTED]> wro

Re: Specifying HTML form names

2004-08-14 Thread Jacob Weber
In article <[EMAIL PROTECTED]>, Hubert Rabago <[EMAIL PROTECTED]> wrote: > There was only one entry for the two similarly named forms. Checking the > fields of the form showed me that only the latest definition of a form with a > given name is recognized. > > So, you should probably add a formb

Re: Specifying HTML form names

2004-08-14 Thread Hubert Rabago
r the same action. It can be the same ActionForm and Action object, but would need different mappings in struts-config. - Hubert --- Jacob Weber <[EMAIL PROTECTED]> wrote: > > I have a JSP with two forms, and they both need to go to the same > action. But Struts assum

Specifying HTML form names

2004-08-14 Thread Jacob Weber
I have a JSP with two forms, and they both need to go to the same action. But Struts assumes that the "name" property of the HTML form (e.g. ) should be the same as the name of the associated form bean. As a result, I can't use JavaScript to refer to one of the forms, since the

RE: Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Jim Barrows
> -Original Message- > From: Josh Holtzman [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 15, 2004 10:30 AM > To: 'Struts Users Mailing List' > Subject: RE: Tiles, Validation and reuse of HTML Form > > > Brian, > > I agree. > > In o

RE: Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Josh Holtzman
rrows [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 10:09 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Tiles, Validation and reuse of HTML Form > -Original Message- > From: Bryan Hunt [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 15, 2004 10:03 AM >

RE: Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Jim Barrows
> -Original Message- > From: Bryan Hunt [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 15, 2004 10:03 AM > To: Struts Users Mailing List > Subject: Re: Tiles, Validation and reuse of HTML Form > > > I do it with a separate action for each use case. I find i

Re: Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Bryan Hunt
e new product information appears in the same layout. Also on this page is an HTML form that is used to add items to the shopping cart. From this form a user can choose any one of the 6 products from a select menu, type a quantity, and submit the form.. To add items to the shopping cart. This form i

RE: Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Jim Barrows
> -Original Message- > From: Josh Holtzman [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 15, 2004 9:43 AM > To: 'Struts Users Mailing List' > Subject: Tiles, Validation and reuse of HTML Form > > > > In the struts config file we created a

Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Josh Holtzman
tains a photo and description of the product. On this page there is also a list of the other 5 products. By clicking on any one of these products, the page is refreshed, and the new product information appears in the same layout. Also on this page is an HTML form that is used to add items t

Re: Dynamic Generation of HTML Form Element in Struts

2004-04-21 Thread ganesh g
Hi U can generate Dynaaction elements "struts-config.xml" file. For eg: urs Ganesh - Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢

Dynamic Generation of HTML Form Element in Struts

2004-04-21 Thread Amol Yadwadkar
Hi List, Can any one suggest me a hint/path in Struts where I can generate dynamic Form Elements and also I shall be able to handle the Validations of those through the JavaScript. It will be an needy Help!!! Thankx in Advance!! Best regds, Amol