the invocation stack."
1) couldn't make out what was going wrong.
2)and if i wish to display in my desired .jsp page with single/multiple
images in it how do i achieve it?
3)and can i use result type as a tiles 2.0?
--
View this message in context:
http://old.nabble.com/Struts-2
and
succeed. However, if I want to show many images on one page, such as a table
like this:
user_id_1 user_name_1 user_portrait_1(image)
user_id_2 user_name_2 user_portrait_2(image)
user_id_3 user_name_3 user_portrait_3(image)
user_id_4 user_name_4 user_portrait_4(image)
Johnson nickel wrote:
Hi Evans,
I digged in google examples in StreamResult. But, i can't
understand.
I want to display the images in browser Using StremResult.
Instead of ServletOutputStream out=
response.getOutputStream();
How can i use StreamResult.
Can u gi
: "Johnson nickel" <[EMAIL PROTECTED]>
To:
Sent: Friday, December 07, 2007 8:39 AM
Subject: Re: Struts 2 File upload to store the filedata
>
>
> Hi Evans,
>
> I digged in google examples in StreamResult. But, i can't
> understand.
> I want to displ
s pgm?? That will be helpful..
Regards,
Johnson
--
View this message in context:
http://www.nabble.com/Struts-2-File-upload-to-store-the-filedata-tf4948427.html#a14212685
Sent from the Struts - User mailing list archive at Nabble.com.
Don't use ServletOutputStream within Struts2. Use a StreamResult instead:
http://struts.apache.org/2.0.11/docs/stream-result.html
In the example provided in the above link, inputName references a
property in your action that's an InputStream you need to create from
your data.
InputStream ge
e=" filename);
ServletOutputStream out = response.getOutputStream();
out.flush();
int c;
while ((c = in.read()) != -1)
{
out.write(c);
}
in.close();
out.close();
--
View this message in context:
http://www.nabble.com/Struts-2-File-upload-to-store-the-filedata-tf4948427.html#a1421
Johnson nickel wrote:
Hi Jeromy Evans,
Thanks for your reply. I would like to insert the images into
my
Databases. For that, i'm using byte[] array.
In Struts 1.3,
I used FormFile class. From this class i got the method
getFileData();
the FileUpload Interceptor.
In jsp,
Regards,
John
--
View this message in context:
http://www.nabble.com/Struts-2-File-upload-to-store-the-filedata-tf4948427.html#a14168972
Sent from the Struts - User mailing list archive at Nabbl
Johnson nickel wrote:
Hi everyone,
I am using Struts 2 and using tag to upload a file.
But I get that file as a 'File' object in my action class and using
getFileName() on that File object returns me some arbitrary value (something
like upload__5b41f107_1127b4befe0__8000_.tmp). I want t
hings like Filedata to store the binary datas in my databases.
which was possible in
struts 1.1 using methods like on getFiledata() using byte [] array FormFile
Object.
How do I accomplish the same in Struts 2 ?
Regards,
John
--
View this message in context:
http://www.nabble.com/Struts-2-File
11 matches
Mail list logo