Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 file upload returning null  RSS feed

 
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: 9609
36
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!