Control of text blocks in parameter form

How does one control the placement of text blocks in a parameter form? I'm creating paper view reports to be run via a report service on the application server. The report's parameter form, when run through a web browser, looks nothing like its presentation when run directly with the report builder.

Anyone?
I would like for the cr/lf characters to transfer from the report builder's parameter development screen onto the page rendered by the browser when the report is run from a report server.
As shown in the report builder, the parameter screen looks like:
Enter prefix: __
Enter ticket: ______
Prefix example (AA, BB, etc.)
Ticket number should be all numeric.
But when rendered from within the browser, it looks like this:
Enter prefix: __
Enter ticket: ______
Prefix example (AA, BB, etc.)Ticket number should be all numeric.
(Note the last line - it is now one screen line instead of two.)

Similar Messages

  • No Parameter form when calling report from Forms 6i webpage

    I have my Forms 6i fmx files and Reports rep files runnung off of HP Unix
    within the same directory and yet when I call the report with RUN_PRODUCT,
    I don't get the Parameter Form popup. I left it as default at first, and then I even tried using ADD_PARAMETER(pl_id,'PARAMFORM',TEXT_PARAMETER,'HTML') to my parameter pl_id in my RUN_PRODUCT call. Can anyone tell me why I don't get a Parameter form?

    Actually if you are on the Web then you don't have much control over the format the parameter form is in, so specifying it as HTML doesn't help.
    Try paramform=yes when calling teh Report and this "temporarily" should help. The problem that you run into the is that there is nothing happening when you click the parameter form submit button. The reason is that when using Run_Product you are talking to a static HTML file generated into teh Reports temp directory with no services assigned to it.
    Check the Whitepaper under http://otn.oracle.com/products/reports/pdf/277282.pdf for the options that you have.
    Frank

  • REP-3131: Parameter form boilerplate text cannot fit on the page

    Dear members,
    I am getting the following error while running the report :
    REP-3131: Parameter form boilerplate text cannot fit on the page
    can any body tell me how to correct it. I need to add a extra field in the standard oracle report "RECEIPT TRAVELER". when i was trying to run it in report builder 6i i got the above mentioned error. please give ur quick replies.
    thanks
    regards
    sandeep

    When you add your new field into the parameter mask, please check, if the value is too
    long for your parameter mask site. Make a double click on the master attributes of your
    report in the object navigator and look at the size of the parameter mask window.
    Make it bigger, if you want (vertically und horizontally size).
    Check the length of the text of your parameter mask title, too.

  • How to make a jsf parameter form with a selectOneChoice and data control

    I want to make a parameter form with a selectOneChoice and store this value in a backing bean, so I can use as a bind variable in query. I already made it happen without data control
    Can someone show how to do it in adf data control. With the wizard it tries put the value
    in a viewobject but I don't have base or destination viewobject. I can change the pagedef
    so it works to fill the selectOneChoice but then I want to store the selected value in a session beab
    here is solution with the application module and request / session bean, I don't
    think it is the right solution
    thanks edwin
    jsf page
    <af:selectOneChoice label="Desk" value="#{selectDesk.desk}"
    id="DeskID"
    binding="#{selectDesk.deskBinding}"
    autoSubmit="true"
    valueChangeListener="#{selectDesk.deskChangeListener}">
    <f:selectItems value="#{selectDesk.deskSelectItems}"/>
    </af:selectOneChoice>
    Selektdesk backing bean
    public SelectDesk(){
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ValueBinding valueBinding = facesContext.getApplication().createValueBinding("#{userInfo}");
    userInfo = (UserInfo) valueBinding.getValue(facesContext);
    public List<SelectItem> getDeskSelectItems() {
    if ( userInfo.getSelectItems() != null ) {
    selectItems = userInfo.getSelectItems();
    return selectItems;
    if ( getBindings() != null ) {
    userInfo.setBindings( getBindings());
    else {
    setBindings(userInfo.getBindings()) ;
    if ( selectItems == null ) {
    selectItems = new ArrayList<SelectItem>();
    DCBindingContainer bc = getBindings();
    SicmaService sicma = (SicmaService)bc.findDataControl("SicmaServiceDataControl").getDataProvider();
    ViewObject desk = sicma.findViewObject("DeskSelectView1");
    desk.executeQuery();
    RowSet rows = desk.getRowSet();
    while (rows.hasNext()) {
    Row a = rows.next();
    String DskId = a.getAttribute(0).toString();
    String DskOms = a.getAttribute(1).toString();
    selectItems.add( new SelectItem(DskId ,DskOms ));
    rows.closeRowSet();
    userInfo.setSelectItems(selectItems);
    return selectItems;
    faces-config.xml
    <managed-bean>
    <managed-bean-name>selectDesk</managed-bean-name>
    <managed-bean-class>org.tennet.sicma.view.backing.SelectDesk</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <property-class>oracle.adf.model.binding.DCBindingContainer</property-class>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>

    The SRDemo has an example of a selectOneRadio bound to a parameter being used to pass to an ExecuteWithParams action (to automatically feed a view object's named bind variable. This is in the SRStaffSearch.jspx page.
    Also, if you check out example # 72 from my blog:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#72
    There is another example of using a selectOneListbox to do the same type of thing.
    The steps involved in creating something like this are to:
    (1) Define your named bind variables on your view object
    (2) Drop the "ExecuteWithParams" action in the operations folder of that view object from the Data Control Palette to your page as a "Parameter Form"
    (3) Drop the specific attribute (nested child of the "ExecuteWithParams" action from step (2) as whatever kind of selectOneXXXX control you want
    (4) Delete the extra field on the form you don't want.

  • Block some parameter in control indicater setting

    Hi Experts,
    I would like to block some parameters in control indicator of inspection characters to make them can only be displayed, how can I realize it?
    Because sometimes I ticked the parameter in control indicator by accident when I maintain characters in inspection plan, so I would like to block the parameter or make a checking before saving inspection plan, so the wrongly setting of character in inspection plan can be avoided. Can anyone help me or give me a suggestion?
    Thanks & Best regards,
    Benny

    Hi gajesh,
    Thanks for your suggestion,  I really appreciate it.
    I know this standard way, but it can not fulfill our requirement completely, you know, if I use the reference MIC, I can not even change any other paremeters not only in control indicator but also other settings.
    So what I am looking for is blocking only one field in control indicator, I think there is no standard way, I tried to find a user exit to pop-up a warning message when user try to maintain the 'destructive' parameter, but seems no one can meet this.
    Can you pls suggest another way?
    Thank you very much.
    Best Regards,
    Benny

  • Create data control from java class, not see "ADF Parameter Forms" option

    Hi,
    I have created a Fusion Web Application (ADF) in jdev 11g. In the application model project, I created a java class. Inside the java class, I have a public method as below
    public Asset [] searchAsset3(SearchTerm s) // SearchTerm is a java bean. It implements java.io.Serializable.
    I created data control from my java class. After that, I see an xml file generated under the same folder of my java class. Here is the xml content.
    <?xml version="1.0" encoding="UTF-8" ?>
    <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.53.62"
    id="AIAAsset" Package="oracle.apps.aia.oer.model"
    BeanClass="oracle.apps.aia.oer.model.AIAAsset" isJavaBased="true">
    <MethodAccessor IsCollection="true"
    Type="com.flashline.registry.openapi.entity.Asset"
    BeanClass="com.flashline.registry.openapi.entity.Asset"
    id="searchAsset" ReturnNodeName="Asset"
    CollectionBeanClass="UpdateableCollection">
    <ParameterInfo id="name" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="version" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="description" Type="java.lang.String"
    isStructured="false"/>
    </MethodAccessor>
    <MethodAccessor IsCollection="true"
    Type="com.flashline.registry.openapi.entity.AssetSummary"
    BeanClass="com.flashline.registry.openapi.entity.AssetSummary"
    id="searchAssetSummary" ReturnNodeName="AssetSummary"
    CollectionBeanClass="UpdateableCollection">
    <ParameterInfo id="name" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="version" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="description" Type="java.lang.String"
    isStructured="false"/>
    <ParameterInfo id="type" Type="java.lang.String" isStructured="false"/>
    </MethodAccessor>
    <MethodAccessor IsCollection="true"
    Type="com.flashline.registry.openapi.entity.Asset"
    BeanClass="com.flashline.registry.openapi.entity.Asset"
    id="searchAsset3" ReturnNodeName="Asset"
    CollectionBeanClass="UpdateableCollection">
    <ParameterInfo id="s" Type="com.flashline.registry.openapi.query.SearchTerm"
    isStructured="true"/>
    </MethodAccessor>
    <ConstructorMethod IsCollection="true"
    Type="oracle.apps.aia.oer.model.AIAAsset"
    BeanClass="oracle.apps.aia.oer.model.AIAAsset"
    id="AIAAsset"/>
    </JavaBean>
    Then, in application user interface project, I created a JSPX page. From the data controls palette, I want to drag and drop the searchAsset3 onto my page. However, I don't see an option for me to choose "Create -> Parameters -> ADF Parameter Form". I only see "Create -> Methods". Unlike other public methods (e.g.searchAssetSummary and searchAsset) which have simple data type as input, I can see the "Create -> Parameters -> ADF Parameter Form" option when I drag and drop to my jspx page. Is that something I missed while creating data controls?
    Thanks.
    Arnold.

    Then, my other question is how do you do the bindings? I drag and drop the attributes from SearchTerm bean. Now the pagedef file has the AttributeValues added but my method is actually expecting one input parameter of type SearchTerm. How do you bind the attributes to the input of the method? Thanks.
    See below of my pagedef xml file.
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.53.62" id="SearchAssetBySearchTerm1PageDef"
    Package="oracle.apps.aia.oer.view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <methodIterator Binds="SearchTerm.result" DataControl="AIAAsset"
    RangeSize="25"
    BeanClass="com.flashline.registry.openapi.query.SearchTerm"
    id="SearchTermIterator"/>
    </executables>
    <bindings>
    <methodAction id="SearchTerm" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="SearchTerm"
    IsViewObjectMethod="false" DataControl="AIAAsset"
    ClassName="com.flashline.registry.openapi.query.SearchTerm"
    ReturnName="AIAAsset.methodResults.SearchTerm_AIAAsset_SearchTerm_result"/>
    <attributeValues IterBinding="SearchTermIterator" id="key">
    <AttrNames>
    <Item Value="key"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="SearchTermIterator" id="operator">
    <AttrNames>
    <Item Value="operator"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="SearchTermIterator" id="value">
    <AttrNames>
    <Item Value="value"/>
    </AttrNames>
    </attributeValues>
    <methodAction id="searchAsset3" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="searchAsset3"
    IsViewObjectMethod="false" DataControl="AIAAsset"
    InstanceName="AIAAsset.dataProvider"
    ReturnName="AIAAsset.methodResults.searchAsset3_AIAAsset_dataProvider_searchAsset3_result">
    *<NamedData NDName="s"*
    NDType="com.flashline.registry.openapi.query.SearchTerm"/>+
    </methodAction>
    </bindings>
    </pageDefinition>

  • How to Change the display format of Parameter form in HTML

    I have created a parameter form to allow user to choose the parameter values before printing the report. The parameter which will display in the web-browser has its own predefined format. How am i going to change this format? eg. changing the Background color, table background color, put in some pictures, set the alignment of the text and fields....
    Now I am able to change the header and footer. I can put in the company logo in the header by changing the report escape - Before form value and the footer in the report escape - after form value. How about the body which all the boilet text and fields will be display here? I need to change the alignment, the table background color and the text style and format also... where should i change this?
    Thanks

    Reports only provides limited formatting for the parameter form. In your case, you seem to need to take over greater control of the parameter form and you're halfway there.
    You've noted that you can control the header & footer values, what you need to do is extend those escapes to render the complete parameter form and remove everything from the actual reports parameter form. ie: Remove the labels/parameter form fields and render these directly in the HTML in the before parameter HTML escape. This allows you to insert any HTML you want - you probably want to start with the Reports generated HTML and move it into Frontpage to edit to your required format.
    What you are doing in this case is still using Reports url/submit mechanism and parameter form validation but bypassing Reports rendering of the parameter form.

  • Using Run_Report_Object() To Call Reports with a Parameter Form

    Hi
    I have successfully migrated a version 5 application to 10g but, I'm having a particular issue with reports run from a menu.
    The report has 3 user parameters and they previously worked with a client server parameter form.
    How do I pass the parameters from the report to the RUN_REPORT_OBJECT in the pl/sql editor in the menu ?
    In my other reports I have used a :block.item bind variables but in this case there is no datablock involved.
    Any help with the correct syntax will help.
    Message was edited by:
    4dyomi
    Message was edited by:
    4dyomi

    Dear Friend,
    You can use following code to run a report from "Forms10g" using RUN_REPORT_OBJECT. Directly copy below code to your forms10g and make appropriate changes. In the code, "Manish" is the name of report server running on your application server. To start report server u can run this command on command prompt on your application server.
    rwserver server=<server_name>
    This command will start report server. In below code i have a text box called "ADDRESS_CODE" which i am passing as a parameter to report which conatains a parameter called "SUBCODE". This is a tested code and works fine in Forms10g DS.
    declare
         cnt number(3);
         report_id report_object;
         REPORTSERVERJOB VARCHAR2(100);
         VJOBID VARCHAR2(100);
         REPORTSERVER VARCHAR2(50) := 'MANISH';
         V_URL2 VARCHAR2(500);
         V_URL VARCHAR2(100);
         PARA PARAMLIST ;
    begin
         PARA := CREATE_PARAMETER_LIST('INPUT1');
         --'ADDRESS_BOOK' IS A REPORT OBJECT DEFINED
         REPORT_ID := FIND_REPORT_OBJECT('ADDRESS_BOOK');
         --FOLLOWING PARAMETERS ARE MANDATORY PARAMETERS TO SET REPORT OBJECT
         SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, FILE);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'HTMLCSS');
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, REPORTSERVER);
    --TO SEND PARAMETERS TO REPORT ADD FOLLOWING CODE, (:ADDRESS_CODE IS A TEXT ITEM)
    ADD_PARAMETER(PARA,'SUBCODE',TEXT_PARAMETER,:ADDRESS_CODE);
    --RUN REPORT OBJECT TO FETCH JOBID
    REPORTSERVERJOB := RUN_REPORT_OBJECT(REPORT_ID,PARA);
    --VJOBID IS JOBID THAT IS SET AT RUNTIME BY REPORT SERVER
    vjobID := substr(ReportServerJob,length(reportserver)+2,length(ReportServerJob));
    v_url := '/reports/rwservlet/getjobid'||vjobID||'?server='||reportserver;
         Web.Show_Document(v_url,'_blank');
         DESTROY_PARAMETER_LIST(PARA);
    end;
    Regards,
    Manish Trivedi
    Software Developer
    Ambuja Cement,
    India.

  • Calling report within parameter form

    I am using web.show_document to call a report with paramform=yes and desformat=spreadsheet.
    The users wanted the output to be displayed in excel rather than internet explorer so this was achieved by these PC settings
    control panel > folder options > file types tab
    Choose XLS from the list
    “Advanced” button
    untick “Browse in same window”
    This works OK except it has a side effect of leaving the parameter form displayed after running the report, and it has to be closed manually. Can anyone think of a method to fix this ?

    Try this in Before Form Value:.....<script type="text/javascript">
    function runAndClose(){
    myform.submit();
    setTimeout("window.close();",1500);
    </script>
    </head>
    <body bgcolor="#ffffff">
    <form id="myform" onsubmit="runAndClose();" method=post action="_action_">.....There may be an event which fires when the form has been submitted but failing that you'll justhave to hope the timeout interval is large enough.
    On my machine when window.close() runs in IE a message box pops up to tell me the window is trying to close, which I have to acknowledge. I don't know if this is a setting or hard-wired, but there may not be much benefit in having code to close the window 'automatically'.
    Incidentally, how do you specify a name for the spreadsheet file? I trieddesformat=spreadsheet&destype=cache&desname=c:\a.xlsbut the file in the Open File dialog is always named 'rwservlet'.
    Cheers,
    James.

  • Parameter Form to Pass Dates to Report

    Hi,If anyone have a sample Form that passing
    date parameters to a report so that a report can select only the Date ranges passed from the Parameter Form. I need to set up a trigger at the Form Control block. Thanks.

    For your 1st problem it seems to be a bug in Forms 6i - you can visit this site:
    http://pipetalk.revealnet.com/~plsql/
    and find there 41211.
    Helena

  • How to populate sequence in a text item in a form

    I have a text item in a form.I want that the doc_id i.e the text item should be automatically populated with the help of sequence.I have created sequence named seq_doc_id.on which trigger i should write the code so that everytime the doc_id gets incremented by one. What should be the code.Can anyone gv me some hint.Do i have to use the loop for this?Please help

    Hi,
    I implemented a when-new-block-instance that does just that,
    however due to navigation problems the trigger fires when it should not
    the result is I got holes in the sequence.
    Is there a system variable status to check with an If test
    to make sure the sequence is called only at inserting time?

  • Null values not displaying in the LOV on the parameter form.

    My report works perfect while in Oracle Reports 10g, however when I move it to our menu (Oracle Forms 10g) it does not display the null in the LOV on the parameter form.
    This report allows the the user to select by inspector or district or everyone for certain dates.
    Ex: I have 4 parameter fields. The user must enter the start & end dates and either the Inspector or the district or leave the inspector or district null to run for everyone.
    The district LOV is :
    select dnr_section_code, description from dnr_section_code where dnr_section_code in ('29', '38','52')
    UNION
    select null, 'All' from dual
    order by 2 asc ;
    The inspector LOV is:
    select null , 'All' from dual
    UNION
    select person_seq, first_name||' '||last_name inspector from vw_eng_inspectors
    order by 2 asc
    In my Data Model query I use the :
    My select
    from tables
    where clause
    +
    ----by inspector
    and (prod_fac_inspections.person_seq_inspector =
    nvl(:inspector,prod_fac_inspections.person_seq_inspector))
    ---by district
    and
    (d.dnr_section_code = nvl(:district,d.dnr_section_code)
    and d.person_seq = prod_fac_inspections.person_seq_inspector)
    Again, it works perfect in Reports! It eliminates having 3 reports on the menu. This one report gives the user the option of selecting dynamic parameters.
    Also, I got so frustrated, that I went a different route of using a default where.
    I am stuck with the error of ORA:00933 SQL command not ended properly
    1=1
    I set the initial value to 1=1 and it does not like it.
    I am stuck!
    DB = Oracle Database 10g Enterprise Edition Release 10.2.0.2.0

    Hi Krishna,
    I'm not sure I understand the probelm.
    A progress bar control only displays numeric values. When do you mean by "unassigned values"? What would you expect to be presented?
    Best regards,
    Udi

  • Report Parameter form not showing list of values in Report svr

    I was using reports 6i where I used to have list box in report parameter form. I now converted recompiled my reports in 10g and when I run I am not geting the list of values. I get the values as a list below the field
    ex.
    ITEM :___________
    box,book,pencil,rubber,
    dvd,floppy...
    previously it was coming as a list in the item field
    thanks
    MG

    Hello,
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/howto/params/pmp_creating_list_of_values.htm?tp=true
    If you run the report from a Web browser and the list of values is unrestricted, the HTML Parameter Form will display a text field instead of a combo box, and a list of static values that you can copy and paste into the text field.
    Regards

  • Calling a JSP Report From HTML parameter form

    Hi,
    I m trying to run a JSP Report from a HTML parameter Form. The JSP reports requires a parameter named userid in the URL with a valid value for database connection.
    eg. URL "http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_crdinf.jsp?userid=sysapps/system@trt1". We have created a variable on the server named "parmformjsp" with a value "sysapps/system@trt1". Now i use this variable in the URL as follows, eg. "http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_crdinf.jsp?parmformjsp".
    When i use this URL to call another JSP report from a JSP report it works fine, but the same does not work when calling a JSP report from a HTML form.
    the code for HTML parameter form calling a report is as follows,
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Parameter Form</title>
    </head>
    <body>
    <p>Parameter Form</p>
    <form name="form1" method="GET"
    action="http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_custrns.jsp?parmformjsp">
    <p>From Date<input type="text" name="p_fmdate" size="20"></p>
    <p>To Date<input type="text" name="p_todate" size="20"></p>
    <p> </p>
    <p><input type="submit" ><input type="reset" value="Reset" name="B2"></p>
    </form>
    <p> </p>
    </body>
    </html>
    If i create an input parameter named "userid" with a valid database connection value, remove the ?parmformjsp part from the action URL then it works fine. How can i call the JSP report using the parmformjsp variable name instead of using the "userid" clause in the URL.Can anyone suggest any workaround....
    Thanks & Best Regards,
    Unmesh

    do it like this...
    DECLARE
    pl_id ParamList := Get_Parameter_List('tmpdata');
    BEGIN
    IF NOT Id_Null(pl_id) THEN
      Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id, 'ROUTE_CARD_CONTROL', TEXT_PARAMETER, :ROUTE_CARD.ROUTE_CARD_CONTROL);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    Run_Product(REPORTS, 'D:\STL_FINAL\CHPREPORTS_FINAL\ROUTE_CARD.REP', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END; what exactly happens when you call the report. if its showing the blank page... may be you are not passing the right parameter name. cross-check that your parameter name in the report is 'ROUTE_CARD_CONTROL'.

  • How do I send "unlimited" text in a parameter using "POST" in Ajax

    I'm trying to send large amounts of text data to the server using POST rather than GET, using Ajax
    However, I am only able to send a max of 9.76 kb
    I start with a jsp page, which calls a javascript method that utilises Ajax, which sends the text in a parameter in a XMLHttpRequest object
    to a servlet. The text is derived from options values in a multi select combo box.
    Here's my code:
    Code snippet from .jsp page:
            <table>
            <form name="form1" id="form1" method="POST">
               <tr>
                  <td>
                 <select name="sel" id="sel" multiple="multiple" size="0"></select>
              </td>
              <td>
                 <input type="button" id="sendOpts" name="sendOpts" value="Send Options" onClick="jsObj.sendOpts()">
              </td>
              </tr>
           </form>
           </table>Code snippet from jsObj.js file:
    //=================================================
    // jsObj object
    //=================================================
    jsObj = new jsObj();
    function jsObj() {
         this.sendOpts = function() {
              if(!confirm('Send Option Values?'))
                   return;
              if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
                   xmlhttp=new XMLHttpRequest();
              } else { // code for IE6, IE5
                   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
              xmlhttp.onreadystatechange=function() {
                   if(xmlhttp.readyState==4) { // 4 = The request is complete
                        if (xmlhttp.status==200 || window.location.href.indexOf("http")==-1) {
                             alert(xmlhttp.responseText); // When I copy and paste all the text from this alert to text editor and save the file, the largest the file can be is 9.76 kb.
              var url = 'testSize'; // Servlet that simply retrieves the sent String in a parameter and sends it back to this method
              var sel = document.getElementById('sel');
              var str = sel.name + '=';
              var delim = ':';
              for(var i = 0; i < sel.length; i++) {
                   str += encodeURIComponent(sel.options.value + delim); // 'encodeURIComponent' encodes any special characters within the parameter values
              xmlhttp.open("POST",url,true);
              xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); // This is needed for any POST request made via Ajax
              xmlhttp.send(str); // send the parameter and it's value to the servlet
    }Code snippet from 'testSize' servlet:package test;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.util.*;
    public class TestSize extends HttpServlet {
         public synchronized void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException,IOException {
              PrintWriter out = null;
              try {
                   response.setContentType("text/html");
              out = response.getWriter();
                   String str = request.getParameter("sel");
                   str = str.substring(0, str.length()-1); // cut off last delimiter
                   out.println(str);
                   } catch (Exception e) {
         public synchronized void doPost(HttpServletRequest request,
              HttpServletResponse response) throws ServletException, IOException {
              doGet(request, response);
    }Any help greatly appreciated.
    Edited by: Irish_Fred on Feb 25, 2010 5:14 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, I tried that.
    I set the "ACTION" of the form to the servlet and then used the form.submit() method to POST the text to the servlet.
    i.e.: I selected many options in the select combo, concatenated them to one string, set the 'value' property of a form text field to
    this string, did a 'form.submit()' to the servlet and I was able to send a much larger amount of text.
    ( The .txt file I saved from the resulting text equaled about 30 kb in size, so obviously I can send much more
    data this way. )
    However, I want to use Ajax, so I don't have to reload the page. I 'borrowed' the Ajax part of the code from a website:
    http://www.javascriptkit.com/dhtmltutors/ajaxgetpost2.shtml
    and I presumed that because the author used "POST" as opposed to "GET", I would be able to send larger
    chunks of data. Obviously not, or there's another reason for the limit of data I can send using my present code,
    which I'm not seeing. I'm fairly new to jsp, Ajax & Servlets, so this is no surprise.
    If anyone can point out to me where I'm going wrong, I'd greatly appreciate it. Cheers.

Maybe you are looking for