Re: Struts and DreamWeaver

2004-12-23 Thread Antony Paul
I face the same problem. It is more complicated if used with or Tiles. So I dont give the JSP pages back to graphics designer for editing because it wont display it properly and no Struts html tags are understood and no html input elements displayed. So to edit HTML I have to go through all the

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
When you execute an action the name of the action from used is set in a request scope attribute "org.apache.struts.action.mapping.instance". It's a fairly simple matter to get the actual actionform object if you know the scope. For instance, all my forms are session scope so I can get the just-used

Problem with and HashMap

2004-12-23 Thread Peter Neu
Hello all, I have a problem with the tag. I need to iterate over a HashMap which stores wrapper objects(which include the actual data). A wrapper class has for example one attribute "velocity". As far as I know the only way to access such a HashMap is this method: Is there any way to

Re: Inheritance of DynaActionForms

2004-12-23 Thread Radu Badita
Regarding the inheritance of DynaActionForms I've once read an very good and interesting article of someone who found an workaround. I don't have the url though, so maybe you'll get lucky with google ;-) Hi, I am looking for a "Best practice" of using the ActionForms. We are using lot of Forms(b

RE: non-HTML attributes

2004-12-23 Thread Freddy Villalba A.
Well, I'm no guru in this area, but I'd say, from some postings I've read on the net, that some work has been done in that matter, yet nothing "official". In any case, it's not an issue for me (therefore, my not worrying at all about that). Despite this, I'm also interested to know if this has beco

Re: Problem with and HashMap

2004-12-23 Thread Sunny
Peter Neu wrote: Hello all, I have a problem with the tag. I need to iterate over a HashMap which stores wrapper objects(which include the actual data). A wrapper class has for example one attribute "velocity". As far as I know the only way to access such a HashMap is this method:

Which setter do I need in the ActionForm for this example?

2004-12-23 Thread Zsolt Koppany
Hi, I have tried several setters in the Form class but none of them are called when the form is terminated. How should me setter look like to the property "dropDownSelection". The getter method is: public Map getDropDownSelection() { return dropDownSelection; } The setter "setDropDownSelection

Re: bean:write filter question

2004-12-23 Thread Derek Broughton
On Wednesday 22 December 2004 16:42, Jeff Beal wrote: > > The only thing that I always forget is that nodeValue() only returns a > value for text nodes. It's not like XSLT where the text value of an > element is the text value of all contained text nodes. So, basically, > this.nodeValue wouldn't

NullPointerException

2004-12-23 Thread uma.k
I get NullPointerException in validate() at this line errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.text.required")); This is my ApplicationResources.properties file with this line error.text.required=Text is required What could be the reason for NullPointerException? Uma

Re: NullPointerException

2004-12-23 Thread DGraham
IF the exception is actually being thrown here, then I'm guessing that you haven't instantiated a instance of ActionErrors e.g. ActionErrors errors = new ActionErrors(); Dennis "uma.k" <[EMAIL PROTECTED]> 12/23/2004 07:40 AM Please respond to "Struts Users Mailing List" To "'Struts Users

Re: bean:write filter question

2004-12-23 Thread Jeff Beal
Here's a quick DOM-compliant function for getting the XSLT-like node value for any element or text node in the DOM. (nodeType property returns 1 for elements and 3 for text nodes) function getText(element) { if (element.nodeType == 1) { var concatenation = ''; for(var i = 0; i < eleme

Nightly builds after 12/20 are empty

2004-12-23 Thread Robert Taylor
Apologies if this has already been discussed, but I just attempted getting the most current nightly build from here: http://svn.apache.org/builds/struts/nightly/struts-20041222.zip And its an empty file. Also I get an Internal Server Error when trying to get the current GA release from here: ht

RE:NullPointerException

2004-12-23 Thread uma.k
Hi, The solution is perfect. I forgot initialization. Now I dont get any error but nothing is displayed when the error is actually to be thrown. I get blank page and it doesn't go the actual page and show the error. Here is my struts-config.xml Any ideas? Uma -Origin

RE: Accessing my form from an included page

2004-12-23 Thread Donie Kelly
[Donie Kelly] Hi Guys OK, I ran through most of what your are telling me and must first thank you all for the detailed responses. I'm sure I need to explain my case a bit more clearly and please let me know if what I am trying to do is easier if I take some other approach as I'm new to struts. 1

RE: Accessing my form from an included page

