- This topic has 3 replies, 2 voices, and was last updated 19 years, 3 months ago by support-eugene.
-
AuthorPosts
-
wt22MemberBefore upgrading to 4.0M3, this problem did not occur. it was updated through the update manager.
I was trying to connect several JSP pages I had created. Here are the steps:
1) Add 2 Navigation Nodes A and B(when I double click on either of them they will forward me to my JSP page)
2) When I add a navigation case between the two, by just using the “from Outcome” of say success, it creates a 3 Navigation Node named B. Now I have 3 navigations node (A, B, B). The source text contains 2 copies of B’s navigation node.
Another problem I noticed was when I double clicked on any of them, instead of opening the JSP page it, I gives an error:
Unable to not open editor. Reason File xxxx does not exist within your workspace.Thanks for your help
Environment:
Eclipse Version: 3.1.0 Build id: I20050627-1435
MyEclipse Version: 4.0M3 (3.9.310) Build id 20050808-04-Milestone-3
Jdk: j2sdk1.4.2_08
OS: XP Pro SP2
No other plugins other than MyEclipse
support-eugeneMemberI’ve tried to reproduce but had no luck in that…
Can you provide detatiled description like:
1. I have a following config file:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE faces-config PUBLIC “-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN” “http://java.sun.com/dtd/web-facesconfig_1_1.dtd”><faces-config/>
2. I drag the file <myproject>/WEB-INF/MyJsp.jsp to the graphical editor:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE faces-config PUBLIC “-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN” “http://java.sun.com/dtd/web-facesconfig_1_1.dtd”><faces-config>
<navigation-rule>
<from-view-id>/MyJsp.jsp</from-view-id>
</navigation-rule>
</faces-config>3. I drag the file <myproject>/WEB-INF/MyJsp2.jsp to the graphical editor:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE faces-config PUBLIC “-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN” “http://java.sun.com/dtd/web-facesconfig_1_1.dtd”><faces-config>
<navigation-rule>
<from-view-id>/MyJsp.jsp</from-view-id>
</navigation-rule>
<navigation-rule>
<from-view-id>/MyJsp2.jsp</from-view-id>
</navigation-rule>
</faces-config>4. I created the navigation case with “from-outcome” set to “success”:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE faces-config PUBLIC “-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN” “http://java.sun.com/dtd/web-facesconfig_1_1.dtd”><faces-config>
<navigation-rule>
<from-view-id>/MyJsp.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/MyJsp2.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/MyJsp2.jsp</from-view-id>
</navigation-rule>
</faces-config>
wt22MemberI just did a quick test, and this only occurs when you create nodes using JSPs that are 3 or more levels deep in subdirectories from your webroot.
eg:
webRoot/applications/app1/secure/xxxx.jsp
Thanks.
support-eugeneMemberOk. Thank you very much for the info. I will check that.
-
AuthorPosts