Random Behaviour of the Redirect JSP(URGENT)

I tried to create Oracle PDK java portlet that will have multiple JSP. Which i want to call one after the another in the flow.
I did created in entry in provider.xml sas follows
<pageParameterName>rs_next_page</pageParameterName>
My JSP has sample code as follows
<%@page contentType="text/html; charset=windows-1252"
import="oracle.portal.provider.v2.render.PortletRenderRequest"
import="oracle.portal.provider.v2.http.HttpCommonConstants"
import="oracle.portal.provider.v2.url.UrlUtils"
%>
<%
PortletRenderRequest pReq = (PortletRenderRequest)
request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
%>
<P>Hello <%= pReq.getUser().getName() %>.</P>
<P>This is the <b><i>Show</i></b> render mode!</P>
<form name="actItem" method="get" ACTION="<%= UrlUtils.htmlFormActionLink(pReq,UrlUtils.PAGE_LINK) %>">
<%= UrlUtils.htmlFormHiddenFields(pReq,UrlUtils.PAGE_LINK, "actItem") %>
<input type = hidden name = "rs_next_page" value = "/htdocs/editresources/editresourcesEditPage.jsp">
<input type="submit" value="Submit"/>
</form>
But it does not work It does not give error or anything. I have 2 Oracle PDK portlet having same code it works but this does not work.
Could you please guide me what is best approach of redirecting to another JSP in Oracle portal
I tried next_page ad hidden field but then it overwrite the another portlet next_page parameter.
PLEASE GUIDE ME ASAP

