Action Servlet not getting called.

2004-08-16 Thread Divakar Satyanarayan
Hi All, I have added following action mapping to struts-config.xml for a page. In action-Mappings --- action path=/Summary type=mascot.workqueue.action. SummaryAction name=SummaryForm scope=request forward name=forwardJsp

Re: Mapping ActionPath to a method in DispatchAction

2004-08-16 Thread Hubert Rabago
If you're using Struts 1.2.x or the nightly builds, take a look at the MappingDispatchAction. It does exactly what you're looking for. http://struts.apache.org/api/org/apache/struts/actions/MappingDispatchAction.html hth, Hubert --- Kunal Parikh [EMAIL PROTECTED] wrote: Hi! I was

Connection and Tomcat server

2004-08-16 Thread Rajesh
Hai guys am still fasing same problem with my struts,tomcat with mysql. am working in the environment of tomcat,struts,dbcp,JP2, mysql.. i developed a site of round 20-50 actions which accesses db through DBCP to MySQL i completely debugged my site theroughly, there is no but in my code. i

Re: Action Servlet not getting called.

2004-08-16 Thread Navjot Singh
what does tomcat log returned? does it throw error or a blank page? is it because of space after this dot? type=mascot.workqueue.action. SummaryAction regards Navjot Singh Divakar Satyanarayan wrote: Hi All, I have added following action mapping to struts-config.xml for a page. In

RE: Action Servlet not getting called.

2004-08-16 Thread Divakar Satyanarayan
Space is not there We use Apache web server it displays a blank page. Regards, Divakar -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 12:08 PM To: Struts Users Mailing List Subject: Re: Action Servlet not getting called. what does

Re: handling multiple independent window

2004-08-16 Thread brenmcguire
I think you could use a request-scope bean that contains an ID referring to one item in a session-scope collection (here I mean an array, a Map, a List...). Then expose your item in a page-context bean (using bean:define) and use it in the rest of the JSP page. Ciao Antonio Kailash Vasani wrote:

RE: Action Servlet not getting called.

2004-08-16 Thread Veerabhadra Rao R
Hi, I am getting the following error while running a sample struts application from MasteringJakartaStruts pdf file. javax.servlet.ServletException: Cannot find bean employees in any scope at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:478)

If not logged in, login and redirect do requested page scenario.

2004-08-16 Thread hicnar_struts_list
Hi, Some pages in the site I'm working on should be available only for users who have previously logged in, but links to them may appear on pages that area accessible for anybody. I'm trying to implement a scenario in which if the user who has not logged in clicks on a link to a page for

RE: If not logged in, login and redirect do requested page scenario.

2004-08-16 Thread Aru
Dei.. Kaelvi ium kaettuttu Pathilum neeyae solluriyaa? :) Uthai vilum :)) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 3:22 PM To: [EMAIL PROTECTED] Subject: If not logged in, login and redirect do requested

Re: Need help with layered Map iteration in JSP

2004-08-16 Thread Erik Weber
I have a c:forEach where items refers to a Map, and var refers to the current Map entry. c:forEach items=myMap var=currentEntry The value for each Map entry is an array. How do I switch on the length of this array? I tried this: c:when test=${currentEntry.value.length 5} But I get a syntax

RE: Action Servlet not getting called.

2004-08-16 Thread Jitender K Chukkavenkata
Hi Veera, You have used an identifier called employees for logic:iterate name attribute. The name should be a valid bean name defined in any scope. I guess you are giving a wrong reference. Try giving a valid bean reference that exist in any scope. Regards, Jitender Kumar C.V.

Re: If not logged in, login and redirect do requested page scenario.

2004-08-16 Thread Pavel Kolesnikov
On Mon, 16 Aug 2004 [EMAIL PROTECTED] wrote: I'm trying to implement a scenario in which if the user who has not logged in clicks on a link to a page for logged in users only should be redirected to login page, and then if the login operation succeeds another redirection takes the user, to

Re: Overwritting RequestProcessor, how to???

