RE: struts and java script and jsp

2005-01-25 Thread Nadia Kunkov
being put in because you set the focus attribute of the html:form tag, but there is no attribute called username. w On Tue, 25 Jan 2005 11:20:36 -0500 "Nadia Kunkov" <[EMAIL PROTECTED]> wrote: >Hi, > >I'm not sure if this question is really about struts even th

struts and java script and jsp

2005-01-25 Thread Nadia Kunkov
Hi, I'm not sure if this question is really about struts even though it occures in my struts application. My apologies if this is a bit off topic. I have a jsp logon page with two input fields "userId' and "password" I of course have a corresponding ActionForm with the same attributes. When I op

html:cancel tries to validate, but works on other page

2005-01-18 Thread Nadia Kunkov
Hi, I have two almost identical jsp pages with cancel buttons. I'm using dispatch action so method "cancel" in my action just does a forward to some other page. In the documentation it's said that cancel "...causes the action servlet to bypass calling the associated form bean validate() meth

RE: Dispatch action and java script?

2005-01-11 Thread Nadia Kunkov
html:submit, and have it do the form.submit(). Simple, and flexible - plus you can prevent the double-click submitters. :-) Larry On Tue, 11 Jan 2005 11:58:37 -0500, Nadia Kunkov <[EMAIL PROTECTED]> wrote: > Hi, > I implemented DispatchAction and I have a page with three submit buttons, >

Dispatch action and java script?

2005-01-11 Thread Nadia Kunkov
Hi, I implemented DispatchAction and I have a page with three submit buttons, each executes a method in my dispatch action. This works fine but I would like to make sure that one of the radio buttons that I have on the page is clicked. My validation is turned off for this action since there are

RE: html:options won't get preselected!

2004-12-30 Thread Nadia Kunkov
You are right! It was the key against the name. Thank you so much. Nadia -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 11:20 AM To: Struts Users Mailing List Subject: Re: html:options won't get preselected! From: "Nadia Kunko

html:options won't get preselected!

2004-12-30 Thread Nadia Kunkov
Hi, I have a form that my action prepopulates and that works fine. For example: Country is FormBean property that is populated from the database by my action. This is all good but I want the user to be able to change the country so I need a dropdown list. Here is what I have:

RE: struts and Tomcat4.0.4

2004-12-30 Thread Nadia Kunkov
----- From: "Nadia Kunkov" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Jay Chandran" <[EMAIL PROTECTED]> Sent: Thursday, December 30, 2004 7:33 PM Subject: RE: struts and Tomcat4.0.4 Thanks, Connections were a part of my problem actually. But that got

RE: struts and Tomcat4.0.4

2004-12-30 Thread Nadia Kunkov
connection the system hangs. - Original Message - From: "Nadia Kunkov" <[EMAIL PROTECTED]> To: "Struts help (E-mail)" Sent: Wednesday, December 29, 2004 9:12 PM Subject: struts and Tomcat4.0.4 Hi, I'm running tomcat4.0.4 on a Fedora core 1 box. I'm bulding a

struts and Tomcat4.0.4

2004-12-29 Thread Nadia Kunkov
Hi, I'm running tomcat4.0.4 on a Fedora core 1 box. I'm bulding an application with struts and I came across a problem. Every time my app has a problem like not finding the proper forward or problem with a sql statment my app hangs. When I fix the problem and go to restart the Tomcat it doesn't s

Tiles and Tabs

2004-12-08 Thread Nadia Kunkov
HI, Another newbie question. I need to build several pages with tabs. I'm using tiles. What is the best way to implement it? Any examples, tutorials? Thanks Nadia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: Tiles or Frames or Both

2004-12-08 Thread Nadia Kunkov
Thanks to all of you for the replies. I decided to go with tiles since my app is very simple. Again, I appreciate the input. Nadia -Original Message- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 4:07 PM To: Struts Users Mailing List Subject: Re: Ti

RE: Tiles or Frames or Both

2004-12-07 Thread Nadia Kunkov
Nadia, > > I would bet on tiles. I avoid frames like the plague, for many > reasons. So, use tiles. It's the struts way of doing what you want. > A great tutorial on tiles: http://www.arc-mind.com/papers/advanced-tiles.pdf > > Best regards, > Luiz Esmiralha >

RE: Tiles or Frames or Both

2004-12-06 Thread Nadia Kunkov
, use tiles. It's the struts way of doing what you want. A great tutorial on tiles: http://www.arc-mind.com/papers/advanced-tiles.pdf Best regards, Luiz Esmiralha On Mon, 6 Dec 2004 14:43:44 -0500, Nadia Kunkov <[EMAIL PROTECTED]> wrote: > Hi, > This is a struts newbie question.

