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
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
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
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.
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
?
-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
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
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
... 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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
...
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
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
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
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
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:
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
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
32 matches
Mail list logo