Hi,
I'm converting one of my old projects to use spring mvc and one of the tasks was to read/write an image using a
servlet. The
jsp contained an image src that looked like this: <img src="/image?file=<%=imagePath%>" /> which executed the servlet and wrote the image on the fly. Things are a little complicated because the image is not on a web server. I had to use jcifs smbfile to retrieve the image off of a windows shared folder. The servlet read in the image and performed resizing.
So, now my dilemma is how do I do the same task using Spring MVC. I started writing an ImageController with a RequestMapping("/image") but my controller never gets executed.
Here are some snippets of what I have:
my jsp
my Controller
spring-servlet.xml
web.xml file
Any suggestions? Or any documentation that may help me would be appreciated too.
Thanks.