Visu Guri

Greenhorn
+ Follow
since Oct 06, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Visu Guri

All

I am trying to upload a .xls file using DiskFileUpload.The code snippet is as follows.


DiskFileUpload upload = new DiskFileUpload();

// Set upload parameters
upload.setSizeThreshold(yourMaxMemorySize);
upload.setSizeMax(yourMaxRequestSize);
upload.setRepositoryPath(yourTempDirectory);

// Parse the request
List /* FileItem */ items = upload.parseRequest(request);

If I try to print size and items in the List its displaying 0 and [ ] respectively.
Your valuable help can be appreciated.
Thanks
anm
18 years ago
101
Hi,

I got java.lang.Nullpointer Exception in JSP while displaying Label and value for the maintainLoc in the follwing code

Jsp code:

<td class="search _label"><itab:fieldLabel fieldId="appMaintLoc"/></td>
<td class="search _field"><itab:field fieldID="appMaintLoc" styleClass="input"/></td>


Java Code

The above jsp code getting values from the following code


if(values!=null){
String value=((HashMap) values.get(0)).get("LABEL").toString();
out.println("<span" + getOptions(" text")+ ">" +value);
}


please help me in this