Struts2, problem with 2 variables in one address.

Posted by tzim on Stack Overflow See other posts from Stack Overflow or by tzim
Published on 2010-06-17T09:07:56Z Indexed on 2010/06/17 13:23 UTC
Read the original article Hit count: 316

Filed under:
|
|

Hi.

I'm using struts2, now in my jsp file i've got 2 variables:

${server_address}
${pageContext.request.contextPath}

Now i want to connect it in my tag:

<s:form action="%{server_address}%{pageContext.request.contextPath}/actionName.action">

But generated output looks like that:

<form method="post" action="http://10.0.0.5:8088/actionName.action" name="actionName" id="actionName">

There is no contextPath... How can i connect this two variable ?

© Stack Overflow or respective owner

Related posts about jsp

Related posts about variables