You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by KIRTI CHOPRA <ki...@gmail.com> on 2009/09/10 16:17:40 UTC

how to read the contents of uploaded file

hi all
can you please help me with how can i start with how i can read the content
of the file uploaded using struts 2.0 and display them in jsp in table
format.

since i am new to struts i am not able to think of where should i start from
and for saving that uploaded file i should give which path real or absolute
-- 
View this message in context: http://www.nabble.com/how-to-read-the-contents-of-uploaded-file-tp25384149p25384149.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: how to read the contents of uploaded file

Posted by KIRTI CHOPRA <ki...@gmail.com>.
Thank you so much

-kirti
-- 
View this message in context: http://www.nabble.com/how-to-read-the-contents-of-uploaded-file-tp25384149p25395100.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: how to read the contents of uploaded file

Posted by Wes Wannemacher <we...@wantii.com>.
It's really not related to struts... Struts has done it's job in your
case, now it's time for you to use other techniques commonly referred
to as "programming" :)

Since you are trying to read an excel spreadsheet, I would suggest you
look at the POI library and then just expose a bean or array of beans
that you can loop through in your view and create your table. Another
alternative would be to look at the displaytable taglib to present the
data after parsing the file with POI.

-Wes

On Thu, Sep 10, 2009 at 10:17 AM, KIRTI CHOPRA
<ki...@gmail.com> wrote:
>
> hi all
> can you please help me with how can i start with how i can read the content
> of the file uploaded using struts 2.0 and display them in jsp in table
> format.
>
> since i am new to struts i am not able to think of where should i start from
> and for saving that uploaded file i should give which path real or absolute
> --
> View this message in context: http://www.nabble.com/how-to-read-the-contents-of-uploaded-file-tp25384149p25384149.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org