RE: checkbox and iterate problem

2003-02-26 Thread pqin
Have to set default value in reset method. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 1:18 PM To: [EMAIL PROTECTED] Subject: checkbox and

RE: checkbox and iterate problem

2003-02-26 Thread pqin
try Boolean.FALSE (Object) instead of false (which is a primitive type). Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 2:04 PM To: [EMAIL

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
What is the bug that you discovered? Mine works just fine. Tomcat 4.1.18 Struts 1.1-rc1 Oracle 8i Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: David Haynes [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 4:43

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
Make sure commons-dbcp and pooling are not in your common/lib, use tomcat's. Besides, I don't use struts datasource, I use Tomcat JNDI datasource and pooling. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: David

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
Sorry, make sure top use commons-dbcp and pooling in tomcat's common/lib. Since Tomcat JNDI is tomcat's not struts'. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent:

RE: checkbox and iterate problem

2003-02-26 Thread pqin
Mine is Collection, so I iterate thru the collection and set false (String) to each checked. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Neal [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 5:20 PM To: [EMAIL

RE: Reporting an Exception message in a JSP.

2003-02-25 Thread pqin
If you want to show your error message on the page where error occurs, there is no easy way than html:error/. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED] Sent: February

RE: Reporting an Exception message in a JSP.

2003-02-25 Thread pqin
I usually log SQLExceptions in log file and display An unexpected error occurred, please contact your sys admin. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: John Espey [mailto:[EMAIL PROTECTED] Sent: February

RE: Reporting an Exception message in a JSP.

2003-02-25 Thread pqin
Solution 1: - Add error to ActionMessage. - Display the above message as a hidden field on the same page. - Meanwhile, display a friendly message to user on the same page. Solution 2: - log exception to a file. - display friendly message to user on the same page. Regards, PQ This Guy

RE: Netscape 4.7x and Struts performance problems

2003-02-25 Thread pqin
I have to disagree with Craig on the issue of banishing ns4. We are all working on a *nix box. There are not many choices besides mozilla or ns. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Vinh Tran

RE: Netscape 4.7x and Struts performance problems

2003-02-25 Thread pqin
This time I agree. :) Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 5:47 PM To: Struts Users Mailing List Subject: RE: Netscape 4.7x and

how old is struts

2003-02-21 Thread pqin
Craig, Since you are one of the developers of struts, can you tell me how old is this project? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing

RE: how old is struts

2003-02-21 Thread pqin
I asked this question is because there is a funny recruitment ad from a major Canadian bank hiring some one with 2 - 3 years experience of struts. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Trieu, Danny

RE: html:select validation

2003-02-05 Thread pqin
I suspect that you have to override reset method in your ActionForm class to set default value of checkbox. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: February

RE: nested taglibs / Struts 1.1 beta 3

2003-02-05 Thread pqin
If you don't want to pay for it right because of time constraint, you will have to pay even more in the future. Upgrading from 1.0 to 1.1 as soon as possible should reduce the pain. Nested tag: I don't have any problem, could you post your code so we can have a look? Regards, PQ This Guy

RE: Again: to include or not to include thirdparty jars in my distribution?

2003-02-05 Thread pqin
I am not expert. I use Tomcat and struts. I found that even though my app uses commons-dbcp, I don't have to include it into my WEB-INF/lib because it is in Tomcat's common/lib. I guess the requirement is container based. Of course, if not to include only works if all apps use the same release of

action mapping

2003-02-05 Thread pqin
I remembered some one on the list had said that ActionMapping is deprecated in 1.1b3. If ActionMapping is deprecated, why all those Action.execute still accept ActionMapping as argument? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing

RE: How do i keep the commons-*.jar files from being required? (Weblogic 5.1)

2003-02-05 Thread pqin
I think Tomcat is more friendly to struts than other containers because it has some of the commons-* jars installed in common/lib. Even though I didn't include commons-pool and commons-dbcp in my WEB-INF/lib, my commons implementation of connection pool still works - I know it breaks the rule.

RE: How do i keep the commons-*.jar files from being required? (Weblogic 5.1)

2003-02-05 Thread pqin
Maybe they are trying to save disk space. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: February 5, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: RE: How do i keep the

RE: how to access a specific object inside a List efficiently

2003-02-05 Thread pqin
TreeMap should solve the problem, sorted + quick-lookup. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Rob Kischuk [mailto:[EMAIL PROTECTED]] Sent: February 5, 2003 12:57 PM To: 'Struts Users Mailing List'

RE: How do i keep the commons-*.jar files from being required? (Weblogic 5.1)

2003-02-05 Thread pqin
Doesn't fit into a floppy. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: February 5, 2003 1:21 PM To: [EMAIL PROTECTED] Subject: RE: How do i keep the commons-*.jar

RE: Struts Tools

2003-02-05 Thread pqin
I used your struts console in forte/netbeans without any problem. Now that I have switched to Eclipse and installed your plugin 3.2. Eclipse throws NullPointerException when I try to access the Preference - Workbench or - file association. Regards, PQ This Guy Thinks He Knows Everything

RE: using tokens in struts,

2003-02-04 Thread pqin
Token works perfect for my app. In my load action, I set token by saveToken(request). In my submit action, I check token by isTokenValid(request); if invalid, I forwards request to an error page. Very simple. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What

RE: using tokens in struts,

2003-02-04 Thread pqin
In your DispatchTestAction class, after you populate the form bean (request.setAttribute), call saveToken(request) ; In your DoAction class, before you submit to database, check token isTokenValid(request); if valid, continue process and resetToken(request); otherwise, return a global forward

RE: DynaValidatorForm exception.

2003-02-04 Thread pqin
WEB-INF/lib Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jay Wright [mailto:[EMAIL PROTECTED]] Sent: February 4, 2003 3:35 PM To: 'Struts Users Mailing List' Subject: RE: DynaValidatorForm exception. Where is

RE: problem of mapping

2003-01-31 Thread pqin
Those two parameters are totally different definitions. Parameter in url is servlet request's parameter. Parameter in mapping is a property of ActionConfig class. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From:

RE: proper use of back button -- design patterns

2003-01-31 Thread pqin
I want to bring up another issue. The default behavior of RequestProcessor is to save everything into a new ActionForm then do the validation. If token is invalid, why should we bother populating the ActionForm at all? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He

RE: html:multibox no selection (Struts 1.1b2)

2003-01-31 Thread pqin
In reset method of your ActionForm, set default value of checkbox. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Johan Kumps [mailto:[EMAIL PROTECTED]] Sent: January 31, 2003 4:47 PM To: Struts mailing Subject:

RE: html:multibox no selection (Struts 1.1b2)

2003-01-31 Thread pqin
Then set unchecked value. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Johan Kumps [mailto:[EMAIL PROTECTED]] Sent: January 31, 2003 4:53 PM To: Struts Users Mailing List Subject: RE: html:multibox no selection

RE: html:multibox no selection (Struts 1.1b2)

2003-01-31 Thread pqin
You override the reset method to set unchecked value. 1. You know how many elements in your array, so instantiates your array. 2. You know the unchecked value of each element, so do a loop and set default value to each element. Regards, PQ This Guy Thinks He Knows Everything This Guy

RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread pqin
Any solution without using JavaScript? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: January 30, 2003 9:37 AM To: 'Struts Users Mailing List' Subject: RE: Automatic

RE: tokens and set-property

2003-01-30 Thread pqin
Try to utilize the parameter in your action mapping. For loading action, parameter = load; for submission action, parameter = submit. Base action class logic: If parameter is load saveToken(request) If parameter is submit isTokenValid(request) submit

RE: Forms and getting the ActionServlet from the form

2003-01-30 Thread pqin
What do you need to get the ActionServlet in your ActionForm? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: bkafka [mailto:[EMAIL PROTECTED]] Sent: January 30, 2003 4:28 PM To: Struts Users Mailing List Subject:

RE: Forms and getting the ActionServlet from the form

2003-01-30 Thread pqin
I prefer your workaround. It is simply not good idea to me to touch servlet request or ActionMapping or ActionServlet in ActionForm. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: bkafka [mailto:[EMAIL PROTECTED]]

RE: what does RT Expr mean

2003-01-29 Thread pqin
Means using JSTL? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Sundar Narasimhan [mailto:[EMAIL PROTECTED]] Sent: January 29, 2003 9:27 AM To: [EMAIL PROTECTED] Subject: what does RT Expr mean In the bottom of

RE: get data to Collection

2003-01-29 Thread pqin
public void reset(ActionMapping mapping, HttpServletRequest request) { read = new ArrayList(); //skip others params } Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Kafka [mailto:[EMAIL PROTECTED]]

session size and struts

2003-01-27 Thread pqin
I know the implementation of session is container dependant. I know struts put a lot of stuff in the http session. Can any one tell me how big is a session if I implement Tomcat 4.1.x + struts 1.1 beta? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows

RE: Default Form Values

2003-01-24 Thread pqin
Instantaitates a new form bean, request.setAttribute, load page. If it is DynaActionForm, set default in your struts config file. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Weber, Jeremy [mailto:[EMAIL

RE: db connection pool question [solved]

2003-01-23 Thread pqin
If you use oracle.jdbc.pool.OracleConnectionPoolDataSource, what will be the url? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED]] Sent: January 23, 2003 11:53 AM To: 'Struts

RE: To check if user is logged in

2003-01-22 Thread pqin
Will this filter work with struts Action class? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: January 22, 2003 7:58 AM To: 'Struts Users Mailing List' Subject:

RE: Struts-config.xml and DynaBeans

2003-01-22 Thread pqin
Can you give me an example of your factory? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: January 22, 2003 7:56 AM To: Struts Users Mailing List Subject: RE:

RE: Why is the reset method called when I submit the form?

2003-01-22 Thread pqin
I guess struts calls reset in order to save all your input and then does the validation Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jeremy Cavagnolo [mailto:[EMAIL PROTECTED]] Sent: January 22, 2003 2:53 PM To:

RE: html:rewrite gets the error message Body is supposed to be empty for html:rewrite

2003-01-21 Thread pqin
Replace with ' a class=menuItem href='html:rewrite page=/main.do/'Main/a Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jagdish Arora [mailto:[EMAIL PROTECTED]] Sent: January 21, 2003 2:06 AM To: Struts Users

RE: DynaActionForm question

2003-01-21 Thread pqin
Is it possible to instantiate an instance of DynaActionForm before I populate the page? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: January 20, 2003 7:58 PM

follow up on action mapping

2003-01-20 Thread pqin
Last week I asked if action mapping's input accepts action. The answer is Yes after I did a test. action path=/myAction1 type=myActionClass1 input=/myAction2.do forward../ /action input can be a page or an action. Regards, PQ This Guy Thinks He Knows

RE: Display values after validation (was RE: action input)

2003-01-17 Thread pqin
It only resets numeric. For example, there is an amount property of your bean which is a Double. If you enter abc and submit, abc is reset to 0.0. To avoid this, change Double to String so struts can keep the original value. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He

RE: Action without forward ?

2003-01-16 Thread pqin
My writer writes binaries to output stream. Stmt is an Oracle BFILE, response is HttpServletResponse, length doesn't matter. InputStream in = null ; BufferedInputStream bis = null ; ServletOutputStream writer = null ; try {

RE: numberFormat

2003-01-16 Thread pqin
Is there a struts documentation that explains what those formats are? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: January 16, 2003 10:13 AM To: 'Struts Users

RE: numberFormat

2003-01-16 Thread pqin
That means struts supports all the java number formats. Great. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Gabrovsky, Ivaylo [mailto:[EMAIL PROTECTED]] Sent: January 16, 2003 11:21 AM To: [EMAIL PROTECTED]

RE: complexed structures/objects

2003-01-16 Thread pqin
Dot notation always works. For example public class ClassA { private ClassB b public class ClassB { private String c in struts, logic or bean:write, you refer a.b.c Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original

RE: Struts taglibs - Is data grid possible

2003-01-16 Thread pqin
COM is similar to CORBA/RMI but not CORBA, am I right? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: January 16, 2003 11:15 AM To: 'Struts Users Mailing List'

action input

2003-01-16 Thread pqin
action path=/myAction type=fully.qualified.action.class.name input=mypage.jsp Can I set input=myAction2.do? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing

bean:write and embedded html tag

2003-01-15 Thread pqin
My ActionForm is public class MyActionForm extends ActionForm { private String myMessage ; public String getMyMessage() { return myMessage ; } } Now that I set myMessage to line_1brline_2 so as to display it on the page as line_1 line_2 If I use bean:write

RE: bean:write and embedded html tag

2003-01-15 Thread pqin
Good point Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: January 15, 2003 2:26 PM To: Struts Users Mailing List Subject: RE: bean:write and embedded html tag Have

RE: Migrating from 1.0 to 1.1 ERRORS

2003-01-15 Thread pqin
Agree. I also found that JK2 connector is much easier to setup and is very stable. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: January 15, 2003 4:44 PM To:

RE: Collection within Collection

2003-01-14 Thread pqin
Try nested:iterate tag Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Cohan, Sean [mailto:[EMAIL PROTECTED]] Sent: January 14, 2003 9:59 AM To: Struts (E-mail) Subject: Collection within Collection I have a

RE: Collection Population Post-Validation Best Practice

2003-01-14 Thread pqin
I usually use two Action classes. - LoadAction class to check if user is returned from page. Then I can decide whether I shall populate page using what he has entered before or instantiate a new page. - Action class to process form submission and chain to next LoadAction. Regards,

RE: How to reset session-scoped Dyna bean values

2003-01-13 Thread pqin
Can you discard this bean and instantiate a new one? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Affan Qureshi [mailto:[EMAIL PROTECTED]] Sent: January 13, 2003 12:07 AM To: struts-user Subject: How to reset

RE: Cannot find bean...

2003-01-13 Thread pqin
In your struts conf xml, define the action and set scope to request. action path=/myAction type=myActionClassName input=myJSPPage scope=request forward name=success path=/nextAction / /action Regards, PQ This Guy Thinks He Knows Everything This Guy

RE: ActionErrors question

2003-01-10 Thread pqin
html:errors bundle=yourbundle/ Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: January 10, 2003 3:51 PM To: Struts Users Mailing List Subject: RE: ActionErrors question

RE: forwarding to unrelated pages

2003-01-09 Thread pqin
I create two Actions, one for loading page, the other for form submission. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: January 9, 2003 11:29 AM To: [EMAIL

session scope ActionForm

2003-01-08 Thread pqin
I am a bit confused about session scope of ActionForm. For example, in my ActionForm testForm private String field1 ; private String filed2 ; I instantiate testForm in a PageOneLoadAction TestForm testForm = new TestForm() ; Request.getSession().setAttribute(testForm, testForm) ; On page

RE: value=bean:write../ question

2003-01-08 Thread pqin
No, it will still be set. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: January 8, 2003 3:55 PM To: 'Struts Users Mailing List' Subject: RE: value=bean:write../

RE: Multiple Controllers struts-config

2003-01-07 Thread pqin
Please excuse my curiosity and ignorant. If we can access pages using https why bother using SSLext? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Steve Vanspall [mailto:[EMAIL PROTECTED]] Sent: January 6, 2003

RE: using Log4J

2003-01-07 Thread pqin
What's the benefit of using commons-logging if I have log4j setup and working? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED]] Sent: January 7, 2003 1:43 AM To: Struts Users

RE: using Log4J

2003-01-07 Thread pqin
So having a wrapper around my log4j won't reduce the performance? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Karl Baum [mailto:[EMAIL PROTECTED]] Sent: January 7, 2003 11:12 AM To: Struts Users Mailing List

RE: Display the content of a form.

2003-01-07 Thread pqin
One dirty trick is to use enable/disable. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: January 7, 2003 11:06 AM To: '[EMAIL PROTECTED]' Subject: Display the

RE: Indexed property

2003-01-07 Thread pqin
Override reset method in your ActionForm Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Yujin Kim [mailto:[EMAIL PROTECTED]] Sent: January 7, 2003 1:21 PM To: 'Struts Users Mailing List' Subject: Indexed property

RE: PrePopulation of FormBean Values

2003-01-06 Thread pqin
I do it this way In your action class, instantiate a new ActionForm, populate values, and then request.set(yourformbeanname in struts conf xml, yourinstance). Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: ashokd

RE: Struts equivalent of if...else (newbie)

2003-01-06 Thread pqin
logic:equal = if...then logic:notEqual else Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: January 6, 2003 9:19 AM To: 'Struts Users Mailing List' Subject: RE:

RE: a couple of questions

2003-01-06 Thread pqin
The template is like a super class, include jsp is like a subclass, can you inherit super class imports in your subclass? No. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Yan Zhu [mailto:[EMAIL PROTECTED]]

RE: ApplicationResources.properties

2003-01-03 Thread pqin
Isn't it defined in struts config xml? message-resources parameter=/? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jimmy Oh [mailto:[EMAIL PROTECTED]] Sent: January 3, 2003 12:27 AM To: Struts Users Subject:

RE: Does not work to use SaveToken to avoid duplicated submit if I us e the same jsp as the form and also as the resulting page?

2003-01-03 Thread pqin
On top of this question, I would like to know if this token can resolve issues casuing by depressing BackSpace key? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jason Yam [mailto:[EMAIL PROTECTED]] Sent: January

RE: Struts based app. and SSL doesnt work together

2003-01-03 Thread pqin
Have you checked apache's ssl log? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Maris Orbidans [mailto:[EMAIL PROTECTED]] Sent: January 3, 2003 9:47 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject:

RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
Don't understand why you prefer an absolute path? I use relative path, In web.xml taglib taglib-uri/tags/struts-tiles/taglib-uri taglib-location/WEB-INF/struts-tiles.tld/taglib-location /taglib tld file is in my WEB-INF, struts.jar is in my WEB-INF/lib, and tiles plugin is

RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Daniel Grey [mailto:[EMAIL PROTECTED]] Sent: January 3, 2003 2:20 PM To: Struts Users Mailing List

RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
Forget META-INF (sorry Craig). I think I finally figured it out. Let's go back to old release (1.1b2). In my web.xml, I define taglib taglib-urimytiles/taglib-uri taglib-location/WEB-INF/struts-tiles.tld/taglib-location /taglib taglib-uri is just a reference that you will use in

RE: Struts data-source vs. Tomcat JNDI registered DataSource

2003-01-03 Thread pqin
JNDI is way too easy. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Charlie Toohey [mailto:[EMAIL PROTECTED]] Sent: January 3, 2003 3:09 PM To: [EMAIL PROTECTED] Subject: Struts data-source vs. Tomcat JNDI

RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
Are your tlds located in myapp/WEB-INF? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Daniel Grey [mailto:[EMAIL PROTECTED]] Sent: January 3, 2003 3:32 PM To: Struts Users Mailing List Subject: RE:

RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
Check your jsp, is there any place in the jsp that explicitly looking for tld in WEB-INF/pages? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Khalid K. [mailto:[EMAIL PROTECTED]] Sent: January 3, 2003 3:46 PM To:

RE: Iterate Index Evaluation

2003-01-03 Thread pqin
Can you use html-el? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: January 3, 2003 3:53 PM To: 'Struts Users Mailing List' Subject: RE: Iterate Index Evaluation

RE: Updating collections of information

2003-01-03 Thread pqin
Greg, I have to correct my posting. In my OrderEntryForm, there is an instance variable called lineItems. In my reset method, I first instantiate it using lineItems = getOrder(request).getLineItems(). Then I set the checkbox and let struts to populate the line items. You don't have to keep a

RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
When I load Tomcat, I can see sth like this in log 2003-01-03 16:14:09 ContextConfig[/lciponline]: Accumulating TLD resource paths 2003-01-03 16:14:09 ContextConfig[/lciponline]: Scanning taglib elements in web.xml 2003-01-03 16:14:09 ContextConfig[/lciponline]:Adding path

RE: Iterate Index Evaluation

2003-01-03 Thread pqin
Odd and even is not the only way of doing that, you can also switch between 1 and -1 regardless which row index is. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Piper, James D CECOM SEC EPS [mailto:[EMAIL

RE: Updating collections of information

2003-01-02 Thread pqin
1.1b2 Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Greg Bearth [mailto:[EMAIL PROTECTED]] Sent: December 31, 2002 6:01 PM To: 'Struts Users Mailing List' Subject: RE: Updating collections of information PQ, can

RE: ArrayDescriptor - GenericConnection exception

2003-01-02 Thread pqin
Oracle requires an explicit OracleConnection. Thus you have to get the underlying connection of struts/tomcat connection by ((PoolableConnection) getConnection()).getDelegate() Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original

RE: problem streaming file to browser

2002-12-31 Thread pqin
Did u close all the resources before u return null? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Srinivas Sampige [mailto:[EMAIL PROTECTED]] Sent: December 30, 2002 9:13 PM To: Sven Bischoff Cc: [EMAIL

RE: [ANNOUNCEMENT] Struts 1.1 Beta 3 Released

2002-12-31 Thread pqin
Can you provide a list of changes/bug fixes since 1.1b2? All I have seen is additions/changes/bug fixes since 1.0 Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED]] Sent:

RE: Updating collections of information

2002-12-31 Thread pqin
This is a classic question. You have to override reset in your form to correctly populate all the elements. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Greg Bearth [mailto:[EMAIL PROTECTED]] Sent: December 31,

RE: using logic:iterate to load html:link

2002-12-31 Thread pqin
Everybody is talking about struts-el. Is it part of struts.jar? where can I find the doc for it? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED]] Sent: December 31, 2002 11:02

RE: Updating collections of information

2002-12-31 Thread pqin
public class OrderEntryForm extends ActionForm { /** * list of line items. */ private Collection lineItems ; /** * next withdraw from line item. */ private String nextWithdrawalDate ; /** * instantiates an empty collection of line items. */

RE: Updating collections of information

2002-12-31 Thread pqin
On the page: nested:iterate property=lineItems id=orderEntryLineItemForm TR TD nowrapnested:hidden property=assetID/nested:write property=assetName//TD TD align=centernested:text property=stringOrderAmount//TD TD align=center nested:select

RE: Updating collections of information

2002-12-31 Thread pqin
My solution is pretty dumb because it keeps two copies of ActionForm. 1. In orderEntryLoad action (before I load order entry page) I retrieve line items from database and save two copies of them. One in the session (see point 2), the other in the request so I have all the initial values of this

RE: problem streaming file to browser

2002-12-30 Thread pqin
Did you return null? Since u write as pdf, you can only return null as forward. Regards, Phillip Qin This Guy Thinks He Knows Everything -Original Message- From: Srinivas Sampige [mailto:[EMAIL PROTECTED]] Sent: December 27, 2002 7:34 PM To: Struts Users Mailing List Subject: RE:

RE: Problem Using Log4J and Commons Logging with Struts

2002-12-30 Thread pqin
If I only use log4j, jar has to be placed in my app's WEB-INF/lib. Don't know why it is in a different directory if commons-logging and log4j work together. Regards, Phillip Qin This Guy Thinks He Knows Everything -Original Message- From: Paul Hodgetts [mailto:[EMAIL PROTECTED]]

RE: logon servlet through html forms resource not available

2002-12-30 Thread pqin
In your html, action=/logon.do; in your struts config xml, define action path=logon Regards, Phillip Qin This Guy Thinks He Knows Everything -Original Message- From: Loren Hall [mailto:[EMAIL PROTECTED]] Sent: December 28, 2001 6:07 PM To: Struts Users Mailing List Subject:

RE: redirect attribute (newbie)

2002-12-30 Thread pqin
Why don't you do it in your struts config xml? If authenticated, return a forward for action/getaccountinformation; if failed, return mapping.getInput (u need to define input as login page)? Regards, Phillip Qin This Guy Thinks He Knows Everything -Original Message- From: Suresh

RE: Global Exception Handlers

2002-12-30 Thread pqin
What kind of detail you are looking at? Regards, Phillip Qin This Guy Thinks He Knows Everything -Original Message- From: Michael Marrotte [mailto:[EMAIL PROTECTED]] Sent: December 30, 2002 1:00 PM To: Struts Users Mailing List Subject: Global Exception Handlers Do you know of

RE: Problem Using Log4J and Commons Logging with Struts

2002-12-30 Thread pqin
Sorry, I am talking about Tomcat. Maybe it is bug for JRun. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Paul Hodgetts [mailto:[EMAIL PROTECTED]] Sent: December 30, 2002 5:14 PM To: [EMAIL PROTECTED] Subject:

disable enter key

2002-12-27 Thread pqin
Dumb question. Is it able to disable Enter key without using JavaScript on any struts-powered page? Regards, Phillip Qin This Guy Thinks He Knows Everything

  1   2   >