HTML equivalent of ScriptUI ListBox?

Hello,
forgive my ignorance: what is in the HTML land the proper way to emulate good old ScriptUI Listbox component?
I thought to use <select> specifying the size property, like:
<select size=3>
  <optgroup label="Swedish Cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
  </optgroup>
  <optgroup label="German Cars">
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </optgroup>
</select>
which gives:
but it looks quite primitive compared to ListBox (no header, no columns, etc). Am I missing a different element which could fit better?
Thank you!
Davide Barranca
www.davidebarranca.com
www.cs-extensions.com

Sorin, at the moment you can only pass string values between JSX and an HTML extension / AngularJS. With complex javascript objects this is usually done with the JSON.stringify function.
Sadly, Extendscript does not support JSON.stringify at the moment.
I went through the work of building my own Extendscript stringify function a few months ago and I'll go ahead and post it here. I've been meaning to refactor this and make it smaller, but it works just fine, though it could possibly be more efficient.
function BuildJSONArray(arrayObjectList)
    var preString = '[';
    var postString = "";
    if(arrayObjectList.length > 0)
        for(var i = 0; i < arrayObjectList.length; i++)
            if( Object.prototype.toString.call( arrayObjectList[i] ) === '[object Array]' )
                if(arrayObjectList[i].title != undefined)
                    preString += '"' + arrayObjectList[i].title + '":';
                preString += BuildJSONArray(arrayObjectList[i]); //recursion is FUN!
            else if( Object.prototype.toString.call( arrayObjectList[i] ) === '[object Object]' )
                preString += BuildJSONObject(arrayObjectList[i]);
            else
                preString += arrayObjectList[i].toString() + ",";
        postString = preString.substr(0, preString.length - 1);
    else //exception for an empty array
        postString += '[';
    postString += ']';
    postString += ',';
    return postString;
function BuildJSONObject(objToBuild)
    var preString = '{';
    var postString = "";
    for(var key in objToBuild)
        if(objToBuild.hasOwnProperty(key) == true)
            preString += BuildJSONProperty(key, objToBuild[key]);
    if(preString == '{') //exception for an empty object
        postString += preString;
        postString += '},';
    else
        postString = preString.substr(0, preString.length - 1);
        postString += '},';
    return postString;
function BuildJSONProperty(propToBuild, valOfProp)
    var propJSON = '"';
    propJSON += propToBuild.toString();
    propJSON += '":';
    if(typeof valOfProp == 'string') //wrap in double quotes if it's a string
        propJSON += '"';
        propJSON += valOfProp;
        propJSON += '"';
    else if( Object.prototype.toString.call( valOfProp ) === '[object Array]' ) //array exception
        propJSON += BuildJSONArray(valOfProp);
        propJSON = propJSON.substr(0, propJSON.length - 1); //remove the comma, as one is added at the end of this function
    else if( Object.prototype.toString.call( valOfProp ) === '[object Object]' ) //object exception
        propJSON += BuildJSONObject(valOfProp);
        propJSON = propJSON.substr(0, propJSON.length - 1); //same idea...removing the comma
    else
         propJSON += valOfProp;
    propJSON += ",";
    return propJSON;
HOW TO: Put the javascript objects you want to stringify into an array and call BuildJSONArray( ). It will return a string. Pass that string to your extension and rebuild it as javascript using a simple JSON.parse( ) function. Boom - done. Now you can implement ng-grid and other angular things.

