greetings a newbie question

2004-03-24 Thread dasa
hi, just joined the list, and i have a newbie question about struts design. this is where i am at. i have looked at struts about a year back, and rolled my own version of mvc web architecture, stealing several basic ideas from struts. at the time, it appeared that many features of struts were

collection of strings (newbie question)

2004-03-09 Thread steve hazelwood
I have an action that creates a bean. That bean has a property myStrings that returns a collection of String objects. On a jsp, I want to list the strings. If my jsp has this: logic:iterate id=myId name=myBean property=myStrings bean:write name=myId/ /logic:iterate Then I get an exception

Re: collection of strings (newbie question)

2004-03-09 Thread Daniel Henrique Alves Lima
Have you import logic taglibs ? steve hazelwood wrote: I have an action that creates a bean. That bean has a property myStrings that returns a collection of String objects. On a jsp, I want to list the strings. If my jsp has this: logic:iterate id=myId name=myBean property=myStrings

Re: collection of strings (newbie question)

2004-03-09 Thread steve hazelwood
Solved, well done. I'm glad I put 'newbie' in the subject line now :-) Thanks, Steve On 9 Mar 2004 at 11:03, Daniel Henrique Alves Lima wrote: Have you import logic taglibs ? steve hazelwood wrote: I have an action that creates a bean. That bean has a property myStrings that returns a

Re: collection of strings (newbie question)

2004-03-09 Thread Daniel H. F. e Silva
Hi all, Other possibility is to check whether 'myBean' exists in some scope. Cheers, Daniel Silva. --- Daniel Henrique Alves Lima [EMAIL PROTECTED] wrote: Have you import logic taglibs ? steve hazelwood wrote: I have an action that creates a bean. That bean has a property

Newbie question

2004-03-03 Thread Satya Narayan Dash
Hi, I am new to struts. I found a number of simple tutorials (with examples) to understand struts-1.0, but there seems to none for struts-1.1. I have gone through one struts-1.0 tutorial given at jspfinder.com, which is good. Can you please recommend for struts-1.1 (with examples)? Thanks,

Re: Newbie question

2004-03-03 Thread James Mitchell
: Satya Narayan Dash [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 9:31 AM Subject: Newbie question Hi, I am new to struts. I found a number of simple tutorials (with examples) to understand struts-1.0, but there seems to none for struts-1.1. I have gone through one

ActionForm boolean properties - Newbie question

2004-01-20 Thread Renato Romano
I have some trouble using a boolean (the primitive type) property inside an ActionForm. What I'd like to know is if Struts looks for a getProperty method or isProperty method... It seems Struts always calls the getProperty, but as I know it should call the isProperty!! Is the behavior with a

RE: ActionForm boolean properties - Newbie question

2004-01-20 Thread Andrew Hill
properties - Newbie question I have some trouble using a boolean (the primitive type) property inside an ActionForm. What I'd like to know is if Struts looks for a getProperty method or isProperty method... It seems Struts always calls the getProperty, but as I know it should call the isProperty

newbie question : cannot resolve symbol when compiling an Action class

2004-01-19 Thread lixin chu
sorry for this newbie question, tried, googled, but can not find an anwser: I have a Action class (myAction) and a utility class (myABC class), in myAction, I try to instantiate it: myABC abc = new myABC (..); when compiling, error msg: ~~~ cannot reolve symbol symbol

Re: newbie question : cannot resolve symbol when compiling an Action class

2004-01-19 Thread e-denton Java Programmer
, January 19, 2004 10:04 AM Subject: newbie question : cannot resolve symbol when compiling an Action class sorry for this newbie question, tried, googled, but can not find an anwser: I have a Action class (myAction) and a utility class (myABC class), in myAction, I try to instantiate

Re: newbie question : cannot resolve symbol when compiling an Action class

2004-01-19 Thread lixin chu
an be found that matches myABC (..). So, be sure there is such a constructor. - Original Message - From: lixin chu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 19, 2004 10:04 AM Subject: newbie question : cannot resolve symbol when compiling an Action class

newbie question/problem

2003-12-22 Thread Jim Anderson
I've been trying to modify the logon app from Struts in Action to use the new features in Struts 1.1 but am having a problem I haven't be able to solve. I replaced html:errors/ in Logon.jsp with html:messages id=error bean:write name=error/ /html:messages and get the following error:

RE: [other] newbie question/problem

2003-12-22 Thread Noel E. Lecaros
] newbie question/problem I've been trying to modify the logon app from Struts in Action to use the new features in Struts 1.1 but am having a problem I haven't be able to solve. I replaced html:errors/ in Logon.jsp with html:messages id=error bean:write name=error/ /html:messages and get

