Re: [Stripes-users] File Upload, throw null pointer because destroy context.

2008-04-07 Thread David G Friedman
Paulo, Does your DAO "userService.saveUser(user);" save the file specifically? Remember, files are uploaded in temporary locations per request so when your code has a RedirectResolution and has not manually saved the file (example: newAttachment.save(File) ) then the file goes away when you

Re: [Stripes-users] Accessing HttpSession stripes

2008-04-07 Thread David G Friedman
Of course setAttribute returns null: it's return type is void. See the HttpSession class javadocs at: http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpSession.html Plus, if you are accessing it in your JSP as "${usr.names}" that says it was set using getAttribute("usr",

Re: [Stripes-users] Accessing HttpSession stripes(method attached)

2008-04-07 Thread David G Friedman
Farouk, Can you show us the code that creates the "loginBean" in your sessionListener. Can you show us where and how you define your session listener? Regards, David Farouk Alhassan wrote: haha. its sometimes funny how much frustration can cause. that was all mixed up...I have been on th

Re: [Stripes-users] Accessing HttpSession stripes(method attached)

2008-04-07 Thread David G Friedman
Somethings are bothering me.. 1) Are you going directly to the URL "/Converter.action?" 2) Where is this "usr" in your jsp's "{$usr.names}" being defined? Obviously the "${usr...}" you are referencing is in one of the scopes (page,request,session,application) but where is it being defined sin

Re: [Stripes-users] Accessing HttpSession stripes

2008-04-07 Thread David G Friedman
Does this mean you solved it? As for your answers 1. I agree. Sleep is even more important if you are writing a mean letter to an idiot because if you wait for the next morning and re-read the letter it sometimes scares you what you wrote the night before because if you had sent it, you'

Re: [Stripes-users] Accessing HttpSession stripes

2008-04-08 Thread David G Friedman
Farouk, If you use the @After (part of the BeforeAfter Interceptor) you will probably have to obtain the request and response objects for your no-arg method using the Action's context object, getContext.getRequest() and getContext.getResponse(), and hand those calls to your new BaseProcessor(

Re: [Stripes-users] File Upload, throw null pointer because destroy context.

2008-04-09 Thread David G Friedman
So the problem is with the file upload in your JSP. We need you to copy in / paste the complete stack trace. Also, are you using the COS jar or the Commons upload jar in your WEB-INF/lib ? Regards, David - This SF.net ema

Re: [Stripes-users] A FlashScope test case I expected to work

2008-04-10 Thread David G Friedman
I'll bite. Why does TestActionBean's goToTest2() method perform no flash scope magic? Doesn't it need something kind of like this: RedirectResolution rr = new RedirectResolution(Test2ActionBean.class); rr.flash(this); return rr; Regards, David Dan Kaplan wrote: I'm using the latest version

Re: [Stripes-users] java.lang.NoSuchMethodException: net.sourceforge.stripes.action.FileBean.

2008-04-14 Thread David G Friedman
FileBean? Did you remember either cos.jar or commons-file???.jar for the "file" class? Regards, david jklcom99 wrote: > Hi, > After I've recovered from my hard drive failure. The project that used to > work fine is now getting the following error: > Am I missing some Stripes components? > > 20

Re: [Stripes-users] FileUploadLimitExceededException and Flashscope

2008-05-22 Thread David G Friedman
Samuel, Does this error occur if you temporarily remove your SiteMesh filter? ( I see it in your stack/trace ) Regards, David Samuel Santos wrote: > Hi Ben, I haven't any other handler for FULEE. > > I use an alternative exception handler (which implements > AutoExceptionHandler), so using my

Re: [Stripes-users] Ann: Stripes-guicer (new version)

2008-06-05 Thread David G Friedman
I really wish there was a cleaner way to create the ActionBean, I generally dislike inheritance and it seems heavy handed to force my ActionResolver on someone. I really like constructor injection though, as it makes it trivial to identify dependencies at test-time. Do it all

Re: [Stripes-users] Ann: Stripes-guicer (new version)

2008-06-06 Thread David G Friedman
I double checked the SVN trunk and the standard lifecycle stages seem to look up the actionBean if they need it. From the test I remember doing of this a few months ago, I recall it working fine when you create the ActionBean and save it appropriately BEFORE the standard point where it would h

Re: [Stripes-users] A potential XSS vulnerability in Stripes?

2008-07-03 Thread David G Friedman
CKER which is a bigger problem in and of itself. As you can see from my above point of view, I happen to view this as a non-issue as well as a useful feature as it is implemented now. Regards, David G. Friedman >>> I have some code like this: >>> >>> ctx.getMessages().

Re: [Stripes-users] Clean URLs

2008-07-11 Thread David G Friedman
So what happens after that? A Dynamic pass-through to the default system handler in case of no matching URL or some Stripes JSP handler? -David Aaron Porter wrote: Sorry, missed a bit. Here's everything you need: Dynamically maps URLs to ActionBeans. Stripes Dynamic Mapp

[Stripes-users] Maven2 - does anyone use it

2008-07-11 Thread David G Friedman
the newest Developer's release it looks great to have only 3 key dependencies where anything else is totally at the programmer's discretion. Regards, David G. Friedman - Sponsored by: SourceForge.net Community Cho

Re: [Stripes-users] Maven2 - does anyone use it