Similar Messages

  • Replace special characters in xml to its HTML equivalent

    Hello All,
    I did a small xml processor which will parse the given xml document and retrieves the necessary values. I used XPath with DocumentBuilder to implement the same.
    The problem which had faced initially was, i could not able parse the document when the value comes with the '&' special character. For example,
    <description>a & b</description>I did some analysis and found that the '&' should be replaced with its corresponding HTML equivalent
    &amp; So the problem had solved and i was able to process the xml document as expected. I used the replaceAll() method to the entire document.
    Then i thought, there would be some other special character which may cause the same error in future. I found '<' is also will cause the same kind of error. For example,
    <description>a < b</description>Here i couldn't able to use the replaceAll(), because even the '<' in the xml element tags was replaced. So i was not able to parse the xml document.
    Did anyone face this kind of issue? Can anyone help me to get rid of this issue.
    Thanks
    kms

    Thats the thing about XML. It has to be correct, or it doesn't pass the gate. This is nothing really, seen it many times before. It becomes funny when you start to run into character set mismatches.
    In this case the XML data should have either been escaped already, or the data should have been wrapped in cdata blocks, as described here:
    http://www.w3schools.com/xml/xml_cdata.asp
    Manually "fixing" files is not what you want to be doing. The file has to be correct according to the very simple yet strict XML specifications, or it isn't accepted.

  • How to specify from Pantone to HTML equivalent?

    G'day,
    I need to specify my Pantone colours for a website from Pantone into their HTML equivalent, for example PMS 7539 in HTML is 989B97. Is there a HTML colour palette in AICS3? I can only find Websafe RGB and it's not what Im after as it's so very limiting and surely the world has mved on from only 256 RGB colours on the web.
    I'm asking as I'm supplying a template with graphics and would like to pass them onto my web bloke in the correct colour without him having to make the files the colour as I've speced.
    Hope that's all clear as mud.
    Thanks in advance for any help you can give.

    ><B>"256 RGB's are the web standard."</B><br /><br />Preposterous. Especially in this day and age, where even cellphones are capable of displaying 16 bit/64k - 24 bit/16.7m colors.<br /><br /><Hyperbolic sarcasm>If you're going to limit yourself to the antiquated notion of the limited color palette, and you want to make sure you also are cross-browser & platform compliant like the way we had to work in the stone age, you'd go even further and limit your palette to 216 colors.</Hyperbolic sarcasm><OL><i>"The only reason to use the browser-safe palette is if you have a concern that your Web design work will be viewed from a 256 color (8-bit) computer system. When I published the browser-safe color chart in my first book, Designing Web Graphics, waaaayyy back in 1996, the MAJORITY of computer users had 8-bit video cards. Today, the minority have them, so the justification for using the browser-safe palette has diminished greatly if you are developing your site for users who have current computer systems."</i><p><tt>[...snip...]</tt><p><i>"The Browser-Safe Palette, as I so named it, is the actual palette that Mosaic, Netscape, and Internet Explorer use within their browsers. The palettes used by these browsers are slightly different on Macs and PCs. This palette is based on math, not beauty. I didn't and wouldn't have picked the colors in this palette, but Netscape, Mosaic, and Internet Explorer did, so....<br /><br />The Browser-Safe Palette only contains 216 colors out of a possible 256. That is because the remaining 40 colors vary on Macs and PCs. By eliminating the 40 variable colors, this palette is optimized for cross-platform use."</i><p>http://www.lynda.com/hex.asp</ol>

  • Linking a JS object to ScriptUI listbox item

    I am writing a script that that takes elements from a document and for each element makes a custom object with its own properties and methods. This list of elements is then spat out into a ScriptsUI listbox.
    How do I link each listbox item to its associated obejct? i.e. So if I double click on a listbox item it will run a particular method within that object.
    P.S. I dont want to have to store array ids in a column or something hacky like that.

    Yep, it seems that the Translator component of the MVVM pattern wouldn't be very useful in a ScriptUI perspective.
    The most asbtract pattern you have to deal with, I think, is the GenericList widget (ListBox, DropDownList, maybe TreeView?) and its relationship with what we may call a DataProvider (following Flex and .NET terminology). But ScriptUI/ExtendScript does not allow a serious level of data binding.
    The whole problem is to emulate something of a dynamic link so that the data provider can notify the List widget of some changing. As a response, the List then would update its items accordingly. A skeleton of this approach could be drawn using custom event notification:
    const EXTERNAL_EVENT_TYPE = 'myEventType';
    var externalProcess = function F()
        if( F.targetWidget )
            F.targetWidget.dispatchEvent(new UIEvent(EXTERNAL_EVENT_TYPE));
    // =====================================
    // UI
    // =====================================
    var w = new Window('dialog', "Example"),
        // register the LB as a target:
        lb = externalProcess.targetWidget = w.add('listbox'),
        b = w.add('button',undefined,"Test Change");
    lb.addEventListener(
        EXTERNAL_EVENT_TYPE,
        function(){ alert("Something is happening. I need to update my items!"); }
    b.onClick = externalProcess;
    w.show();
    but I'm afraid this code—which, by the way, works!—leads us to an anti-pattern! Indeed, while we have to register and maintain a reference to the List widget in the external object (which is assumed to wrap the data), we still need to tell the list how to access the data provider in order to update the list items. The only benefit of the scheme above is that the external process can notify the list at any moment. Maybe this could make some sense in a non-modal context (palette), but this doesn't solve the original problem.
    So, intuitively, I would tend to take the opposite view: instead of making the external process trigger some event in the UI when its data change, let simply provide a generic resync() method to the list widget. The paradigm, here, is that a data provider should always be an array structure whose elements expose a toString() or whatever feature. If the list widget has a reference to some data provider, then it can load and/or resync the list items using always the same abstract routines. Then we have something purely prototypal:
    ListBox.prototype.load = DropDownList.prototype.load = function(/*obj[]&*/dp)
    // =====================================
    // A simple load method based on the assumption that
    // all dp items offer a toString() ability
        // Manage a reference to the data provider
        this.properties||(this.properties={});
        this.properties.data||(this.properties.data=[]);
        dp?(this.properties.data=dp):(dp=this.properties.data);
        // Vars
        var CAN_SEP = 'dropdownlist'==this.type,
            n = (dp&&dp.length)||0,
            i, s;
        // Add the ListItem elems
        for (
            i=0 ;
            i < n ;
            s=(''+dp[i++]),
            this.add(CAN_SEP && '-'==s ? 'separator' : 'item', s)
            // One could improve the code to support additional
            // keys for: multicol, images, checks, etc.
        return this;
    ListBox.prototype.resync = DropDownList.prototype.resync = function(/*obj[]&*/dp)
    // =====================================
    // Resync, or even reload, the data provider items
        this.selection = null;
        this.removeAll();
        return this.load(dp||null);
    ListItem.prototype.get = function()
    // =====================================
    // Return an object instance from the DP (behind this ListItem)
        return this.parent.properties.data[this.index] || null;
    From that point, what could the client code look like? We basically have two options:
    #1 The process is non-modal and then the external object will invoke List.resync(…) when required; in this case it MUST have a reference to the widget.
    #2 The process is modal, meaning that the 'external' object in fact is entirely interacted from the UI (e.g. via a button click); in that case no external reference to the list widget is actually required since the UI module itself knows exactly when a List.resync() is required, so why should it delegate the job? Here is a basic example in such a context:
    // Let's have some arbitrary 'OOP' stuff available
    var MyClass = function(uid,str)
    {   // constructor
        this.id=uid||0;
        this.rename(str||'');
        // various methods
    MyClass.prototype.rename = function(str){ this.name=str||'<unknown>'; };
        // toString()
    MyClass.prototype.toString = function(str){ return this.name; };
    var myDataProvider = [
        // some array of instances
        new MyClass(3, "Name 3"),
        new MyClass(5, "Name 5"),
        new MyClass(7),
        new MyClass(11, "Name 11, OK?")
    var processChanges = function()
    {   // emulate various changes in the data provider
        myDataProvider[0].rename("New name (3)");
        myDataProvider[2].rename("Finally Born 7");
        myDataProvider[myDataProvider.length] = new MyClass(13, "Did you miss 13?");
        myDataProvider[myDataProvider.length] = new MyClass(17, "Hello 17");
        myDataProvider.splice(1,1);
    // Now the User Interface:
    var w = new Window('dialog', "Example"),
        lb = w.add('listbox').load(myDataProvider),
        b = w.add('button', undefined, "Test Changes!");
    lb.onDoubleClick = function()
        var someInstance = this.selection.get();
        alert( "My secret UID is: " + someInstance.id );
    b.onClick = function()
        processChanges();
        lb.resync();
    w.show();
    Does it make sense?
    @+
    Marc

  • Can an HTML report be truncated ?

    Can an HTML report be truncated by Labview or Teststand to keep only the header & footer and then outputted to the printer to serve as a traveler?

    I'm guessing that you want to be able to just open the file with a
    browser and click the 'print' button. I don't think you will be able to do this with the HTML report.
    You might be able to do this if you are using TestStand 4.2 and select XML report format. You could customize a stylesheet that would  allow you to print just the info of interest.
    XML reports tend to be larger than the HTML equivalent...
    ( PS Nice icon selection!  )
    Message Edited by Phillip Brooks on 02-03-2010 07:38 AM
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • PDF to html conversion with embedded images in java

    hi all,
    i want to convert any pdf file to its html equivalent. currently i am using PDFBOX java api to do that. it works fine with simple pdf files having no images, but if there are embedded images in pdf file then it do not show these images.
    anyone who has clue of solving this problem. i can convert individual pdf pages to jpg pictures if all embedded images would also be in these pictures.
    help me regarding pointers to other APIs, code snippets etc that can solve my purpose.
    thanks in advance

    Hi..
    really soorry i am not having any solution for u.
    But i am having one problem regarding pdf box, i think u know pdf box, i am reading japanese file using pdf box, its giveing
    caught a class java.io.IOException
    with message: Unknown encoding for 'UniJIS-UCS2-H'
    I have wrriten code like this.....
    PDDocument pdfDocument = null;
    PDFParser parser = new PDFParser( new FileInputStream(file));
    parser.parse();
    pdfDocument = parser.getPDDocument();
    PDFTextStripper stripper = new PDFTextStripper();
    String text = stripper.getText(pdfDocument);
    reader = new StringReader(text);

  • Pdf file to html conversion with embedded images

    hi all,
    i want to convert any pdf file to its html equivalent. currently i am using PDFBOX java api to do that. it works fine with simple pdf files having no images, but if there are embedded images in pdf file then it do not show these images.
    anyone who has clue of solving this problem. i can convert individual pdf pages to jpg pictures if all embedded images would also be in these pictures.
    help me regarding pointers to other APIs, code snippets etc that can solve my purpose.
    thanks in advance

    Hi..
    really soorry i am not having any solution for u.
    But i am having one problem regarding pdf box, i think u know pdf box, i am reading japanese file using pdf box, its giveing
    caught a class java.io.IOException
    with message: Unknown encoding for 'UniJIS-UCS2-H'
    I have wrriten code like this.....
    PDDocument pdfDocument = null;
    PDFParser parser = new PDFParser( new FileInputStream(file));
    parser.parse();
    pdfDocument = parser.getPDDocument();
    PDFTextStripper stripper = new PDFTextStripper();
    String text = stripper.getText(pdfDocument);
    reader = new StringReader(text);

  • Smart quotes from InDesign export

    When exporting copy from InDesign CS3, the smart quotes do
    not convert to html code. What am I doing wrong?

    quote:
    Originally posted by:
    Newsgroup User
    if you paste this exported file into a good text editor, what
    character is used for the smart quotes?
    I'm not pasting an exported file. I copied and pasted from
    InDesign to Appleworks. Appleworks converts the smart quotes to
    html code when exporting. A pretty nice job, actually, but an extra
    step.
    quote:
    what doctype does the html file in dw have?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <meta http-equiv="content-type"
    content="text/html;charset=utf-8" />
    quote:
    what character is used for where these smart quotes are?
    It shows up as a smart quote in the source, rather than the
    html equivalent.

  • Problem with CFFORM type="flash"

    I don't like to have "the question mark" at the end of the
    URL in the new page because I can't open extension with .xls
    Any idee ?
    <CFOUTPUT>
    <cfset rootDir =
    ExpandPath("./download/documentation")>
    <cfset repbase = "download/documentation">
    <cfdirectory action="list" directory="#rootDir#"
    recurse="yes" name="myDir">
    <cfform format="flash" skin="haloblue">
    <cftree width="400" height="600" name = "myDirTree"
    vscroll="yes" hscroll="yes" enabled="yes" visible="yes"
    highlighthref="yes" appendkey="No" required="no" completepath="no"
    >
    <cfloop query="myDir">
    <cfswitch expression="#myDir.Type#">
    <cfcase value="Dir">
    <cfset img = "folder">
    </cfcase>
    <cfcase value="File">
    <cfset img = "document">
    </cfcase>
    </cfswitch>
    <cfset wholePath = myDir.Directory & "/" &
    myDir.Name>
    <cfset treeVal =Right(wholePath,len(wholePath) -
    len(rootDir))>
    <cfset parVal =
    ListDeleteAt(treeVal,ListLen(treeVal,"/"),"/")>
    <CFSET TYPFIC = #right(myDir.Name, 3)#>
    <CFSET LIENFIC = "">
    <CFIF #TYPFIC# EQ "pdf" OR #TYPFIC# EQ "exe" OR #TYPFIC#
    EQ "xls" OR #TYPFIC# EQ "doc" OR #TYPFIC# EQ "jpg">
    <CFSET LIENFIC = #repbase# & #treeVal#>
    </CFIF>
    <cftreeitem value="#treeVal#" display="#myDir.Name#"
    parent = "#parVal#" expand="no" img="#img#" href="#LIENFIC#"
    target="_blank">
    </cfloop>
    </cftree>
    </cfform>
    </CFOUTPUT>

    agh... for some reason the the character are being turned
    into html equivalant on the board. WTF?

  • H:panelGrid width or style attribute not rendering

    Hi
    I am currently experiencing a weird problem. I use a panel grid to align inputs in a form.
    when I try to set the width of the panel grid using the width or style attribute, the HTML equivalent is not rendered when displaying the web page.
    Here is what I try to do:
    <h:panelGrid columns="2" styleClass="patient-problem-form" style="width: 300px;">
    No style attribute is rendered on the table tag...
    Anyone knows what could case this issue?
    I am using
    facelets - 1.1.14
    seam - 2.0.1.CR1
    richfaces - 3.1.3.GA
    just updated glassfish 2-b58c with JSF 1.07 but did not make any difference
    Thanks.

    This will occur if you're using JSF impl newer than 1.2_05, but are using JSF api of 1.2_05 or older. Your classpath may be a mess with duplicated JAR's of different versions. Clean up your classpath. It may be good to know that Glassfish ships with javaee.jar which also contains JSF API. You need to upgrade it as well, you can get a Glassfish updater tool or read the instruactions at Mojarra homepage.

  • Query string error in JSP

    Hi. I originally thought my problem was a javaScript problem but now realize it is a JSP problem:
    I have a JSP calling another JSP (which is opened in a smaller window with javaScript) and it uses a query string for values. One of these variables in the string is a note the user enters and can contain anything. Problem is when they enter text with the '&' symbol, I'm getting a Null Pointer Execption as the receiving JSP interprets it as part of the query string.
    How can I 'hide' these characters so the receiving JSP page doesn't try to process it?
    Thanks in advance,
    Mike

    hi,
    you could detect the string before you sent the string, check for the & symbol and replace it with something else, such as the html equivalent and then append it to the url and send it, on the other end read it and replace the symbol with the & to get it back without confusing the code. you would run into the same problems if the user enter = or possibly ? into the string, so try fixing it with a search and replace method.

  • Query about textboxes in JSP?

    hi friends? there is some problem with the textbox fields in jsp? if i want to add additional textfield on the page if there is in increase in attributes in database then how to do it? database is in excel

    hi,
    you could detect the string before you sent the string, check for the & symbol and replace it with something else, such as the html equivalent and then append it to the url and send it, on the other end read it and replace the symbol with the & to get it back without confusing the code. you would run into the same problems if the user enter = or possibly ? into the string, so try fixing it with a search and replace method.

  • Forms and Czech characterset

    Hello everybody,
    I created a form to update calendar events. I used Czech language to made labels of inputs in the form. Czech special characters aren't display correctly. Others applications, pages and CAs are OK. Just I have problems with forms. The characters are replaced with senseless characters and if I save the form again, the sensless characters are added. So I have longer and longer strings there.
    I found that the labels are saved in the table "WWA_FORM_ITEMS$". So I changed them directly in this table. But you know, it's annoying.
    Does anybody knows if there is more comfortable solution?
    I'm using Portal 3.0.8 and database 8.1.7.
    Thanks for any answer. You can use also this address: [email protected]
    Petra :)

    again.
    Hi Petra,
    i've had the same problem with german characters. As far as I know it is a bug
    (either in Portal or in Interner Explorer).
    You can use Netscape to design your forms or (that's how I do it) use the
    html equivalent for your letter. For example instead of "&auml;" (or d) use "& a u m l ;"
    (without the blanks - I hope that this will be displayed correctly).
    Regards Oliver

  • Calling applets in jsp

    Hi All,
    When I tried to call an applet in my JSP page ,it says like " java plugin not installed properly"...I don't know what is wrong with my installation.I'm using jswdk server.
    Could anyone help me please....
    Would Appreciate if I get help.
    Subha.

    Hi
    A plugin is used as a substitute to the browser VM as somtimes the client browsers may not have the right version of the VM to run some components like Swing etc.
    The way you handle this in JSPs is that you use the <jsp:plugin> option . Any good tutorial on JSps will give you information on this.
    One place to start would be:
    The <jsp:plugin> directive takes care of generating all the HTML code necessary to embed and activate a Java applet. Consider the following example:
    <html>
    <head>
    </head>
    <body>
    <jsp:plugin type="applet" code="NewsTicker.class" name="newsticker"
    height="100" width="100">
    <jsp:params>
    <jsp:param name="x" value="10"/>
    <jsp:param name="y" value="25"/>
    <jsp:param name="cx" value="90"/>
    <jsp:param name="cy" value="114"/>
    <jsp:param name="bgcolor" value="102,102,153"/>
    <jsp:param name="textcolor" value="0,0,0"/>
    <jsp:param name="hilitecolor" value="255,0,0"/>
    </jsp:params>
    <jsp:fallback>Oops! Something bad happened and I can't display this
    applet</jsp:fallback>
    </jsp:plugin>
    </body>
    </html>
    The code above sets up the applet contained in "NewsTicker.class", and passes it a bunch of name-value pairs of parameters. The <jsp:param> tag is used to pass these
    parameters to the applet, while the <jsp:fallback> directive contains error text, in the event that the applet cannot be found or displayed.
    When JSP compiles and renders the page, the code above is automatically converted to its HTML equivalent.
    <html>
    <head>
    </head>
    <body>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="100"
    height="100"
    codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#V
    ersion=1,2,2,0">
    <PARAM name="java_code" value="NewsTicker.class">
    <PARAM name="type" value="application/x-java-applet;">
    <PARAM name="cy" value="114">
    <PARAM name="cx" value="90">
    <PARAM name="bgcolor" value="102,102,153">
    <PARAM name="hilitecolor" value="255,0,0">
    <PARAM name="y" value="25">
    <PARAM name="x" value="10">
    <PARAM name="textcolor" value="0,0,0">
    <COMMENT>
    <EMBED type="application/x-java-applet;" width="100" height="100"
    pluginspage="http://java.sun.com/products/plugin/"
    java_code="NewsTicker.class"
    cy=114
    cx=90
    bgcolor=102,102,153
    hilitecolor=255,0,0
    y=25
    x=10
    textcolor=0,0,0
    >
    <NOEMBED>
    </COMMENT>
    Oops! Something bad happened and I can't display this applet
    </NOEMBED></EMBED>
    </OBJECT>
    </body>
    </html>
    The above sample was taken from the two links shown below.
    - http://home.netscape.com/assist/net_sites/embed_tag.html
    - http://www.devshed.com/Server_Side/Jserv/JSP8/print.html
    For further reading the documentation that comes along with your application server should provide ample guide to using jsp:plugin with your applets.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

  • Passing value from Servlet to JSP back to Servlet

    Hi all,
    I have a jsp page where a user submits a search string into a text box. The jsp forwards to a servlet which calls some java classes and checks a database. The classes generate a string which contains some html. The servlet then forwards back to the jsp which displays the the string:
    <c:out escapeXml="false" value="${requestScope.ampList}" />The user then performs another action on this outputted html which is a listbox and when the user clicks on the listbox the onchange method submits the form. The JSP forwards the listbox value and I would like it to forward the "ampList" as well but I cant figure out how to do this.
    Using a hidden input does not work because the string contains HTML. Does anyone have any ideas. I can just keep the search string stored a hidden input box but I would prefer not to regenerate the "ampList" as it means accessing the database again which will cause performance issues.
    Thanks for any input in advance,
    Tom

    Ha,
    Writing that message gave me an idea which worked:
    <input type="hidden" name="ampList" value="<c:out escapeXml="true" value="${requestScope.ampList}" />" />

Maybe you are looking for

  • New FIos Internet user

    Hoping someone can help a new FIOS internet user that's not much of a tech person.  I have a new Verizon FIOS connection at home and an ActionTec wireless router connected to a box on the wall by coax cable.  No problem with the wireless connection t

  • More than 4GB RAM in 2008 Macbook Pro 17"?

    Does anyone know of a way to get the 2008 Macbook Pro 17" to be able to recognize 8GB RAM instead of the maximum spec of 4GB? Or is it simply a hardware limitation of the board?

  • How i use header fields in soap adapter

    Hi Experts, I need use  header fields http  in soap adapter receiver but i don't know where's the Variable Header Do you know where i find this? Somebody know how i put header fields http in soap adapter receiver? Thanks for all,

  • LSMW Read/Converted File Name

    Hi, Normally when you specify file, a name will be generated for the read and converted file with different extention. Now, is it possible to have a more dynamic way of naming this file?  My requirement would be to have the read/converted named diffe

  • What does spro stands for?

    HI, what does spro stands for? Thanx