Utter Newbie Question

2003-11-12 Thread Joe Hertz
I'm making using struts for more or less than first time. I read the FAQ on how to handle logins to an application and I'm left with one question: Why stop a storing a Boolean in the session to determine logged-inness? Why not just store the (validated) User object in the session and check

Re: Utter Newbie Question

2003-11-12 Thread Arne Brutschy
Wednesday, November 12, 2003, 11:03:15 AM, you wrote: JH Why stop a storing a Boolean in the session to determine logged-inness? JH Why not just store the (validated) User object in the session and check for JH it's presence? That way, if it's there, one can utilize the data in the User JH object

Newbie question....redirect

2003-11-05 Thread Mathieu Grimault
Hi all ! Sorry, about a such stupid question but I try to have my application redirects to an external web site with some parameters. Here is an exemple : http://payOnline/$cashAmout/$name For the moment i'm just try to redirect to an external website like yahoo but the search path is always

Re: Newbie question....redirect

2003-11-05 Thread Nicolas De Loof
with a html:redirect href=http://www.yahoo.com; tag Nico. - Original Message - From: Mathieu Grimault [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:16 PM Subject: Newbie questionredirect Hi all ! Sorry, about a such stupid

Re: Newbie question....redirect

2003-11-05 Thread Marcella Turner
] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Newbie questionredirect Date: Wed, 5 Nov 2003 14:22:47 +0100 contextRelative is used to define a forward that is relative to the application context and not to the module context

Re: Newbie question....redirect

2003-11-05 Thread Nicolas De Loof
: Wednesday, November 05, 2003 4:06 PM Subject: Re: Newbie questionredirect Nicolas, I think your reply will help me with my post too - trying to switch web modules - help but I don't see a sendRedirect() method of the requestDispatcher object. How can I call this sendRedirect() - sounds like

Newbie question: how to reload the struts config file without rebooting tomcat?