I've seen some weird errors when people mix MyFaces and Sun JAR's together (although I haven't seen this one earlier).
First try removing the Sun JSF RI JAR's (jsf-api and jsf-impl) and see if it works. If not, then try replacing the h: components by t: components (Tomahawk), that is at least replacing h:dataTable and h:column by t:dataTable and t:column.

Similar Messages

  • Redom behaviour of the Redirect JSP

    I tried to create Oracle PDK java portlet that will have multiple JSP. Which i want to call one after the another in the flow.
    I did created in entry in provider.xml sas follows
    <pageParameterName>rs_next_page</pageParameterName>
    My JSP has sample code as follows
    <%@page contentType="text/html; charset=windows-1252"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    import="oracle.portal.provider.v2.url.UrlUtils"
    %>
    <%
    PortletRenderRequest pReq = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <P>Hello <%= pReq.getUser().getName() %>.</P>
    <P>This is the <b><i>Show</i></b> render mode!</P>
    <form name="actItem" method="get" ACTION="<%= UrlUtils.htmlFormActionLink(pReq,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pReq,UrlUtils.PAGE_LINK, "actItem") %>
    <input type = hidden name = "rs_next_page" value = "/htdocs/editresources/editresourcesEditPage.jsp">
    <input type="submit" value="Submit"/>
    </form>
    But it does not work It does not give error or anything. I have 2 Oracle PDK portlet having same code it works but this does not work.
    Could you please guide me what is best approach of redirecting to another JSP in Oracle portal
    I tried next_page ad hidden field but then it overwrite the another portlet next_page parameter.
    PLEASE GUIDE ME ASAP

    Hi,
    After getting the parameter in the Page2.jsp, you need to parse the string for '<' and '>' symbols. You need to use the following code to use instead,
    < = &lt; or &#60;
    = &gt; or &#62;Then you can print the string on the browser.
    Sudha

  • Random behaviour of Redirect JSP (URGENT)

    I tried to create Oracle PDK java portlet that will have multiple JSP. Which i want to call one after the another in the flow.
    I did created in entry in provider.xml sas follows
    <pageParameterName>rs_next_page</pageParameterName>
    My JSP has sample code as follows
    <%@page contentType="text/html; charset=windows-1252"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    import="oracle.portal.provider.v2.url.UrlUtils"
    %>
    <%
    PortletRenderRequest pReq = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <P>Hello <%= pReq.getUser().getName() %>.</P>
    <P>This is the <b><i>Show</i></b> render mode!</P>
    <form name="actItem" method="get" ACTION="<%= UrlUtils.htmlFormActionLink(pReq,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pReq,UrlUtils.PAGE_LINK, "actItem") %>
    <input type = hidden name = "rs_next_page" value = "/htdocs/editresources/editresourcesEditPage.jsp">
    <input type="submit" value="Submit"/>
    </form>
    But it does not work It does not give error or anything. I have 2 Oracle PDK portlet having same code it works but this does not work.
    Could you please guide me what is best approach of redirecting to another JSP in Oracle portal
    I tried next_page ad hidden field but then it overwrite the another portlet next_page parameter.
    PLEASE GUIDE ME ASAP

    I tried to create Oracle PDK java portlet that will have multiple JSP. Which i want to call one after the another in the flow.
    I did created in entry in provider.xml sas follows
    <pageParameterName>rs_next_page</pageParameterName>
    My JSP has sample code as follows
    <%@page contentType="text/html; charset=windows-1252"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    import="oracle.portal.provider.v2.url.UrlUtils"
    %>
    <%
    PortletRenderRequest pReq = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <P>Hello <%= pReq.getUser().getName() %>.</P>
    <P>This is the <b><i>Show</i></b> render mode!</P>
    <form name="actItem" method="get" ACTION="<%= UrlUtils.htmlFormActionLink(pReq,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pReq,UrlUtils.PAGE_LINK, "actItem") %>
    <input type = hidden name = "rs_next_page" value = "/htdocs/editresources/editresourcesEditPage.jsp">
    <input type="submit" value="Submit"/>
    </form>
    But it does not work It does not give error or anything. I have 2 Oracle PDK portlet having same code it works but this does not work.
    Could you please guide me what is best approach of redirecting to another JSP in Oracle portal
    I tried next_page ad hidden field but then it overwrite the another portlet next_page parameter.
    PLEASE GUIDE ME ASAP

  • Random behaviour of the dataTable

    Hi guys,
    I can't really find the error. I have a dataTable (code below). Sometimes it's mixing up the columns for no reason. Sometimes it just does not show one column but 2 times another column.
              <h:dataTable value="#{CompanySearchBean.companies}" id="resultTable"
                   var="company" style="width: 100%;" binding="#{CompanySearchBean.companytableData}"
                   columnClasses="resultLegalName, resultCity, resultCountry, resultTreeLevel, resultGuid">
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Name"></h:outputText>
                        </f:facet>
                        <h:commandLink value="#{company.legalName}" action="#{CompanySearchBean.showDetails}">
                             <f:param value="#{CompanySearchBean.companytableData.rowIndex}" name="row" id="row"/>
                        </h:commandLink>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="City"></h:outputText>
                        </f:facet>
                        <h:outputText value="#{company.mainPostal.city}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Country"></h:outputText>
                        </f:facet>
                        <h:outputText value="#{company.mainPostal.country.description}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Family Tree Level"></h:outputText>
                        </f:facet>
                        <h:outputText value="#{company.info.familyTreeLevel}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="GUID"></h:outputText>
                        </f:facet>
                        <h:outputText value="#{company.guid}"></h:outputText>
                   </h:column>                                                            
              </h:dataTable>

    I've seen some weird errors when people mix MyFaces and Sun JAR's together (although I haven't seen this one earlier).
    First try removing the Sun JSF RI JAR's (jsf-api and jsf-impl) and see if it works. If not, then try replacing the h: components by t: components (Tomahawk), that is at least replacing h:dataTable and h:column by t:dataTable and t:column.

  • URGENT-CREATE A HTML FILE WITH AN STRING INPUT FROM THE RUNNING JSP

    I am designing a web page where the user enters a page after entering his/her login and password.The User should now be provided with a display page containing the servers that he has permissions for access.The servers that he has permissions are maintained in a database(a normal text file in UNIX).
    Till now the program has been complete for displaying the servers that are available to him.
    I need to create a HTML form containing these servers names in a check box so that when the user clicks thcheck box against the server name it should go to the server and get the password for the required server.
    THe intention from me is to create a HTML file that dynamically takes values from the running JSP means the server names as a string value to its input and then i can continue
    Please guide me in creating a HTML form based on the string output from the running JSP
    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
    DataInputStream in1 = new DataInputStream(fs);
    int fl=0;
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String usernam=st1.nextToken();
    if (usernam.equals(uname))
    String ip=st1.nextToken();
    String host=st1.nextToken();
    fl=1;
    out.println("<tr><td>                                                                                              "+ host + "</td><td> " + ip +"</td></tr>");
    if (fl == 0)
    out.println("YOU HAVE NO SEVRER IN YOUR PROFILE !");
    in1.close();
    The host string here is the server name
    the ip is the ip address of the server
    Need to input these values to another HTML page that contains the check box list of the servers .
    once these are clicked i think i can pass on this to another JSP and retreive passwords
    Please guide me in this

    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
                                    DataInputStream in1 = new DataInputStream(fs);
                                    int fl=0;
                                    while (in1.available() !=0)
                                    String str1=in1.readLine();
                                    StringTokenizer st1 = new StringTokenizer(str1);
                                    String usernam=st1.nextToken();
                                    if (usernam.equals(uname))
                                    String ip=st1.nextToken();
                                    String host=st1.nextToken();
                                    fl=1;
                                    out.println("<tr><td>                                                                                              "+ host + "</td><td>          " + ip +"</td></tr>");
                                    if (fl == 0)
                                    out.println("YOU HAVE NO SERVER IN YOUR PROFILE !");
                                    in1.close();I feel sorry for the inconvenience that is caused as i am new to using these forums.
    I have here used a simple program to retreive the names of the servers that the users have acess to..
    I have here read the servername and server ip stored from a file in UNIX in the running JSP.Now i need to pass these string variables to HTML file and display it in a Check box format.the strings host and ip have to be passed to the input of the HTML file so that they can further be processed once they are clicked using another JSP.
    Can anybody please help me in Passing these strings from the running JSP and display it in a check box format

  • Redirect jsp page problem

              I have problem when I want to redirect a page, inputparam2test.jsp back to the perious
              page, inputparam1test.jsp. Everything works until I
              add a "if" statement in the inputparam1test.jsp.
              The error is "Error 500--Internal Server Error".
              Can anybody help me out? Thanks a lot!
              inputparam1test.jsp:
              <html>
              <head>
              <title>create a patameter input form</title>
              </head>
              <body>
              <%!
              String dataset;
              String modeltype;
              %>
              <%
              dataset = request.getParameter("dataset");
              modeltype = request.getParameter("modeltype");
              %>     
              <center>
              <form action="inputparam2test.jsp" method="post">
              <table cellspacing=10>
              <tr>
              <td colspan=2>
                        Please enter model parameters
                   </td>
                   </tr>     
              <tr>
                   <td>
                        Dell LRI
                   </td>
                   <td>     
                        <select name="DellLRI">
                        <option value="1">1
                        <option value="0">0
                        </select>
                   </td>
                   </tr>
                   <%
                   if(modeltype.equals("Direct")) {
              out.println("in if");
              %>
                   <tr>
                   <td>
                   </td>
                   <td>     
                        <input type="submit" value="Next>" name="Next>">
                   </td>
                   </tr>
              </form>
              </center>
              </body>
              </html>
              inputparam2test.jsp:
              <html>
              <head>
              <title>continue input parameters </title>
              </head>
              <body>
              <%
              response.sendRedirect("inputparam1test.jsp");
              %>
              </body>
              </html>
              

    You do not check if the modelType is null and
              if(modeltype.equals("Direct")) {
              out.println("in if");
              will result in a NullPointerException when it is null.
              Almond Huang <[email protected]> wrote:
              > I have problem when I want to redirect a page, inputparam2test.jsp back to the perious
              > page, inputparam1test.jsp. Everything works until I
              > add a "if" statement in the inputparam1test.jsp.
              > The error is "Error 500--Internal Server Error".
              > Can anybody help me out? Thanks a lot!
              > inputparam1test.jsp:
              > <html>
              > <head>
              > <title>create a patameter input form</title>
              > </head>
              > <body>
              > <%!
              > String dataset;
              > String modeltype;
              > %>
              > <%
              > dataset = request.getParameter("dataset");
              > modeltype = request.getParameter("modeltype");
              > %>     
              > <center>
              > <form action="inputparam2test.jsp" method="post">
              > <table cellspacing=10>
              > <tr>
              > <td colspan=2>
              >           Please enter model parameters
              >      </td>
              >      </tr>     
              > <tr>
              >      <td>
              >           Dell LRI
              >      </td>
              >      <td>     
              >           <select name="DellLRI">
              >           <option value="1">1
              >           <option value="0">0
              >           </select>
              >      </td>
              >      </tr>
              >      <%
              >      if(modeltype.equals("Direct")) {
              > out.println("in if");
              >      }
              > %>
              >      <tr>
              >      <td>
              >      </td>
              >      <td>     
              >           <input type="submit" value="Next>" name="Next>">
              >      </td>
              >      </tr>
              > </form>
              > </center>
              > </body>
              > </html>
              > inputparam2test.jsp:
              > <html>
              > <head>
              > <title>continue input parameters </title>
              > </head>
              > <body>
              > <%
              > response.sendRedirect("inputparam1test.jsp");
              > %>
              > </body>
              > </html>
              Dimitri
              

  • JSP error page does not displayed on its own, includes in the original JSP

    Problem Description: - Exceptions in a Condition cause pages to fail to render.
    The actual issue is, the JSP error page does not displayed on its own, included in the original JSP Page when exception occurs.
    Problem Cause: As per the JSP specification when jsp content reached the buffer size (default 8KB) the page being flushed (Part of condent displays). The default �autoFlush� value is true.
    When the page buffer value is default size (8KB), and if any exception occurs after flushing the part of the content, instead of redirecting into error page, the error page content included in the original page.
    If i specify autoFlush="false" and with default buffer size, at the runtime if the buffer size is reached, i am getting stackoverflow error.
    To solve the above problem we can make it autoFlush=�false� and buffer=�100KB�. But we can�t predict the actual size of the page.
    I found in one of the weblogic forum as no solution for this issue. Ref.
    http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_clfydoc&answerpage=solution&page=wls/S-10309.htm
    Please provide me any solution to resolve the problem.

    Error-Page tags work best with an error.html pages. If you have an error.jsp page what I would do, and I have, is wrap my classes and jsp pages in a try catch block where you forward to the error jsp page and display anything you want. YOu can also do this with if else statements. I have used the tomcat error pages before but when I've implemented them I used java.lang.Exception as the error to catch not Throwable. I don't know if this would make a difference or have anything to do with your problem.

  • When I add an opendocument login token, it wipes out my parameter/prompt response in the Redirect URL

    I am having this issue and I wonder if anyone has any pointers?
    When I send the URL with the single prompt response &lsSPrompt0=1234567 it works fine but I have to login to InfoView.
    So I created a login token .jsp and that took care of the login for InfoView, but it also killed my prompt value.
    The code that I got from another site that does the same thing I WANT to do seems to create a cookie to store the passed prompt value in, then it creates a login token, then it assembles it all in the redirect URL and sends it to the openDocument.jsp.
    The login token works like a champ, but the prompt value (initially passed in to the cookie as "Prompt0") ends up passing from the Redirect URL to the openDocument.jsp with a value of NULL (lsSPrompt0=NULL).
    In my lack of knowledge, I am thinking maybe it has something to do either with how the cookie is being created, how it is being passed, or how/if it is getting stored at the target.  The cookie/token.jsp and the openDocument.jsp are in different folders on the same domain.
    So, I pass this URL:
    http://server:8080/InfoViewApp/token.jsp?&lsSPrompt0=1234567
    The token.jsp that it hits looks like this:
    So, the redirect winds up hitting the target looking like this:
    http://server:8080/OpenDocument/opendoc/openDocument.jsp?token=logonToken&iDocID=45227708&sKind=FullClient&lsSPrompt0=NULL&NAII=N&buttonrefresh=hide&buttonexport=hide
    Obviously, my problem is this:  lsSPrompt0=NULL
    Any pointers or nuggets of wisdom are GREATLY appreciated?
    Also of note, I wasn't sure if I needed to publish this token.jsp as a Webapp to Tomcat.
    I just placed the .jsp file in the folderTomcat5.5/webapps/InfoViewApp (same location as the client who has it working).
    Do I need to publish it?  Is that part of the problem?
    I am a little out of my realm here but trying to learn!
    We are on BOXI R2, Tomcat 5.5, JAVA, and I am having the same behavior on my personal XI 3.0 server too
    Thanks in advance,
    Randy

    I believe it's storing the info in a cookie so that it can be used later.  You don't mention which version of BO you're using, but I've sometimes found that the logon tokens created in 4.x contain special characters and may need to be URL encoded.  Also, I've found that it helps to put the logon token at the end of the URL after any parameters instead of in the middle before the parameters.
    -Dell

  • The redirect problem in wap

    I have three pages:input.jsp save.go and list.jsp
    --------input.jsp.
    users input some thing in it,and there is a submit button on it. the button linked to "save.go"
    --------save.go
    save.go is a servlet in fact.it will save what the user submited and then redirect to "list.jsp".use:response.sendRedirect("list.jsp");
    ---------list.jsp
    list users' inputs.
    the problem is that in the web browser,I refresh "list.jsp", it won't resubmit user's input,but in the wap browser,it will resubmit user's input. I found that ,in the web browser ,the "list.jsp"'s address in the address bar is"........list.jsp",but in a wap browser or a cellphone, it will be ".......save.go",that's why in the wap browser it will resubmit .
    anybody knows the real reason of this problem??? how does the wap gateway deal with the http302 response?thanks!

    Hi Martin,
    I think you should use
    sys.owa_util.mime_header('text/html', FALSE);after the
    htp.init;so that the browser knows it's HTML code.
    BTW, the PL/SQL based NTML authentication approach isn't really secure because it's not verifying the user/pwd with an MS Active Directory server.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Delaying the redirection

    After the users logout's i wanted to display a gif image stating that the user is being logged out so i wanted to delay the redirection to the home page.So how do i delay the redirection for about 5 seconds from the currect JSP page to the net HTML page.Any help will be highy appreciated Thanks

    Hi,
    You can very well do this by setting 'Refresh' header in response written to client by JSP. Specify Refresh value as 5 Seconds and specify the url, which client's browser should request after 5 seconds.
    Hope this satisfies your requirement.
    Do let me know after you try it.
    Sandesh

  • JSP- Servlet- Same JSP - Urgent HELP!

    I have a scenario as follows:
    The JSP is a Login JSP which forwards the request to the Servlet to validate the Login info from the HTML. This I do by submitting the JSP page to itself & in the beginning checking if the Submit button was clicked, if yes, then I extract all the form elements by request.getPArameter(element name) & set in on the request using request.setAttribute() methods! The servlet uses the values by doing a request.getAttribute() & say, a validate User failure, the servlet ahs tor edirect user to the same Login.jsp page, but the second time, the "Submit" button value is still true, since the servlet forwards the same request, response & this ends in an infinite loop, of JSP calling Servlet, the User validation fails & the Servlets calls the JSp again, and so on.
    How do I reset the HTML form element values in the JSP before forwarding to the Servlet? is there a request.setParameter() method? Or is there a way for the servlet to forward a new request & response to the same JSP?
    Thanks in advance.

    if the user is invalid.. redirect them to the error page and in the error page pu this javascript... It will refresh the page so the loop will not happen.
    <script language="JavaScript">
    var sec2count = "2"
    var redirectpage = "Login.jsp"
    function countdown() {
    if (sec2count == "0") {
    document.location = redirectpage
    else {
    sec2count = sec2count - 1
    document.form1234.counter.value = sec2count
    setTimeout("countdown()", 1000)
    countdown()
    </script>

  • Http 500 error when redirecting jsp pages

    hello all
    I hava a strang problem.My application is running on Apache tomcat 5.0 with the database MYSQL as back end. front end i use jsp techonology.
    when i am running in localhost the site works fine in fedora .
    But once i connect the site to something like www.baraginings.com.au i get http500 error when i am tring to redirect my pages.
    As far as i concerns the problem comes with this statment.
    response.sendRedirect("register.jsp");
    big help is needed to slove this problem
    thanks in advance
    /prash

    A 500 error usually means a runtime exception in the called JSP/Servlet.

  • I want to write a script or Automator workflow/app that emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have experience?

    I want to write a script or Automator workflow/app that automatically emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have similar experience and know that this would work?

    I have had a first stab at the script, below.  It uses a file to store the shortcuts and command [descriptions].  You should be able to see from the script annotations how to add a new one.  (I populated 1-4 with real data, but got lazy after that, so you have a few placeholders to work with first.
    As I have noted, once you are happy that you have all the data in the file, you can comment out part of the script for ongoing use.  (BTW, my reluctance to use Excel is that I don't currently have it installed and I don't want to offer wrong advice.  If you have Numbers, I do have that and could probably modify to work with a spreadsheet from there.  This might be especially useful if you have the data already sitting in Excel.)
    A few things came-up whilist I was writing the script:
    1.     Currently, all recipients will not only get the same tip at the same time, but they will see the names and email addresses of the others who receive them.  It is possible to modify this.
    2.     I have added a property gRandomCheck which keeps track of which shortcut has already been used (since the last time the script was compiled.  This will prevent the same tip being sent more than once.    When all tips have been sent once, the script will alert you and not send anything until reset.  It does not check on a per-addressee basis (which would be a refinement).  (If you add a new addressee at this stage, the whole process will start again, and you may not really want this to be the behaviour.)
    3.     The way that I have built the list, commandList, is deliberately cumbersome - it's for the sake of clarity.  If you prefer, you can construct the whole list as {{shortcut:"X", command:"X"}, {shortcut:"Y", command:"Y"}}
    Have a look - I am sure you will have questions!
    SCRIPT STARTS HERE  Paste the following lines (thru the end) into a new AppleScript Editor document and press RUN
    --The property gRandomCheck persists between runs and is used to stop sending the same hint twice.
    property gRandomCheck : {}
    --I am defining a file on the desktop.  It doesn't have to be in this location
    set theFolder to path to desktop
    set commandFile to (theFolder as text) & "CommandFile.csv"
    --(* Unless you need to change the file contents you do not need to write to it each time.  Remove the "--" on this line and before the asterisk about 18 lines below
    --Follow this format and enter as many records as you like on a new line - each with a unique name
    set record1 to {shortcut:"Z", command:"Undo"}
    set record2 to {shortcut:"R", command:"Record"}
    set record3 to {shortcut:"⇧R", command:"Record Toggle"}
    set record4 to {shortcut:"⌘.", command:"Discard Recording & Return to Last Play Position"}
    set record5 to {shortcut:"X", command:"x"}
    set record6 to {shortcut:"X", command:"x"}
    set record7 to {shortcut:"X", command:"x"}
    set record8 to {shortcut:"X", command:"x"}
    set record9 to {shortcut:"X", command:"x"}
    set record10 to {shortcut:"X", command:"x"}
    set record11 to {shortcut:"X", command:"x"}
    set record12 to {shortcut:"X", command:"x"}
    set record13 to {shortcut:"X", command:"x"}
    --Make sure you add the record name before randomCheck:
    set commandList to {record1, record2, record3, record4, record5, record6, record7, record8, record9, record10, record11, record12, record13}
    --This part writes the above records to the file each time.
    set fileRef to open for access commandFile with write permission
    set eof of fileRef to 0
    write commandList to fileRef starting at eof as list
    close access fileRef
    --remove "--" here to stop writing (see above)*)
    --This reads from the file
    set fileRef to open for access commandFile with write permission
    set commandList to read fileRef as list
    close access fileRef
    --Here's where the random record is chosen
    set selected to 0
    if (count of gRandomCheck) is not (count of commandList) then
              repeat
                        set selected to (random number from 1 to (count of commandList))
                        if selected is not in gRandomCheck then
                                  set gRandomCheck to gRandomCheck & selected
                                  exit repeat
                        end if
              end repeat
    else
              display dialog "You have sent all shortcuts to all recipients once.  Recompile to reset"
              return
    end if
    --This is setting-up the format of the mail contents
    set messageText to ("Shortcut: " & shortcut of record selected of commandList & return & "Command: " & command of record selected of commandList)
    tell application "Mail"
      --When you're ready to use, you probably will not want Mail popping to the front, so add "--" before activate
      activate
      --You can change the subject of the message here.  You can also set visible:true to visible:false when you are happy all is working OK
              set theMessage to (make new outgoing message with properties {visible:true, subject:"Today's Logic Pro Shortcut", content:messageText})
              tell theMessage
      --You can add new recipients here.  Just add a new line.  Modify the names and addresses here to real ones
                        make new to recipient with properties {name:"Fred Smith", address:"[email protected]"}
                        make new to recipient with properties {name:"John Smith", address:"[email protected]"}
      --When you are ready to start sending, remove the dashes before "send" below
      --send
              end tell
    end tell

  • Set the redirect page when SSO failed

    Hi,
    We have LC 2.5 with the SSO enabled.
    When users failed to login via SSO, it seems that the system will re-direct to /um/login.
    Is it possible that we could configure the behaviour so that
    1. when user click the task notification, it will try the SSO and go to the workspace of that task
    2. if user failed to login via SSO, can it rediect to the /worksapce/main.html page, they can input their user name and password for authentication ?
    Thanks

    Hi Shashank,
    We have modified the ui of the workspace, however, the source_url and logoin_url remain unchanged (i.e. /workspace/Main.html).
    we have run a capture on the redirect behaviour
    item 5-20 is the redirect flying around,
    and item 21 we input the URL input in the browser explicitly, and it could show the page and the same user can login successfully, this make us really difficult to find out why it would happen.
    Regards,
    Janice

  • Unable to load the second Jsp Page

    Hi,
    I have three jsp pages. The first is a Login.jsp which takes userid and password and after clicking on submit will take the user to the validate.jsp which validates the userid and password and if userid and password are valid redirects to a third jsp which has contentType="application/x-java-jnlp-file". All that is working fine, what is not working is after clicking on submit button I am not seeing validate.jsp page (i.e title and heading etc.), the browser stays in login.jsp page.
    Any suggestions.
    Thanks in advance.

    Hi
    Couple of things :
    1. Make sure that the "ACTION" sttribute in the FORM is pointing to the right URL.
    2. Make sure that the SUBMIT button is inside the FORM tags, then make sure that the SUBMIT button is in the same FORM as the Text Fields .
    If it is still causing you problems , please post your code.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc.
    http://www.sun.com/developers/support

Maybe you are looking for