Hello
I'm sorry if this is a newbie question.
I'm having problems with stripes:file tag, i already find some post's have
the same problem, but did have solution unfortunally :(.
So, my problem is quit simple, i have a user with have some fields in jsp,
like , etc..., that part works fine, i do
c
Paulo Hélio Alves wrote:
>
> Now i want to put a photo... i do like are in documentation...
> stripes:file, FileBean atribute, Getter/Setter... and the action doesn't
> work. The context is destroyed and when i click in save, he send me a
> NPE...
>
So many questions...
What version of Stripes
Sorry for response so late...
Well, i'm using Stripes 1.4.3, Stripes Security 1.4.2, Java 6.
In JSP, i use something like this:
...
in the action i have this:
...
// this attributes have the getters/setters methods...
private User user;
private FileBean newAttchement;
...
@Defaul
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
Paulo Hélio Alves wrote:
>
>
Sorry for response so late...
>
> Well, i'm using Stripes 1.4.3, Stripes Security 1.4.2, Java 6.
> In JSP, i use something like this:
>
> i use an interceptor before fillLookupFields for doing this:
>
@Intercepts(LifecycleStage.ResolutionExecution)
> public
Hello Matt, David
Thanks for answer.
Well, Matt.
First, i try what you write, i comment the lines in interceptor, but didn't
work.
I dont use the stripesFilter, so i don't have any implementation of that. I
call all pages by the actions, so i don't no if will be necessary to have a
stripes fil
David,
well i made many tests and the problem apear when i put the tag of
FileUpload in the jsp.
I don't make anything with the file for now, i just want make a log of the
file name.
Thanks for your interess.
Paulo
--
View this message in context:
http://www.nabble.com/File-Upload%2C-throw-nu
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
Paulo Hélio Alves wrote:
>
> I dont use the stripesFilter, so i don't have any implementation of that.
> I call all pages by the actions, so i don't no if will be necessary to
> have a stripes filter. But, (i dont have idea if this will be important to
> the problem), in my web.xml i have the St
Hi Paulo,
Make sure the name of the stripes:file actually is 'newAttchement'
in your JSP (no 'a').
It seems to be defined so in your ActionBean.
Regards,
Iwao
on 08.4.7 6:46 PM Paulo Hélio Alves said the following:
> Sorry for response so late...
>
> Well, i'm using Stripes 1.4.3, Stripes Secu
Hello again.
I find the problem, but only now i have some time to report.
If i change the order of the filters in web.xml, and use :
MultipartWrapper.Class
net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapper
,
in StripesSecurityFilter, the fileupload works fine.
This
11 matches
Mail list logo