2004-12-23 Thread fzlists
That's what one of my solutions was too, although I wasn't 100% sure the mapping instance was actually in request (I thought I remembered seeing it, but wasn't sure). The argument against doing that though is that the attribute name could conceivably be changed down the road, breaking your code

Re: Accessing my form from an included page

2004-12-23 Thread Dakota Jack
On Thu, 23 Dec 2004 09:29:31 -, Paul McCulloch <[EMAIL PROTECTED]> wrote: > When you execute an action the name of the action from used is set in a > request scope attribute "org.apache.struts.action.mapping.instance". It's a > fairly simple matter to get the actual actionform object if you kno

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
I didn't notice this in the thread - but I didn't read it in depth as it was pretty long. I see more risk in one of my developers forgetting to add the call than in the attribute name Struts uses changing. If that's a real concern why not use a custom request processor to put the mapping in an att

RE: Accessing my form from an included page

2004-12-23 Thread fzlists
On Thu, December 23, 2004 9:13 am, Donie Kelly said: > [Donie Kelly] Hi Guys > > OK, I ran through most of what your are telling me and must first thank > you > all for the detailed responses. You spawned an interesting thread! The seemingly simple questions are usually the ones that do that th

Re: some logic help

2004-12-23 Thread Dakota Jack
Oh, I misunderstood. Sorry! Off the top of my head without much thought, I would just create a ThirtyRecordsAction which would have a boolean switch for downloading the records or maybe create a special data structure just for this. I use a fairly standard list iterator and handler pattern which

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
1) You'll pretty much always have a valid session - the container will create one for you if it isn't already there. What you need to do is establish if an *initialised* session is there. One way to do this would bet to, in your initialise session action, create a session scope attribute to say s

RE: Accessing my form from an included page

2004-12-23 Thread fzlists
On Thu, December 23, 2004 9:36 am, Paul McCulloch said: > I didn't notice this in the thread - but I didn't read it in depth as it > was > pretty long. A long thread?? With Jack and I involved?!? Surely you jest... :) We're probably the two most verbose guys around these parts! > I see more r

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
Frank, Although your solution would work I'd be apprehensive about any solution which involves doing anything manually at the start of each action. I'd suggest that anything that needs to happen for each & every action is better suited to a modified RequestProcessor, or a Filter. As you want to

Re: Which setter do I need in the ActionForm for this example?

2004-12-23 Thread Richard Yee
Zsolt, The selected item in a html:select input is typically a String property. It is separate from the collection that is used to populate a dropdown list. You should have a getter and setter for a string property and use that property as the value of the "property" attribute of the html:selec

Re: Accessing my form from an included page

2004-12-23 Thread fzlists
> Lord, Frank --- no worries. One of the worst things is people who > take things too seriously and read jots and tiddles on these lists. > Relax with me. Sounds like therapy? LOL ;-) Therapy... I could use that :) > I did not mean that it was in the response object but accessed within > the

RE: Accessing my form from an included page

2004-12-23 Thread fzlists
On Thu, December 23, 2004 9:49 am, Paul McCulloch said: > Frank, > > Although your solution would work I'd be apprehensive about any solution > which involves doing anything manually at the start of each action. I'd > suggest that anything that needs to happen for each & every action is > better >

Re: Required help to name a worksheet in xls

2004-12-23 Thread Hubert Rabago
Take a look at Jakarta POI. http://jakarta.apache.org/poi/ They make it easy to do stuff like this. On Thu, 23 Dec 2004 12:43:17 +0530, Shiva Narayana <[EMAIL PROTECTED]> wrote: > Hey this is new to me plz send me how u r creating the excel sheet.. > I ll appreciate for it > > Regards > S

Re: Struts and DreamWeaver

2004-12-23 Thread Ashish Kulkarni
Hi I use macro media dreamweaver and can add tag library and so can support struts or jstl, i explained my graphical designer to use these tags instead of html tags and it worked out well, try teaching graphical designer to use tags.. Ashish --- Erik Weber <[EMAIL PROTECTED]> wrote: > I completed

Re: Nightly builds after 12/20 are empty

2004-12-23 Thread Joe Germuska
At 8:32 AM -0500 12/23/04, Robert Taylor wrote: Apologies if this has already been discussed, but I just attempted getting the most current nightly build from here: http://svn.apache.org/builds/struts/nightly/struts-20041222.zip And its an empty file. Don Brown made a pretty big change to the cor

jars in 1.2.6

