struts example loading error

2002-09-02 Thread jw z
Hi, I am new to struts. I have a problem here. I installed Tomcat 4.0.4 on my Windows 98. It works fine. Then I downloaded struts binary code version 1.1 beta2 and try to test struts-example.war. I followed the documentation to copy the struts-example.war file to Tomecat/webapps directory and

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread Miguel Angel Mulero Martinez
You can too use the DBCP from jakarta, I'm using it and works perfectly: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html -Mensaje original- De: Steve McLeod [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 02 de septiembre de 2002 2:10 Para: '[EMAIL

Re: struts example loading error

2002-09-02 Thread ISHIKAWA Tadashi
Xerces1.4.4 and JAXP1.0.1??? Struts1.1b needs JAXP1.1. and You shouldn't set the CLASSPATH. jw z wrote: Hi, I am new to struts. I have a problem here. I installed Tomcat 4.0.4 on my Windows 98. It works fine. Then I downloaded struts binary code version 1.1 beta2 and try to test

Re: Database Connection in Logic Beans - pooling?

2002-09-02 Thread thart
Steve McLeod writes: I am using: Tomcat 4.0 Struts 1.0.2 The problem I have successfully used the Struts database connection pooling in a trial web app, but as far as I can tell, a reference to the datasource can only be obtained from within an Action class (or directly

cascading actions

2002-09-02 Thread Gemes Tibor
How can I cascade actions correctly? The following seems to be working: action name=myAction ... forward name=success path=myAction2.do / /action action name=myAction2 ... forwar name=success path=myPage.jsp / /action The response is gzip-ed by the gzip-filter of

Re: want to have errors to be dispalyed in diffrent page

2002-09-02 Thread Adrian Brown
Hi Jenny, In case no one else answered this, you need to put some errors in your session before they can be captured and displayed by the errorpage.jsp. Try the following code in your action: ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new

Nested tags and performance (after compiling)

2002-09-02 Thread Lister, Tom (ANTS)
Hi This isn't a compile problem. The pages performance are consistently slow even after the first access. I've heard that tag libraries can cause performance problems. Does anyone have strategies for dealing with this? Is it related to the nested tag library in particular? We've put traces in to

ConcurrentModificationException

2002-09-02 Thread David Tam
i am using Struts 1.1b2 with tiles on BES 5.0.2(tomcat 4.0.1). i ve got the following form: public final class fw_MenuItemAdminForm extends ActionForm { private List parmsAL = new FastArrayList(); private Collection parms = col1.lazyList(parmsAL, fw_MenuItemParmVO.class); public

Re: [Tiles] Error using controllerClass - says I need to extend Actionbut I am

2002-09-02 Thread Cedric Dumoulin
Hi, Do you have the full stack trace of the error ? This will help to understand what happen. Cedric Michael wrote: When I try to use controllerClass: definition name=plant_list path=/jsp/status/plant_list.jsp

RE: ArrayIndexOutOfBoundsException while using logic:iterate

2002-09-02 Thread Shashikiran M
Hi John, I'm stil not able to figure it out. I've put in the stack trace if you might want to take a look. Apart from the logic:iterate tag, i'm using logic:equal, logic:notEqual, logic:present. /*** stack trace starts here **/ java.lang.ArrayIndexOutOfBoundsException

RE: Dynamic name to the text fields

2002-09-02 Thread Darryl Nortje
Anoop, I did it by iterating through a collection of beans, each bean in the collection for eg had a getKey() and getValue() method then the jsp looks like this. logic:iterate name=attrib id=collElem tr td input name=bean:write name=collElem property=key// /td /tr

RE: Dynamic name to the text fields

2002-09-02 Thread Adolfo Miguelez
I did by a similar approach: logic:iterate name=Data indexId=index id=item html:text property=textFieldName%=index%//td ... /logic:iterate In tha way you can take advantage of the iteration to set different property names to your input: textFieldName1, textFieldName2 Just another

RE: Dynamic name to the text fields

2002-09-02 Thread Jon.Ridgway
Hi All, I might be wrong, but I thought the nested tags (when in a nested:iterate) did this automatically for you ie name0, name1, name2 etc. Jon Ridgway -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: 02 September 2002 12:22 To: [EMAIL PROTECTED]

RE: Dynamic name to the text fields

2002-09-02 Thread Anoop
But, the same case arrises here, as in defining number of beans. How will be the number of beans be pre-defined?? -Anoop. -Original Message- From: Darryl Nortje [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 4:19 PM To: 'Struts Users Mailing List' Subject: RE: Dynamic name

Re: Extending RequestProcessor of ActionServlet

2002-09-02 Thread Bunty
Hi Andrew, Thanks a lot for being so elaborate. I have another question. I need to implement single sign on based on what user ID one logs into their windows workstation. I have written the code to get the userID, now I need to put it in ActionServlet/RequestProcessor. My question is which

using tiles script tag into the head

2002-09-02 Thread Gemes Tibor
How am I supposed to insert a few script into the head part of my page if I use tiles? The html head.../head body.../body /html is in the template file. Tia, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Dynamic name to the text fields

2002-09-02 Thread Darryl Nortje
Well, the way I did it was select from a table and in the while (rs.next()) loop build up the collection. I don't know your particular scenario so can't help you there, other than to say that you build up the collection as part of an action, or from a database, depending on what you want to do

Accessing Struts form beans from JSP's/Custom Tag Libraries

2002-09-02 Thread Darren McGuinness
Hi, How do I go about accessing a form bean associated with a JSP from my own custom tag? Also from within the JSP page -For example, I wish to use the html:radio tag but with the 'value' set to an attribute from a form bean which was associated with the action that called the JSP. So say i

Struts and authentication of requests in a webapp. Generic framework possible/available?

2002-09-02 Thread amolk
Hi, I am new to Struts. I am referring the struts-example to build a prototype resembling our application which is right now using only servlets. I need to authenticate each request that comes to the webapp ( though the action servlet ). There are two parts to the authentication scheme. 1.

Re: Struts and authentication of requests in a webapp. Generic framework possible/available?

2002-09-02 Thread Ted Husted
In Struts 1.1, you can assign a list of roles to each ActionMapping. By default, this uses the same JAAS scheme used by the container. However, you can also provided your own RequestProcessor that can override this and use whatever scheme works for your application. -- Ted Husted, Husted dot

[Tiles] - Definition inheritence question

2002-09-02 Thread Michael
I've been playing with Tiles for several days, getting some simple examples to work. I've read all the documentation several times but I'm missing a key part of the definition inheritence I think. Can somebody please clarify this for me? Here's what I'd like to do: I'd like to have a main

ANN: JDeveloper9i 9.0.3 w/ Struts, J2EE 1.3, et. al.

2002-09-02 Thread Steve Muench
A quick announcement for any Struts users who might be using (or might want to evaluate) Oracle's JDeveloper Java IDE. We've just published a Developer's Preview of our new 9.0.3 major release on our Oracle Technet website: http://otn.oracle.com/products/jdev/content.html List of new

Problem with exception in the Struts Example !!

2002-09-02 Thread cyril guszkiewicz
Hi everybody, I'am working on the Struts Example supplied with Struts 1.1b1 with Visual Age 3.5.3. I've just a little problem with the global exception: exception key=error.password.expired type=org.apache.struts.webapp.example.ExpiredPasswordException

Re: Java Server Faces and Developer Life Comments

2002-09-02 Thread Elderclei R Reami
I agree with you, Tiago. Since the tools are not well integrated, they must have one JVM each to run, what makes it very painful. I think 256MB is the least ammount of memory that makes it comfortable to delete. So we have a lot to do in terms of tools in order to make Java development more

RE : [Tiles] - Definition inheritence question

2002-09-02 Thread Michael
I have found a way to do this using an intermediate definition: definition name=plant_status_page extends=default_layout put name=body value=plant_status_body/ /definition definition name=plant_status_body extends=default_layout

RE: Dynamic name to the text fields

2002-09-02 Thread MerrilG
you r right anoop. Ive faced this difficulty many times, when you have a table containing textfiled in a row which can be increased dynamically. The only solution i found was to have the number of rows in a hidden field and append the index to each textfield in a row and extract the data from

Re: Accessing Struts form beans from JSP's/Custom Tag Libraries

2002-09-02 Thread Ted Husted
A form bean is just an object placed within one of the scopes. The attribute name is specified in the Struts configuration. (The formbean name attribute.) So you can refer to it like any other object. For more, see the source code for the Struts custom tags. The searchAction should create the

Re: using tiles script tag into the head

2002-09-02 Thread Cedric Dumoulin
You should put your script tag in the tiles declaring your header. I think your question is: how to put the script tag inside the header when the script tag is associated to an inserted tiles ? Tiles don't provide facilities for such problem. But, putting the script tag right into the

Re: [Tiles] - Definition inheritence question

2002-09-02 Thread Cedric Dumoulin
Hi Michael, When you extend a definition, all attributes from ancestor are inherited, and then overloaded by attributes specified in the new definition. In your case, you overload the 'path' attribute with a new value, disguarding the previous value. The way to go is to have an

Re: using tiles script tag into the head

2002-09-02 Thread Gemes Tibor
2002. szeptember 2. 16:48 dátummal Cedric Dumoulin ezt írtad: You should put your script tag in the tiles declaring your header. I think your question is: how to put the script tag inside the header when the script tag is associated to an inserted tiles ? Yes. Tiles don't provide

[Nested] - Iterating over a Set

2002-09-02 Thread Senén de Diego
I'm trying: nested:root name=categoria nested:iterate property=subArticulosIds ... /nested:iterate /nested root where subArticulosIds is of class java.util.HashSet. This fails. It gives: java.lang.IllegalArgumentException: Property 'subArticulosIds' is not indexed at

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread Frederic Laub
Hi, How do achieve the following: In some cases I want to get a connection at the beginning of a request (request scope), pass the same connection to all the java beans that are called in the request and return the connection at the end of the request. Where do I put the code to return the

Nesting tiles:getAsString with struts bean:message

2002-09-02 Thread Michael
Is it possible to nest a tiles:getAsString tag inside a struts bean:message tag? This is what I'm trying to do: definition name=plant_status_page extends=default_layout put name=body value=plant_status_body/ put name=title value=plant_status_page.title /

Tree Folder navigation

2002-09-02 Thread alex hun
Hi all, I would like to implement tree folder navigation for my project. However, i am quite clueless as to how this is to be done via struts. Has anyone tried that before or anyone know any resources tat i can refer to? thanks. regards alex -- To unsubscribe, e-mail: mailto:[EMAIL

RE: Tree Folder navigation

2002-09-02 Thread Jacob Hookom
I think there's a struts menu at source forge, I'm not sure of the link, but it would be easy to search. | -Original Message- | From: alex hun [mailto:[EMAIL PROTECTED]] | Sent: Monday, September 02, 2002 11:20 AM | To: Struts Users Mailing List | Subject: Tree Folder navigation | | |

struts template

2002-09-02 Thread Keven
Hi, All: I would like to implement web pages using struts. the page layout consist of four parts: top menu, side bar, main content area, and footer. Depend on the role of users, the top menu will change accordingly--some button wii be disappeared, some buttons are added. I think this should

Re: want to have errors to be displayed in different page

2002-09-02 Thread Jenny
Adrian and Aaron: Thank you very much for answering my question. But I haven't gotten there. It seems that errorpage.jsp is never been called. The details is as following: I am practising struts-example1.1-b2. I tried to have errors displayed in different page(errorpage.jsp)(The example itself

struts template

2002-09-02 Thread Keven
Hi, All: I would like to implement web pages using struts. the page layout consist of four parts: top menu, side bar, main content area, and footer. Depend on the role of users, the top menu will change accordingly--some button wii be disappeared, some buttons are added. I think this should

Re: ArrayIndexOutOfBoundsException while using logic:iterate

2002-09-02 Thread John Raley
Looks to me like it's originating in EvermindJSPWriter, not from struts. Shashikiran M wrote: Hi John, I'm stil not able to figure it out. I've put in the stack trace if you might want to take a look. Apart from the logic:iterate tag, i'm using logic:equal, logic:notEqual, logic:present.

Re: FW: Database Connection in Logic Beans - pooling?

2002-09-02 Thread David Graham
I overrode the ActionServlet's initOther() method and put this code in there: // this code runs when the servlet gets initialized DataSource ds = this.findDataSource(org.apache.struts.action.DATA_SOURCE); Database.setSystemDatabase(new Database(ds)); // now anywhere in the system you can

Re: Controller design

2002-09-02 Thread David Graham
Struts implements the Front Controller pattern. You have to implement your own value beans to pass between the tiers. Yes your value bean approach is right, at least in today's best practices. Dave From: Mohan Radhakrishnan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread Troy Hart
You can solve this problem by providing a business service framework for your application (There has been a lot of talk about this sort of thing on this list...I can't think of a particular thread to reference for you so you may just want to go through the archives). My approach to this problem

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread Frederic Laub
Thanks to Troy, But I read a lot of Java literature and the struts archive over the past weeks but in the all the examples the connection is retrieved and returned is the same class. I know it is the easiest and the best way to handle the problem. In most cases it provides a solution. I would

Re: struts example loading error

2002-09-02 Thread jw
If you haven't already, you might make certain that your Xerces.jar exists in either (or both - whatever works) your WEB-INF/lib and your JAVA_HOME/jre/lib/ext directory. jw - Original Message - From: jw z [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 02, 2002 2:24 AM

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread Troy Hart
A big problem that you will encounter is reliably trapping the end of the request lifecycle. I haven't looked at filters to see if they provide a 100% reliable solution for this, they may (I don't know what happens in this scenario when some component decides to redirect the request...), or there

template

2002-09-02 Thread Keven
Hi, All: I have a template jsp called template.jsp. The content of template.jsp is: % taglib uri=/WEB-INF/struts-template.tld prefix=template % html head titletemplate:get name='title'//title /head frameset rows=20%,* FRAME src=template:get name='header' flush='true'/ FRAME

RE: template

2002-09-02 Thread Sean Gay
Hey Kevin, I think I know what is going on here. When you are doing template:put name='header' content='/welcome.html' direct='true'/ you are using direct=true which directly outputs the string /welcome.html as the file to be used for the header. This would mean that any contextPath that you

Re: [New Functionality] ApplicationResources.properties to DB?

2002-09-02 Thread Peter A. J. Pilgrim
Eddie Bush wrote: James Mitchell wrote: Sorry guys... for not responding earlier. super-mega-snip/ Sorry I should have filled you in, James. I forwarded him the relevant part of your discussion. Also, I'm not sure how many passes I would make over the list, you certainly

Re: [New Functionality] ApplicationResources.properties to DB?

2002-09-02 Thread Peter A. J. Pilgrim
J Another interesting twist -- what if you are using data from the resource bundle to make your connectin to the database? and now you are wanting to use JDBCMessageResourceshm. What if you rely on another plugin as your persistence layer? How would ensure that it gets called

Re: [New Functionality] ApplicationResources.properties to DB?

2002-09-02 Thread Peter A. J. Pilgrim
Ian Vellosa wrote: But what do you do each time you add a new language, say German? you need to update the database structure adding a new column? Surely any solution should be generic enough not to need that. Unfortunately you would need the table to look something more like: key

Re: template

2002-09-02 Thread Keven
Sean: Thank you for your reply. I removed direct='true'. So the index.jsp is look like: %@ taglib uri=/WEB-INF/struts-template.tld prefix=template % template:insert template='/template.jsp' template:put name='title' content='Templates' direct='true'/ template:put name='header'

How to Create a Map object using bean:define tag or any other tag in Struts

2002-09-02 Thread Bunty
Hi All, How to Create a Map object using bean:define tag or any other tag in Struts This is my code snipplet, bean:define id=param1 name=ele property=score/ bean:define id=param2 name=ele property=color / % java.util.HashMap params = new java.util.HashMap(); params.put(regno, param1);

RE: template

2002-09-02 Thread Sean Gay
Kevin, Firstly let me apologise for giving you slightly incorrect information about your problem initially. Never fear though I have a working solution for you. Using the direct=true is correct in this case as you are putting the output into a frameset (I missed this initially) and not

Re: template

2002-09-02 Thread David Geary
Hi Keven, Struts templates do not work with HTML frames; I believe that's the cause of your problem. (If anyone has gotten them to work with frames, please holler). When I originally developed templates, I tried to get them to work with frames, but it was very difficult. If I remember correctly

apache+tomcat consulting help needed

2002-09-02 Thread anand v
Hi, I have red hat 7.1 and I have apache2 and tomcat and mysql.. If some one could show me how to make a simple web site works with these stuff for consulting help I would really appreciate it... All I need is basic form to be saved to a datbase If it is simple to do it in tomcat end to

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread David Graham
Do NOT save the request into the session. That's why there is a connection pool (DataSource), you take one out, use it, and put it back. If you don't return it you will ruin the whole point of the pool. The connection pool idea was created to avoid the situation you described. You should

DynaActionForm question

2002-09-02 Thread Anoop
Hi, Do anyone has a startup example of how to use DynaActionForm instead of customary ActionForm bean. Would appreciate if anyone could provide with an end to end working example with jsp implementation and the form beans. And, which is the jar file to be used for the same. As, the

Re: DynaActionForm question

2002-09-02 Thread Jean Pierre Pawlak
Hi, I had also issues with this. But in fact, I use DynaActionForms and manage the validating from the StrutsAction without problem including selecting page only validating. Use DynaForm.setPage(pagenumber) before DynaForm.validate(...,...). The 'struts-validator' example bundled with Struts

where is tomcat-apache-howto for tomcat 4.1

2002-09-02 Thread anand v
Hi, Where can i find tomcat 4.1 or upward version that talks about tomcat-apache how to?? Thanks Anand _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL

RE: DynaActionForm question

2002-09-02 Thread Anoop
Hi, Does DynaActionForm works only with struts v1.1 and later? Cause it is not been bundled along with v1.0.2 struts.jar. Is there any alternative for this in v1.0.2? Thanks, Anoop. -Original Message- From: Jean Pierre Pawlak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September

pop up window integration

2002-09-02 Thread slickdev
Are there special considerations for integrating pop-up windows with struts, such as a small overlapping login dialog? I would like to preserve a static browser page, while it pops up the overlapping login popup dialog. The popup should interact with a database to validate the userid and

RE: Database Connection in Logic Beans - pooling? = request cycle

2002-09-02 Thread Frederic Laub
I got the message and I will use the sessionFacade pattern and use the connection pool as you advised. Nevertheless I would like to know where the request cycle ends in the struts framework? I didn't find any diagram regarding the request cycle. I would like to store (among other things) the time

RE: ArrayIndexOutOfBoundsException while using logic:iterate

2002-09-02 Thread Shashikiran M
Thanks John, Will try to check the code on a different engine. After some debugging, i guess that the EvermindJSPWriter might be skipping the bounds of the string[] containing the static HTMLs. --Shashi. -Original Message- From: John Raley [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

ConcurrentModificationException when using nested:iterate tag

2002-09-02 Thread David Tam
i am using Struts 1.1b2 with tiles on BES 5.0.2(tomcat 4.0.1). i ve got the following form: public final class fw_MenuItemAdminForm extends ActionForm { private List parmsAL = new FastArrayList(); private Collection parms = col1.lazyList(parmsAL, fw_MenuItemParmVO.class); public

Re: ANN: JDeveloper9i 9.0.3 w/ Struts, J2EE 1.3, et. al.

2002-09-02 Thread Vimal Kansal
Hi Steve, I am great fan of JDeveloper and downloaded the stuff. Whatever I have looked so far, looks awsome! I have a small problem that I have a small problem that I am not able to solve. I have configured, a database connection to connect to Cloudscape database. In the wizard, connection test