2004-08-16 Thread Niall Pemberton
Although you haven't specified the TilesRequestProcessor in the controller element the TilesPlugin automatically changes it to TilesRequestProcessor. If you do however specify your own custom RequestProcessor in the controller element and you use tiles then if it doesn't extend

HTML Filtering?

2004-08-16 Thread Mike Elliott
I have a situation where I need to populate a table with values. Sometimes those values are empty. Mozilla, for reasons outside of this discussion will not fully render a table datum that is empty; that is, it will render nothing (correctly) but also not render the border of the table datum

Still need help with layered Map iteration in JSP

2004-08-16 Thread Erik Weber
OK, I'll take ANY WAY TO DO THIS AT ALL. I have a c:forEach over a Map. The value for each key in the Map can be an array of objects, or I can make it a List. I don't care at this point. All I want to do is get the length of this array or List, before I start iterating over *it*, during the

RE: handling multiple independent window

2004-08-16 Thread Kailash Vasani
Thanks Antonio, this seems to be simpler solution. for benefit of all, we have opted to update RequestUtil class of struts so that all the JSPs would now be passing one parameter always. Hence we r doing the same thing, but in slightly differnt way. I wonder whether struts ppl had considered

Re: Accessing Session attribute from action

2004-08-16 Thread Erik Weber
Implement a checkLogin method in a base Action class that returns a User object or similar, whatever you need. This method takes an argument of type HttpServletRequest and looks for the User object in the request's HttpSession. Your Login Action would set this attribute, and your Logout Action

Re: HTML Filtering?

