facebook

Deploying EAR in Virtual Host

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #253935 Reply

    khalled
    Member

    I have 2 applications: app1 and app2 in 11.111.111.11 server
    app1 contains Struts framework
    app2 does NOT contain Struts

    using virtual host, i map:
    http://www.app1.com to 11.111.111.11:8080/app1
    and
    http://www.app2.com to 11.111.111.11:8080/app2

    app2 (without Struts) is working fine.

    app1 (with Struts) has a run time problem, which is:
    all the URLs of the struts form action is appended by “app1” (the context root).
    for example:
    in login.jsp, i wrote this:

    <html:form action="/actions/login.do">
    </html:form>

    BUT
    when I run this jsp, i found the generated html form, like this:
    <form action=” /app1/actions/login.do”></form> which is broken URL.
    while all images and other links are working fine. i dont know why the Struts form action is getting this issue.

    Why is this broken URL generated?
    and How can i fix this problem?

    #253946

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    This is a Struts issue as the Struts taglib are written to prepend the context path like this. PLease double check with the STruts team on how to work around this issue.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Deploying EAR in Virtual Host

You must be logged in to post in the forum log in