This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Upload file into layout:datagrid using struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Upload file into layout:datagrid using struts" Watch "Upload file into layout:datagrid using struts" New topic
Author

Upload file into layout:datagrid using struts

nazir ahmed
Greenhorn

Joined: Aug 02, 2008
Posts: 16
Hi,

I am using strus1.2 and using layout:datagrid.

this is my code as follows.

<layout:datagrid property="datagrid" selectionAllowed="true"
multipleSelectionAllowed="true" styleClass="FORM"
model="datagrid" >

<layout:datagridColumn title="ContentPath" property="contentPath"/>
</layout:datagrid>


i want upload content path (same as <input type="file"> in html).

is it possible. send reply very urgent.


ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

You can easily upload files using struts upload.

Check out this example

http://www.roseindia.net/struts/strutsfileupload.shtml


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upload file into layout:datagrid using struts