[OS-webwork] Unit-testing actions in WW1.3

2004-02-17 Thread James Pan
Hi, I have a base class from which all my actions extend. This base class uses ActionContext to read properties file, initialize database connections, and so on. Now, when I create a new action, how can I unit-test it? I haven't tried it because the idea seems absurd to me, but do I need to

[OS-webwork] WW1.3 question on include-tag

2004-02-10 Thread James Pan
Hi, Not sure if the problem is actually as described in the title, but here it is: I have a couple of includes in some of my pages, and some times they throw up like this 2004-02-09 11:46:30,605 [WARN] taglib.IncludeTag - Exception thrown during include of licensegeneratorwizard1.include.jsp

[OS-webwork] session.containsKey() method

2004-01-26 Thread James Pan
Hi, In my actions, I sometimes test for certain conditions by checking to see if the session object contains a particular key, such as if (session.containsKey(myObject)) { System.out.println(myObject is + ( (Integer) session.get(myObject) ).intValue() ); } I've run into various

[OS-webwork] ResourceBundle and editing it

2003-12-04 Thread James Pan
Hi all, Is there a way for me to edit and update the properties file on the fly, and have the resourcebundle reload it automatically? I know I can actually use Properties class to access the file and manipulate it, but the ResourceBundle just doesn't refresh and keeps serving me a cached copy.

RE: Spam:[OS-webwork] Again: internationalization problems

2003-10-30 Thread James Pan
and the template JSPs be causing any problems? Jason -Original Message- From: James Pan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 5:44 PM To: [EMAIL PROTECTED] Subject: Spam:[OS-webwork] Again: internationalization problems Hello again, I have been having

RE: Spam:RE: Spam:[OS-webwork] Again: internationalization problems

2003-10-30 Thread James Pan
? -Original Message- From: James Pan [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 9:49 AM To: [EMAIL PROTECTED] Subject: Spam:RE: Spam:[OS-webwork] Again: internationalization problems I don't think so, though I'm not 100% sure. I changed the encoding

RE: Spam:[OS-webwork] Again: internationalization problems

2003-10-30 Thread James Pan
could get the problems you are describing? Best regards, Dick Zetterberg [EMAIL PROTECTED] - Original Message - From: James Pan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 30, 2003 3:48 PM Subject: RE: Spam:[OS-webwork] Again: internationalization problems I don't

RE: Spam:[OS-webwork] Again: internationalization problems

2003-10-30 Thread James Pan
IncludeTag class is causing me grief... really strong feeling... how can I fix it??? Thank you! James -Original Message- From: James Pan Sent: October 30, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: RE: Spam:[OS-webwork] Again: internationalization problems That's a good point, though

Solved!! RE: [OS-webwork] Again: internationalization problems

2003-10-30 Thread James Pan
... but anyways the problem turned out to be a simple fix, so I'm happy!! Thanks a lot guys! James -Original Message- From: James Pan Sent: October 30, 2003 10:49 AM To: [EMAIL PROTECTED] Subject: RE: Spam:[OS-webwork] Again: internationalization problems AND ONE MORE THING: I noticed

RE: [OS-webwork] Newbie: internationalization for Russian

2003-10-15 Thread James Pan
avoid this?? Thanks again, James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of James Pan Sent: Wednesday, October 15, 2003 7:58 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] Newbie: internationalization for Russian Hi, I'm trying to create a page

[OS-webwork] WW1.3 question

2003-09-23 Thread James Pan
Title: Message Hi all, For the UI-tags in WW1.3, ui:textfield label="'label'" name="'searchtext'" maxlength="40" tabindex="1" / the generated html looks like trtd align="right"label/tdtdinput/td/tr Is there a way I can adjust the label alignment, say to left?? Thanks, James

RE: [OS-webwork] Offtopic: need advice

2003-08-28 Thread James Pan
working and what you were working on. In general, I'd say work experience, but then I have a Bachelor of Fine Arts in Photography and no technical degrees whatsoever, so I'm biased :-) -Original Message- From: James Pan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August

[OS-webwork] WW1.3: file upload question

2003-08-27 Thread James Pan
Hello, The fileupload example for WW1.3 has an upper file-size limit of 2MB... is there a way for me to increase this?? I can't seem to find much info... Thank you, James --- This sf.net email is sponsored by:ThinkGeek Welcome to geek

RE: [OS-webwork] WW1.3: file upload question

2003-08-27 Thread James Pan
webwork.properties file James Pan said: Hello, The fileupload example for WW1.3 has an upper file-size limit of 2MB... is there a way for me to increase this?? I can't seem to find much info... Thank you, James

[OS-webwork] Offtopic: need advice

2003-08-27 Thread James Pan
Hello, What's your opinion: Master Degree in computers (2 years), or 2 years of work experience? Thank you, James --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf

RE: [OS-webwork] Offtopic: need advice

2003-08-27 Thread James Pan
James Pan wrote: Hello, What's your opinion: Master Degree in computers (2 years), or 2 years of work experience? Thank you, James --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http

[OS-webwork] i18n and ActionSupport and addError

