This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 file upload returning null

 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a jsp file with s:file tag. If i run a javascript function which displays the name of file being uploaded,it works fine. But my action is getting only null.I've file upload interceptor in my struts.xml,as far as i know i've done everything correct.But still it is not working. One more thing,i am trying to receive the values in add() method of my action,and not null.And i have directed my jsp(by a javascript function) to run the add() method. Please help.
Thanks in advance,
Aman
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please show us the code of your JSP, action and struts.xml...
 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Garg wrote:Please show us the code of your JSP, action and struts.xml...

Thanks,it seems the problem was in the jsp in which my jsp was included.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic