Submit the jsp page containing the textarea

Hi,
I have a jsp page containing the textarea and a submit button. This page is submitted using POST. In the next page the content of the textarea is obtained and displayed. Can anyone let me know if there is any maximum limit on the characters in the textarea?
I am using JRUN3.1.
If the characters in the textarea is increasing 2000 characters, in the next page if i try to get the content of the textarea i am getting as null???
please help me out.

Hi,
There is a limit as to how much data that can be passed using the GET method. Dont remember it at the top of my head now.
It would be better to use the POST method.
Sandesh

Similar Messages

  • How to include a JSP page contained in a JAR file ?

    Hello,
    I have a Servlet in which I would like to include, in the Response, the content of a JSP page contained in an external JAR file included in my lib directory ?
    Could someone help me please ?
    Thanks in advance.
    bgOnline

    I don't think thats possible with the standard j2ee server.
    There are probably ways around it, but it would involve a large component of custom coding.

  • How to set output of a jsp page in a textarea??

    hi
    i am working on a mail application and i wish to set the output of a jsp page into the textarea.
    working is similar as we forward a mail the mail get appended in the textarea of the compose page.
    how to achieve this plz. help... i got stuck at this point ...

    You can create form using html tag <form> and create a textarea
    i.e. <textarea name="txtvalue" value="txt you want to show in text area">.
    I am not sure for the exact syntax for creating textarea in html. But it is just a reference.
    This may help you in creating html form.
    out.writln("<Form> ......... /<Form>");
    Thanks

  • Generating XML on Submit of JSP Page

    Dear all,
    We need to code JSP pages which will generate the XML Request document dynamically after user submits the form.
    Can anybody tell, how to go about doing this?
    Thanks & Regards
    Seema

    the general idea is to get the data after the submit and call a java class, that you have to code, wich will generate an xml doc with the submitted data.
    for more details about how to code an xml java class take a glance at this
    http://forum.java.sun.com/thread.jsp?forum=34&thread=416365
    hope this will help!

  • URGENT:How can we submit a web page containing form using Java API?

    Dear Friends,
    I want to submit a form to a form action page resides in a web site. Then I need to get the response of the same.
    Is there any way to do this automatically by using Java API.
    Does java.net have anything?
    Thanks in advance
    Sarath

    Have you looked at a package called httpunit.
    http://httpunit.sourceforge.net/
    This allows form submission, Javascript, cookies etc.

  • Unable to view jsp page containing jsf tags

    I'm pretty new to this JSF world, so facing lot of problems. I have installed JWSDP ver 1.2 When I start tomcat and specify URL http://localhost:8080 the site goes in waiting phase for ever. So even I'm not able to view/run the samples provided for jsf.
    Moreover, i have created a simple appln to test jsf tag, but it's giving following error:
    javax.servlet.ServletException: This absolute uri (http://java.sun.com/jsf/core) cannot be resolved in either web.xml or the jar files deployed with this application
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:207)
    I don't know where the problem is. The code for sample i have downloaded from http://www.horstmann.com/corejsf/tutorial.html
    but with no success in running jsf app.
    anyone know the reason, why??
    Thanx in Advance,
    K.K.

    Roger, here are the contents of log file.
    Here goes the contents of launcher.server.log :
    Sep 17, 2003 10:25:07 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 921
    Sep 17, 2003 10:25:07 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 171
    Sep 17, 2003 10:25:08 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 781
    Sep 17, 2003 10:25:08 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 200
    Sep 17, 2003 10:25:09 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 190
    Sep 17, 2003 10:25:09 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 71
    Sep 17, 2003 10:25:09 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 80
    Sep 17, 2003 10:25:09 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 290
    Sep 17, 2003 10:25:09 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 110
    Sep 17, 2003 10:25:09 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 50
    Sep 17, 2003 10:25:10 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 341
    Sep 17, 2003 10:25:10 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 170
    Sep 17, 2003 10:25:10 AM org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
    INFO: Reading descriptors ( dom ) 90
    Sep 17, 2003 10:25:12 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on port 8080
    Sep 17, 2003 10:25:12 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 6670 ms
    Sep 17, 2003 10:25:14 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Java Web Services Developer Pack
    Sep 17, 2003 10:25:14 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Java Web Services Developer Pack/1.2
    Sep 17, 2003 10:25:15 AM org.apache.catalina.core.StandardHost getDeployer
    INFO: Create Host deployer for direct deployment ( non-jmx )
    Sep 17, 2003 10:25:46 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Sep 17, 2003 10:25:46 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Sep 17, 2003 10:26:15 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
    Sep 17, 2003 10:26:24 AM com.sun.xml.rpc.server.http.JAXRPCContextListener contextInitialized
    INFO: JAX-RPC context listener initializing
    Sep 17, 2003 10:26:26 AM com.sun.xml.rpc.server.http.JAXRPCServletDelegate init
    INFO: JAX-RPC servlet initializing
    And here the contents of jwsdp_log :
    2003-09-17 10:25:14 createObjectName with StandardEngine[Catalina]
    2003-09-17 10:25:14 preRegister with Catalina:type=Logger
    2003-09-17 10:25:54 createObjectName with StandardEngine[Catalina].StandardHost[localhost].StandardContext[jaxrpc-HelloWorld]
    2003-09-17 10:25:55 preRegister with Catalina:type=Logger,path=/jaxrpc-HelloWorld,host=localhost
    2003-09-17 10:26:28 createObjectName with StandardEngine[Catalina].StandardHost[localhost].StandardContext[jsf-cardemo]
    2003-09-17 10:26:28 preRegister with Catalina:type=Logger,path=/jsf-cardemo,host=localhost

  • Array of Fields in JSP page

    hi,
    i am just a biginer in java forum& application developement,
    *********problem****************
    I am using jsp+struts2 combination. one of my jsp page contains a select field to select number (n).
    on basis of that selected number(n) I've to display n text fields.for every text field there is an submit button.
    how it is possible? using arry index?

    Yes, you can use the array notation in the name of the input element. You should end up with something like:
    <table>
        <tr><td><input name="input[0]"></td></tr>
        <tr><td><input name="input[1]"></td></tr>
        <tr><td><input name="input[2]"></td></tr>
    </table>
    <input type="hidden" name="rows" value="3">You can use JSTL c:forEach with a varStatus for this.

  • Open and close database connection jsp page

    hi there, i wanna know about how to open database connection to Mysql at the beginning of the page and close the connection at the end of the page. The jsp page contain all processing code.
    plz help me...thx thx

    <html>
    <head>
    <basefont face="Arial">
    </head>
    <body>
    <%@ page language="java" import="java.sql.*" %>
    <%!
    // define variables
    String id;
    String firstName;
    String lastName;
    // define database parameters, change this according to your needs
    String host="localhost";
    String user="root";
    String pass="";
    String db="test";
    String conn;
    %>
    <table border="1" cellspacing="1" cellpadding="5">
    <tr>
    <td><b>id</b></td>
    <td><b>first name</b></td>
    <td><b>last name</b></td>
    </tr>
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user 
    + "&password=" + pass;
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    // generate query
    // change this query according to your needs
    String Query = "SELECT id, firstname, lastname FROM abook";
    // get result
    ResultSet SQLResult = SQLStatement.executeQuery(Query);
    while(SQLResult.next())
       id = SQLResult.getString("id");
       firstName = SQLResult.getString("firstname");
       lastName = SQLResult.getString("lastname");
            out.println("<tr><td>" + id + "</td><td>" + 
         firstName + "</td><td>" + lastName + "</td></tr>");
    // close connection
    SQLResult.close();
    SQLStatement.close();
    Conn.close();
    %>
    </table>
    </body>
    </html>hi :-)
    i've got that on the net as part of the tutorial on jsp (long long time ago)
    you just have to be resourceful in finding solutions :-)
    try google :-) there are lot's of tutorial available in there ;-)
    goodluck ;-)
    regards,

  • Problem in passing data from one .jsp page to another .jsp page

    i have a problem here
    Actually i have 2 jsp pages. What im trying to do here is actually i want to pass data from the first jsp page to the second for updating
    The first jsp page contains data that user wants to update in the form of table.
    <td><img src = "edit.gif" alt = "edit" border="0" ><td>
    <TD><%= Name %></td>
    <TD><%= rs.getInt("Age") %></td>
    <TD><%= rs.getString("Gender") %></td>
    So this page displays the data that users wants to update plus one image button (edit button). So when user clicks this button, all the data in this page will be brought to the second .jsp page called updatePersonal for updating.
    The problem here is that it is not displaying the existing data in the second .jsp page.
    The second page basically contains forms
    <INPUT TYPE="text" NAME="FirstName" maxlength="30" value = "<%=FirstName%>">
    Can someone please help me. I really dont know what to do..How do i get the data displayed in the text field that is passed from the first .jsp page..thankx in advance

    Please modify below code to:
    td><img src = "edit.gif" alt = "edit" border="0" ><td>
    -----------------modified code
    td><a href="updatePersonal.jsp?FirstName=<%=rs.getString(FirstName")%">&LastName=<%=rs.getString("LastName")%>&Age=<%=rs.getInt("Age")%>&Gender=<%=rs.getString("Gender")%>"><img src = "edit.gif" alt = "edit" border="0" ></a><td>
    I'm sure it works</a>

  • How to redirect a jsp page?

    Hi
    I have two jsp pages called submit.jsp and save.jsp.In the submit.jsp page
    I wrote the following code
    <form name= Submit action=save.jsp>
    <input type=Submit name=save value=save>
    whn i submit save .jsp page is opend and will dispaly a message saved the data.Now wht i want is after the save.jsp page is opened the page should be automatically redirected in 3 seconds to submit.jsp that is the first page.How can i dothis.Pls give me some code.
    Thanks

    Something like...
    <META HTTP-EQUIV="Refresh" CONTENT="3; URL=your.jsp">
    in your <head> tag where 3 is the number of seconds to wait.

  • Problem in sending a JSP Page as email !!

    Hi,
    I have a web based tool which sends a jsp page as the body of the email. The jsp page contains a table with data. When i forward that email the table in the email is coming up. Kindly suggest something which will prevent me fom this.

    Hi,
    There is an article regarding this at
    http://www.stardeveloper.com/articles/display.html?article=2001101101&page=1
    Best Regards

  • Sharing Portal database connection with JSP page

    Hi out there,
    I implemented a JSP page as a selection form to be integrated into Oracle Portal. This JSP page contains a 'dynamic' form which needs to send queries to the database also integrated in the Portal.
    For this I am currently using a JDBC connection but I would prefer to use the internal db connection of the Portal System.
    Explanation: The user has to log in to the Portal and after that can call the JSP form. To poulate some comboboxes within this form I need some data from the database and the user does have READING privileges on that database.
    Can anybody tell me how to use the user's login and password (or the established connection) to fetch the needed data from the database OTHER than with a jdbc connection?
    Thanx in advance!
    Cheers,
    Thomas

    sorry. not going to happen. you're running in a completely different environment when running Java on Portal. Portal is running in the database; your Java is running on the application server. your Java code must use JDBC to access any database resources, even if Portal related.
    it is essential that you implement a connection pool on the application server to optimize your database traffic. check out bitmechanic for a very good open source option.
    good luck,
    rich

  • Trying to trigger a servlet from .jsp page on combo box change

    I have a jsp page with two combo boxes ( single select ).
    Here's a snippet from the jsp page containing the code for the two combo boxes:
    <form name="frmCountry" id="frmCountry" method="POST">
         <select name="selCountry" id="selCountry">
              <jsp:include page="/country" />
         </select>
    </form>
    <form name="frmCity" id="frmCity" method="POST">
         <select name="selCity" id="selCity">
              <jsp:include page="/city" />
         </select>
    </form>
    "country" and "city" are both mapped to servlets in the web.xml file
    The country servlet successfully connects to the database and retrieves all countries
    and populates the country combo box.
    However, the populating of the city combo box depends on what country
    is selected in the country combo box;
    Here is a snippet of my code from the City servlet:
    ResultSet rs;
    rs = statement.executeQuery("SELECT City.countryID, City.id, City.name " +
                   "FROM City " +
                   "WHERE City.countryID = ( Country id ) " +
                   "ORDER BY City.name");
    Where ( Country id ) has to be somehow retrieved from the Country combo box
    on the jsp page. Country id is actually the "value" property of each <option> in the
    Country combo box. i.e.:
    <option value="5">Portugal</option>
    If it's not possible to retrieve the value property from the option,
    I could always just use the Country name
    So to reiterate, I need the City servlet to be called into action
    any time a different country is selected in the country combo box.
    I'm a newbie to jsp & servlets, so any suggestions much appreciated.
    Edited by: Irish_Fred on Jan 20, 2010 4:29 AM

    Cheers, I came up with a solution using Ajax, where I didn't have to change
    anything in my servlets and only had to make minor changes to my jsp page.
    I didn't want to use any javascript in my web app, but I guess Ajax
    has addressed the issue of cross platform independence.

  • How to integrate BIBean JSP page with Portal after deploying to iAS?

    Hi all,
    Right now we can deploy a JSP page contains BI Bean crosstab to iAS and can display the page using this url: http://xxx.xxx.xxx.xxx:7779/Application2/Analyze1.jsp.
    BIBean version: 10.1.2.0.2
    JDEV version: 10.1.2.1.0
    iAS version: 10.1.2
    Then according to a sample: http://otn.oracle.com/products/bib/htdocs/samples/samples_overview.html
    , we should test PDKProviderAdapter, but we don't know how to create a provider for it. In the sample project "Portal" I can find a "provider" floder contains provider.xml under the "web content" node.
    My question is : how to create the provider? which document or example can we refer to for help. Eagerly waiting for help.
    Thanks in advance.
    Scott

    thnx for your response.
    Basically we need to develop few JSP pages and that will insert data into the Oracle tables. These tables will hold user information for further processing. Now the requirement is to call these JSP pages from OBI dashboard. We can easily call the JSP pages if OBI runs on OC4J (that we have checked). But in our production environment we are having IIS server to run OBI. So our concern is how to deploy these JSP pages on IIS server?

  • How does session bean contain in the JSP page

    May i know how session bean contains in the JSP page
    If the situation is like the following ...
    if i dont want to put the session bean in the session
    like this :
    session.setAttribute("UserBean",userBean);
    the way i get the session bean is only
    session.getAttribute("UserBean");
    Does have the other way to get the Session bean during the JSP
    if i dont want to use this kind of way,
    what else i can do for?
    may i know the solution with detailed
    and please attach the solution of code to me if you know...
    thanks...

    Hi,
    I am not clear with ur query..
    What I understood from ur query is that, u are trying to put the session ejb in the HttpSession Object for some use ahead in future?
    If this is the case, then I think are approach is not correct.
    StatefulSession beans are meant for this purpose, i.e they will be maintaining the client session. So use the same using the JndiLookup of the HomeInterface and the getting the Home reference and calling the businessmethods
    sameer

Maybe you are looking for