2004-12-23 Thread Raphael Gallo
Hi, I'm migrating from Struts 1.1 to 1.2.6 and I'm missing the struts_el.jar...is it avaliable in the main struts.jar? Is there any documentation related to differences in the JARs from 1.1 to 1.2.6 - To unsubscribe, e-mail: [E

Flash buttons in struts???

2004-12-23 Thread Donie Kelly
Hi all I have lovely pages made with flash buttons but does anybody know how to submit forms etc using flash buttons??? Thanks Donie -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.4 - Release Date: 22/12/2004

RE: Which setter do I need in the ActionForm for this example?

2004-12-23 Thread Zsolt Koppany
Richard, Thank you, but did you see that I have set multiple="true" ? Zsolt > -Original Message- > From: Richard Yee [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 23, 2004 4:01 PM > To: Struts Users Mailing List > Subject: Re: Which setter do I need in the ActionForm for this exa

RE: jars in 1.2.6

2004-12-23 Thread Mick.Knutson
Isn't this jar in the contrib. directory? It is in mine. Mick Knutson Wells Fargo Business Direct (415) 222-1020 "This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not

Re: Nightly builds after 12/20 are empty

2004-12-23 Thread Craig McClanahan
Last night's nightly builds (20041223) worked correctly -- we had added a new dependency, and I hadn't picked up configuring it in the nightly build scripts yet. Craig On Thu, 23 Dec 2004 08:32:07 -0500, Robert Taylor <[EMAIL PROTECTED]> wrote: > Apologies if this has alr

Re: Which setter do I need in the ActionForm for this example?

2004-12-23 Thread Jeff Beal
With multiple="true", I think that you need a property of type String[] in your ActionForm. -- Jeff Zsolt Koppany wrote: Richard, Thank you, but did you see that I have set multiple="true" ? Zsolt -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23,

Re: Flash buttons in struts???

2004-12-23 Thread Bryce Fischer
Donie Kelly wrote: I have lovely pages made with flash buttons but does anybody know how to submit forms etc using flash buttons??? If you are using Dreamweaver, and using its facilities to insert a flash button, just set the link to: javascript:document.formName.submit(); If its a button you cre

Re: Flash buttons in struts???

2004-12-23 Thread Jeff Beal
You'll need to write a little bit of JavaScript to get that to work well. Try adding onclick="document.forms.namedItem('yourFormName').submit()" (See http://www.w3.org/TR/2000/WD-DOM-Level-1-2929/level-one-html#ID-26809268 for reference information) Donie Kelly wrote: Hi all I have lo

Struts tags / JSTL question

2004-12-23 Thread Vinicius Caldeira Carvalho
Hi there! I have a collection of beans, and this collection is set to the request. I'd like to retreive only the first object of the collection (later on I'll iterate over it completely) How can I do this? My Collection is a List. I tried and also none of 'em seems to work. Any ideas? Thanks a

Re: Struts tags / JSTL question

2004-12-23 Thread Vic
A collection? c:for each ! .V Vinicius Caldeira Carvalho wrote: Hi there! I have a collection of beans, and this collection is set to the request. I'd like to retreive only the first object of the collection (later on I'll iterate over it completely) How can I do this? My Collection is a List. I

Re: Flash buttons in struts???

2004-12-23 Thread Dakota Jack
The answer is in Flash not in Struts. Here is a url to answer most of your questions on this. http://www.actionscripts.org/tutorials/beginner/html_forms/index.shtml Jack On Thu, 23 Dec 2004 16:21:13 -, Donie Kelly <[EMAIL PROTECTED]> wrote: > Hi all > > I have lovely pages made with flash

Re: Struts tags / JSTL question

2004-12-23 Thread Robert Taylor
Vinicius Caldeira Carvalho wrote: Hi there! I have a collection of beans, and this collection is set to the request. I'd like to retreive only the first object of the collection (later on I'll iterate over it completely) How can I do this? My Collection is a List. I tried and also none of 'em

session form bean problem

2004-12-23 Thread t t
Hi, all, First, happy holidays to you! I got a question. I have such action mapping: - I want to populate "SearchForm" with some existed values(stored in session) before showing "search.jsp". This work is done in

Re: Struts tags / JSTL question

2004-12-23 Thread Dakota Jack
I just sent a couple of classes using a standard list iterator/handler pattern from the core J2EE design patterns book to Uma.k on this list that answer this with one solution. I will send it along to you too. I think that when you see the code the answer to your question will become obvious. Li