2004-08-16 Thread Niall Pemberton
org.apache.struts.taglib.TagUtils.filter(String) Niall - Original Message - From: Mike Elliott [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 16, 2004 10:44 AM Subject: HTML Filtering? I have a situation where I need to populate a table with values. Sometimes those

Re: Accessing Session attribute from action

2004-08-16 Thread Rajesh
Hai use request.getSession(); u can access from request object. vineesh . kumar wrote: Hi all, I wanna do store two values in the session when one logs in and i have to access the two values throughout the pages.also i have to access these two variables from some action classes. How can i do

RE: Indexed properties and DynaActionForm

2004-08-16 Thread Jaakko Rytinki
-Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: 12. elokuuta 2004 18:48 To: Struts Users Mailing List Subject: RE: Indexed properties and DynaActionForm -Original Message- From: Jaakko Rytinki [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004

Dynamic add an action mapping ??

2004-08-16 Thread Eric Chow
Hello, Is it possible to add an action mapping in run-time ? Or is it possible to reload the struts-config.xml in run-time ??? Eric == If you know what you are doing, it is not called RESEARCH! ==

Re: Dynamic add an action mapping ??

2004-08-16 Thread Niall Pemberton
http://struts.apache.org/faqs/newbie.html#reload Why would you want to? Niall - Original Message - From: Eric Chow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 16, 2004 11:28 AM Subject: Dynamic add an action mapping ?? Hello, Is it possible to add an action

Re: Accessing bean properties problem

2004-08-16 Thread Janne Mattila
Janne Mattila wrote: OK, Cap't of the Eh Team! Maybe you should go and add Note: this is a clear, extensible, light, fast, loosely coupled, solution compared to a messy, solution specific, heavy, slow, tightly coupled version! to the Wiki page? After all, you have invented an elegant solution

Re: Still need help with layered Map iteration in JSP

2004-08-16 Thread Kris Schneider
I guess the first thing to make sure you understand is that, when iterating over a Map, the object exposed by JSTL via the var attribute is of type Map.Entry. It's equivalent to doing a map.entrySet().iterator(). As for getting the size of an array, Collection, or Map, use the bean:size tag.

HTTP Compression

2004-08-16 Thread Shailender Jain
Hi, Using the servlet 2.3 specification one can compress the data (gzip) while sending from server and uncompress on the client (Browser). Has anybody tried, if the reverse can be achieved i.e. the browser always sends a compressed data and webserver decompress it. This can be important when

Re: HTTP Compression

2004-08-16 Thread Navjot Singh
Upload file thru activex or applet. Can't see anything to happen from browser(currently) otherwise. - Navjot Singh Shailender Jain wrote: Hi, Using the servlet 2.3 specification one can compress the data (gzip) while sending from server and uncompress on the client (Browser). Has anybody tried,

Re: Still need help with layered Map iteration in JSP

2004-08-16 Thread Erik Weber
Kris, once again you have helped me get my work done. bean:size did the trick. I was looking over and over again for a JSTL tag or expression to do this; I probably never would have thought of bean:size. To complete the post for any other reader who is as suicidal as I am after trying to

OC4J and struts issue

2004-08-16 Thread simarjit singh
Hi, I am getting th following error mesage in OC4J for 9i. javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793) at

RE: OC4J and struts issue

2004-08-16 Thread Veerabhadra Rao R
Hi, Can you verify the tag lib directives in web.xml. you will get such type of error messages only when there is mismatching in tag lib directives. !-- Struts Tag Library Descriptors -- taglib taglib-uri/tags/struts-bean/taglib-uri

Re: Still need help with layered Map iteration in JSP

2004-08-16 Thread Kris Schneider
It's certainly not a bad idea to grab a JSTL book, but the spec itself is quite readable and full of good information: http://jcp.org/aboutJava/communityprocess/final/jsr052/ The only JSTL book I've even partially read is JSTL in Action by Shawn Bayern and I have no reservations recommending it.

Re: OC4J and struts issue

2004-08-16 Thread simarjit singh
Thanks for quick reply, here is my web.xml entry. it is generated by jdeveloper.it is not manual. I am able to run it in windows environment but when i move it to solaris, it is failing.:-( taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri

RE: OC4J and struts issue

2004-08-16 Thread Veerabhadra Rao R
In jsp page if you are including the tag lib files like this %@ taglib uri=/tags/struts-bean prefix=bean % %@ taglib uri=/tags/struts-html prefix=html % %@ taglib uri=/tags/struts-logic prefix=logic % your taglib code in web.xml file should be like this !-- Struts Tag Library Descriptors --

Re: Modifying Tiles definitions dinamically

2004-08-16 Thread Leandro Melo
I'm not sure if i get it right, i still have a couple doubts. Take this definition: definition name=.PartyPlace path=/layouts/layout.jsp ... put name=menu value=/chooseMenu.do/ ... /definition Naturally i got a login page, would i have to redirect the login (or just forward the login) to

Re: OC4J and struts issue

2004-08-16 Thread simarjit singh
it is like %@ taglib uri=/WEB-INF/struts-html.tld prefix=html% so uri is different . Thanks simar Veerabhadra Rao R wrote: In jsp page if you are including the tag lib files like this %@ taglib uri=/tags/struts-bean prefix=bean % %@ taglib uri=/tags/struts-html prefix=html % %@ taglib

Re: If not logged in, login and redirect do requested page scenario.

2004-08-16 Thread Oli Kessler
Pavel Kolesnikov wrote: On Mon, 16 Aug 2004 [EMAIL PROTECTED] wrote: I'm trying to implement a scenario in which if the user who has not logged in clicks on a link to a page for logged in users only should be redirected to login page, and then if the login operation succeeds another redirection

Re: OC4J and struts issue

2004-08-16 Thread Vic Cekvenich
It's usualy a case issues in some xml, since windows is not case sensetive. Look for that. Next time, if you deploy to unix, develop in unix. .V I am able to run it in windows environment but when i move it to solaris, it is failing.:-(

Re: OC4J and struts issue

2004-08-16 Thread simarjit singh
Kindly have a look at my struts-config.xml , i have reduced it almost nothing *** struts-config.xml** ?xml version = '1.0' encoding = 'windows-1252'? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN

Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Janne Mattila
I have a simple page for editing some form properties. It works. There's a select box, a multibox, single-select select and a text input field. Now I tried to Tiles-ify it, just using Tiles to add some silly decorations around the actual form. Using tiles seems to break the form, the exception

html:text - want to set disable= to a bean value

2004-08-16 Thread Stuart Guthrie
Hi there, What I'm trying to do is re-use the same jsp for ADD/UPDATE modes. In order to do this, certain field attributes will be different depending on the modes and sometimes even on the user's security credentials or the 'status' of the customer row. To this end I need to pass in the form

Re: Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Niall Pemberton
I'm guessing you changed the action your form is pointing to (/TilesSaveInputs) - so is the form name still inputsForm? logic:iterate id=choice name=inputsForm property=allChoices Niall - Original Message - From: Janne Mattila [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [OT] DAO ... where to draw the line?

2004-08-16 Thread Matthew J. Vincent
LAST bump. I promise! Thanks! Hi all, Thanks for the info. Here's another issue. What if I have an employee search screen that wants to show only some of the information of an employee (not all). What do you do then? 1. Instanatiate an Employee object and only fill in the relative

Re: Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Janne Mattila
Yes. And, (for example) bean:write name=inputsForm property=counter / works as long as I take out the multibox part. From: Niall Pemberton [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Tiles breaks my page that

JSTL duplication of tag content

2004-08-16 Thread Johan Wasserman - BCX - Infrastructure Services
Anyone else experiencing duplication of tag contents with JSTL? e.g. TITLE fmt:message key=form.title fmt:param fmt:message key=person.form.name fmt:param /fmt:message /TITLE where: form.title=Log new {0} person.form.name=Person Results in Log new Person the first time you open

error code 404 not used in IE

2004-08-16 Thread lixin chu
Hi, MS IE has default setting: Tools-Options-Advanced-Browsing-Show friendly HTTP error message When it is checked, the IE default error page is used not your own 404 error page. How can I change the http status code in Struts application so that my own 404 page is used ? thanks li xin

AW: error code 404 not used in IE

2004-08-16 Thread Rosenberg, Leon
Send a message with more then 1024 bytes. (resin does it) -Ursprüngliche Nachricht- Von: lixin chu [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. August 2004 16:22 An: [EMAIL PROTECTED] Betreff: error code 404 not used in IE Hi, MS IE has default setting:

Re: AW: error code 404 not used in IE

2004-08-16 Thread lixin chu
sorry, i am new to this, what message ? --- Rosenberg, Leon [EMAIL PROTECTED] wrote: Send a message with more then 1024 bytes. (resin does it) -Ursprüngliche Nachricht- Von: lixin chu [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. August 2004 16:22 An: [EMAIL PROTECTED]

Re: Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Niall Pemberton
OK so post the bits of your struts-config which show the forms and action mappings for 1) The action which renders the page 2) The action the form will post to (i.e. /TilesSaveInputs) Niall - Original Message - From: Janne Mattila [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

Re: AW: error code 404 not used in IE

2004-08-16 Thread lixin chu
this url explains this: http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml --- lixin chu [EMAIL PROTECTED] wrote: sorry, i am new to this, what message ? --- Rosenberg, Leon [EMAIL PROTECTED] wrote: Send a message with more then 1024 bytes. (resin

Re: JSTL duplication of tag content

2004-08-16 Thread Niall Pemberton
Looks like you're not closing the fmt:param tag: Instead of ... fmt:param fmt:message key=person.form.name fmt:param Shouldn't it be: fmt:param fmt:message key=person.form.name /fmt:param Niall - Original Message - From: Johan Wasserman - BCX - Infrastructure

Re: JSTL duplication of tag content

2004-08-16 Thread Kris Schneider
Sure, but then he'd probably be seeing a translation error instead, right? Note that the inner fmt:message isn't closed either. Seems to work fine for me (using proper syntax) on TC 5.0.27 with Standard 1.0.6 (JSTL 1.0): %@ page contentType=text/plain % %@ taglib prefix=fmt

Re: html:text - want to set disable= to a bean value

2004-08-16 Thread Susan Bradeen
Stuart Guthrie [EMAIL PROTECTED] wrote on 08/16/2004 10:01:49 AM: Hi there, What I'm trying to do is re-use the same jsp for ADD/UPDATE modes. In order to do this, certain field attributes will be different depending on the modes and sometimes even on the user's security credentials or

[OT] Open/free SQL Query Wizard

2004-08-16 Thread DGraham
Anybody aware of any open/free packages that contain a web-based SQL query wizard/editor? Thanks, Dennis- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: html:text - want to set disable= to a bean value

2004-08-16 Thread Rick Reumann
Stuart Guthrie wrote: Hi there, What I'm trying to do is re-use the same jsp for ADD/UPDATE modes. In order to do this, certain field attributes will be different depending on the modes and sometimes even on the user's security credentials or the 'status' of the customer row. To this end I need

RE: [OT] DAO ... where to draw the line?

2004-08-16 Thread Robert Taylor
Strategy 3. I would basically have a DAO that handles the search query and returns a collection of value objects for the related use case. When the user clicks on a specific employee, then render the details using your employee DTO. As far as patterns are concerned you may want to take a look as

Re: [OT] Open/free SQL Query Wizard

2004-08-16 Thread James Mitchell
May not be what you are looking for, but I use DbVisualizer.it simply rocks!! Is there a reason it needs to be web-based? Remote access?? If DbVis doesn't work for you, I can give you a copy of a little jsp that I put together that works with DB2. It displays 3 text area inputs, 1 for

Re: [OT] DAO ... where to draw the line?

2004-08-16 Thread Rick Reumann
Matthew J. Vincent wrote: Hi all, Thanks for the info. Here's another issue. What if I have an employee search screen that wants to show only some of the information of an employee (not all). What do you do then? 1. Instanatiate an Employee object and only fill in the relative information?

Difficult index properties problem

2004-08-16 Thread Nathan Maves
Here is the setup... I have a 2 layered nested bean. ie Bean1 has n number of associated Bean2 Bean2 has n number of associated Bean3 I want to have a form that has an Array of Bean3's Probem is that while iterating though Bean2's the count for the indexed property gets reset. Any clever ideas

Re: Difficult index properties problem

2004-08-16 Thread Rick Reumann
Nathan Maves wrote: I have a 2 layered nested bean. ie Bean1 has n number of associated Bean2 Bean2 has n number of associated Bean3 I want to have a form that has an Array of Bean3's Probem is that while iterating though Bean2's the count for the indexed property gets reset. Any clever ideas to

Re: Difficult index properties problem

2004-08-16 Thread Rick Reumann
Rick Reumann wrote: Of course this assumes using html el tags. c:forEach items=${yourForm.listOf_A_Beans} var=beanA varStatus=beanAlistStatus html:text property=listOf_A_Beans[${beanAlistStatus.index}].name value=${beanA.someProperty} /br c:forEach items=${beanA.listOf_B_Beans} var=beanB

RE: Simple design question

2004-08-16 Thread Jim Barrows
-Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:54 PM To: Struts Users Mailing List Subject: Simple design question I'm trying to teach myself Struts while writing an actual application . I need to go from an index.jsp,

RE: JSTL duplication of tag content

2004-08-16 Thread Karr, David
What container are you using? -Original Message- From: Johan Wasserman - BCX - Infrastructure Services Anyone else experiencing duplication of tag contents with JSTL? e.g. TITLE fmt:message key=form.title fmt:param fmt:message key=person.form.name fmt:param

Re: [OT] Open/free SQL Query Wizard

2004-08-16 Thread Nathan Maves
Not web based but i think AquaStudio rocks! Auto-completion of sql! http://www.aquafold.com/ On Aug 16, 2004, at 9:16 AM, [EMAIL PROTECTED] wrote: Anybody aware of any open/free packages that contain a web-based SQL query wizard/editor? Thanks,

Re: Difficult index properties problem

2004-08-16 Thread Nathan Maves
or jsp 2.0! On Aug 16, 2004, at 9:55 AM, Rick Reumann wrote: Rick Reumann wrote: Of course this assumes using html el tags. c:forEach items=${yourForm.listOf_A_Beans} var=beanA varStatus=beanAlistStatus html:text property=listOf_A_Beans[${beanAlistStatus.index}].name

RE: error code 404 not used in IE

2004-08-16 Thread Martin Gainty
Did you look at Ted Husted's article on implementing ActionError class? http://www.mail-archive.com/[EMAIL PROTECTED]/msg18580.html HTH, Martin Gainty From: lixin chu [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: error

Re: Read only iterate?

2004-08-16 Thread dhay
Mike, The indexed tags do make the code much cleaner. And they are definitely not read-only (as you've discovered, you don't need them if you want things read only!!). There are lots of posts in the archives about it, and I posted working code here: http://www.mail-archive.com/[EMAIL

RE: Caching Framework

2004-08-16 Thread sridhar ramalingam
Ravi, Take a look at the logon example again, org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn.java. Regards, Sridhar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 6:54 AM To: [EMAIL PROTECTED] Subject: RE: Caching

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Jim Barrows
-Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 1:15 PM To: [EMAIL PROTECTED] Subject: RE: Overwritting RequestProcessor, how to??? Maybe it would be enough to just write your own base class that extends ActionForm, have your

connection pooling

2004-08-16 Thread Saurabh Bhatla
Hi all, I have just started working with struts a few days ago, and I understand most of it. The only thing that i dont understand is, if i make a connection pool then where will it be initialized. In servlets I know that it can be done in the init() method but in struts framework there is

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Leandro Melo
Frank, as i said, i only want to call another method everytime validate() fails. That's the only thing i wanna do. If i only overwritte ActionForm and create a MyBaseActionForm, in my specific forms i'd have to do something like this inside validate() method. if (errors != null){

Re: connection pooling

2004-08-16 Thread David Durham
David Durham wrote: I think you want to look at a piece of technology called JNDI. Here's a link to Tomcat's JNDI Datasource How-To: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html Considering the list topic, I guess I should post this link instead:

RE: connection pooling

2004-08-16 Thread Jim Barrows
-Original Message- From: David Durham [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 2:01 PM To: Struts Users Mailing List Subject: Re: connection pooling Saurabh Bhatla wrote: Now i want to know how to initialize the connection pool object and how to pass that

Re: Overwritting RequestProcessor, how to???

2004-08-16 Thread Rick Reumann
Leandro Melo wrote: Frank, as i said, i only want to call another method everytime validate() fails. That's the only thing i wanna do. If i only overwritte ActionForm and create a MyBaseActionForm, in my specific forms i'd have to do something like this inside validate() method. if (errors !=

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Frank Zammetti
Frankly, that's a pretty trivial change to make to all your ActionForms, I would in all probability, were it me, just add that code to all of them. Either that or do the base class approach, but that still requires you to touch all the classes. I wouldn't override RequestProcessor for

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Joe Hertz
Another option is that you can still have your forms over-ride a base ActionForm and then at the end of the validate method, if you get errors, you can then call super.validate() which will call your mySpecificMethod(); of your Super class. I was about to say something like this, but I don't

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Michael Finger
Or you look at this as a opportunity to take aspectj for a spin :) Mike -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 2:17 PM To: [EMAIL PROTECTED] Subject: RE: Overwritting RequestProcessor, how to??? Frankly, that's a pretty trivial

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Jim Barrows
-Original Message- From: Michael Finger [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 2:22 PM To: Struts Users Mailing List Subject: RE: Overwritting RequestProcessor, how to??? Or you look at this as a opportunity to take aspectj for a spin :) *LOL* now thats an

Re: connection pooling

2004-08-16 Thread Saurabh Bhatla
David, But i want to make a business layer and call the DAO from there. I think that the links that you have sent me couple presentation layer and database tightly. I know i can use EJB for presentation layer but I dont want that as it would be overkill for the small project I am working on. I

RE: connection pooling

2004-08-16 Thread Jim Barrows
-Original Message- From: Saurabh Bhatla [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 2:24 PM To: Struts Users Mailing List Subject: Re: connection pooling David, But i want to make a business layer and call the DAO from there. I think that the links that you

RE: connection pooling

2004-08-16 Thread Saurabh Bhatla
Jim, I am sorry but I am confused now. Just correct me if I am wrong I want to call my DAO from my Action class. So the snippet that you sent me would go in my DAO class in the function getConnection() (or something like that). And if what I said is correct then does it mean that

Re: connection pooling

2004-08-16 Thread David Durham
Jim Barrows wrote: Ah, okay.. I also posted a link to the struts way to do the JNDI data source stuff in that case.. you follow your web app servers guide on how to setup a data source, then you follow the destructions for a normal jndi data source. Something like: Additionally, Saurabh,

RE: connection pooling

2004-08-16 Thread Jim Barrows
-Original Message- From: Saurabh Bhatla [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 2:42 PM To: Struts Users Mailing List Subject: RE: connection pooling Jim, I am sorry but I am confused now. Just correct me if I am wrong I want to call my DAO from my

Re: connection pooling

2004-08-16 Thread Saurabh Bhatla
yeah, I am planning to use OJB for persistence. Thankx for your advice. regards saurabh On Mon, 2004-08-16 at 16:43, David Durham wrote: Jim Barrows wrote: Ah, okay.. I also posted a link to the struts way to do the JNDI data source stuff in that case.. you follow your web app

RE: connection pooling

2004-08-16 Thread sridhar ramalingam
Saurabh, If you want to do some kind of initialization when your server starts up, you can implement the org.apache.struts.action.PlugIn interface and override the init() method to do your initialization. Check Logon example application,

RE: connection pooling

2004-08-16 Thread Saurabh Bhatla
Jim, I understand most part of it now. the only thing that i dont understand is how will the connection pooling be handled. I am using tomcat 5. will the following code(from the link that u sent me) serve the purpose? data-sources !-- configuration for commons BasicDataSource -- data-source

RE: connection pooling

2004-08-16 Thread Jim Barrows
-Original Message- From: Saurabh Bhatla [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 3:16 PM To: Struts Users Mailing List Subject: RE: connection pooling Jim, I understand most part of it now. the only thing that i dont understand is how will the connection

Re: html:text - want to set disable= to a bean value

2004-08-16 Thread Stuart Guthrie
Thank you Susan, that looks spot on. I'll try it this AM.. ATB Stuart On Tue, 2004-08-17 at 01:09, Susan Bradeen wrote: Stuart Guthrie [EMAIL PROTECTED] wrote on 08/16/2004 10:01:49 AM: Hi there, What I'm trying to do is re-use the same jsp for ADD/UPDATE modes. In order to do

multiselect with a map-backed form property

2004-08-16 Thread Adam Murray
I have a form with a dynamically generated list of constraints that can be turned on or off, and each constraint has a set of values associated with it. My form has two relevant fields: private String[] selectedConstraints; private Map values; public String[] getSelectedConstraints() {

Re: html:text - want to set disable= to a bean value

2004-08-16 Thread Stuart Guthrie
Thanks Rick. I need to rely on the backend to decide whether to enable/disable as the requirement is a 'business rule' not an interface decision. Here are the factors: - What 'stage' is this row of the table reached determines if this field can be changed or not. - What 'security level' the

Re: Connection and Tomcat server

2004-08-16 Thread Jignesh Patel
I can say, this is purely a connection closing problem. That's the reason when you restart the tomcat it works fine till the time all the connection in the connection pool utilize and then after it hangs. Are u closing your connection in finally block? -Jignesh On Mon, 2004-08-16 at 02:14,

RE: connection pooling

2004-08-16 Thread Jignesh Patel
Suppose I will put following code in my struts-config.xml instead of tomcat's server.xml will it work as per the expectation for abandoned connection. set-property property=maxCount value=1500/ set-property property=minCount value=1500/ set-property property=username

Missing message for key

2004-08-16 Thread dangmp
Return Receipt Your Missing message for key document :