2003-08-14 Thread James Pan
Hello again, In a class that extends ActionSupport, within the method doValidation, if I catch an error, I do this: addError(field, Error in Field); and cause doExecute to return INPUT, which propagates back to the original page with the Error in Field showing above the field ui element. How

RE: [OS-webwork] i18n and ActionSupport and addError

2003-08-14 Thread James Pan
Hello, Please ignore this. I should have read the tutorials a bit more closely. I apologize for asking such a question without doing a more thorough search first. Cheers, James -Original Message- From: James Pan Sent: Wednesday, August 13, 2003 11:28 AM To: [EMAIL PROTECTED

[OS-webwork] Singletons within WW

2003-08-14 Thread James Pan
Hello, Suppose I have a singleton called MyClass which is retrieved through a call to ConnectionPool.getSharedInstance(). Suppose in an action I make a call to ConnectionPool.getSharedInstance() somewhere. I understand that an action is always created new each time a request is made, but what

[OS-webwork] webwork.util.Counter example

2003-08-14 Thread James Pan
Hi, I have a page where I display a list of search results, showing 10 records. At the top of the page, I have Previous, Next buttons that will change the pageIndex up or down. Basically, it looks like this: First | Previous | 1 2 3 4 5 | Next | Last And the user can navigate the search

RE: [OS-webwork] webwork.util.Counter example

2003-08-14 Thread James Pan
-Original Message- From: James Pan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:49 AM To: [EMAIL PROTECTED] Subject: RE: [OS-webwork] webwork.util.Counter example Yeah, it occurred to me as well... except I was hoping (maybe naively) to keep the GUI

RE: [OS-webwork] webwork.util.Counter example

2003-08-14 Thread James Pan
Message- From: James Pan [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 12:47 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] webwork.util.Counter example Hi, I have a page where I display a list of search results, showing 10 records. At the top of the page, I have

RE: [OS-webwork] Defining views for actions in views.properties

2003-08-14 Thread James Pan
Hi! Thank you for the fast reply! Could you please clarify a couple more things for me?? (1) I have an action that may be invoked from a number of pages, and SUCCESS should cause the view to return to the calling page. Basically, Page A, B, C can call action MyAction, and the

RE: [OS-webwork] Defining views for actions in views.properties

2003-08-07 Thread James Pan
Thank you all for your help! Will look into sitemesh as well... cheers! James -Original Message- From: Ben Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 2:12 PM To: [EMAIL PROTECTED] Subject: RE: [OS-webwork] Defining views for actions in views.properties

[OS-webwork] Defining views for actions in views.properties

2003-08-06 Thread James Pan
Hello, Got two questions: (1) I have an action that may be invoked from a number of pages, and SUCCESS should cause the view to return to the calling page. Basically, Page A, B, C can call action MyAction, and the successful execution should return to the calling pages, A, B or C. I obviously

RE: [OS-webwork] Doing a for-loop using webwork.util.Counter...

2003-08-05 Thread James Pan
... James, The reason you're having problems is you can't put a tag within the attribute of another tag - that's just illegal. What you want is an expression. webwork:if test=../page == . or something. Cheers, Mike On 2/8/03 4:11 AM, James Pan ([EMAIL PROTECTED]) penned the words

[OS-webwork] Doing a for-loop using webwork.util.Counter...

2003-08-01 Thread James Pan
Hello again, I'm write some code to allow paging for users. In essense, a user performs a search, which returns 10 pages of results (and 10 is save in session as pageCount), and we always know what page the user is on (there is a method on the action called public int getPage() that lists the

RE: [OS-webwork] On storing values in actions

2003-07-28 Thread James Pan
Hello, Ahh.. If the OgnlUtil does that, it should be logged as a bug. This is if the param is not in the params map at all, correct? That would definitely be a bug. I think he means that the action properties are being set to null by OgnlUtil.copy(map, object) I.e. I presume

RE: [OS-webwork] On storing values in actions

2003-07-28 Thread James Pan
are request scoped. -Pat - Original Message - From: James Pan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 28, 2003 6:54 AM Subject: RE: [OS-webwork] On storing values in actions Hello, Ahh.. If the OgnlUtil does that, it should be logged as a bug

[OS-webwork] On storing values in actions

2003-07-27 Thread James Pan
Hello again, I have an action that contains several parameters (eg: language, mode, and source, all string variables), and I have a JSP page that renders differently depending on the three parameters (so if language=fr I'll use the french text, etc). Now, after doing this:

RE: [OS-webwork] How do I read request.getParameter in JSP from webwork?

2003-07-26 Thread James Pan
Thank you all very much! That worked wonderfully! Exactly what I've been looking for... thanks again! James -Original Message- From: Dick Zetterberg [mailto:[EMAIL PROTECTED] Sent: Saturday, July 26, 2003 7:17 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] How do I read

[OS-webwork] Using action beans in if-test

2003-07-23 Thread James Pan
Hi, I'm really new with WebWork, so please bear with me. I'm trying to create a log-in page (simple username/password form) that posts to an action which, through some chain of logic, verifies the username/password combo... if the log-in fails, i want to return to the original log-in page with