File save JSP with struts

I have a web application which saves the data from DB query in csv format.
I am having problem with saving the file.
I get the correct result and i can alos save the file.
Where i am having problem is after the file is saved i want my page to go to
another page which shows the data of the file.
What i did was in my struts config file i gave the path of the jsp that shows
the data, but after the file is saved my page is not redirected.
so what i did was i first redirected to another page, and used javascript
onload function and gave the path of the action that saves the file.
However, even when the page is redirected instead of saving the data
it saves the html source of the jsp. i dont know why this is happenig.
anybody with any idea on how can i redirect to another page after saving
the file or redirecting to another page and saving the file, with correct data?
please help

Post snippets from your struts-config.xml and code. This will give idea to ppl who are trying to help.
- Jay
http://www.javarss.com - Java News from around the world.
Spread JavaRSS.com, Add the above signature to your messages or emails!

Similar Messages

  • Upload file in JSP with Oracle Database 10gR2

    How to upload file with oracle database 10gR2??
    i can't find how to upload..
    i've tried to create a procedure in oracle and execute in netbeans but the file save in directory and then from directory save to database.
    it means the file save in 2 location, in directory and database..
    does anybody know how to save file direct from the JSP file into database without save in directory?
    this is the procedure..
    create or replace PROCEDURE load_file (
    p_id number,
    p_photo_name in varchar2) IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := bfilename('DIR_TEMP', p_photo_name);
    -- insert a NULL record to lock
    INSERT INTO temp_photo
    *(id, photo_name, photo)*
    VALUES
    *(p_id , p_photo_name ,EMPTY_BLOB())*
    RETURNING photo INTO dst_file;
    -- lock record
    SELECT photo
    INTO dst_file
    FROM temp_photo
    WHERE id = p_id
    AND photo_name = p_photo_name
    FOR UPDATE;
    -- open the file
    dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
    -- determine length
    lgh_file := dbms_lob.getlength(src_file);
    -- read the file
    dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
    -- update the blob field
    UPDATE temp_photo
    SET photo = dst_file
    WHERE id = p_id
    AND photo_name = p_photo_name;
    -- close file
    dbms_lob.fileclose(src_file);
    END load_file;

    Well your Oracle procedure is designed to load a file, so that's what it does. If you want it to load from a data stream such as an upload, you need to rewrite it accordingly.
    So far this is not a Java question at all.

  • Question in developing JSP with Struts

    Hello,everybody.
    Recently,I wrote a simple JSP Web program basing on the Struts architecture.It created a page for a user to input his name and password,and after the user click the submit botton on the form,it can redirect to another page and show the name and password that the use has input on the page.I have completed the program but it can't work properly.
    I listed each part of the program as following:
    (a) TestForm.jsp
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <head>
    <title>Login Interface</title>
    </head>
    <body vLink="#006666" link="#003366" bgColor="#E0F0F8">
    <img height="33" src="image/enter.gif" width="148">
    <form action="ReadTestForm.do" method="post">
    UserName:
    <input size="15"name="PersonName"><p>
    Password:
    <input type="password" size="15" name="Psw"><p>
    <input type="submit" value="Submit">
    </form>
    (b) MTestForm.java
    package Test;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMessage;
    public class MTestForm extends ActionForm{
         private String PersonName = null;
         private String Psw = null;
         public MTestForm(){}
    public void setPersonName(String name) {
              this.PersonName = name;
         public String getPersonName() {
              return PersonName;
         public void setPsw(String psw) {
              this.Psw = psw;
         public String getPsw() {
              return Psw;
         public void reset(ActionMapping mapping,
              HttpServletRequest request) {
              this.PersonName = null;
              this.Psw = null;
    (c) ReadTestFormAction.java
    package Test;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionMessages;
    import org.apache.struts.action.ActionMessage;
    import javax.servlet.ServletContext;
    import javax.sql.DataSource;
    import javax.servlet.http.*;
    public final class ReadTestFormAction extends Action{
         public ActionForward execute(
                   ActionMapping mapping,
                   ActionForm form,
                   HttpServletRequest request,
                   HttpServletResponse response) throws Exception {
                   MTestForm TestFormBean = (MTestForm) form;
         String PersonName = TestFormBean.getPersonName();
         String Psw = TestFormBean.getPsw();
         return mapping.findForward("ReadTestFormOk");
    (d) ShowForm.jsp
    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ page import = "classmate.*" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Read Test Form and Show the Data</title>
    </head>
    <body>
    <%
         MTestForm ReadformBean1 = (MTestForm)request.getAttribute("TestFormBean1");
    %>
    <h1><img src="image/smile.gif">
    Welcome
    <%=ReadformBean1.getPersonName()%>
    Your Password is:
    <%=ReadformBean1.getPsw()%>
    </h1><br>
    </body>
    </html>
    (e) web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <!-- Action Servlet Configuration -->
    <servlet>
    <servlet-name>actionServlet</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    </servlet>
    <!-- Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>actionServlet</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- The Welcome File List -->
    <welcome-file-list>
    <welcome-file>TestForm.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    (f) struts-config.xml
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
         "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
         "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="formBean1" type="Test.UserForm"/>
    <form-bean name="TestFormBean1" type="Test.MTestForm">
    </form-bean>
         <action-mappings>
              <action path="/login" type="Test.LoginAction" name="formBean1" scope="request" input="/login.jsp" >
                   <forward name="failed" path="/error.jsp"></forward>
                   <forward name="successed" path="/right.jsp"></forward>
              </action>
              <action path="/regist" forward="/regist.jsp"/>
    <action path="/ReadTestForm"
              type="classmate.ReadTestFormAction" name="TestFormBean1" scope="request" input="/login.jsp">
         <forward name="ReadTestFormOk" path="/ReadForm.jsp"></forward>
    </action>
         </action-mappings>
    </struts-config>
    After I accessed the page of "TestForm.jsp" and input the " Username and Password",click "Submit " button ,it can redirect to the page of "ShowForm.jsp",but each time both the Username and Password are "Null", It meaned that the statement {which is MTestForm ReadformBean1 = (MTestForm)request.getAttribute("TestFormBean1");
    } and its following statement in the "ShowForm.jsp" can't accessed what the user have input for the Textboxs of Username and Password.
    I have tried and tried and modify the program for many times,but it have not been solved.
    Can you help me to check out what is the wrong with the program?
    Thanks you for help and Regards
    (Can you anybody tell me how edit the text so that it can been printed out clearly in this forum?)
    Message was edited by:
    Devemor

    Well as far as i see there is no mapping working between
    Form input and ActionForm Bean properties as the reset() method would be called b4 action class
    you need to map the properties in the below fashoin
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <head> <title>Login Interface</title> </head>
    <body vLink="#006666" link="#003366" bgColor="#E0F0F8">
    <img height="33" src="image/enter.gif" width="148">
      <form action="ReadTestForm.do" method="post">
         UserName: <input size="15"name="PersonName">
         Password: <input type="password" size="15" name="Psw">
         <input type="submit" value="Submit">
      </form>
    </body>
    </html>MTestForm.java:
    ==============
    package Test;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMessage;
    public class MTestForm extends ActionForm{
    private String PersonName = null;
    private String Psw = null;
    public MTestForm(){}
    public void setPersonName(String name) { this.PersonName = name; }
    public String getPersonName() { return PersonName; }
    public void setPsw(String psw) { this.Psw = psw; }
    public String getPsw() { return Psw; }
    public void reset(ActionMapping mapping, HttpServletRequest request)
    { this.PersonName = request.getParameter("PersonName");
      this.Psw = request.getParameter("Psw");
    }or try with
    <%@ page language="java" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html:html locale="true">
    <head>
       <title><bean:message bundle="form" key="login.title"/></title>  
    </head>
    <body>
    <html:form action="">
    Username : <html:text property="personName" />
    Password : <html:password property="psw"/>
    </html>
    </body>
    </html:html>MTestForm.java:
    ==============
    package Test;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMessage;
    public class MTestForm extends ActionForm{
    private String PersonName = null;
    private String Psw = null;
    public MTestForm(){}
    public void setPersonName(String name) { this.PersonName = name; }
    public String getPersonName() { return PersonName; }
    public void setPsw(String psw) { this.Psw = psw; }
    public String getPsw() { return Psw; }
    public void reset(ActionMapping mapping, HttpServletRequest request)
      this.PersonName = null;
      this.Psw = null;
    }and the controller part would be something like the one below
    ReadTestFormAction.java
    =======================
    package Test;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionMessages;
    import org.apache.struts.action.ActionMessage;
    import javax.servlet.ServletContext;
    import javax.sql.DataSource;
    import javax.servlet.http.*;
    public final class ReadTestFormAction extends Action{
      public ActionForward execute(ActionMapping mapping,ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
      MTestForm TestFormBean = (MTestForm) form;
      String PersonName = TestFormBean.getPersonName();
      String Psw = TestFormBean.getPsw();
      return mapping.findForward("ReadTestFormOk");
    }struts-config.xml:
    ==================
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="formBean1" type="Test.UserForm"/> <form-bean name="TestFormBean1" type="Test.MTestForm">
    </form-bean>
    <action-mappings>
    <action path="/login" type="Test.LoginAction" name="formBean1" scope="request" input="/login.jsp" >
    <forward name="failed" path="/error.jsp"></forward>
    <forward name="successed" path="/right.jsp"></forward>
    </action>
    <action path="/regist" forward="/regist.jsp"/> <action path="/ReadTestForm" type="classmate.ReadTestFormAction" name="TestFormBean1" scope="request" input="/login.jsp"> <forward name="ReadTestFormOk" path="/ReadForm.jsp"></forward> </action>
    </action-mappings>
    </struts-config>Hope that might help :)
    REGARDS,
    RaHuL

  • JDeveloper editing JSP with Struts tags terribly, terribly slow!?

    I use JDeveloper 10.1.2 and I do not know the reason but it started to take 15min just to change/edit JSP containing Struts tags. RAM memory is 1GB and there is more than 0.5 GB available, but processor usage shows 100% allocated to JDeveloper!? As soon as I do even slight change in a JSP file JDeveloper starts some computations and I have no idea of what it is doing.
    What is JDeveloper computing? It seems it tries to produce some drop-down lists "helping" me to do the editing, add tags and instead I am spending days to just change one small JSP page!
    How can I stop and PREVENT JDeveloper doing ANY "help" during editing of ANY file?
    There must be an option to switch off whatever JDeveloper is doing?
    Many thanks,

    I did that but it is still very slow, it looks like Jdev is doing some intensive calculations whenever I click somewhere on JSP page with tags. Maybe this is related with my other question I posted before this one? Maybe JDev automatically searches for tag libraries it cannot find and copies them to /WEB-INF directory? (other IDEs used in same environment, like Eclipse and IntelliJ, and they do not have this problem)
    Some other strange things: struts-config.xml seems not integrated with CVS from JDev (other files like tiles-config.xml, web.xml etc. are integrated, I can right click and get CVS info on particular file, except struts-config.xml). When I want to check in/out struts-config.xml I have to do it with external tool like WinCVS etc., cannot do that from JDev!

  • Show jsp with struts

    hello,
    i'm building a web-application with struts. now i have the following problem (i don't find den reason, although i'm trying for hours):
    i want to show in the browser (with tomcat) a jsp-site. this site consists of different jsp-parts:
    file neujob.jsp
    <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
    <template:insert template='/templates/eshop.jsp'>
    <template:put name='header' content='/templates/header.jsp' />
    <template:put name='view' content='/view/erstellen.jsp' />
    <template:put name='footer' content='/templates/footer.jsp' />
    </template:insert>
    header and footer are shown correctly, when i call http://localhost:8080/pmtool/neujob.jsp in the browser; but the view-part is not shown. independent of how it looks. even this narrow-version doesn't work:
    file erstellen.jsp
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    huhu<br>
    huhu<br>
    the login.jsp-site however is shown correctly, and actually it is built similarly.
    what may be the reason? what gets wrong?
    thank you for your help!
    paraphrase

    sorry! now i've found my mistake!

  • Pls tell me use %@ include file="myfile.jsp"% with endcoding UTF-8??

    My jsp pages use some endcoding as UTF-8.
              When I use <%@ include file="myfile.jsp"%> endcoding lose format UTF-8. But
              if I use <jsp:forward page="myfile.jsp"/> it work fine.
              Pls tell me use <%@include %>
              (I use Jbuilder 6 and weblogic server 6.1)
              Thanks .
              

    From http://java.sun.com/products/jsp/tags/12/syntaxref1214.html#8828 (emphasis mine):
    page="{ relativeURL | <%= expression %> }"
    The relative URL that locates the resource to be included, or an expression that evaluates to a String equivalent to the relative URL.
    The relative URL looks like a pathname--it cannot contain a protocol name, port number, or domain name. The URL can be absolute or relative to the current JSP page. If it is absolute (beginning with a /), the pathname is resolved by your web or application server.
    You could use a servlet in your "path" attribute and have that servlet read and return the page from a different server; there are ways to do what you want, but <jsp:include> isn't one of them.

  • Media Encoder, No File Save Dialog with New XDCam Project

    I've started a new project last night and I got it edited toda
    y. It's XDCam 24P timelines, very simple linear
    string of short 45 second clips of interviews with executives.
    The timeline behaves normally in every respect. Except, when I attempt to render it to any format in Media Encoder, I never get the File Save As dialog. I press OK and the Media Encoder settings goes away, then, a second later, reappears. It took me a few moments to realize something was wrong.
    I rebooted the computer, thinking Premiere was just corrupt in memory, as sometimes happens, but after a fresh start, the same behavior with the Media Encoder. Now I'm really worried, because this is a corporate event video with a deadline.
    Just to check, I tried opening a prior project and tried to render anything in that project. This time I get the Save As dialog, which is expected. So I return to the corporate event project and try again to render anything within that project. The encoder settings keeps redrawing when I press OK and I cannot save anything.
    Thinking my project was corrupted, I copied the assets and made a new project and pasted them into the new, blank project. Once again, I cannot render anything. All I get is a redraw out of the Media Encoder settings screen.
    This is a very simple project. There is nothing unusual about it that could cause this freakish behavior, except the lighting used at the event was mostly yellow. Apparently it doesn't like something about my footage, but I cannot re-shoot this one-time corporate event! If a reboot didn't fix it, and other projects still work normally, then it's a real head-scratcher. This is new behavior that I've not encountered in 3 years of using CS3.
    I'm out of ideas. If it's XDCam my footage, then I'm dead in the water here!

    FOUND THE PROBLEM!
    I have several timelines in the project, and most of them are titled things like "window dub w/timecode". I found one that was titled "interviews" and tried to render that. The Save dialog appeared, only when I rendered from THAT timeline. So I started to look for differences between the timelines.. then it dawned on me that all the timelines that don't render have the "/" character in the title. Adobe should warn that this character is not allowed, rather than allow it and then behave weirdly. Could have saved me hours of thrashing about!

  • Trying to submit back to jsp with struts

    Ok, so I have a jsp page that displays tons of stuff.
    I get there from the struts flow of:
    InputFormJsp -> strutsFormBean ->strutsActionBean->JSP View Page
    So I'm at my view page and I was to resubmit back to the view page again using a bunch of hidden input fields to redo the page with different vars (historic data, based on the 1st time through).
    So it will go:
    JSP View Page->strutsFormBean->strutsActionBean->JSP View Page
    I want to use the same form and action beans and the same view page, just want to pass the hidden vars instead of prompting the user all over again.
    I have my form and hidden fields set up, but my problem is how do I get struts to see the resubmit. I made a new actionmapping that labeled the "input" as the same jsp page as the forward but I keep getting:
    javax.servlet.ServletException
         org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)followed by a good old NullPointerException from my actionbean's execute method (I think):
    root cause
    java.lang.NullPointerException
         com.air2web.SysReportAction.execute(SysReportAction.java:85)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)struts-config.xml looks like:
    <action   path="/getSysReport"
                  type="com.air2web.SysReportAction"
                  name="SysReportForm"
                  input="/pages/SysReport.jsp"
                  scope="request">
        <forward name="success" path="/pages/genSysReport.jsp"/>         
        </action>
    <action   path="/getSysReportHistoric"
                  type="com.air2web.SysReportAction"
                  name="SysReportForm"
                  input="/pages/genSysReport.jsp"
                  scope="request">
        <forward name="success" path="/pages/genSysReport.jsp"/>         
        </action>Is there a way to specify many input pages or some other trick to do this??
    Thanks
    Chris Liles

    I had exactly the same problem with Struts, and Finally I solve this.
    first of all put into <form-beans> the form path
        <form-bean name="updUserForm" type="com.yourcompany.struts.form.UpdUserForm" />and in <action-mappings >
        <action
          attribute="updUserForm"
          input="/UpdateUser.jsp"
          name="updUserForm"
          path="/updUser"
          scope="request"
          type="com.yourcompany.struts.action.UpdUserAction" >
          <forward name="success" path="/MyJsp.jsp" />
        </action>Be carefull with the first letter of attribute and name they must be in minus! (Instead of mayus in form).
    For more ..
    [email protected]

  • Problem compling JSP with struts tags on Weblogic 8.1

    I have deployed a web application in Weblogic 8.1. However, I am facing a problem while the JSPs are getting compiled. The JSPs ahve taglib declarations referring to Struts tag library files that are present in WEB-INF folder.
    Stacktrace:
    C:\java\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_epgonline_epgonline\jsp_servlet\_approve\__approve_home.java:209: cannot resolve symbol
    probably occurred due to an error in /approve/approve_home.jsp line 53:
    <logic:notPresent name="<%=JobBean.ID%>" scope="request">
    C:\java\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_epgonline_epgonline\jsp_servlet\_approve\__approve_home.java:209: cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int0 == BodyTag.EVAL_BODY_BUFFERED) { //[ /approve/approve_home.jsp; Line: 53]
    I believe other people have also faced this issue with Weblogic8.1 and struts. Any solutions???
    Thx
    KP

    KP,
    Does this code run in the development environment but not in production? How
    was this code compiled?
    - john
    "KP" <[email protected]> wrote in message
    news:405b9b56$[email protected]..
    I have deployed a web application in Weblogic 8.1. However, I am facing aproblem while the JSPs are getting compiled. The JSPs ahve taglib
    declarations referring to Struts tag library files that are present in
    WEB-INF folder.
    Stacktrace:
    C:\java\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\m
    yserver_epgonline_epgonline\jsp_servlet\_approve\__approve_home.java:209:
    cannot resolve symbol
    probably occurred due to an error in /approve/approve_home.jsp line 53:
    <logic:notPresent name="<%=JobBean.ID%>" scope="request">
    C:\java\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\m
    yserver_epgonline_epgonline\jsp_servlet\_approve\__approve_home.java:209:
    cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int0 == BodyTag.EVAL_BODY_BUFFERED) { //[/approve/approve_home.jsp; Line: 53]
    >
    I believe other people have also faced this issue with Weblogic8.1 andstruts. Any solutions???
    >
    Thx
    KP

  • Two dimensional array in JSP with struts

    Is it possible to use two dimensional array in an web application
    based on struts. I am using JSP and to get data from two dimensional
    array im using
    property = "array[0][0]";I read on the internet that bean utils does not support two dimensional array?
    I have a table like spreadsheet with 30 rows and 20 columns and i was
    planning to use two dimensional array? is there any other way to get
    this stuff done easily?
    any ideas welcome.

    HI ,
    i have the same problem you had
    did you get any solution for this?
    if so you can help me out

  • Connect to dbf file from jsp with servletexec??

    I am trying to connect to a dbf file from a jsp page on an win2003Server with ServletExec. But i get the exception "no suitable driver".
    It works fine with the exact same code and file on my winxp machine. This is the connectionstring: url = "jdbc:odbc:;DRIVER=Microsoft dBase VFP Driver (*.dbf);Sourcedb=E:\\Data\\der\\Solutions;Sourcetype=dbf";
    I can create a "Microsoft dBase VFP Driver" odbcConnection from the controlPanel and than use the connection from MicrosoftAccess and it works as it should. But I can't use it from the jsp code like this: url="jdbc:odbc:testdriver" .
    It feels like I am missing something in servletexec. Like a classpath to the odbcdriver. But in all my other installations I have not done anything more than installed the servletexc correctly and added the classpath for parser.jar and jaxp.jar.
    Am I missing something here???
    Zoktrax

    Try putting a Class.forName( "my.jdbc.DriverClass" ) before DriverManager.getConnection( url, user, password ), where "my.jdbc.DriverClass" is the fully-qualified class name of the JDBC driver class. I think that JDBC driver classes have static initializers that register the driver class with the DriverManager. I had a similar problem and the Class.forName( ) fixed it.
    If that doesn't work, double-check your URL.
    - Jesse

  • How to create a jsp with struts tld

    Hi
    I am new to jsp technology also struts.
    I want to create one jsp page with using struts.
    The page should be one text box and submit button.
    I was try to create one page in my application. But its showing the Errors
    Here i paste the Error
    javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
    Please anybody help me .
    Thanks
    MerlinRoshina

    hi
    check out this url
    http://forum.java.sun.com/thread.jspa?forumID=4&messageID=1384153&threadID=337537

  • Help running a simple jsp (with struts and core -sun- taglibs)

    Hi, could somebody help me with this simple JSP?
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <!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"
         xmlns:c="http://java.sun.com/jsp/jstl/core"
         xmlns:html="http://struts.apache.org/tags-html">
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    </head>
    <body>
         <html:text property="text">text</html:text>
         <label>hello</label>
         <c:forEach begin="1" end="5">
              <label>inside</label>
         </c:forEach>
    </body>
    </html>When I run it, the c:forEach tag doesn’t work.
    Output shows “text hello inside” instead of desired “text hello inside inside inside inside inside”
    Any hints will be really appreciated.
    Edited by: 792625 on 03-sep-2010 0:15

    Add the JSTL Core tag library.
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

  • Help: OJSPC can not compile the JSP with struts tag

    Hi,
    I am trying to precompile the JSP page with EAR package but OJSPC can not parse the Struts tags.
    I always get oracle.jsp.parse.JspParseException:
    Error: org.apache.struts.taglib.html.MessgesTei while reading TLD /WEB-INF/tld/struts-html.tld
    My OC4J version is 10.1.3.2 and I did tried putting the struts-taglib.jar to /opt/oracle/product/app10g/j2ee/home/jsp/lib or /lib/taglib
    but still do not work.
    Can anyone tell me how to configure the OJSPC and let it support customerized taglibs?
    Thanks a lot!

    This is a new problem with jdk1.4 when compiling with tomcat.
    The solution is to ensure that any classes in WEB-INF/classes are in a package structure and the relevant jsp calls the same using the package name.
    best
    kev

  • After Yosemite download excel files save separately with sequenced numbers

    Yosemite excel save problem

    hi... This forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Microsoft Office or your question in any way. If you have issues or questions about Office, it's probably best you post Office related questions on Microsoft's own forums for their Mac products.
    http://www.officeformac.com/productforums

Maybe you are looking for