RE: Tiles or Frames or Both

2004-12-06 Thread Nadia Kunkov
-Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 2:44 PM To: Struts help (E-mail) Subject: Tiles or Frames or Both I had to fix the picture below. Here it is: Hi, This is a struts newbie question. I'm building an application wit

Tiles or Frames or Both

2004-12-06 Thread Nadia Kunkov
Hi, This is a struts newbie question. I'm building an application with the following layout: | Some header | | --

RE: JSTL when...test won't work.

2004-12-02 Thread Nadia Kunkov
: Re: JSTL when...test won't work. Nadia Kunkov wrote the following on 12/2/2004 2:06 PM: > Well, your suggestion almost worked. I got the keys and values printed out > but the "test" wouldn't work! > Here is what I tried to do: > > > > Fou

RE: JSTL when...test won't work.

2004-12-02 Thread Nadia Kunkov
ursday, December 02, 2004 12:18 PM To: 'Struts Users Mailing List' Subject: RE: JSTL when...test won't work. What happens when you try: instead of logic:iterate > Nadia Kunkov wrote: > > > Hello, > > > > This is my first try with JSTL and somewhere I

RE: JSTL when...test won't work.

2004-12-02 Thread Nadia Kunkov
PROTECTED] Subject: Re: JSTL when...test won't work. Found formRoles manager NOT Found Nadia Kunkov wrote: > Hello, > > This is my first try with JSTL and somewhere I'm getting the syntax wrong. > Could you please he

JSTL when...test won't work.

2004-12-02 Thread Nadia Kunkov
Hello, This is my first try with JSTL and somewhere I'm getting the syntax wrong. Could you please help me? I have a bean called user in the session. One of this bean's properties is a hash map called frmRoles. I need to go over the hashmap's keys and test if a particular key exists. I'm no

RE: Newbie never displays errors