2003-10-29 Thread Geert Van Landeghem
Hello all, how do I reload changes to the struts config file without rebooting tomcat? kind regards, Geert -Original Message- From: Frers Michael [mailto:[EMAIL PROTECTED] Sent: woensdag 29 oktober 2003 9:49 To: Struts Users Mailing List Subject: Re: a query regarding message-resources

Struts newbie question

2003-10-22 Thread Nathan Maves
I have a form that has two select boxes. One need to be pre-populated on load. The second will be populated when a use selects one of the elements in the first list. Can this be accomplished and if so how? I would really like to use DynaActionForms if possible. Nathan

RE: newbie question: results display on same page?

2003-10-14 Thread jagadeesh kumar movva
- From: mobile q [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 2:04 PM To: [EMAIL PROTECTED] Subject: newbie question: results display on same page? Hi, I am working on a page which has a user search form, the results should be displayed at the bottom of the page

hashtable newbie question

2003-10-14 Thread Peng, Meimin
Hi, I want to define a bean name called myBean which contains view hashtable. How can I approach it in jsp file? like this? bean:define id=myBean ?? /bean:define Thanks in advance. --Zoe CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying

newbie question: results display on same page?

2003-10-13 Thread mobile q
Hi, I am working on a page which has a user search form, the results should be displayed at the bottom of the page once user clicks on get button. I try to use logic:iterate tag to do the job. My problem: if I include this display loop inside html:form, it tells me the results are null when I

RE: newbie question: results display on same page?

2003-10-13 Thread Nicholson, Robb
, 2003 2:04 PM To: [EMAIL PROTECTED] Subject: newbie question: results display on same page? Hi, I am working on a page which has a user search form, the results should be displayed at the bottom of the page once user clicks on get button. I try to use logic:iterate tag to do the job. My

RE: newbie question: results display on same page?

2003-10-13 Thread mobile q
them together on one page. It's flexible enough so you can reuse one or more component elsewhere, or change your mind and separate them later, etc. -Original Message- From: mobile q [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 2:04 PM To: [EMAIL PROTECTED] Subject: newbie

html tag newbie question

2003-10-08 Thread Peng, Meimin
Hi, I am very new in struts and facing a problem now. Please help. What I want to do is when user click a image, it will link to yahoo.com which is defined as link.yahoo in the config property file. How can I approach this? After it generate the html source codes, it will be like a

RE: html tag newbie question

2003-10-08 Thread shirishchandra.sakhare
have a look at html:link tag documentation ...And try to use the struts tags as much as possible... -Original Message- From: Peng, Meimin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 5:23 PM To: 'Struts Users Mailing List' Subject: html tag newbie question Hi, I am very

RE: html tag newbie question

2003-10-08 Thread Peng, Meimin
Hi, I still don't know how to do it. I try to avoid hard code anything, have any logic, have html tag, and have javascripts in jsp file. Overall, jsp file will just display whatever I got from properties or beans. Is there a way to do like this for example: html:link href=bean:message

newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread victor gusz
Hi, guys: I have two methods in a DispatchAction class: save, delete and I have two buttons in a jsp page: save, delete. In order to successfully save and then forward to another page, I can do the following: html:submitbean:message key=button.save//html:submit html:hidden property=method

RE: newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread Jerome Devost
] Subject: newbie question: how to handle two dispatchAction methods in a jsp page? Hi, guys: I have two methods in a DispatchAction class: save, delete and I have two buttons in a jsp page: save, delete. In order to successfully save and then forward to another page, I can do the following

RE: newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread victor gusz
:33 To: [EMAIL PROTECTED] Subject: newbie question: how to handle two dispatchAction methods in a jsp page? Hi, guys: I have two methods in a DispatchAction class: save, delete and I have two buttons in a jsp page: save, delete. In order to successfully save and then forward

RE: newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread Jerome Devost
it will confuse Internet Explorer. -Original Message- From: victor gusz [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 14:04 To: Struts Users Mailing List Subject: RE: newbie question: how to handle two dispatchAction methods in a jsp page? Hi, Jerome: Thanks for helping. I tried out

newbie question

2003-08-27 Thread Venkat Jambulingam
I have two jsp pages. sicpage0.jsp and sicpage1.jsp sicpage0 is a static page. when I submit sicpage0, it calls an action class which populates sicpage1.jsp with data. Now I want to call sicpage1.jsp directly without first calling sicpage0.jsp. But sicpage1.jsp is not getting populated with

Re: newbie question

2003-08-27 Thread Bryce Fischer
Now I want to call sicpage1.jsp directly without first calling sicpage0.jsp. But sicpage1.jsp is not getting populated with data since the action class is not getting called. create a global forward to the action, and call the forward. -- Bryce Fischer [EMAIL PROTECTED]

Newbie question: Testing if collection is != null before iterating

2003-08-14 Thread Todor Sergueev Petkov
How can I test if a collection is not null before iterating through it? Does the logic:iterate tag do this ckeck and skip the iteration if the collection is null? Thanks a lot, Todor - To unsubscribe, e-mail: [EMAIL

RE: Newbie question: Testing if collection is != null before iterating

2003-08-11 Thread Alex Shneyderman
Check logic:notEmpty tag -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Todor Sergueev Petkov Sent: Saturday, August 09, 2003 12:32 PM To: Struts Users Mailing List Subject: Newbie question: Testing if collection is != null before iterating How

Newbie question, dynamic select boxes

2003-08-04 Thread Jose Maria Fernandez
Hi you all, i'm starting with struts and after reading and testing a bit, i have a question. Suppose I create a form where the user should choose a car model, for example, lets say model1, model2 and model3. Suppose that i need to get that models of a database. And suppose too that after the

RE: newbie-question: validation across multiple pages

2003-07-31 Thread Yansheng Lin
:). if(! errors.isEmpty()) { ... return (new ActionForward(page1)); } -Original Message- From: Sebastian F. Martin [mailto:[EMAIL PROTECTED] Sent: July 30, 2003 10:29 AM To: [EMAIL PROTECTED] Subject: newbie-question: validation across multiple

newbie-question: validation across multiple pages

2003-07-30 Thread Sebastian F. Martin
Hi all, I've been studying the mailing list but couldn't find anything that would help me. I'd be grateful if someone could give me a hint on this: I am collecting user input across multiple pages and validate it in the validate() method of the ActionForm. If an input field on the second or the

Newbie question :Rendering buttons of type submit and button

2003-07-29 Thread Jitesh Sinha
Hi all, How do you render following html with the help of struts-html tld : input type=submit name=Save value =Save input type=button name=Cancel value =Cancel I don't have any other info like other parameters to include on pressing any of the buttons . Thanks, Jitesh

RE: Newbie question :Rendering buttons of type submit and button

2003-07-29 Thread Hajratwala, Nayan (N.)
Mailing List Subject: Newbie question :Rendering buttons of type submit and button Hi all, How do you render following html with the help of struts-html tld : input type=submit name=Save value =Save input type=button name=Cancel value =Cancel I don't have any other info like other parameters

Re: newbie question!

2003-07-28 Thread Alen Ribic
Hi I couldn't spot anything wrong below, did you get any runtime exceptions? If so, show a snippet. --Alen Hello, This question probably might have been asked many a times. But I searched the archive (though not fully) but could not find this. So, if anybody has a solution please do let

Re: newbie question!

2003-07-28 Thread Samanth Athrey
Hi, There are no exceptions at all! Once the FormBean is executed the control is not passed on to the Servlet! Regards, Samanth Athrey Alen Ribic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I couldn't spot anything wrong below, did you get any runtime exceptions? If so, show

newbie question!

2003-07-27 Thread Samanth Athrey
Hello, This question probably might have been asked many a times. But I searched the archive (though not fully) but could not find this. So, if anybody has a solution please do let me know. I have developed a sample application, which takes in an input and based on that displays either a success

newbie question: how to get context path?

2003-07-25 Thread Daniel Joshua
Sorry for the newbie question... my brain not responding... Using mapping.findForward(xxx).getPath(), I am able to to get the the context-relative path. But how do I get the full path, eg. http://localhost:8080/myApp/xxx.do ? Regards, Daniel

RE: newbie question: how to get context path?

2003-07-25 Thread Mike Whittaker
-Original Message- From: Daniel Joshua [mailto:[EMAIL PROTECTED] Sent: 25 July 2003 10:48 To: 'Struts Users Mailing List' Subject: newbie question: how to get context path? Sorry for the newbie question... my brain not responding... Using mapping.findForward(xxx).getPath(), I am able

RE: newbie question: how to get context path?

2003-07-25 Thread Daniel Joshua
Oooops... thanks! Regards, Daniel -Original Message- From: Mike Whittaker [mailto:[EMAIL PROTECTED] Sent: Friday, 25 July, 2003 5:54 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: newbie question: how to get context path? -Original Message- From: Daniel

newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
Hi, I did not put my question in a nice method previously. I am trying to retrieve data from database and pass data into a JavaScript function as an Array and display it on my JSP page. If I have to write a Scriptlet inside JavaScript code to get data from db, what kind of Java data form

RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread James Childers
. -= J -Original Message- From: Rick Col [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 9:56 AM To: [EMAIL PROTECTED] Subject: newbie question: Java array to JavaScript Array Hi, I did not put my question in a nice method previously. I am trying to retrieve data

RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
James: Thanks for your nice presentation. I will try it out right away. regards, rick --- James Childers [EMAIL PROTECTED] wrote: You'll need to do a couple of things: 1) (Assuming you're using Struts, of course.) Create your Java array/collection/whatever in the Action that gets hit

RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
More questions about the following: 1) It says in logic tags reference: id: The name of a page scope JSP bean that will contain the current element of the collection on each iteration, if it is not null. So, it means myList ArrayList should conform to JavaBean routines, is that right? For

Newbie Question: Dyanamic JavaScript Array - Form Bean]

2003-07-25 Thread skhealy
Hey everyone, I'm new to Struts and was wondering if anyone has ever attempted to create a dynamic HTML table (using JavaScript) that gets and sets values contained in a form bean from a JavaScript array when rows in the table are being added or deleted and upon the form being submitted.

RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
Hi, I did the following, but the results were not displayed. Whats wrong with my code? products is a collection of ArrayLists, every arrayList contains a list of ProductBeans, ProductBean has productName and productId properties. products are retrieved in action class and are put into session

RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Kris Schneider
Man, this is really sick ;-). If I'm understanding you, maybe this will work (or maybe not...): var products = new Array(); logic:iterate id=productBeans name=products indexId=i var productBeansbean:write name=i/ = new Array(); logic:iterate id=productBean name=productBeans indexId=j

RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
Hahahahaha.Kris, yes this is sickening. More so after trying all possible solutions. This ruined my Friday :((. regards, Rick --- Kris Schneider [EMAIL PROTECTED] wrote: Man, this is really sick ;-). If I'm understanding you, maybe this will work (or maybe not...): var products =

Re: newbie question: Java array to JavaScript Array

2003-07-25 Thread Kris Schneider
So it's still not working? Can you post some of the generated JavaScript? I was shooting for something like this: var products = new Array(); var productBeans0 = new Array(); productBeans0[0] = [name0, id0]; productBeans0[1] = [name1, id1]; ... products[0] = productBeans0; var productBeans1 =

Re: Newbie question about form variables.

2003-07-18 Thread Sandeep Takhar
session scope or hidden fields on each page. sandeep --- Norr, Peter [EMAIL PROTECTED] wrote: I am developing a wizard style form.. How do I obtain the value submitted in the previous page of a form from the jsp page? For example, in step2.jsp I need to know what was selected in

Newbie question about form variables.

2003-07-17 Thread Norr, Peter
I am developing a wizard style form.. How do I obtain the value submitted in the previous page of a form from the jsp page? For example, in step2.jsp I need to know what was selected in step1.jsp. Thanks! Peter --

RE: Newbie question about form variables.

2003-07-17 Thread Mike Jasnowski
: Newbie question about form variables. I am developing a wizard style form.. How do I obtain the value submitted in the previous page of a form from the jsp page? For example, in step2.jsp I need to know what was selected in step1.jsp. Thanks! Peter

RE: Newbie question about form variables.

2003-07-17 Thread Norr, Peter
Yes I understand. But how do I acces the Form Bean from the jsp page? Peter -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 2:40 PM To: Struts Users Mailing List Subject: RE: Newbie question about form variables. one way is to have

RE: Newbie question about form variables.

2003-07-17 Thread Adam Levine
PROTECTED] Subject: RE: Newbie question about form variables. Date: Thu, 17 Jul 2003 15:02:11 -0400 Yes I understand. But how do I acces the Form Bean from the jsp page? Peter -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 2:40 PM

RE: Newbie question about form variables.

2003-07-17 Thread Norr, Peter
Does Struts 1.1 come with JSTL implementation? If so How do I use it? Peter -Original Message- From: Adam Levine [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 3:05 PM To: [EMAIL PROTECTED] Subject: RE: Newbie question about form variables. scriptlets (bad choice) custom

RE: Newbie question about form variables.

2003-07-17 Thread Mike Jasnowski
: Newbie question about form variables. Yes I understand. But how do I acces the Form Bean from the jsp page? Peter -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 2:40 PM To: Struts Users Mailing List Subject: RE: Newbie question about

RE: Newbie question about form variables.

2003-07-17 Thread Adam Levine
PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Newbie question about form variables. Date: Thu, 17 Jul 2003 15:12:33 -0400 Does Struts 1.1 come with JSTL implementation? If so How do I use it? Peter -Original Message- From: Adam Levine [mailto:[EMAIL PROTECTED] Sent

RE: Newbie question about form variables.

2003-07-17 Thread Norr, Peter
Yes! But I am using DynaActionForm. I would also like to query the value submitted from step1.jsp.. -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 3:14 PM To: Struts Users Mailing List Subject: RE: Newbie question about form

RE: Newbie question about form variables.

2003-07-17 Thread Mike Jasnowski
It doesn't matter, a DynaActionForm has a name just like other action forms. -Original Message- From: Norr, Peter [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 3:18 PM To: 'Struts Users Mailing List' Subject: RE: Newbie question about form variables. Yes! But I am using

RE: Newbie question about form variables.

2003-07-17 Thread Mike Jasnowski
Mailing List Subject: RE: Newbie question about form variables. It doesn't matter, a DynaActionForm has a name just like other action forms. -Original Message- From: Norr, Peter [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 3:18 PM To: 'Struts Users Mailing List' Subject: RE: Newbie

RE: Newbie question about form variables.

2003-07-17 Thread Norr, Peter
:20 PM To: Struts Users Mailing List Subject: RE: Newbie question about form variables. It doesn't matter, a DynaActionForm has a name just like other action forms. -Original Message- From: Norr, Peter [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 3:18 PM To: 'Struts Users

Re: newbie question - setting form parameter in Javascript

2003-07-12 Thread Firat TIRYAKI
PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 11, 2003 9:15 PM Subject: newbie question - setting form parameter in Javascript Hi, I have an HTML form with Submit and Cancel buttons, and a drop down list, which when clicked submits the form. I use Javascript to submit the form when

Re: newbie question - setting form parameter in Javascript

2003-07-12 Thread Rick Reumann
My Javascript function is given below: SCRIPT language=JavaScript function submitForm(form) { form.action.value=Lookup; form.submit(); return true; } # and I invoke this function in my HTML form as shown below:

Re: newbie question - setting form parameter in Javascript

2003-07-12 Thread Shyam A
Mark, Thanks a lot for your mails. I have used action as a form bean property and not as a parameter in struts-config. Unfortunately, the Javascript function doesn't seem to work...it does not set the value of the ActionForm property, action. When I tried to print out the value of the action

newbie question - setting form parameter in Javascript

2003-07-11 Thread Shyam A
Hi, I have an HTML form with Submit and Cancel buttons, and a drop down list, which when clicked submits the form. I use Javascript to submit the form when the dropdown list is clicked. I have a property called action defined in my ActionForm class that identifies the Submit and Cancel

Re: newbie question - setting form parameter in Javascript

2003-07-11 Thread James Mitchell
You will need to create a hidden field named action, with a value of Lookup: html:hidden property=action value=Lookup/ My question to you iswhy Lookup? What does that have to do with your form? Here's a sample: SCRIPT language=JavaScript function submitForm(form) {

Re: newbie question - setting form parameter in Javascript

2003-07-11 Thread Shyam A
James, Thanks for your mail. I guess I need to elaborate a little bit. My HTML form can be submitted in 2ways. 1. Clicking the Submit button. 2. Clicking the drop-down Clicking the drop-down triggers a different action than clicking the Submit button. Selecting a value in the drop-down would

Re: newbie question - setting form parameter in Javascript

2003-07-11 Thread Mark Lowe
check out dispatch actions.. you can have multiple execute methods with dispatch action ... Your Action class extends DispatchAction instead of action (check the docs) public final ActionForward submit( ActionMapping mapping,

Re: newbie question - setting form parameter in Javascript

2003-07-11 Thread James Mitchell
I think I see where you are goingtry setting the form action instead: SCRIPT language=JavaScript function submitForm(form) { document.frm.action=lookup.do; // --Change this to not be hard-coded form.submit(); return true; } /SCRIPT form name=frm action=? method=GET input type=hidden

Re: newbie question - setting form parameter in Javascript

2003-07-11 Thread Mark Lowe
Its better that this is posted to the list as well, after all its a good question and hopefully an adequate answer. script language=javascript type=text/javascript !-- function lookup(form) { form.elements['action'].value = lookup; form.submit(); } //-- /script html:form

Re: newbie question - setting form parameter in Javascript

2003-07-11 Thread Mark Lowe
opps my action in struts config is wrong... But you should still have the right idea.. On Saturday, July 12, 2003, at 12:45 AM, Mark Lowe wrote: Its better that this is posted to the list as well, after all its a good question and hopefully an adequate answer. script language=javascript

Newbie question: DispatchAction subclassing

2003-07-01 Thread Paula Coll
Hi, I am currently developing a webapp with Struts 1.1 and I have decided to use the DispatchAction to group functionality, instead of having a large bunch of single Action classes. Now I face the following problem: I want to have some pre-processing generic code invoked for every action, but I'd

Re: what setters do i implement in an indexed tag --NewBie question

2003-06-12 Thread Adam Hardy
Sashi, your person bean must have getName(), setName() and getPhoneNo(), setPhoneNo(). Everybody: I haven't come across the html:taglib indexed property before. This seems to do what nested: tags do - is this functional overlap? Generally with JST taglib as well, there seems to be a wide

Newbie Question: Multiple User Input Screen

2003-06-12 Thread Tuan T
Sorry, if this question has been posted before (I just joined the group) Is there anyway to browse thru all the group messages on the web? I am trying to implement multiple input pages where the user will enter input data from one page to the next by using the next button. How do I capture all

RE: Newbie Question: Multiple User Input Screen

2003-06-12 Thread Mike Jasnowski
To: [EMAIL PROTECTED] Subject: Newbie Question: Multiple User Input Screen Sorry, if this question has been posted before (I just joined the group) Is there anyway to browse thru all the group messages on the web? I am trying to implement multiple input pages where the user will enter input data

RE: Newbie Question: Multiple User Input Screen

2003-06-12 Thread Mike Jasnowski
Hint: Search for Wizard -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:20 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Newbie Question: Multiple User Input Screen Yes, if you go to the Struts pages on Jakarta

RE: what setters do i implement in an indexed tag --NewBie question

2003-06-12 Thread John Greenhill
setters do i implement in an indexed tag --NewBie question Sashi, your person bean must have getName(), setName() and getPhoneNo(), setPhoneNo(). Everybody: I haven't come across the html:taglib indexed property before. This seems to do what nested: tags do - is this functional overlap

RE: what setters do i implement in an indexed tag--NewBie question

2003-06-12 Thread Sashi Ravipati
--NewBie question Sashi, your person bean must have getName(), setName() and getPhoneNo(), setPhoneNo(). Everybody: I haven't come across the html:taglib indexed property before. This seems to do what nested: tags do - is this functional overlap? Generally with JST taglib as well, there seems

Newbie Question: Tiles and html:link how to make it work.

2003-06-05 Thread Davidson, Glenn
I am new to Struts and Tiles and am trying to make it work. I have written a simple web site that uses the html:link forward=some forward name ... and this works well. The some forward name is currently defined in the global forwards section of the struts-config.xml I have looked at the

RE: Newbie Question: Tiles and html:link how to make it work.

2003-06-05 Thread Bailey, Shane C.
To: 'Struts Users Mailing List' Subject: Newbie Question: Tiles and html:link how to make it work. I am new to Struts and Tiles and am trying to make it work. I have written a simple web site that uses the html:link forward=some forward name ... and this works well. The some forward name is currently

RE: Newbie Question: Tiles and html:link how to make it work.

2003-06-05 Thread Davidson, Glenn
Glenn -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:25 PM To: 'Struts Users Mailing List' Subject: RE: Newbie Question: Tiles and html:link how to make it work. Your forward path can be a Tiles Def in the struts-config. You don't

RE: Newbie Question: Tiles and html:link how to make it work.

2003-06-05 Thread Bailey, Shane C.
on this forum. -Original Message- From: Davidson, Glenn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:45 PM To: 'Struts Users Mailing List' Subject: RE: Newbie Question: Tiles and html:link how to make it work. Thanks for the quick response! Lets say I have a menu item

RE: Newbie Question: Tiles and html:link how to make it work.

2003-06-05 Thread Davidson, Glenn
Glenn -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 3:19 PM To: 'Struts Users Mailing List' Subject: RE: Newbie Question: Tiles and html:link how to make it work. Like I said. Don't link to any JSPs from a JSP. So you need to look

RE: Newbie Question: Tiles and html:link how to make it work.

2003-06-05 Thread Bailey, Shane C.
want to go. In posts from yesterday or the day before I posted exactly how I do it for a concrete example. -Original Message- From: Davidson, Glenn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 4:48 PM To: 'Struts Users Mailing List' Subject: RE: Newbie Question: Tiles

Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Leon
Hi, I have DataAccessException thrown by DAO class and catched by BusinessDeligate class. ApplicationException thrown by BusinessDeligate class and catched by MyAction class. I want to send a jsp to clients to display a message that the clients submit a duplicate entry in their request. What

RE: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Mike Jasnowski
Return a forward appropriate to the exception caught? -Original Message- From: Leon [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 2:45 PM To: Struts Users Mailing List Subject: Newbie question: how does MyAction class handle Exceptions? Hi, I have DataAccessException thrown

Re: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Leon
Message - From: Mike Jasnowski [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 2:45 PM Subject: RE: Newbie question: how does MyAction class handle Exceptions? Return a forward appropriate to the exception caught? -Original Message- From

Re: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Erik Price
Leon wrote: I should forward an ApplicationException to MyAction class and then, MyAction finds an appropriate jsp based on the message in ApplicationException. But, how can I know the SQLException thrown by persistance tire is duplicate entery SQLException or other SQLException? Put an

RE: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Bailey, Shane C.
otherwise / /global-exceptions I like keeping the try catches out of my Action class. -Original Message- From: Leon [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 3:33 PM To: Struts Users Mailing List Subject: Re: Newbie question: how does MyAction class handle

NewBie Question

2003-04-04 Thread Vangelis Konstantinis
Hi to all, I am new to Struts-Tiles(1-day), I am new to this technology, i would to use it in a web-application, My questions is: Can the Struts-Tile colloborate Ok with JavaScript and XSLT. In other words can in a Jsp Page use Java Script XSLT with Tiles and work OK? Thanks in advance.

RE: NewBie Question

2003-04-04 Thread Mick . Knutson
help.. Sorry. -Original Message- From: Vangelis Konstantinis [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:42 PM To: [EMAIL PROTECTED] Subject: NewBie Question Hi to all, I am new to Struts-Tiles(1-day), I am new to this technology, i would to use it in a web-application, My

  1   2   3   4   5   >