You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Srinivas Surapaneni (JIRA)" <de...@beehive.apache.org> on 2006/05/26 05:29:30 UTC

[jira] Created: (BEEHIVE-1115) problem with Jpf.NavigateTo.currentPage

problem with Jpf.NavigateTo.currentPage
---------------------------------------

         Key: BEEHIVE-1115
         URL: http://issues.apache.org/jira/browse/BEEHIVE-1115
     Project: Beehive
        Type: Bug

  Components: NetUI  
    Versions: 1.0.1    
 Environment: Windows XP
    Reporter: Srinivas Surapaneni


When I use <jsp:include > in a jsp page 

Jpf.NavigateTo.currentPage is goin to the includes page

In the below example it always goes to sample.jsp

------------------------------------
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
<%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
<%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>

<netui:html>
    <head>
        <netui:base/>
    </head>
    <netui:body>
    <netui:form action="start">
       <p>Beehive NetUI JavaServer Page - ${pageContext.request.requestURI}</p>
       <netui:anchor action="start" formSubmit="true">sample</netui:anchor>
       <netui:label value="${actionform.value}" defaultValue="sa"></netui:label>
       <netui:textBox dataSource="actionForm.value"></netui:textBox>
    <jsp:include page="sample.jsp"/>
    </netui:form>
    </netui:body>
</netui:html>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (BEEHIVE-1115) problem with Jpf.NavigateTo.currentPage

Posted by "Srinivas Surapaneni (JIRA)" <de...@beehive.apache.org>.
    [ http://issues.apache.org/jira/browse/BEEHIVE-1115?page=comments#action_12413345 ] 

Srinivas Surapaneni commented on BEEHIVE-1115:
----------------------------------------------

If I use the  Jpf.NavigateTo.page ( deprecated) it works fine

> problem with Jpf.NavigateTo.currentPage
> ---------------------------------------
>
>          Key: BEEHIVE-1115
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-1115
>      Project: Beehive
>         Type: Bug

>   Components: NetUI
>     Versions: 1.0.1
>  Environment: Windows XP
>     Reporter: Srinivas Surapaneni

>
> When I use <jsp:include > in a jsp page 
> Jpf.NavigateTo.currentPage is goin to the includes page
> In the below example it always goes to sample.jsp
> ------------------------------------
> <%@ page language="java" contentType="text/html;charset=UTF-8"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
> <netui:html>
>     <head>
>         <netui:base/>
>     </head>
>     <netui:body>
>     <netui:form action="start">
>        <p>Beehive NetUI JavaServer Page - ${pageContext.request.requestURI}</p>
>        <netui:anchor action="start" formSubmit="true">sample</netui:anchor>
>        <netui:label value="${actionform.value}" defaultValue="sa"></netui:label>
>        <netui:textBox dataSource="actionForm.value"></netui:textBox>
>     <jsp:include page="sample.jsp"/>
>     </netui:form>
>     </netui:body>
> </netui:html>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-1115) problem with Jpf.NavigateTo.currentPage

Posted by "Carlin Rogers (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-1115?page=all ]

Carlin Rogers resolved BEEHIVE-1115.
------------------------------------

    Fix Version/s: v.next
       Resolution: Fixed
         Assignee: Julie Zhuo

The problem was that on a return to current page the DefaultActionForwardHandler would not set the attribute on the request to indicate that the previous page info was saved. Then in the page filter handling of the included page (where the URI is different from the current page info) would trigger a save of the included page as the current page.

This is fixed with revision 454228. I've also added a test to the coreWeb BVT to cover this case. The test also checks that Jpf.NavigateTo.previousPage works as well.

