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

2004-05-01 Thread Michael McGrady
Isn't the trick to load the classes with a classloader that does not require you to reload the entire webapp? This is a combination question and statement. I am interested in this issue and want to find a way to load classes in a webapp which will be workable. I am thinking of the stuff that

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-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: [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: 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: 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: Is MappingDispatchAction (Struts?) multithreaded? (Do I need to worry about it?)

2004-05-01 Thread Riyad Kalla
Craig I really appreciate you taking the time to answer this. Now I have my answer and can avoid any nastiness! Best, Riyad Craig R. McClanahan wrote: 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 th

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: 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: [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: [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: 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: 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: 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: 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: 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: 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: 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