留言板

where does this "c" got defined in liferay?

sharon yang,修改在11 年前。

where does this "c" got defined in liferay?

New Member 帖子: 8 加入日期: 11-12-17 最近的帖子
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,修改在11 年前。

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

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
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,修改在11 年前。

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

Liferay Master 帖子: 501 加入日期: 11-12-20 最近的帖子
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,修改在11 年前。

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

New Member 帖子: 8 加入日期: 11-12-17 最近的帖子
thanks a lot for your help!
thumbnail
Mika Koivisto,修改在11 年前。

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

Liferay Legend 帖子: 1519 加入日期: 06-8-7 最近的帖子
The /c comes from servlet mapping of Main Servlet in web.xml
thumbnail
Hitoshi Ozawa,修改在11 年前。

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

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
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,修改在11 年前。

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

New Member 帖子: 8 加入日期: 11-12-17 最近的帖子
thanks a lot for your help!
sharon yang,修改在11 年前。

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

New Member 帖子: 8 加入日期: 11-12-17 最近的帖子
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!