Print  
Gray star Gray star Gray star Gray star Gray star --Not rated--
232 Visits 3 Comments
Created
Daniel Damiani Daniel Damiani
Kablink Component
  • Teaming

I think about a jsp that fill the form automatically when a user upload files with webdav. Some idea about how to do this?

Workflow
Process State Action
Discussion workflow Active
This entry is currently active
Attachments(0)
Entry History
Tags
 
Replies
Thumbnail Image
Jong Kim Jong Kim

Given the fact that WebDAV interactions occur independently of the browser-based interface, I'm not sure what you're trying to achieve using a pre-filled jsp (which is a browser-related artifact). Can you give us more details as to what your goals are?

Thumbnail Image
Daniel Damiani Daniel Damiani

I think some like this:


- The user will upload only files with standard name like: "XXX-YYY-ZZZZ-Rnn.DOC"

"XXX" will fill field 1

"YYY" will fill field 2

"ZZZZ" will fill field 3

"nn" will fill field 4

 

And, if user upload some file with name out of standard,Kablink will delete it (or move it).

 

What do you think? Is it possbile to do?

Thumbnail Image
Peter Hurley (Novell) Peter Hurley (Novell)

When a file is added to a folder via WebDav, the file is actually added as an "entry". The entry uses the "_libraryFile" definition as its template to build the file entry. You could insert a custom jsp into this definition (using the Form and View Designer). The custom jsp could detect one of your special file names and fill in the fields as desired. To do this, you also have to include each field that you want to capture as a "hidden" field element in the definition. This tells the system which data elements to capture and store.

To start, you should learn about the Form and View Designer. Then learn about custom jsps. (These live in ssf/WEB-INF/jsp/custom_jsps). There used to be a podcast on the "definition" mechanism in Kablink. It might still be posted on this site someplace. But there are other discussions on custom jsps elsewhere in this site.

Skip Footer Toolbar