Re: NullPointerException while accessing request struts2

2010-08-26 Thread Jan T. Kim
> > if(word!=null) > { > messages = > brandMgmtDAO.viewMsgForUser(word.getWord().toUpperCase().trim(), null, > dtUtil.getTimeZoneOffset(user.getTimeZone())); > } > > request.setAttribute("messages",messages);

Factoring out URL and link generation

2010-06-15 Thread Jan T. Kim
format of these links (e.g. include the lastname), you have to search and update all these repetitions. Therefore, is it possible to factor out URL and link generation? I suppose I could write a taglib with my own person element but that seems a bit over the top to me. Best regards, Jan -- +- Jan T

Re: CRUD for a set of persistent entities?

2010-06-15 Thread Jan T. Kim
On Thu, Jun 10, 2010 at 07:47:13PM +0100, Ken wrote: > On Thu, 2010-06-10 at 17:38 +0100, Jan T. Kim wrote: > > > Dear List, > > > > is there any technique / package / whatever to set up some basic CRUD > > functionality for a group of persistent classes? > >

CRUD for a set of persistent entities?

2010-06-10 Thread Jan T. Kim
reflection and the persistence API's annotations. Ideally, only one action should be needed and the system would generate the web view and figure out the form data to support at runtime. Any hints / thoughts? -- +- Jan T. Kim ---+ |

javassist problem -- 2.2.0 maven plugin?

2010-02-15 Thread Jan T. Kim
take advantage of this fix already? If they're not yet available I'd also be interested in a workaround. I've tried excluding xwork-core but to no avail (possibly due to lack of maven competence -- RTFAQs etc. welcome). Best regards, Ja

Re: Session data

2009-09-03 Thread Jan T. Kim
ow" context menu items etc.), it's best to avoid trying to create multiple sessions of a web app with one browser process, as users will very easily lose track of which window belongs to what session. Best regards, Jan -- +- Jan T. Kim

Re: Action mapping documentation (and a security question)

2009-06-30 Thread Jan T. Kim
On Sun, Jun 28, 2009 at 11:51:59AM -0400, Dave Newton wrote: > Jan T. Kim wrote: > >>>(2) Isn't encoding methods in action name suffixes like this a potential > >>>security issue? > > > >So, are wildcards useful for development but have to be expanded

Re: Action mapping documentation (and a security question)

2009-06-28 Thread Jan T. Kim
On Sun, Jun 28, 2009 at 08:15:43AM -0400, Dave Newton wrote: > Jan T. Kim wrote: > >(1) Where is the documentation of this wildcard syntax? > > http://struts.apache.org/2.x/docs/wildcard-mappings.html > http://struts.apache.org/2.x/docs/action-configuration.html#A

Action mapping documentation (and a security question)

2009-06-28 Thread Jan T. Kim
al security issue? The action name suffix can obviously be edited by users, but configuration pertains to executable content, so the border between data provided by users and executable content could be crossed without proper checks here, as users can change the in

Re: Exceptions thrown by constructor different from those thown by execute() ?

2009-06-25 Thread Jan T. Kim
, the best bet is an interceptor. > > -Wes > > -- > Wes Wannemacher > Author - Struts 2 In Practice > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more > http://www.manning.com/wannemacher > > -

Re: Exceptions thrown by constructor different from those thown by execute() ?

2009-06-23 Thread Jan T. Kim
xecute() or by a constructor. My guess is it's more likely this is an issue for documentation, or perhaps it's a (not exceedingly) FAQ. Or perhaps it's just me, as I've only started with struts a few weeks ago. Best regards, Jan -- +- Jan T. Kim

Re: Exceptions thrown by constructor different from those thown by execute() ?

2009-06-23 Thread Jan T. Kim
hen it's thrown by the constructor? Having run into this, I'd like to understand it before moving on. Best regards, Jan > 2009/6/22, Jan T. Kim : > > Dear All, > > > > I'm trying to use exceptions to make sure a user is logged in, using > > struts 2.1.6.

Exceptions thrown by constructor different from those thown by execute() ?

2009-06-22 Thread Jan T. Kim
right? And if so, why is that? Or do you thing I've just made some silly mistake here? Best regards, Jan -- +- Jan T. Kim ---+ | email: j@uea.ac.uk | | WWW: http:

Re: how to prevent users from directly accessing jsp files

2009-06-18 Thread Jan T. Kim
>Raw Pages > >/struts/* > > > > > >No roles, so no direct access > > > > > > > > > > On Thu, Jun 18, 2009 at 9:32 AM, abhishek reddy > >wrote:

Re: Struts2 - redirectAction - ServletActionRedirectResult

2009-06-10 Thread Jan T. Kim
her.ServletActionRedirectResult'. - Class: > > ognl.ObjectPropertyAccessor > > File: ObjectPropertyAccessor.java > > Method: setProperty > > Line: 132 - ognl/ObjectPropertyAccessor.java:132:-1 [snip] -- +- Jan T. Kim --