Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-27 Thread vbharath19
it just sets a variable that i need to use in the action. newton.dave wrote: > > What does the "upload()" method in your > do? > > --- vbharath19 <[EMAIL PROTECTED]> wrote: > >> >> when i get the formfile using getthefile >> >> &

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19
when i get the formfile using getthefile newton.dave wrote: > > --- vbharath19 <[EMAIL PROTECTED]> wrote: >> if (actioncalled!=null && > actioncalled.equals("upload")) { >> System.out.println("inside upload action"); >> F

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19
FormFile myFile = deploymentForm.getTheFile(); } newton.dave wrote: > > --- vbharath19 <[EMAIL PROTECTED]> wrote: >> when i run the page and upload the file and invoke >> the action class i get the following error. >> >> java.lang.NullPointerException >

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19
done..it doesn't work..any other ideas? nuwan chandrasoma-2 wrote: > > Hi, > > try removing the .do from your action in the form and just put the action > name what is in the struts-config.xml. > > Thanks, > > Nuwan > > > - Original Me

Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19
Hi, I have a jsp from which i upload a file. this field is of Formfile type. jsp entry: I have not used bean:define in the jsp. when i use it,it throws cannot assign null exception. in the struts config xml, entries are present for form - bean