Foros de discusión
Difference between these two web.xml files
Joga Krish, modificado hace 11 años.
Difference between these two web.xml files
Junior Member Mensajes: 38 Fecha de incorporación: 8/01/13 Mensajes recientes
Hallo All,
I have this doubt in my mind from many days. Whenever I create a liferay portlet Project (Spring-MVC) in eclipse IDE I get the following web.xml file
But whenever I google regarding Spring-MVC I see the web.xml file with a different context, different tags and etc. For example
Otherthan web-app tag, everything looks different. I haven't read using servlet and servlet tags in liferay portlet project web.xml.
This confuses me as i am beginner in Spring-MVC and to liferay.
Any help would be much appreciated.
I have this doubt in my mind from many days. Whenever I create a liferay portlet Project (Spring-MVC) in eclipse IDE I get the following web.xml file
<!--?xml version="1.0" encoding="UTF-8"?-->
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>customregister-portlet</display-name>
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
<taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>
But whenever I google regarding Spring-MVC I see the web.xml file with a different context, different tags and etc. For example
<web-app>
<servlet>
<servlet-name>example</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>example</servlet-name>
<url-pattern>/example/*</url-pattern>
</servlet-mapping>
</web-app>
Otherthan web-app tag, everything looks different. I haven't read using servlet and servlet tags in liferay portlet project web.xml.
This confuses me as i am beginner in Spring-MVC and to liferay.
Any help would be much appreciated.
David H Nebinger, modificado hace 11 años.
RE: Difference between these two web.xml files
Liferay Legend Mensajes: 14915 Fecha de incorporación: 2/09/06 Mensajes recientes
Servlets and portlets are two different things. They have different requirements in the web.xml file. Your doubts are based on not understanding the difference.
Joga Krish, modificado hace 11 años.
RE: Difference between these two web.xml files
Junior Member Mensajes: 38 Fecha de incorporación: 8/01/13 Mensajes recientes
Hi,
I got it. Thank you
Could you please let me know where can I find more information regarding Spring Portlet-MVC.
I have found some information but it is not useful.
I got it. Thank you
Could you please let me know where can I find more information regarding Spring Portlet-MVC.
I have found some information but it is not useful.
Hitoshi Ozawa, modificado hace 11 años.
RE: Difference between these two web.xml files
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
How about the page below:
http://www.opensource-techblog.com/2012/09/spring-mvc-portlet-in-liferay.html
http://www.opensource-techblog.com/2012/09/spring-mvc-portlet-in-liferay.html
Joga Krish, modificado hace 11 años.
RE: Difference between these two web.xml files
Junior Member Mensajes: 38 Fecha de incorporación: 8/01/13 Mensajes recientes
Hi
I am going through this blog. Someone has already suggested me this blog.
Now I gotta know the differences between the Portlet and Servlet Spring projects.
Thank you all once again.
I am going through this blog. Someone has already suggested me this blog.
Now I gotta know the differences between the Portlet and Servlet Spring projects.
Thank you all once again.