Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload file into layout:datagrid using struts

 
nazir ahmed
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can easily upload files using struts upload.

Check out this example

http://www.roseindia.net/struts/strutsfileupload.shtml
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic