Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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: 405
  • 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!