Srinath
How to insert and retreive an image in mysql database using spring mvc framework???
0 Answer(s)      2 years and a month ago
Posted in : Spring

I ve solved this problem based on the Product Search Application. Those who need this concept and code segment kindly copy it. Thanks and All the best

Web.xml

ProductSearch index.html index.htm index.jsp default.html default.htm default.jsp

<!-- The front controller of this Spring Web application, responsible for 
    handling all application requests -->
<servlet>
    <servlet-name>dispatcher</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>

<!-- Map all requests to the DispatcherServlet for handling -->
<servlet-mapping>
    <servlet-name>dispatcher</servlet-name>
    <url-pattern>*.do</url-pattern>
</servlet-mapping>

<!-- Mapping applicationContext.XML file -->
<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:applicationContext.xml</param-value>
</context-param>

Advertisement
View Answers









Related Tutorials/Questions & Answers:
Advertisements