struts printing debug mesg regardless what I did

2003-12-03 Thread david chan
Hi, I am using Struts 1.1 and log4j 1.2.4, and in my log4j.properties, I have this to turn off Struts debug mesg, but it always printing debug mesg for package org.apache.common. How can I turn it off? Thanks. David ===my log config === log4j.rootLogger=warn, rolling

Re: struts printing debug mesg regardless what I did

2003-12-03 Thread david chan
: log4j.category.org.apache.common=WARN - Original Message - From: david chan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 9:39 AM Subject: struts printing debug mesg regardless what I did Hi, I am using Struts 1.1

redirect post

2003-11-06 Thread david chan
Hi, I have a web app use Struts 1.1 and Websphere app. server 4.0.5. The user need to login to the app. and after login, user can click back button on browser to previous page. In case user go back to login page and type different login. info, I need to clear the current session by calling

passing html:link tag to bean:message tag

2003-10-14 Thread david chan
Hi, I am trying to do like this: bean:message key=cancel.message arg0='html:link forward=emailemail us/html:link' / I am hoping the final cancel message will has the email us link that is link to the email action. But of course this doesn't work because bean treat the arg0 as a string only.

RE: passing html:link tag to bean:message tag

2003-10-14 Thread david chan
=cancel.message fmt:param html:link forward=email fmt:message key=cancel.message.email /html:link /fmt:param /fmt:message Paul -Original Message- From: david chan [mailto:[EMAIL PROTECTED] Sent: 14 October 2003 15:34

RE: validation mask for currency

2003-08-14 Thread david chan
:). -Original Message- From: david chan [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 8:09 AM To: Struts Users Mailing List Subject: validation mask for currency Hi, I need a regular expression for checking the dollar among inputed by user (using validator struts 1.1

validation mask for currency

2003-08-14 Thread david chan
Hi, I need a regular expression for checking the dollar among inputed by user (using validator struts 1.1 mask) Here are some valid money (comma and period are allowed in specify location): 432,343.12 212.12 0.00 1294 The max. value should be less than 999 Any regular expression

Re: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread david chan
be to write a Filter mapped to /* that uses HttpServletRequest.getRequestURI to capture the requested URI. In a conformant Servler 2.3 container, the Filter will only operate on the original client request, not forwards or includes. Quoting david chan [EMAIL PROTECTED]: Hi, I am

tracking user activities: how to ignore action chaining (or server side forward)

2003-07-13 Thread david chan
Hi, I am writing a RequestProcessor that is a subclass of Struts 1.1 RequestProcessor, the purpose is to track user activities, i.e. which link the user clicked, which page the user requested etc. I override the method processForwardConfig, and put my tracking function first, here is how it

can't start struts1.1 RC1 example in Websphere 4.0.1 AE

2003-03-18 Thread david chan
Hi, I have websphere 4.0.1 Advance Server Edition running on my win2000 PC. I successfully deploy and run Struts 1.0.2 example to Websphere 4.0.1 AE, but failed to run Struts 1.1 RC 1 example, it deploys fine but when I try to start the example application within admin console, it failed with

how to get servletContext from httpsession ? (servlet api 2.2)

2003-03-18 Thread david chan
Hi, My webapp use HttpSession.getServletContext() method and works fine on tomcat 4.x. but not in websphere 4.x. I just figure out HttpSession.getServletContext() method is only avilable on servlet api 2.3. So in api 2.2, how can I do similar things? What I need is in

Re: [OT] RE: how to get servletContext from httpsession ? (servlet ap i 2.2)

2003-03-18 Thread david chan
, Nayan (N.) [EMAIL PROTECTED] wrote: You can use HttpServlet.getServletContext() ... or if you are in a jsp/tag, PageContext.getServletContext() --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: david chan [mailto:[EMAIL PROTECTED

constom the validation error mesg

2003-02-07 Thread david chan
Hi, I am using Struts 1.1b3 and Tomcat 4.1.12 and wondering how can I constomize the mesg Validation Error You must correct the following error(s) before proceeding: When I use html:errors/ tag in my jsp. This mesg comes up whenever I use the html:errors/ then followed by my own mesg. 1) How

db connection pool question

2003-01-21 Thread david chan
Hi, I am using a connection pool from org.apache.commons.dbcp.BasicDataSourceFactory and the driver is oracle.jdbc.driver.OracleDriver. It works great until if the server idle for a few days, then the connection object seems broken with this error: begin error mesg === java.sql.SQLException:

RE: db connection pool question

2003-01-21 Thread david chan
PROTECTED]] Sent: Tuesday, January 21, 2003 9:29 AM To: Struts Users Mailing List Cc: david chan; Struts Users Mailing List Subject: Re: db connection pool question select 1 from dual is the standard way to ping oracle for a valid connection. I would also recommend using Oracle's

RE: db connection pool question

2003-01-21 Thread david chan
david chan david_tomcat@ya To: Struts Users Mailing List [EMAIL PROTECTED] hoo.com cc

anyone use LocaleBeanUtils?

2003-01-09 Thread david chan
Hi, I posted this questions two times but no body seems using LocaleBeanUtils in action class. Hope this time someone can give me a feedback. I am looking for LocaleBeanUtils.copyproperties example. I have a valueobject which contain some sql date memeber and a formobject with corresponding

LocaleBeanUtils question repost

2003-01-08 Thread david chan
Hi, I am looking for LocaleBeanUtils.copyproperties example. I have a valueobject which contain some sql date memeber and a formobject with corresponding string memeber. I want to copy the valueobject to formobject and convert the date object to a string MM/dd/ when copying the bean. So I try

date pattern for LocaleBeanUtils

2003-01-07 Thread david chan
Hi, I try to use the LocaleBeanUtils for coping a valueobject with java.sql.Date member to a form object with String representation of date in mm/dd/ format. (using common-beanutils 1.5 and struts 1.1b3) How can I set the pattern MM/dd/ for DateLocalConverter? Here is my code in action

validate one field in multipage

2002-12-18 Thread david chan
Hi, I am using Struts-1.1b2 client side validator. And I have a big form for multipage user input. One of the field need to validated in page 1 and 2. But I don't see how can I do that, or does anyone know how to do it? Here is my config: validator.xml: field property=firstnm

Adobe GoLive 6 and struts HTML tag

2002-11-15 Thread david chan
Hi, I have a project which use Struts HTML tag a lot in JSP pages (I use Websphere studio for JSP development) and the web team is using Adobe GoLive to make these JSP pages looks nice. But how can I configure the adobe GoLive to work with Struts HTML tag? I don't want the web team to spend