> problem with Jpf.NavigateTo.currentPage
> ---------------------------------------
>
>                 Key: BEEHIVE-1115
>                 URL: http://issues.apache.org/jira/browse/BEEHIVE-1115
>             Project: Beehive
>          Issue Type: Bug
>          Components: NetUI
>    Affects Versions: 1.0.1
>         Environment: Windows XP
>            Reporter: Srinivas Surapaneni
>         Assigned To: Julie Zhuo
>             Fix For: v.next
>
>
> When I use <jsp:include > in a jsp page 
> Jpf.NavigateTo.currentPage is goin to the includes page
> In the below example it always goes to sample.jsp
> ------------------------------------
> <%@ page language="java" contentType="text/html;charset=UTF-8"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
> <netui:html>
>     <head>
>         <netui:base/>
>     </head>
>     <netui:body>
>     <netui:form action="start">
>        <p>Beehive NetUI JavaServer Page - ${pageContext.request.requestURI}</p>
>        <netui:anchor action="start" formSubmit="true">sample</netui:anchor>
>        <netui:label value="${actionform.value}" defaultValue="sa"></netui:label>
>        <netui:textBox dataSource="actionForm.value"></netui:textBox>
>     <jsp:include page="sample.jsp"/>
>     </netui:form>
>     </netui:body>
> </netui:html>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (BEEHIVE-1115) problem with Jpf.NavigateTo.currentPage

Posted by "Julie Zhuo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BEEHIVE-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julie Zhuo closed BEEHIVE-1115.
-------------------------------


Russ has verified this. Close.

> problem with Jpf.NavigateTo.currentPage
> ---------------------------------------
>
>                 Key: BEEHIVE-1115
>                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1115
>             Project: Beehive
>          Issue Type: Bug
>          Components: NetUI
>    Affects Versions: 1.0.1
>         Environment: Windows XP
>            Reporter: Srinivas Surapaneni
>            Assignee: Julie Zhuo
>             Fix For: 1.0.2
>
>
> When I use <jsp:include > in a jsp page 
> Jpf.NavigateTo.currentPage is goin to the includes page
> In the below example it always goes to sample.jsp
> ------------------------------------
> <%@ page language="java" contentType="text/html;charset=UTF-8"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
> <netui:html>
>     <head>
>         <netui:base/>
>     </head>
>     <netui:body>
>     <netui:form action="start">
>        <p>Beehive NetUI JavaServer Page - ${pageContext.request.requestURI}</p>
>        <netui:anchor action="start" formSubmit="true">sample</netui:anchor>
>        <netui:label value="${actionform.value}" defaultValue="sa"></netui:label>
>        <netui:textBox dataSource="actionForm.value"></netui:textBox>
>     <jsp:include page="sample.jsp"/>
>     </netui:form>
>     </netui:body>
> </netui:html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BEEHIVE-1115) problem with Jpf.NavigateTo.currentPage

Posted by "Russ Baker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BEEHIVE-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Russ Baker updated BEEHIVE-1115:
--------------------------------


I verified that using the 'navigateTo=Jpf.NavigateTo.currentPage' on the controller does not forward the page to the included jsp. The page gets returned back to the calling page. I verified by creating a Jpf with the following annotation at the class level:

@Jpf.Controller(
	    simpleActions={
	        @Jpf.SimpleAction(name="begin", path="index.jsp"),
	        @Jpf.SimpleAction(name="start", navigateTo=Jpf.NavigateTo.currentPage, useFormBean="myFormBean")
	    }
	)

having a static inner class for the form bean; then having index.jsp that has a form which submits to the Controller. Index.jsp also  uses a <jsp:include> tag that pointed to  a page called "sample.jsp."

I verified against SVN 549584. I recommend that this bug be closed.

> problem with Jpf.NavigateTo.currentPage
> ---------------------------------------
>
>                 Key: BEEHIVE-1115
>                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1115
>             Project: Beehive
>          Issue Type: Bug
>          Components: NetUI
>    Affects Versions: 1.0.1
>         Environment: Windows XP
>            Reporter: Srinivas Surapaneni
>            Assignee: Julie Zhuo
>             Fix For: 1.0.2
>
>
> When I use <jsp:include > in a jsp page 
> Jpf.NavigateTo.currentPage is goin to the includes page
> In the below example it always goes to sample.jsp
> ------------------------------------
> <%@ page language="java" contentType="text/html;charset=UTF-8"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
> <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
> <netui:html>
>     <head>
>         <netui:base/>
>     </head>
>     <netui:body>
>     <netui:form action="start">
>        <p>Beehive NetUI JavaServer Page - ${pageContext.request.requestURI}</p>
>        <netui:anchor action="start" formSubmit="true">sample</netui:anchor>
>        <netui:label value="${actionform.value}" defaultValue="sa"></netui:label>
>        <netui:textBox dataSource="actionForm.value"></netui:textBox>
>     <jsp:include page="sample.jsp"/>
>     </netui:form>
>     </netui:body>
> </netui:html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.