Gen EDGE

 View Only

  • 1.  Coolgen generated jsp page how to redirect

    Posted Aug 18, 2016 10:51 AM

    how to redirect the coolgen generated jsp in WEb application where the client generted in JSP. suppose we put in the url menu.jsp then it redirect to login.jsp page .



  • 2.  Re: Coolgen generated jsp page how to redirect

    Posted Aug 18, 2016 11:30 AM

    Are you asking how to flow from one Gen web page to another or how to flow from a Gen web page to a non-Gen page?  If the former, you use Gen flows in the model and the generated code will allow the flow.  If the later, then are you wanting an automatic (programmatic) flow or a user-initiated flow?  If user-initiated, you can add the URL as a push button displayed as a URL on the Gen Window.  For the automatic flow to a non-gen page, you might be able to use the launch function or an Inline Code statement to do this.  Or there may be some other way that someone else can provide insight into.



  • 3.  Re: Coolgen generated jsp page how to redirect

    Posted Aug 18, 2016 12:04 PM

    i have the login.jsp which call menu.jsp thru dialog flow but if i put menu.jsp in browser then before opening the window i check user_id on window_open event and if userid blank then exist state to login window so that my login window will open but i dont know how to change the url in explorer. and for that where i need to change in web.xml or menu.jsp or log.jsp page . Below is menu.jsp and log.jsp page

    <%@ page language="java" %>

    <!-- CA Gen r8 - File Name: men.jsp - generated on 2016/08/18 (230) at 21:32:05  -->

    <%@ page import="java.util.*" %>

    <%

        request.setAttribute("commandLineArguments","ravi_ief.MEN");

        request.setAttribute("numberOfArguments","1");

        request.setAttribute("localName","ravi_ief");

        request.setAttribute("charSet","UTF-8");

        request.setAttribute("referer", request.getRequestURI());

    %>

    <jsp:forward page="MENServletManager" />

     

    log.jsp ----

     

    <%@ page language="java" %>

    <!-- CA Gen r8 - File Name: log.jsp - generated on 2016/08/18 (230) at 21:32:04  -->

    <%@ page import="java.util.*" %>

    <%

        request.setAttribute("commandLineArguments","ravi_ief.LOG");

        request.setAttribute("numberOfArguments","1");

        request.setAttribute("localName","ravi_ief");

        request.setAttribute("charSet","UTF-8");

        request.setAttribute("referer", request.getRequestURI());

        request.setAttribute("clearScreenInputs","anyvalue");

    %>

    <jsp:forward page="LOGServletManager" />

     

    also i tried sendredirect method it not help.



  • 4.  Re: Coolgen generated jsp page how to redirect

    Broadcom Employee
    Posted Aug 19, 2016 01:26 AM

    I think there is a limitation with Gen controlling the dialog flow that means the URL address field does not get changed even though the window title (browser tab) does change from menu->login->menu.

    I have also tried to work around it by trying these but it made no difference:

    • enabling browser controlled history handling
    • using Transfer Flows
    • packaging menu & login in different load modules

    It maybe doable by having an onload event to execute javascript to somehow populate the required value but beyond my expertise.

    I am curious as to why the URL Address change is so important to you if the functionality works and window name is changing?

     

    Thanks

     

    Lynn