Foros de discusión

where does this "c" got defined in liferay?

sharon yang, modificado hace 11 años.

where does this "c" got defined in liferay?

New Member Mensajes: 8 Fecha de incorporación: 17/12/11 Mensajes recientes
hi,

I noticed in struts-config.xml, action path is defined as "/portal/login", however, when it is being used, the actual uri path is

"http://$THE_HOST_SERVERemoticonORT/c/portal/login"

and many other liferay action paths need to have this prefix "/c"

My question is: Where is this "c" defined?

thanks a lot,

Sharon
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: where does this "c" got defined in liferay?

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Have you looked in the following file?
liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\ROOT\WEB-INF\liferay-web.xml
thumbnail
Priyanka Dhingra, modificado hace 11 años.

RE: where does this "c" got defined in liferay?

Liferay Master Mensajes: 501 Fecha de incorporación: 20/12/11 Mensajes recientes
Hi sharon yang,
Check Virtual Hosts# in the following link
http://content.liferay.com/4.3/doc/installation/liferay_4_customization_guide/multipage/ch01s02.html
sharon yang, modificado hace 11 años.

RE: where does this "c" got defined in liferay?

New Member Mensajes: 8 Fecha de incorporación: 17/12/11 Mensajes recientes
thanks a lot for your help!
thumbnail
Mika Koivisto, modificado hace 11 años.

RE: where does this "c" got defined in liferay?

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
The /c comes from servlet mapping of Main Servlet in web.xml
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: where does this "c" got defined in liferay?

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Oops, it was just the regular web.xml instead of liferay-web.xml. Thanks for the correction, Mika.

Seems the "c" is embedded in too many different places to make is easily changeable.

tomcat-7.0.23\webapps\ROOT\WEB-INF\web.xml

#319
<servlet-mapping>
<servlet-name>Main Servlet</servlet-name>
<url-pattern>/c/*</url-pattern>
</servlet-mapping>
sharon yang, modificado hace 11 años.

RE: where does this "c" got defined in liferay?

New Member Mensajes: 8 Fecha de incorporación: 17/12/11 Mensajes recientes
thanks a lot for your help!
sharon yang, modificado hace 11 años.

RE: where does this "c" got defined in liferay?

New Member Mensajes: 8 Fecha de incorporación: 17/12/11 Mensajes recientes
oh, thanks a lot. I feel so dumb, I actually looked over the web.xml but apparently I didn't pay attention.

thanks a lot!