Re: jars in 1.2.6

2004-12-23 Thread Raphael Gallo
Sorry...I think I've got the wrong bundle... By the way...The validator isn't working after migrating from 1.1 to 1.2.6...is there any road map to do this? Thanks in advance! - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, December 23, 2004 2:58 PM Subject: RE: jar

Re: Struts and DreamWeaver

2004-12-23 Thread Dakota Jack
But it is good to have the choice between JSF and Struts. Hopefully they don't become one as proposed in Shale so that the choice is gone. I don't take Dream Weaver people too seriously because I don't run in that crowd. I do understand that the Dream Weaver crowd, however, is real and important

Help needed - submitting dynamic text boxes to ActionForm

2004-12-23 Thread krishna mohan d
Hi, I am struck in the middle of one web application. I am using struts 1.1 framework. I have a form where I have nearly 12 text boxes per row, which are generated dynamically. means I have a form where I have 12 text boxes per row and I am assigning name dynamically.[I am using plain jsp and

Input type with map-backed action forms

2004-12-23 Thread icon911
I am trying to have a form built at run time. It seems that map-backed ActionForms good fit for what I need. Hower I have a problem coming up with a solution as to what to do when not all input types are text fields, so this does not work because the field has to be text, what if its checkbox?

Re: session form bean problem

2004-12-23 Thread Bill Siggelkow
Hmm .. please include the code from the PopulateAction. t t wrote: Hi, all, First, happy holidays to you! I got a question. I have such action mapping: type="myClasses.PopulateAction" name="SearchForm" scope="request" v

Re: session form bean problem --more code

2004-12-23 Thread t t
Thanks. Here is the code: --- public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); User user = (Use

Re: NullPointerException

2004-12-23 Thread Sunny
Hey Uma, Kindly attach your logs when you face any exceptions. That'll really help in debugging. regards, Sunny. uma.k wrote: Hi, The solution is perfect. I forgot initialization. Now I dont get any error but nothing is displayed when the error is actually to be thrown. I get blank page and it do

RE: NullPointerException

2004-12-23 Thread uma.k
Hi Sunny, Now I dont get any error also when I my form wont redirect to my original page when I dont enter any value. Here is my validate() public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors();

Re: Struts and DreamWeaver

2004-12-23 Thread Antony Paul
I added Struts html tags to DreamWeaver using the add tag from tld option. But it is not rendering the tags as html elements. I use DreamWeaver for visual display. rgds Antony Paul On Thu, 23 Dec 2004 07:50:02 -0800 (PST), Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > I use macro media dre

DB Connection Best practice

2004-12-23 Thread uma.k
Hi, I wanted to insert a record into the database or update a record in the database or get a record from the database. Where do I make my database connection? Is it in the Action class? Can I make a single java class handle all of that for me? If the above are wrong. Please let me know which is

Re: DB Connection Best practice

2004-12-23 Thread Sunny
Better practice would be delegating to a "handler" (application layer) class and let it return data in form of some bean and use that in action. In this way you'll be isolating Controller from Business model. uma.k wrote: Hi, I wanted to insert a record into the database or update a record in th

Steven Lock/ffm01/aps ist außer Haus.

2004-12-23 Thread Steven . Lock
Ich werde ab 24.12.2004 nicht im Büro sein. Ich kehre zurück am 05.01.2005. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. Während meiner Abwesendheit werde ich von Peter Eimann (Dw. 1308) vertreten. - To unsubscri

RE: DB Connection Best practice

2004-12-23 Thread uma.k
Thanks Sunny, I will do that. Uma -Original Message- From: Sunny [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 10:27 AM To: Struts Users Mailing List Subject: Re: DB Connection Best practice Better practice would be delegating to a "handler" (application layer) class and let

RE: DB Connection Best practice

2004-12-23 Thread Amit Gupta
Hi Uma, I use DBCP for this. Refer my message that I posted an hour ago on tomcat users list. I am forwarding same to you on your personal ID. -Original Message- From: uma.k [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 10:20 AM To: 'Struts Users Mailing List' Subject: D

Error when init struts-menu in WebSphere Application Server 4.0.7

2004-12-23 Thread dangmp
Hi all, I am developing a web application using struts 1.2.4 and struts-menu. When I am running in JDeveloper 10g, every thing is ok. But when I deploy into Test server running WebSphere Application Sever 4.0.7, I have this error