Re: unsubscribe from new list

2004-03-31 Thread Craig R. McClanahan
Nick Faiz wrote: How do I unsubscribe from this list? I've sent emails to both [EMAIL PROTECTED] and [EMAIL PROTECTED] Try sending an empty message to "[EMAIL PROTECTED]". If that doesn't work, send me mail privately and I'll remove you. Nick Faiz Craig -Original

Re: TokenProcesor and synchronization

2004-04-04 Thread Craig R. McClanahan
Prasad, Kamakshya wrote: Hi, It might be a silly question... but curiosity... Why we need to synchronize at all? Each user session will be unique in the server and so the extracted variables from that session. KP It's not a silly question ... this is an issue that *lots* of people don't und

Re: Design Question

2004-04-04 Thread Craig R. McClanahan
Erez Efrati wrote: Hi, I am developing an EJB/Struts J2EE application. Up to now I have dealt with the design of the customer web application side and I came to the admin area - the back office web application part. I should also point out that I am using the securityFilter filter for authent

Re: HashMap of Vectors and Indexed Properies

2004-04-05 Thread Craig R. McClanahan
Craig Tataryn wrote: Thanks, I'll check that out. Hey, did the mailing list address change or something? I've always mailed to [EMAIL PROTECTED] and now I see the reply-to generated by the list manager is now [EMAIL PROTECTED] Craig Yes, it did. At the March 2004 meeting of the Apache Soft

Re: integer validation problem

