This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You're using Commons File Upload -- which reads the whole request itself, including all the parameters. But there's a way to ask File Upload for a request parameter, although I don't remember what it is. But I do remember they have pretty good examples so maybe they have an example of that.
Joined: Dec 05, 2010
Thanks Bear and Paul for prompt replies.
Actually that is my problem too, I tried to use common upload jar's method to retrieve the text box and its value
For instance the notes suggest -
name returns "CaptionVal" which is correct.
but for Value eclipse always complains that the method getString does not exist.
I tried the rest of the methods for the same but none of these returned the value I was looking for
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();