2008-07-21 Thread David G Friedman
The automatic maven layout I am playing with would do 1) the standard directory tree: src/main/java src/main/resources src/main/webapp/WEB-INF src/test/java 2) A few helpful files: pom.xml src/main/java/Example.java (example Stripes class w/URLBinding) src/main/webapp/WEB-INF/web.xml (ready to go

[Stripes-users] Can we confirm Stripes Book will focus on v1.5 feature set?

2008-07-31 Thread David G Friedman
After checking out the Stripesbook.com blog and the Pragmatic Programmer site, I was unable to find a definitive answer to which version of Stripes the book covers. Will it be mostly 1.5 focused with 1.4.X references if/when necessary or 1.4.X focused with occasional notes for v1.5 as it has

Re: [Stripes-users] Can we confirm Stripes Book will focus on v1.5 feature set?

2008-08-01 Thread David G Friedman
Freddy, Now all we'll need is a visit to the Boston JUG so I can get it signed. Then I can put it next to my Struts, JSF and Webwork books though this one I'd be referencing these days. :) Regards, David Freddy D. wrote: > Hi David, > > You are right, I should have made it clearer that the S

Re: [Stripes-users] Where is stripes session plugin

2008-08-03 Thread David G Friedman
What is "stripes session plugin" supposed to do? Regards, Curious David Farouk Alhassan wrote: I have been rummaging through the web looking for where i can download stripes session plugin. The document on stripes website says it is with stripesstuff but the link leads to stripersist on source

Re: [Stripes-users] not clearing the fields after forward Resolution

2008-08-11 Thread David G Friedman
If you want to redisplay the same page without any form values, can you switch from a ForwardResolution to a RedirectResolution? Or is there something you need from the original form parameters you submitted? Regards, David Stripes-payal wrote: > hi, > i have a page called test.jsp having subm

Re: [Stripes-users] Introducing Stripes-Reload

2008-08-11 Thread David G Friedman
Freddy, Is this like a 1.5 patch for JavaRebel from Zero TurnAround? I saved an email about a 1.4.3 patch for JR (http://zt-oss.googlecode.com/files/stripes-1.4.3-zt-patch.txt) but nothing further on a 1.5 trunk set of patches. The timing of this is great because I am considering JavaRebel.

Re: [Stripes-users] Introducing Stripes-Reload

2008-08-11 Thread David G Friedman
Freddy, I was just replying to Gregg about that. I figured it had nothing to do with JavaRebel but could easily be used with it. So, how does everyone handle reloading for any non-Stripes specific classes then? If this would be considered thread-stealing (though we ARE on the subject of code

Re: [Stripes-users] Stripes 1.5 released

2008-08-18 Thread David G Friedman
Ben, Does the release automatically push out to maven repositories? Regards, David Ben Gunter wrote: > It's official! Check the announcement at the Stripes site. > > http://www.stripesframework.org/display/stripes/2008/08/18/Stripes+1.5+Release+Available

Re: [Stripes-users] Stripes vs. Struts2

2008-08-21 Thread David G Friedman
Or we could think of the frameworks by Java version: Stripes is Java 1.5+ and Struts 2 is < Java 1.5. There is a reason for that. Struts 2 comes from Webwork but do you KNOW what Webwork is? It is originally a 2002 fork of Struts v1.X. Even though Webwork made it to a v2 before being absorb

Re: [Stripes-users] Log Warning: Input was not encrypted...

2008-09-03 Thread David G Friedman
your web.xml StripesFilter init-param is: Stripes.EncryptionKey Don't Copy/Paste Me! Make up your own encryption key and keep it secret! Regards, David G. Friedman David Frenkiel wrote: > Sorry, never mind. Problem solved... > > The problem was related to

[Stripes-users] My Stripes book arrived yesterday!

2008-11-02 Thread David G Friedman
Thanks Freddy! Regards, David - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an O

Re: [Stripes-users] My Stripes book arrived yesterday!

2008-11-02 Thread David G Friedman
It is hard to believe a book that looks so small is actually 385 pages. However it is fully packed with information. I'm impressed by the use of numbered points in the left margins of the code segments and how you reference those numbered points in your explanations. (Is that a new conventio

Re: [Stripes-users] Stripes security jsp tag

2010-03-05 Thread David G . Friedman
John, Doesn't the security:allowed need to be nested INSIDE the stripes form s:form? Your appears BEFORE the stripes form declaration unless I am mistaken. I don't think the security would know what bean to use if the call is BEFORE the form/bean is declared/defined since security:allowed needs

Re: [Stripes-users] Stripes security jsp tag

2010-03-11 Thread David G . Friedman
John, Since stripesstuff security is marked verson 0.1 you can expect quirks. The only way I can get it to work is if I have a useActionBean before security:allowed/notAllowed and use the bean and event attributes on the tags. JSP Example: Something you want to do here. Java Action example:

Re: [Stripes-users] StripesResources.properties

2010-04-12 Thread David G . Friedman
can see the files are in the same place? Also, can you post the contents of your web.xml file? Regards, David G. Friedman -- Download IntelĀ® Parallel Studio Eval Try the new software tools for yourself. Speed c

Re: [Stripes-users] StripesResources.properties

2010-04-13 Thread David G . Friedman
> Ivan L. writes: Ivan, I asked because something seemed familiar about your problem. I was as if I had seen that problem before on the Struts mailing list many years ago. Your note about the .war being part of an .ear made me remember an old BEA/Weblogic classloader issue with .war files insi