Wow. Sounds like a lot of frustration to me. Here's a freebie on 4):

http://outerthought.net/wiki/Wiki.jsp?page=FileUploadWithAction

That's if you want to do it in an action. If you want to do it in anXSP page,
use the same code that is used in the Action. Namely:

FilePartFile filePartFile = (FilePartFile)request.get("uploadfile");
File file = filePartFile.getFile();


Of course, you may also be more careful and do all the necessary
type and null pointer checking, but this should give you an idea.

I'll let others answer 1, 2 and 3, 'cause I never had to use any of that.
I'd try searching the mailing list archives:
http://marc.theaimsgroup.com/?l=xml-cocoon-users

--
Ilya


Ray Martin wrote:

1) Authentication - DOESN'T WORK - cannot logout - insufficient information.
2) LDAP - DOESN'T WORK - insufficient information.
3) Form Validation - DOESN'T WORK - toosmall and toolarge work, but the
other tags write true and false on the form - insufficient information.
4) FileUpload - DOESN'T WORK - Cocoon actions provide a Request Object,
FileUpload from jakarta commons requires an HttpServletRequest object to be
handed to the parseRequest object - insufficient information. MaybeUpload
from the Cocoon API - not one single word to suggest its use.

Does anyone know of anything that does work?

My track record is 4 tries - 0 working.
Ask questions - 0 answers.
Sufficient information - minimal.
Frustration - maximum!!!!!!!!!!!!!
Progress - 0.

If you can answer any of the above - tell me your price. Tell me if you
accept cash, check or credit card!!!!!!!!!! What does it take to get an
answer? $100 - $200 - name your price. $1000 for the answers to my four
questions.



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to