Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes How to get the complete url of uploaded file in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to get the complete url of uploaded file in Struts2" Watch "How to get the complete url of uploaded file in Struts2" New topic
Author

How to get the complete url of uploaded file in Struts2

Shweta Baranwal
Greenhorn

Joined: Jun 19, 2008
Posts: 18

Hi,

I am doing one application using struts2 where I've to upload a file and send it as an attachment to clients mail id as soon as submit button is clicked.

while uploading I'am getting only the name of file not the complete url then how can i set as attachment to mail.

please help me how can i get complete url of any uploaded file.
 
Don't get me started about those stupid light bulbs.
 
subject: How to get the complete url of uploaded file in Struts2