How to submit large string to jsp.

Hi all,
I user Tomcat as jsp-server. I have a form with one large text field. If I have > 200 symbols in this field I can not submit my form to jsp.
How can do it?
Exist any limitation for submitting size?
Many thanks in advance.

Hi ,
There is no limitation in the size .check whether you are using POST or GET method ..Use POST method

Similar Messages

  • How to split  a string in jsp?

    I have a set of strings or names in ${form.temp.name}Is there anyway I can split a string in jsp or jstl by a newline "\n" or space "\\s" character and print them separately. Or Do i have to do something in my controller as I am using spring with jsp and jstl for my web application?
    Thanks.

    Yes I did the work as below. When I use some delimiters like ";", the code works. But for the newline character of carriage return it does nto work.
    <c:set var="str" value="${form.temp.name}"/>
                     <c:set var="delim" value=" \r\n|\\n"/>                
                     <c:set var="array" value="${fn:split(str, delim)}"/>          
                     <c:forEach var="token" items="${array}">
                         <p><c:out value="${token}"/> </p>
                     </c:forEach>                Icidentally for the same element, when I try to split in java with the same delimiters, it is working. I am surprised why it is not working?

  • How to submit a form in jsp from tag handler class

    I have a form in jsp.I created some more links in the tag handler class.Based on the link we click form action will take place.Now how can i submit the form in tag handler class for the links i created in that class.

    I have a form in jsp.I created some more links in the tag handler class.Based on the link we click form action will take place.Now how can i submit the form in tag handler class for the links i created in that class.

  • How to use List String in JSP page?

    Hello All,
    I am having problem using List<String> in my JSP page. Below is my JSP code.
    <%@ page import="java.util.*, java.io.*"%>
    <html>
    <body>
    <h1 align="center">Beer Recommendations JSP</h1>
    <p>
    <%
    List<String> beerBrands = (List<String>)request.getAttribute("styles");
    Iterator<String> it = beerBrands.iterator();
    while(it.hasNext()){
         out.print("<br>try: " + it.next());
    %>
    </body>
    </html>
    When I compile the above JSP code in Eclipse 3.4 (using JBoss 4.2 as my Application Server), I get the following Warning.
    Type safety: Unchecked cast from Enumeration to Enumeration<String>
    If I add the "@SuppressWarnings("unchecked")" to the code, Eclipse does not give any Error during compilation. But, at runtime, I get the following Error.
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 10 in the jsp file: /BeerAdvice.jsp
    Syntax error, annotations are only available if source level is 5.0
    7: <p>
    8:
    9: <%
    10: @SuppressWarnings("unchecked")
    11: List<String> beerBrands = (List<String>)request.getAttribute("styles");
    12: Iterator<String> it = beerBrands.iterator();
    13: while(it.hasNext()){
    An error occurred at line: 11 in the jsp file: /BeerAdvice.jsp
    The type List is not generic; it cannot be parameterized with arguments <String>
    8:
    9: <%
    10: @SuppressWarnings("unchecked")
    11: List<String> beerBrands = (List<String>)request.getAttribute("styles");
    12: Iterator<String> it = beerBrands.iterator();
    13: while(it.hasNext()){
    14:      out.print("<br>try: " + it.next());
    An error occurred at line: 11 in the jsp file: /BeerAdvice.jsp
    Syntax error, parameterized types are only available if source level is 5.0
    8:
    9: <%
    10: @SuppressWarnings("unchecked")
    11: List<String> beerBrands = (List<String>)request.getAttribute("styles");
    12: Iterator<String> it = beerBrands.iterator();
    13: while(it.hasNext()){
    14:      out.print("<br>try: " + it.next());
    Any help is very much appreciated.
    Thank you for your help.
    Thanks,
    Chubha

    Hi anotherAikman,
    Thank you for your help. I currently have the following version of the Java.
    {color:#800000}java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
    {color:#000000}{color:#000000}Does it mean I have Java SE Version 6 Update 17 and you are suggesting me to download the Java EE Version 6?{color} If this is correct, can you please let me know what difference does it make?
    I am now going to install the Java EE 6 and try this out.
    Thank you for your help.{color}
    {color:#000000}Thanks,
    Chubha{color}
    {color}

  • How to display " %some string% " in JSP

    In the following code the value of Parameter "greeting" is "<%some string%>"
    How do I escape it so that I can print it as it is.
    out.println("Greeting: " + request.getParameter("greeting"));
    thanks in advance.
    -a.

    If your variable is named some_string<%
    String some_string = "dear user";
    %>
    Greating <%= some_string %>,                                                                                                                                                                                                                               

  • How do you handle long strings between JSP forms and Oracle?

    I am using Apache 1.3.12 with JServ 1.1 and Oracle 8.0.4 on NT4 development Server.
    I am developing an application where one component allows authors to contribute articles or comments via a JSP page. I am noticing a problem when the info in the form gets too long (> 2000 characters). 99% of the inserts fall well within this limitation. The remaining 1% is sufficiently significant that I can't use a VARCHAR. It seems that SQL*NET chokes on large strings.
    My immediate workaround for these messages is to break them up into segments. Instead of storing the text or a message directly in a message table, I've added another table, msg_text, with columns msg_id, seg_num, and seg_text. On insert the message is split into segments limited to the smaller of the query limit and database varchar limit, minus the overhead of the sql query. This makes for an ugly insert operation, though and I would very interested to see if anyone out there has a better way to accomplish this task directly with CLOBs.

    The apparent problem with LONGs is that, of course, you can only have one per table.
    I had exactly this problem and ended up with several tables for one Business Entity, which is not really satisfactory.
    For the next phase of the Project, I will investigate:
    Putting these tables into a View.
    Putting Instead Of triggers on the View to "synchronise" changes to all underlying tables.
    Basing my BC4J Entity Object on the View...
    ... and I hope that Bob will be my uncle.
    I'd be interested to hear from anyone who has already tried this, or you if you give it a go.
    Rich

  • How to submit Thai font JSP

    Hi all,
    I can't submit Thai font in JSP page. I am using tomcat5.0 server and jdk 1.4.
    Can anyone write me, how can i do this.
    Thank You

    "Font"? Well, just because 0x0041 comes up with a Thai glyph for your font instead of an 'A', it's still 0x0041.
    If you're actually talking about characters: try to make sure that the JSP has the proper encoding defined.

  • How can I add more than one submit button in a jsp without use of javascrip

    I want to add more than one submit button in a jsp without use of javascript

    you can do add multiple submit button with this way
    <input type="submit" value="Previous" />
    <input type="submit" value="Next" />
    <input type="submit" value="Finish" />

  • Need help on breaking a large string into substringsto fit in a line

    hii,suppose i have i have large string (the content of which is not apparently visible to me)which i want to show in a text area ,,,now how can i break it into multiple lines to be able view the total string...
    i dont want to use horizantal scrollbar...
    here i submit a sample code..and pls show me the neccesary modifications...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class textarea extends JFrame
    textarea()
    super("Text area length test");
    setSize(640,480);
    Container contentpane=getContentPane();
    JTextArea area=new JTextArea("Split panes allow the user to dynamically change the size of two or more components displayed side-by-side (within a window or another panel). Special dividers can be dragged with the mouse to increase space for one component and decrease the display space for another. Note that the total display area does not change. This gives applications a more modern and sophisticated view. A familiar example is the combination of a tree and a table separated by a horizontal divider (e.g. file explorer-like applications). The Swing framework for split panes consists only of JSplitPane.");
    area.setLayout(new BorderLayout());
    contentpane.add(area);
    setVisible(true);
    class texttest
    public static void main(String args[])
    new textarea();
    In the original code the Stron to be printed is not visible to me...

    Configure the text area so that it uses word wrap (see the javadoc)
    Kaj

  • How I can to know in JSP if one page has been called by other page

    Hi,
    I have a JSP portlet with one form to submit some information about clients.
    When the visitor click one image the form is submitted correctly and the information is stored into database.
    The problem is that I can't clean the values of the strings after the insert and when I call the page again, the code insert again the last information in the form.
    My JSP code is supported in the feedback code of JPDK, but I can't ask for the value of submit button because the submit is done by the click over the image, with the next code:
    <img height=16 alt=Submit src="/pictures/stacksite/form_send.gif"
    width=99 border=0>
    I ask for one input box required, if is null run the insert code, if don't I display the form page.
    How I can clean this variables or how I know if the page has been submitted immediatly before. What variable I can request in JSP to know that or what I can do?
    Regards,
    FABIAN

    I'm not sure that any javascript is necessary. You just need to turn the image into a 'proper' submit button, using the <BUTTON> element. This will cause the form and all its data to be POSTED, rather than to be sent as a query in a GET request. Note that it is important that the form passes on the value of the PortletRendererUtil.PAGE_LINK parameter using a hidden field, so that the jsp remembers the portal 'context' it is running in. E.g.
    <%
    // Derive a portlet-specific name for the submit parameter
    String submitParam = HttpPortletRendererUtil.portletParameter(request, "submit");
    if (request.getParameter(submitParam) != null )
    ... handle the data ...
    %>
    <form name="contactinfo" method="POST" action="<%= HttpPortletRendererUtil.htmlFormActionLink(request,PortletRendererUtil.PAGE_LINK) %>" >
    <%= HttpPortletRendererUtil.htmlFormHiddenFields(request,PortletRendererUtil.PAGE_LINK) %>
    <BUTTON name="<%= submitParam %>" value="submit" type="submit"><IMG src="/pictures/stacksite/form_send.gif" alt="submit"></BUTTON>
    </FORM>
    null

  • How to submit a form with checkboxes in a page flow?

    I'm having some trouble with a form that contains several checkboxes, and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean, can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

    I am new to this, but I think this may solve your problem:
    I am not sure if this is what you are looking for, but you can create a LinkedHashMap
    with the req key/value pairs in the page-calling action in the pageflow and then
    pass that via a getRequest().setAttribute("myCheckboxes",myCheckboxHashMap);
    You can then access it in code using the optionsDataSource portion of the netui:checkBoxGroup
    - ie
    <netui:checkBoxGroup dataSource="{actionForm.thisCheckbox}" optionsDataSource="{request.myCheckboxes}">
    Hope this helps!
    m
    "Craig Coffin" <craig+1268fbec@nfld-dot-com> wrote:
    I'm having some trouble with a form that contains several checkboxes,
    and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an
    XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give
    me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean,
    can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

  • Passing a large string in URL

    Hi
    The scenario is as follows
    There are two servers A and B on different locations. From Server A i want to send a request to a url on server B. The request contains a string parameter of very large value (more than 255 characters). The problem is that I cant use a get because of the restriction.
    How can I do the above in a jsp page. The string is generated dynamically when the user clicks on a link and also contains special characters like (+%)
    I know i need to encode the url. But how do i post to a url on a different server
    It would be nice if i can get the complete code. Short of time and cant read much thrugh the docs :)
    Thanks
    Sairam

    That depends, what type of field are you inserting the string into? What you need to do is check the size of the field and the length of the string. If the length exceeds the field size, then you either need to increase the field size or, if you know you will be generally inserting very large strings, change the field to a clob. Hope this helps.

  • Urgent help needed -- how to submit a web page from a PL/SQL api

    Hi,
    Could anyone tell me how to submit a remote web page through pl/sql
    Thanks,
    Rachna

    I am not sure what you mean by this question.
    You can submit from PL/SQL to an external webpage/website using the UTL_HTTP package.
    You can submit from an external webpage to a PL/SQL package if that package is invoked by you webserver. The most direct way is using the MOD_PLSQL module for Apache that Oracle ships as HttpServer and that is the foundation for Oracle Portal and HTML DB. Alternatively your webpage can submit to a JSP that invokes your PLSQL package through JDBC.
    best regards,
    Lucas

  • How to submit a concurrent request from a button in Selfservice

    Hi,
    I hope this is the forum where to start.
    I want to submit a concurrent request when a button is pushed in selfservice.
    I've implementend the event for button in java and its woring fine, but how to submit a conurrent request in java?
    Can anyone help me or tell me if this is not the correct forum?
    Thank you!
    Best regards
    Gjermund Lunder
    Developer/DBA

    hi,
    This question suppose to be in framework forum.
    you can try:
    OA Framework provides the ConcurrentRequest class to call the concurrent program from the page. The submitRequest() method in the ConcurrentRequest class takes 6 parameters and returns request id of the submitted concurrent request:
    public int submitRequest(
    String ProgramApplication ,
    String ProgramName ,
    String ProgramDescription ,
    String StartTime,
    boolean SubRequest,
    Vector Parameters ) throws RequestSubmissionException
    ProgramApplication -Application Short name of application under which the program is registered.
    ProgramName - Concurrent Program Name for which the request has to be submitted
    ProgramDescription - Concurrent Program Description
    StartTime - Time at which the request has to start running.
    SubRequest - Set to TRUE if the request is submitted from another running request and has to be treated as a sub request.
    Parameters - Parameters of the concurrent Request
    Here is the example for calling a concurrent program from a OA framework page.
    import oracle.apps.fnd.cp.request.ConcurrentRequest;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    public int submitCPRequest(Number headerId) {
    try {
    OADBTransaction tx = (OADBTransaction)getDBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    String applnName = "PO"; //Application that contains the concurrent program
    String cpName = "POXXXX"; //Concurrent program name
    String cpDesc = "Concurrent Program Description"; // concurrent Program description
    // Pass the Arguments using vector
    // Here i have added my parameter headerId to the vector and passed the vector to the concurrent program
    Vector cpArgs = new Vector();
    cpArgs.addElement(headerId.stringValue());
    // Calling the Concurrent Program
    int requestId = cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
    tx.commit();
    return requestId;
    } catch (RequestSubmissionException e) {
    OAException oe = new OAException(e.getMessage());
    oe.setApplicationModule(this);
    throw oe;
    I got it from http://prasanna-adf.blogspot.com/2008/11/call-concurrent-program-from-oa.html

  • Hi, how to use URL encoding in jsp

    hi, how to apply URL encoding in jsp for a string, could u pls suggest some ideas to use URL encoding in jsp
    thank you in advance

    hi, thnx for the reply, but my problem is to use url encoding method
    i would u like to know how to represent in jsp program i have asp code some thing like this
    href='/project/tel_number.asp?team=<%=DbRecTeam("id")%>&name=<%=Server.URLEncode(DbRec("name"))%>'
    i would like to know how replace that Server.URLEncode stmt in jsp, could u pls suggest some equivalent method for the above stmt
    thanx in advance

Maybe you are looking for

  • Windows 2008 R2 (64Bit) RDS & SRWC 2.2- Session Mobility

    Hello, I am experiencing some problems with the latest SunRay Software 5 (with SRWC 2.2) and Windows 2008 R2 (64Bit) in a terminal server farm situation. The setup is configured to use RDS Session Broker (the customer is not using MS NLB). The actual

  • How to video computer without flicker

    How do you create a video of your computer screen without seeing the flicker?

  • Should we use JRocket?

    On http://edocs.bea.com/jrockit/geninfo/diagnos/migrate.html I'm reading "Although there are other JDKs available on the market today that you can use to develop Java applications, Oracle recommends that you use JRockit JDK with your Oracle products"

  • Non-Zero Socket Indexing in Executions

    So The Team Has voted and I must use non-zero indexing for my test sockets I followed the guide to change the index in the Batch Dialog   http://digital.ni.com/public.nsf/allkb/A6D0EF1F4FE5EC94862570AE000CE374 which doesn't matter so much anymore sin

  • Display Values in JcomboBox

    Hi, I am new to java.Can anyone Plz help me.I have a JcomboBox. I want to display all the ItemId from the database in that JComboBox. It is printing all the itemid to the Consol .but Only the last record is displaying in the JcomboBox. Can anyone plz