2004-04-05 Thread Craig R. McClanahan
Joe Hertz wrote: [snip] Wouldn't it be more useful to have the form object do the type conversion? Have a way to tell it the "JSP type" (99% String) and the "application type". Make the form objects smart enough to give you a properly typed result, much in the same way Hibernate's Session.load(

Re: integer validation problem

2004-04-06 Thread Craig R. McClanahan
Joe Hertz wrote: Craig R. McClanahan writes: What you're basically asking for is user interface components, instead of simple input fields. Fortunately, you can have that today with things like JavaServer Faces. The user interface components there have the ability to automati

Re: Creating value objects using reflection class

2004-04-06 Thread Craig R. McClanahan
walkrustin wrote: Hi, After receiving the form, I have to copy the value of each field to a value object. I wrote a small reflection utility class to server the purpose. Now I need more functionalities to that utility class. I was wondering if there is any utility package already out there w

Re: Action Class - No of instances

2004-04-06 Thread Craig R. McClanahan
Senthivel U S wrote: Greetings, Programming Jakarta Struts by Chuck Cavaness book says always there will be only one instance of Action Class but we have checked with the application and found that there are more than one instance of same action class even though the same instance is serving simu

Re: R: struts-faces integration

2004-04-06 Thread Craig R. McClanahan
Manganotti Francesco (USI) wrote: Using struts-faces integration library I have a "tag nesting error" with a component. Any suggestion? cheers, F. It's pretty hard to diagnose things like this without seeing the JSP source of your problem page. Craig -

Re: list of modules

2004-05-01 Thread Craig R. McClanahan
Aaron Smuts wrote: To just get a list you could do something like this, I guess: In an Action class put the getServlet, else omit if in the servlet. Enumeration enum = getServlet().getServletConfig().getInitParameterNames() Then you could look for the ones that start with "config/" A more ro

Re: newbie struts-el best practices question

2004-05-01 Thread Craig R. McClanahan
Takhar, Sandeep wrote: Where does Struts-Faces fit into this picture? To answer this, it's helpful to understand the core value that JSF brings to the table ... the ability for the world to provide a rich set of UI components, and the ability to use components from different libraries in the

Re: newbie struts-el best practices question

2004-05-01 Thread Craig R. McClanahan
Robert Taylor wrote: David, I think the consensus is to utilize standards where possible; next use common (open source/vendor); otherwise proprietary tags (role your own). JSTL ==> Struts-EL tags ==> Struts tags ==> common/vendor library tags ==> role your own tags So your application may end up

Re: HttpSessinoListener Confusion

2004-05-01 Thread Craig R. McClanahan
Jignesh Patel wrote: If we will use HttpSessionListener, will tomcat implement seperate listener for all the Sessions or it will be common for all the sessions? The latter. Tomcat (or any other servlet container) will create a single instance of your listener for each element in web.xml.

Re: Is MappingDispatchAction (Struts?) multithreaded? (Do I need to worry about it?)

2004-05-01 Thread Craig R. McClanahan
Riyad Kalla wrote: Can anyone answer this? (DEVs) I'm very interested in the answer... Most of the aspects in which you have to worry about thread safety in Struts mirror those you have to be concerned with in servlets. In the particular case of MapDispatchAction, though, there is nothing reall

Re: Declarative security in struts

2004-05-01 Thread Craig R. McClanahan
Chaikin, Yaakov Y (US SSA) wrote: Hi, I am pretty new to Struts. Looked through the archives and wasn't sure what the current answer would be to my question. Is there a way to use Struts while using the declarative approach to security? Not to add another user, but simply to secure your applicati

Re: Newbie: Session timeout strategy; opinions?

2004-05-01 Thread Craig R. McClanahan
Freddy Villalba Arias wrote: I believe Tomcat does provide that... not sure since when (which version), though. Terminating sessions via the invalidate() method is common to all servlet containers. So is the fact that you can set the default session timeout to 0 or less in web.xml to turn off t

Re: [SPAM/Virus] Malicious mail from Struts-user users?

2004-05-01 Thread Craig R. McClanahan
Hernan Soulages wrote: Since this is the only place where the origin and target address of e-mail I received yesterday are together, I think someone in the list is infected. While that is certainly possible, it is absolutely *not* required to see the behavior we're seeing. All that is required i

Re: [SPAM/Virus] Malicious mail from Struts-user users?

2004-05-01 Thread Craig R. McClanahan
Martin Cooper wrote: "Joe Germuska" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Is anyone else getting this? Literally hundreds of times a day, from struts-user, cocoon-user, jakarta-general, as well as such lumnaries as Craig McClanahan and Martin Cooper. Gee, I can

Re: Handling sessions

2004-05-01 Thread Craig R. McClanahan
MARU, SOHIL (SBCSI) wrote: I guess that's true, but subclassing the request processor doesn't take much. And I only need to over ride processpreprocess to get my stuff done, its like 20 lines of code. Anything else that's fundamentally wrong with this approach? If you have multiple modules in the

Re: [OT] log per session

2004-05-01 Thread Craig R. McClanahan
Chiming Huang wrote: Hi, Is it practical to have a log file created per sessoin? I am using log4j 1.2.8. It logs all messages to one log file. What is your suggestion? This is primarily a Log4J question ... consider looking at the "Nested Diagnostic Context" (NDC) feature of Log4J. You wo

Re: Use jsessionid in Message

2004-05-01 Thread Craig R. McClanahan
Joseph Toth wrote: Is there an easy way to replace a jsessionid in a message? Something like... message.intro=Welcome, click here to join! Some of my messages are paragraphs long with a few links in them. I wanted to know if is a way to keep the texts and links inside that one message. I would r

Re: Database access in contextInitialized

2004-05-01 Thread Craig R. McClanahan
Samuel Rochas wrote: Hello Struts Gurus, I am starting with struts. I used to make some initialization in my Servlets using the init() method. With struts, I just implemented the contextInitialized method of ServletContextListener Interface, and I have a place for such initializations. Fine.

Re: [OT] dbcp, the finally block, and setting connection object to null after closing it.

2004-05-01 Thread Craig R. McClanahan
MARU, SOHIL (SBCSI) wrote: conn.close() is sufficient. Not setting conn to null will not prevent the pool from handing out that connection again. According to my knowledge, the statement conn == null is superflous and unnecessary, if somebody can point out why its required I will have learnt somet

Re: Way to reload struts Action classes in WebLogic8.1

2004-05-01 Thread Craig R. McClanahan
Inamdar, Anil - Cons wrote: Hello, Is there a way to reload Actions in Weblogic without redeploying the web application. No. Java provides no way to replace a class (loaded by a particular class loader) with a modified version, without throwing away the entire class loader. That's what normall

Re: Security + struts

2004-05-01 Thread Craig R. McClanahan
Pedro Salgado wrote: On 04/04/29 18:54, "Lucas Gonzalez" <[EMAIL PROTECTED]> wrote: Pedro, I am really interested in this subject and I´m not sure wich one is the best way to go... the main idea is to have the users/roles managemente module running inside the J2EE container since the struts ap

Re: Way to reload struts Action classes in WebLogic8.1

2004-05-02 Thread Craig R. McClanahan
Michael McGrady wrote: To expand (part question and part statement): Suppose: 1. We made an interface, Action, which the present Struts Action (renamed, say, "ActionImpl") implemented. 2. We created a daemon ActionFactory which loaded actions from outside the CLASSPATH using a URLClassloader

Re: Action class performance

2004-05-02 Thread Craig R. McClanahan
Erwin Cabral wrote: 1. Are there any performance issues involved when an Action class forwards to another? Any RequestDispatcher.forward() call has roughly the same performance impact as what the container has to do on any original HTTP request (map the request to a particular servlet, start tha

Re: HttpSessinoListener Confusion

2004-05-02 Thread Craig R. McClanahan
Jignesh Patel wrote: So You, mean there is a one seperate event for one single session. For each session, an HttpSessionListener will receive an event when the session is created, and an event when the session is destroyed (the call will go to the appropriate method for the event type in questi