2004-10-15 Thread Nadia Kunkov
ot;)); } saveMessages(request, (ActionMessages) errors); return (errors); } Shed. > -Original Message- > From: Nadia Kunkov [mailto:[EMAIL PROTECTED] > Sent: Friday, October 15, 2004 10:13 AM > To: Struts Users Mailing List &

RE: Newbie never displays errors

2004-10-15 Thread Nadia Kunkov
: 'Struts Users Mailing List' Subject: RE: Newbie never displays errors Looks like you are not saving your errors. Try this after errors.add: saveMessages(request, (ActionMessages) errors); > -Original Message- > From: Nadia Kunkov [mailto:[EMAIL PROTECTED] > Sent: Friday,

RE: Newbie never displays errors

2004-10-15 Thread Nadia Kunkov
ring "error". You added each item under keys like "countryName" and "countryCapital" so you could access them individually like this: AND Regards, David -Original Message- From:

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
Mailing List Subject: RE: Newbie never displays errors Did you call saveErrors() or saveMessages() in your Action to save the messages into the (request) scope for use in the JSP? -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:59

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
the errors from the area "countryName" and present them for the bean:write tag to use as the name "error" (see id=".."). Have you tried this yet? Regards, David -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13,

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
the global errors word if you don't specify anything else. Regards, David -----Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:31 PM To: Struts Users Mailing List Subject: RE: Newbie never displays errors Thanks Did that and specified th

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
, Use this to write your message : will write error message who are call in your validate method and will check if these message are present. Charles Gouin-Vallerand -Original Message- From: Nad

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
will write error message who are call in your validate method and will check if these message are present. Charles Gouin-Vallerand -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: October 13, 2004 11:16 AM To:

Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
Hi, I have gone through multiple postings and followed the suggestions about displaying the errors. I just need another pair of eyes to look at this, I'm probably missing something. I can't display errors on the page. I know that I go through the validate method and it finds errors because I

RE: Dispatch Action and Validate - rephrased subject

2004-10-04 Thread Nadia Kunkov
big fan of code first and optimize later, but that does not mean to use resources that are clearly irrelevant first and change your whole strategy later. Have you looked at the code in DispatchAction? Why would you want to use it for this? Michael McGrady Nadia Kunkov wrote: >I rephrased

RE: Validate some forms and not the others. How?

2004-10-04 Thread Nadia Kunkov
/ do the rest of my stuff here } I guess the other alternative would be to put some logic in the ActionForm's validate method - but that would be kind of duplicating the decision logic in the DispatchAction Niall - Original Message - From: "Nadia Kunkov" <[EMAIL PRO

Dispatch Action and Validate - rephrased subject

2004-10-04 Thread Nadia Kunkov
I rephrased the subject of this posting. The old one was really wrong. Hi, I'm building an application using DispatchAction. I have several screens that use the same ActionForm and I set validate to "true" for this action form. The first page of my app is just a jsp with a single button ( I

Validate some forms and not the others. How?

2004-10-04 Thread Nadia Kunkov
Hi, I'm building an application using DispatchAction. I have several screens that use the same ActionForm and I set validate to "true" for this action form. The first page of my app is just a jsp with a single button ( I have to start somewhere :) . When I click the button on this first page w

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Nadia Kunkov
plain /wrong/! > > Never trust input you get back from a client. Never. > > Brantley > >> -Original Message- >> From: Nadia Kunkov [mailto:[EMAIL PROTECTED] >> Sent: Thursday, September 30, 2004 9:58 AM >> To: Struts Users Mailing List >> Subject:

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Nadia Kunkov
where is the advantage? Nadia Kunkov wrote: > Hi, > I'm wondering if I should use validate() method of ActionForm instead of JavaScript > to validate the form. I can see the advantage of validate() when you have an > internationalized application, but otherwise why would I ha

Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Nadia Kunkov
Hi, I'm wondering if I should use validate() method of ActionForm instead of JavaScript to validate the form. I can see the advantage of validate() when you have an internationalized application, but otherwise why would I have an overhead of going back to the server when I can do the validation

RE: within , how to use?

2004-09-29 Thread Nadia Kunkov
with the data that come in the DTO. finally in the jsp you use the html:text as i told u before. luck! On Wed, 29 Sep 2004 15:25:41 -0400, Nadia Kunkov wrote > OK. I obviously don't know enough to use the tags properly even > though I've been playing with struts for a wee

RE: within , how to use?

2004-09-29 Thread Nadia Kunkov
Name", the html:text defaults to using the default bean for the Action. Since you already have one, that is why I suggested putting the DTO in the request scope. Regards, David -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 3:2

RE: within , how to use?

2004-09-29 Thread Nadia Kunkov
e in the struts-congig.xml? does the action of the html:form use the bean-form myBeanName? On Wed, 29 Sep 2004 15:03:02 -0400, Nadia Kunkov wrote > Hi, newbie question again. > I'm trying to use within tag. > > Here is how I use it with just plain HTML and it works: > or nam

within , how to use?

2004-09-29 Thread Nadia Kunkov
Hi, newbie question again. I'm trying to use within tag. Here is how I use it with just plain HTML and it works: or etc. I'd like to use or I tried but that's not right. Could you help me with this? Also, is having the bean in a session or request with data from the database and then

bean:write String vs Integer

2004-09-24 Thread Nadia Kunkov
Hi, I'm sort of repeating my previous posting but I narrowed down my problem. I apologize if it's trivial, I've just started with struts. The following line works perfectly when countryName is a String attribute of a bean stored in a session This line gives me an error: "Cannot find message res

newbie: logic:iter and radio button value extracted from DB

2004-09-24 Thread Nadia Kunkov
Hi, I have gone through hundreds of postings on the e-mail list and sort of found the answer to my question but can't get it to work. I have a Collection (ArrayList) called countryList stored in my session that contains several DTO objects with data from the Database. I have DTO named CountryDTO

newbie Question, creating buttons

2004-09-21 Thread Nadia Kunkov
I'm still figuring out how to use struts tags. I'm trying to have three buttons ( add, edit ,delete) with a property called method so that I can use DispatchAction. Here is a snippet of my jsp. When I look at it in the browser I don't see the buttons. What am I doing wrong? Also, is Dispat

RE: Data_Source_Key depricated, newby question

2004-09-20 Thread Nadia Kunkov
Thanks Dirk! Nadia -Original Message- From: Dirk Markert [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 10:10 AM To: Struts Users Mailing List Subject: Re: Data_Source_Key depricated, newby question Hello Nadia, use org.apache.struts.Globals.DATA_SOURCE_KEY **

Data_Source_Key depricated, newby question

2004-09-20 Thread Nadia Kunkov
Hi, I'm just starting with Struts 1.1 and am trying to set up a datasource. When I compile my class I get a worning that Action.Data_Source_Key is deprecated. Could you point me to where I can look up a newer API? All my books use DATA_SOURCE_KEY. What do I use insted? Here is the line the