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
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",
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
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
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'
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(
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
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
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
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
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
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
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().
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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:
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
> 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
31 matches
Mail list logo