Unable to Call page using action

Hi Evryone,
I am getting a simple problem .
Trying to call xsql page using adfc-config file. in xsql file i am passing two bind params for this using one input page to pass parameter.
Like
in report.jspx i have to employeeID and Name my textboxes and command button for call the xsql file.
1.repot.jspx
2.employee.xsql.
3.adfc-config.xml
in adfc-confing.xml i am taken two views and assigned these two pages(jspx,xsql) for ths flow name given report.
In my button action given
<af:commandbutton action="report">
When i run this report.jspx i am able to view the report. Here dont have a problem.
When i tried using menu i am unable to view the report.
in menu i am using af:goLink destination="/faces/report.jspx">. I view the report page after click on the button it wont call the adfc-config. Why if i try to run single page i am able to pass parameter and action will be taken. I will get the report .
Is there any changes i have to do
TIA

An xsql page is not a JSF page and won't be able to navigate with navigation rules defined in the adfc-config.xml
Only JSF pages can navigate using those rules.
To navigate from one page to the other use a commandLink or commandButton and set the action to the name of the navigation rule.
To run open adfc-config.xml and right click on a view activity to choose run.

Similar Messages

  • Unable to call the backend action method

    Hi,
    First of all,I would like to let you know that I am not very much familiar with jsf. My problem is as follows:
    I have a jsf page having some input text boxes,one gridview component( Infragistics jsf component) and a submit button. On submit, I am trying to call one managedbean action method. The gridview component has further two columns,one input text box and one h:selectonemenu component.
    When I try to submit the page, it doesn't call the managedbean action method.The gridview component has one attribute called datasource which is basically a list.During debugging, I found that on submitting the page, it goes to getter of datasource.
    One thing I noticed that If I remove the h:selectonemenu from the gridview component, the action method gets called.
    Can any body please suggest me where could be the problem?
    Thank you

    Hi Guys,
    Thanks for your solutions and answers. My problem was solved.
    But again I have similar kind of problem. This time I have h:selectOneRadio component which seems to be causing the problem because if I remove this, the call goes to action method. It's again seems to be conversion or validation error.As suggested,I have tried putting <h:message> for this component but I get a warn message in console like "Unable to find component with ID 'categorylist' in view". I further saw in the html source of the page and indeed found that the id was not there.I have no idea about it,why it's happening.
    I have following code snippet for jsp page:
    <div id="inner_body" style="height: 550px;">
                                  <h:outputText value="#{msg.Manage_MED_CLASS}" styleClass="title" />
                                  <h:messages globalOnly="true" styleClass="error" />
                                  <f:verbatim>
                                       <br />
                                       <br />
                                  </f:verbatim>
                                  <br />
                                  <ig:gridView id="medclassdefnitionlist"
                                       dataSource="#{medClassManagedBean.medClassDefinitions}">
                                       <ig:column>
                                            <f:facet name="header">
                                                 <h:outputText value="Med class definition"></h:outputText>
                                            </f:facet>
                                            <h:outputText value="#{DATA_ROW.medClassDef}"></h:outputText>
                                       </ig:column>
                                       <ig:column>
                                            <f:facet name="header">
                                                 <h:outputText value="Classification(Controlled/Uncontrolled)"></h:outputText>
                                            </f:facet>
                                            <h:selectOneRadio id="categorylist"
                                                 value="#{DATA_ROW.medClassCategory}"
                                                 style="white-space: nowrap">
                                                 <f:selectItem itemLabel="Yes" itemValue="true" id="itemid1"/>
                                                      <f:selectItem itemLabel="No" itemValue="false" id="itemid2"/>
                                            </h:selectOneRadio>
                                            <h:message for="categorylist" styleClass="error"></h:message>
                                       </ig:column>
                                  </ig:gridView>
                                  <f:verbatim>
                                       <br />
                                       <br />
                                  </f:verbatim>
                                  <h:panelGrid columns="2" cellpadding="4" cellspacing="3">
                                       <h:commandButton image="../../../images/btn_save.gif"
                                            accesskey="S"
                                            action="#{medClassManagedBean.saveMedClassDefinition}"
                                            style="outline: none;"></h:commandButton>
                                       <h:commandButton accesskey="C" style="outline: none;"
                                            image="../../../images/btn_cancel.gif"
                                            action="backtoreportinglevel" />
                                  </h:panelGrid>
                             </div>Under ig:gridView component, I have two columns, in the first one h;outputtext is there while in the 2nd one h:selectOneRadio is there. I tried putting immediate="true" in h:commandButton , and then the call goes to the action method. So, it is definitely failing in either validation or conversion phase.
    The following is my java code snippet:
    public ArrayList<MedClassBackingBean> getMedClassDefinitions() {
              try {
                   medClassDefinitions = new ArrayList<MedClassBackingBean>();
                   HttpServletRequest request = (HttpServletRequest) FacesContext
                             .getCurrentInstance().getExternalContext().getRequest();
                   HttpSession session = request.getSession();
                   String hospitalCode = (String) session
                             .getAttribute(Constants.HOS_GLO_EXCLUSION_SESSION_VAR);
                   MedGroupBD medGroupBd = new MedGroupBD();
                   List<Object[]> medClassList = medGroupBd
                             .getMedClassDefinitionsForHospital(hospitalCode);
                   //populateMedClassCategoryList();
                   if (UtilityFunctions.isNotEmpty(medClassList)) {
                        for (Object[] medClass : medClassList) {
                             MedClassBackingBean medClassBackingBean = new MedClassBackingBean();
                             medClassBackingBean.setHospitalCode(hospitalCode);
                             medClassBackingBean.setMedClassDef(medClass[0].toString());
                             if (medClass[1] != null) {
                                  if (medClass[1].toString().equals("Controlled")) {
                                       medClassBackingBean.setMedClassCategory("true");
                                  } else {
                                       medClassBackingBean.setMedClassCategory("false");
                             } else {
                                  medClassBackingBean.setMedClassCategory("false");
                             medClassDefinitions.add(medClassBackingBean);
              } catch (Exception e) {
                   log.error(e.getMessage(), e.getCause());
              return medClassDefinitions;
         }The above code returns the list for the ig:gridView datasource. "medClassCategory" is the property of backing bean which is mapped for the value attribute of h:selectOneRadio component. The managed bean is in the request scope.Right now on submit of form, first the call goes to this method "getMedClassDefinitions" and then I found like call goes to setter of medClassCategory property in the backing bean as well and sets the changed value from the UI but it never goes to the action method.
    Please see if anybody can help me.
    Thank you,
    Edited by: dacsinha on Nov 27, 2009 6:36 AM

  • Unable to generate page using Oracle Web publishing Assistant

    I am getting the following error ( seen using event viewer) while generate the Web page using Oracle Web publishing Assistant in Windows NT 4.0:
    1. Couldn't find fiber to delete .
    Event 5038
    2. Page Generator initialization failed.
    Event 1010
    3. Could not unmap view of the template file, due to error #0 .
    Event 6011
    null

    I'm experiencing the same problem - any help would be greatly appreciated

  • Unable to Center Page using CS3

    At http://www.theforrestproject.org/xindex.html I have spent many hours trying to center this page in a browser. I am satisfied that the text and horizontal navigation bar are centered about themselves but when viewed in a browser they are off-center to the left leaving a far greater space on the right hand side.
    Would it be possible to simply remove this extra space on the right?
    I would sincerely appreciate any assistance to rectify this problem.
    Sincerely, Ian Malik.

    I've cleaned the page up a bit...see if you can work with the code below. Copy and paste into new Dreamweaver document and save to your site folder.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <META NAME="ROBOTS" CONTENT="all" />
    <link rel=”shortcut icon” href=”http://www.theforrestproject.org/favicon.ico” mce_href=”http://www.theforrestproject.org/favicon.ico”/>
    <title>The Forrest Project HOME Page</title>
    <meta name="description" content="The aim of the Cataloguing Art Works component of The Forrest Project is to provide interested persons with the skills, researching approaches and techniques to utilize the Internet to document the works of an artist.
    Here we set out key steps.">
    <meta name="keywords" content="catalogs,research,free catalogs,forrest,project,catalogue,artwork,forrest project,the forrest project,theforrestproject,works,art,artist,images,can">
    <style type="text/css">
    <!--
    body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    color: #000000;
    background-image: none;
    background-color: #CCCCCC;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <style>
    /* body page specific */
    body {
    background-color: #555;
    font: small/1.3 Arial, Helvetica, sans-serif;
    /* end body page specific */
    .oneColElsCtr #nav {
    font-family: "Old English Text MT";
    font-size: 18px;
    font-weight: lighter;
    color: #000000;
    width: 900px;
    background-color: #CCCCCC;
    margin: 0 auto;
    /* Begin Navigation Bar Styling */
    #nav ul {
    list-style: none;
    margin: 0;
    padding: 0; }
    #nav li {
    float: left; }
    #nav li a {
    display: block;
    padding: 8px 5px;
    text-decoration: none;
    font-weight: normal;
    color: #000000;
    border-right: 1px solid #ccc;
    #nav li:first-child a {
    border-left: 1px solid #ccc; }
    #nav li a:hover {
    color: #c00;
    background-color: #fff;
    /* End Navigation Bar Styling */
    #header {
    font-family: "Old English Text MT";
    margin: 0 auto;
    text-align: center;
    width: 900px;
    .style43 {
    font-size: 65px
    .style107 {
    font-size: 160%;
    color: #000000;
    </style>
    </head>
    <body class="oneColElsCtr">
    <!-- start header -->
    <div id="header">
    <span class="style107">Welcome to</span><br />
    <span class="style43">The Forrest Project</span>
    </div><!-- end header -->
    <!-- start nav -->
    <div id="nav">
    <ul>
    <li><a href="#">Certification</a></li>
    <li><a href="#">Education</a></li>
    <li><a href="#">Publishing</a></li>
    <li><a href="#">Catalogue</a></li>
    <li><a href="#">Genealogy</a></li>
    <li><a href="#">Recruitment</a></li>
    <li><a href="#">Resources</a></li>
    <li><a href="#">Language</a></li>
    <li><a href="#">Site Map</a></li>
    <li><a href="#"> Contact Us</a></li>
    </ul>
    <br style="clear: both;" />
    </div><!-- end nav -->
    </body>
    </html>

  • Open Page in new window using action link

    How do I open a page in a new window, using action link ?
    If I put javascript window.open in OnClick event, the action event ins�t called.

    Hi,
    The window.open method can be used with the hyperlink component. So please try it with a hyperlink component.
    Cheers
    Giri :-)
    Creator Team

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • Use Action to call JSP method instead for forwarding to another url

    I have a servlet button to save data I have entered on a form. The only way I understand to save the data when the button is pressed is to use ACTION and call up a .jsp to do the work like this:
    <FORM ACTION="http://localhost:8080/examples/jsp/learningJSP/UpdateStudentInfo.jsp" METHOD="POST">
    and here's the .jsp that sets my current properties from the form and saves them.
    <HTML>
    <BODY>
    <jsp:useBean id="studentDataBean"
         class="learningservlets.StudentDataBean"
         scope ="application"/>
    <jsp:setProperty name="studentDataBean" property ="*" />
    <!--call saveData() to send the data you just set - to the database%=stuInfo.saveData()%>-->
    <%studentDataBean.saveData();%>
    <jsp:forward page="PresentStudentData.jsp" />
    <H1>
    UpdateStudentInfo Bean
    </H1>
    </BODY>
    </HTML>
    The problem I have with using this approach is my user is sent to another page. Is there anyway to complete the above task transparently (i.e. without making the user go to the page that does all of the work)?
    Thanks for any assistance you may offer.

    Use this,
    UpdateStudentInfo.jsp
    <%@ page import="learningservlets.StudentDataBean" %>
    <jsp:useBean id="studentDataBean"
    class="learningservlets.StudentDataBean"
    scope ="application">
    <jsp:setProperty name="studentDataBean" property ="*" />
    </jsp:useBean>
    <!--call saveData() to send the data you just set - to the
    database%=stuInfo.saveData()%>-->
    <%
    studentDataBean.saveData();
    response.sendRedirect("PresentStudentData.jsp");
    return;
    %>
    Hope this helps.
    Sudha

  • R12.2.4 Data lost after using Dialog Page and return back to calling page.(Help Please! )

    Hi Team,
    I am new to OAF and is working on a requirement to add some custom validations when the user clicks on a Button in a standard seeded page.
    The approach I took was to Extend the seeded Controller object that handled this button press event and put my custom logic in the extended controller and override the standard controller via personalization.
    The standard flow was that upon pressing the Complete Button in Page A ,user was taken to the next seeded page (Page B) to perform certain operations based on the records that were selected in Page A.
    Part of the custom validation requirement was that if certain validations were not met then the user needs to be shown a Pop-up asking if they really wanted to proceed and if they selected Yes then continue with the standard seeded flow(move to page B)  and if they selected NO then just stay on the current page.
    I was able to use OADialogPage and do this partially , the issue I am running into is that once the user selects the one or more records  using a check box from a multi-record (table) region and hits the Complete Button on page A and if the validation fails then a modal page is shown and the user makes a selection i.e.either Yes or No from the modal page and when they return to calling page (i.e. Page A) , All the Data (records ) that they selected previously is lost (Page is refreshed). Based on what I see on this forum I suspect that it is because after clicking on Yes on the modal page and while returning to the original page the processRequest fires again and VO data is queried again and all selections on the page A are lost. Since I am trying to alter the flow in seeded pages based on user intervention I am kind of lost as to how this issue can be fixed. i.e. either prevent the page refresh or preserve the selections that were made prior to navigating to the modal page. Any Help is truly appreciated !!
    My Code :
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    if (oapagecontext.getParameter("completeOps") != null) {
    if (warnCount > 0) {
      //OAException message = new OAException("Not in Sequence...", OAException.WARNING);
      //oapagecontext.putDialogMessage(message);
      OAException message = new OAException("Rule XYZ Violated .Do you want continue ?",OAException.WARNING);
      OADialogPage dialogPage = new OADialogPage(OAException.WARNING, message, null, "","");
      String yes = oapagecontext.getMessage("AK", "FWK_TBX_T_YES", null);
      String no = oapagecontext.getMessage("AK", "FWK_TBX_T_NO", null);
      dialogPage.setOkButtonItemName("ConYesButton");
      dialogPage.setNoButtonItemName("ConNoButton");
      dialogPage.setOkButtonToPost(true);
      dialogPage.setNoButtonToPost(true);
      dialogPage.setPostToCallingPage(true);
      dialogPage.setOkButtonLabel(yes);
      dialogPage.setNoButtonLabel(no);
      oapagecontext.redirectToDialogPage(dialogPage);
    if (oapagecontext.getParameter("ConYesButton") != null)   {
              // Write Action code for Yes Button
              oapagecontext.putParameter("completeOps", "Continue");
    if (oapagecontext.getParameter("ConNoButton") != null){
                // Write Action code for No Button
                String errormsg = "Rule Violations have occured ";
                throw new OAException(errormsg);
       super.processFormRequest(oapagecontext, oawebbean);

    I was able to work around this issue by adding a simple check in the processRequest method of my extended Controller to prevent the call to super.processRequest incase when the control returns to the page after the user has made a selection in the Dialog Page
    if((oapagecontext.getParameter("ConYesButton") == null) && (oapagecontext.getParameter("ConNoButton") == null)) {
      super.processRequest(oapagecontext, oawebbean);
    Thanks !

  • I use javaFx WebViewBrowser to download ZIP file, the page no action

    I use javaFx WebViewBrowser to download ZIP file, the page no action; other tools example chrome ,ie can download the zip file .
    so can you writer a download zip file example for me ?
    thanks ,my english is so bad ,sorry !!! :)

    WebView doesn't have a built in file downloader - you have to implement it yourself.
    You can find a sample implementation for file downloads in JavaFX here =>
    http://www.zenjava.com/2011/11/14/file-downloading-in-javafx-2-0-over-http/
    That sample does not include the hooks into WebView to trigger the downloads.
    You will need to trigger off the mime type or the file extension in the url.
    A rudimentary sample trigger a download off of webview is provided in the code below.
    For a nice solution, you would probably want to spin the downloader off with it's own UI similar and manage the download itself as a JavaFX Task similar to how the zenjava component works.
    Code adapted from => http://code.google.com/p/willow-browser/source/browse/src/main/java/org/jewelsea/willow/BrowserWindow.java
    // monitor the location url, and if it is a pdf file, then create a pdf viewer for it, if it is downloadable, then download it.
    view.getEngine().locationProperty().addListener(new ChangeListener<String>() {
      @Override public void changed(ObservableValue<? extends String> observableValue, String oldLoc, String newLoc) {
        if (newLoc.endsWith(".pdf")) {
          try {
            final PDFViewer pdfViewer = new PDFViewer(false);  // todo try icepdf viewer instead...
            pdfViewer.openFile(new URL(newLoc));
          } catch (Exception ex) {
            // just fail to open a bad pdf url silently - no action required.
        String downloadableExtension = null;  // todo I wonder how to find out from WebView which documents it could not process so that I could trigger a save as for them?
        String[] downloadableExtensions = { ".doc", ".xls", ".zip", ".tgz", ".jar" };
        for (String ext: downloadableExtensions) {
          if (newLoc.endsWith(ext)) {
            downloadableExtension = ext;
            break;
        if (downloadableExtension != null) { 
          // create a file save option for performing a download.
          FileChooser chooser = new FileChooser();
          chooser.setTitle("Save " + newLoc);
          chooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("Downloadable File", downloadableExtension));
          int filenameIdx = newLoc.lastIndexOf("/") + 1;
          if (filenameIdx != 0) {
            File saveFile = chooser.showSaveDialog(view.getScene().getWindow());
            if (saveFile != null) {
              BufferedInputStream  is = null;
              BufferedOutputStream os = null;
              try {
                is = new BufferedInputStream(new URL(newLoc).openStream());
                os = new BufferedOutputStream(new FileOutputStream(saveFile));
                int b = is.read();
                while (b != -1) {
                  os.write(b);
                  b = is.read();
              } catch (FileNotFoundException e) {
                System.out.println("Unable to save file: " + e);
              } catch (MalformedURLException e) {
                System.out.println("Unable to save file: " + e);
              } catch (IOException e) {
                System.out.println("Unable to save file: " + e);
              } finally {
                try { if (is != null) is.close(); } catch (IOException e) { /** no action required. */ }
                try { if (os != null) os.close(); } catch (IOException e) { /** no action required. */ }
            // todo provide feedback on the save function and provide a download list and download list lookup.
    });

  • Unable get complete filepath from jsp page using request.getParameter()

    Hey all,
    i am actually trying to get the selected file path value using request.getParameter into the servlet where i will read the (csv or txt) file but i dont get the full path but only the file name(test.txt) not the complete path(C:\\Temp\\test.txt) i selected in JSP page using browse file.
    Output :
    FILE NAME : TEST
    FILE PATH : test.txt
    Error : java.io.FileNotFoundException: test.txt (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileReader.<init>(FileReader.java:55)
    at com.test.TestServlet.processRequest(TestServlet.java:39)
    at com.test.TestServlet.doPost(TestServlet.java:75)
    JSP CODE:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>DEMO SERVLET</title>
    </script>
    </head>
    <body>
    <h2>Hello World!</h2>
    <form name="myform" action="TestServlet" method="POST"
    FILE NAME : <input type="text" name="filename" value="" size="25" /><br><br>
    FILE SELECT : <input type="file" name="myfile" value="" width="25" /><br><br>
    <input type="submit" value="Submit" name="submit" />
    </form>
    </body>
    </html>
    Servlet Code :
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException, FileNotFoundException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {
    String filename = request.getParameter("filename");
    out.println(filename);
    String filepath = request.getParameter("myfile");
    out.println(filepath);
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet TestServlet</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<h1>Servlet TestServlet at " + request.getContextPath() + "</h1>");
    if (filepath != null) {
    File f = new File(filepath);
    BufferedReader br = new BufferedReader(new FileReader(f));
    String strLine;
    String[] tokens;
    while ((strLine = br.readLine()) != null) {
    tokens = strLine.split(",");
    for (int i = 0; i < tokens.length; i++) {
    out.println("<h1>Servlet TestServlet at " + tokens[i] + "</h1>");
    out.println("----------------");
    out.println("</body>");
    out.println("</html>");
    } finally {
    out.close();
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    Needed Output :
    FILE NAME : TEST
    FILE PATH : C:\\Temp\\test.txt
    Any suggestions Plz??

    As the [HTML specification|http://www.w3.org/TR/html401/interact/forms.html] states, you should be setting the enctype to multipart/form-data to be able to upload files to the server. In the server side, you need to process the multipart/form-data binary stream by parsing the HttpServletRequest#getInputStream(). It is a lot of work to get it to work flawlessly. There are 3rd party API's around which can do that for you, such as [Apache Commons FileUpload|http://commons.apache.org/fileupload] (carefully read the User Guide how to use it).
    You can also consider to use a Filter which makes use of the FileUpload API to preprocess the request so that you can continue writing the servlet code as usual. Here is an example: [http://balusc.blogspot.com/2007/11/multipartfilter.html].

  • SSRS 2008 R2 - Using Action to call a report with MultiValue Parameters

    I have a report uses project names as parameter(Multi value) and display some data. I want to call this report from some other report on a click (drill down). This report has a program row where it aggregates the data, underneath Programs, I have
    list of projects(group). When I use Action on the individual projects, it takes me to the appropriate project ( I used
    Fields!ProjectName.Value). However, when user clicks on the program, it should pass the group of projects within that program to the called report. With expression,  Fields!ProjectName.Value, it only select one random project (may be first/last from
    the query) and display records. I tried Join(Fields!ProjectName.Value, ",") and Fields!ProjectName.Value(0) but now it doesn't select a sengle project. Can someone help please?

    use In instead =

  • Unable to view PDF in Apex UI Page using google Chrome

    Hi All,
    We are unable to see the pdf in Oralce apex UI page using googlre chrome broswer. but it is coming fine with IE/Firefox. In Google chrome when we open any document, it just shows grey box, document is not shown, any settings need to change to make it work from Apex.
    Google Chrome ver: 17.0.963.38 beta-m
    Thanks in advance
    Siva

    See the solution at http://support.microsoft.com/kb/2716529
    However, that Fix-it won't work on Windows 7; you will need to make the registry change manually.  Download, unzip, then run the attached registry script to change that registry value.

  • Silverlight application (example.xap) doesn't run when call in other pages using "Object tag"

    Hi!
    I have silverlight 3 installed with Visual studio 2008. installation is fine.
    I have created a  silvelight application including a test page.
    In my test page I used the "object tag" to call my application as it is suggested since silverlight 3:
    <object type="application/x-silverlight-2"
    data="data:application/x-silverlight,"
    width="450" height="220">
    <param name="source" value="MySilverlightApplication.xap"/>
    </object>
    At the run time, using the test page my application runs as expected. But when i call the same application in another page i have created, nothing happens: the web page is blank. I wonder why it works with the test page created at the same time with the
    silverlight application ( i have checked the radio button that required the test paged creation during the process of the silverlight application) and why it doesn't work with a page created separately.
    Thank you for your help!
    Joel

    Hi Andy!
    Hi Qimin!
    Thank you for your helps. But i want to let you know that the html code i wrote in my post is just an example so I will complete my post with more information.
    0- I have visual studio 2008 installed with silverlight 3.
    1- I have created a web project with a master page (my master page has a content page )
    2- I added a silvelight application: carousel.xap (during its creation I've accepted to add a test page: carouselTestPage.aspx)
    3- I added a main page Home.aspx: which inherits from the master page created in step 1, then I call my silverlight application in this content page using the object tag.
    Result of the tests during run time:
    My silverlight application carousel.xap works fine when I test it with the
    carouselTestPage.aspx.
    But my silverlight application carousel.xap doesn't work with the main page I added to my web project. the web content page is blank.
         Here below the script of the carouselTestPage.aspx
    and for the Pages_Home:
    carouselTestPage.aspx code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
    <title>carousel</title>
    <style type="text/css">
    html, body {
    height: 100%;
    body {
    padding: 0;
    margin: 0;
    #silverlightControlHost {
    height: 100%;
    text-align:center;
    </style>
    <script type="text/javascript" src="Silverlight.js"></script>
    <script type="text/javascript">
    function onSilverlightError(sender, args) {
    var appSource = "";
    if (sender != null && sender != 0) {
    appSource = sender.getHost().Source;
    var errorType = args.ErrorType;
    var iErrorCode = args.ErrorCode;
    if (errorType == "ImageError" || errorType == "MediaError") {
    return;
    var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
    errMsg += "Code: "+ iErrorCode + " \n";
    errMsg += "Category: " + errorType + " \n";
    errMsg += "Message: " + args.ErrorMessage + " \n";
    if (errorType == "ParserError") {
    errMsg += "File: " + args.xamlFile + " \n";
    errMsg += "Line: " + args.lineNumber + " \n";
    errMsg += " + args.charPosition + " \n";
    else if (errorType == "RuntimeError") {
    if (args.lineNumber != 0) {
    errMsg += "Line: " + args.lineNumber + " \n";
    errMsg += " + args.charPosition + " \n";
    errMsg += "MethodName: " + args.methodName + " \n";
    throw new Error(errMsg);
    </script>
    </head>
    <body>
    <form id="form1" runat="server" style="height:100%">
    <div id="silverlightControlHost">
    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
    <param name="source" value="ClientBin/carousel.xap"/>
    <param name="onError" value="onSilverlightError" />
    <param name="background" value="white" />
    <param name="minRuntimeVersion" value="3.0.40624.0" />
    <param name="autoUpgrade" value="true" />
    <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
    <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
    </a>
    </object><iframe id="_sl_historyFrame" style="height:0px;width:0px;border:0px"></iframe></div>
    </form>
    </body>
    </html>
    2. Home.aspx code:
    <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MyMasterPage.master" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="Pages_Home" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="MyContent" Runat="Server">
    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
    <param name="source" value="~/ClientBin/carousel.xap"/>
    <param name="background" value="white" />
    <param name="minRuntimeVersion" value="3.0.40624.0" />
    <param name="autoUpgrade" value="true" />
    <param name="enableHtmlAccess" value="true" />
    <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
    <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
    </a>
    </object>
    <iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px">
    </iframe>
    </asp:Content>
     so the application source is correctly supplied in the object tag description. so I wonder why it doesn't work with a separate content page in the same web project and work with this embedded Silverlight Test page.
    Thank you for your helps.
    Joël

  • I'm unable to scroll down the page using laptop touch pad.

    My FF was updated automatically. I'm unable to scroll down the page using the laptop touch pad scroll option.
    It was working fine on FF before upgrade and after upgrade on IE browser. But, in FF 9 it is not working. Any help is appreciated.

    Type '''about:config''' in the address bar and hit Enter key. When you see a warning, click '''I'll be careful, I promise!''' button
    -> In the '''Filter bar''', type '''trackpoint'''
    * right-click '''ui.trackpoint_hack.enabled''' preference, click '''Modify''' and change the value from '''-1''' to '''0''' (zero) or '''1'''
    * click OK
    -> Close '''about:config''' tab and Restart Firefox
    Check which value (0 or 1) works.
    Not related to your problem but do the following:
    -> Update Firefox to the latest version 10
    * [[Installing Firefox on Windows]]
    -> Update All your Firefox Plugins -> https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • Agents unable to perform Call Transfer using the shortcut button

    Hello All,
    We are facing this same issue for the last 3 days, any help will be truly appreciated.
    Scenario : When customer calls in, Few agents are unable to do call transfer using the shortcut button on the CAD Interface. however when this fails they still can manually transfer the call by entering the number as a work around.
    This is not happening for all agents and for those this is happening it happens intermittently. What could be the reason. please guide.

    This def sounds like an MTP issue.. Are you using software MTP or hardware MTP's on the gateways? I suggest using Software session on the gateways as it won't use DSP and will allow for much more the CUCM itself can support...
    Pretty good chance this is the issue...
    (Check RTMT and see if you are getting alerts about media resource group list exhausted)
    Chad

Maybe you are looking for

  • Problem editing scheduled jobs

    I just had a problem where 3.1, EA1 and EA2 all failed to edit a scheduled job in sqldev. A coworker was able to make the same edit using the same database ID, except he did it through SQL*Plus - that made me suspect a bug in sqldev. Here are the sym

  • CS5 Photoshop Offline Help No Search Result Malfunction

    In summary the Adobe Community Help application or the "Launch Help in Browser" functions wont return any search results for the Adobe Photoshop CS5 OFFLINE reference. I use my main design machine off the net. It's not often I reach for the help text

  • Lexical References in SELECT

    hi, I'm trying to use a lexical reference in my SELECT statement as follows: select department_name, department_id, &myParameter from departments and I'm always getting an error (ORA-00923: FROM keyword not found where expected). I've already worked

  • PKBC TCode  Enhancements not getting triggered ?

    Dear All, I've found the Enhancements for the PKBC Transaction. MPKB0001      User's own functions in the Kanban proces MPKB0002      Customer defined display in kanban board MPKC0001      User exit for kanban calculation         MPKD0001      Kanban

  • Java.lang.IllegalStateException: forward() not allowed after buffer has com

    Dear all, The error "java.lang.IllegalStateException: forward() not allowed after buffer has committed." was reported by my resin-1.2.3 server. Can anyone give me a suggestion to overcome this problem. Regards Ravikumar