facebook

Tiles forward in Struts: Invalid path

💡
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. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #280098 Reply

    Ramin
    Member

    Hi,

    I am migrating a working application based on JDBC/Struts/Tiles to a new workspace, using JPA/Struts/Tiles (switching from JDBC to JPA).

    I’m not sure how this is related, but the Tiles forwards are not working any more, and Struts complains about them:

    java.lang.IllegalArgumentException: Path tl.page.messaging.alertshistory does not start with a "/" character

    The above dotted notation is a defined Tiles path.The Struts action definition:

        <action
          attribute="alertsHistoryForm"
          input="tl.page.messaging.alertshistory"
          name="alertsHistoryForm"
          path="/alertsHistory"
          scope="request"
          type="com.tl.web.messaging.AlertsHistoryAction">
          <forward name="success" path="tl.page.messaging.alertshistory" />
          <forward name="failure" path="tl.page.messaging.alertshistory" />
        </action>

    A few points

      This is working in my original workspace, not in the new one.
      I’m using MyEclipse 6.0.1GA in both.
      I use J2EE 1.4 Libraries in the working environment
      I use Java EE 5 Libraries and Struts 1.3 Libraries in the new environment
      I have read that when Tiles does not handle a path, it becomes a pass through and that is why Struts is complaining.

    Why this new environment is not working?

    #280148

    Loyal Water
    Member

    This message has not been recovered.

    #280495

    Ramin
    Member

    Nipun,

    I’ve confirmed that it has to do with the version of Struts.
    I tried different library sets, including 1.3 from Sun, and it happens in that version.

    The question is when will MyEclipse support the 2.x versions?

    I am not sure if it will be sensable for me to try to do this on my own, as I may create other incompatibility issues with the IDE/plugin.

    #280517

    Loyal Water
    Member

    The question is when will MyEclipse support the 2.x versions?

    We are considering it for our next release but that is some time away and we dont have a commitment from the management yet.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Tiles forward in Struts: Invalid path

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