Collecting data with JSTL

Hello,
I am using jstl to display data in a jsp. The data is being collected in a servlet and forwarding to
the jsp
<td><size><img src="${bale.balpic}" height="60" width="60"/></size></td>
                        <td><name>${bale.id}</name></td>
                        <td><name>${bale.balname}</name></td>
                        <td><description>${bale.description}</description></td>
                        <td><colour>${bale.colour}</colour></td>
                        <td><price>${bale.price}</price></td>
                        <td><size>${bale.balsize}</size></td>
                        <td><department>${bale.departmentent.departmentname  }</department></td>
                        <td><input type="submit" value="add to basket" name="addtobasket" /></td>What I would like to do is collect the following as a getParameter() in the servlet so i can pass data onto another jsp -
  <td><name>${bale.lid}</name></td>THanking you
eve
Edited by: evepokua on Oct 26, 2009 6:13 AM
Edited by: evepokua on Oct 26, 2009 6:13 AM

Pass it as a hidden input value.<input type="hidden" name="lid" value="${bale.lid}">And in servlet useString lid = request.getParameter("lid");

Similar Messages

  • Problem with formatting date with JSTL ans swedish locale

    Hi,
    I have a strange problem with JSTL fmt:formatDate -tag and swedish locale.
    -------------------------- Extract from the JSP ------------------------------
    <jsp:useBean id="date" class="java.util.Date" />
    <fmt:formatDate value="${date}" pattern="dd.MM.yyyy HH:mm" />
    With en_US and fi_FI locales date is printed just the way I want: 29.04.2005 13:28 but in se_SE locale it is printed: Fri Apr 29 13:30:09 EEST 2005
    Has anyone had this problem before?
    Thanks in advance!

    Hi
    Try using "sv_SE" locale.

  • Collect Data With Access 2010

    I have a project that that will have three laptops off site in locations at times when there will be no Wi-Fi, internet connections available.
    So the thought is to run theses
    System 7, Dell Laptops
    With Access 2010
    Collect Data  off line
    Come back to the Office which has a
    Windows Sever 2010
    We about to download SharePoint Foundation
    And have Microsoft SQL 2010 available.
    There would be multiple uploads but at the same time
    Suggestions on the best plan of attack.

    SharePoint Foundation doesn't provide Access Services, so you won't have full fidelity when looking to connect to your deployment when back in the office.
    You can link or export your content to SharePoint lists I believe.  A quick "how to" is covered within Stack Exchange.
    http://sharepoint.stackexchange.com/questions/58148/updating-sharepoint-list-with-linked-access-database-new-list-created-instead
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Collecting data  with Reader

    I just installed Acrobat 9 after not having Acrobat Reader on my computer for a couple of years (been using Foxit et al). After a long-standing unresolved problem with Foxit I just installed Acrobat tonight and have a question about data collecting or whatever that window said it would do. I was given a rather unnerving window, asking me if I wanted Adobe to collect data or monitor this or that...and i checked the box that said "No," and then I clicked OK. I decided not to click Cancel, as I thought this might give me this same window the next time I opened the program.
    One choice I have is uninstalling it--but it did display large pdfs much quicker than it had before I stopped using Acrobat, so I'd like to keep it on my hdd.
    My question--by clicking "OK," did Acrobat think that I want to let it collect data? I looked in the Preferences for some way to find an option to tweak this, but of course I couldn't find anything.
    Is there a way to look at what Acrobat thinks I've checked?

    Use the following menu item: Help > Improvement Program Options...
    George

  • How to get & use xml data with jstl libraries? (URGENT PLZ)

    I am using jstl to get and use xml data
    I needs to perform operations on the parsed xml document with other libraries of jstl. How can i do that.
    I used Dom variable to parse my document as:
    <x:parse varDom="test"> <c:import url="project.xml"/> </x:parse>
    where my project.xml is:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <project>      <projectName>myProject</projectName> </project>
    I can dislay this value in html by
    <x:out select="$test/project/projectName"/>
    But I need a string value sotred in variable such as <c:set var="pname" value="???">
    HOW CAN I SET THIS VALUE IN CORE VARIABLE THAT IS, USING <c:set...> SO THAT IT CAN BE USED ANYWHERE IN JSP PAGE TO CONCATE RETURNED STRING IN OTHER STRING VARIABLES DEFINED BY CORE LIB?
    Jessy
    Message was edited by:
    jessy
    Message was edited by:
    jessy

    I believe that <c:set> should do that but i am facing problem in it. Look into this jsp scriptlet:
    1-<x:parse varDom="test"> <c:import url="project.xml"/> </x:parse>
    2-<x:set var="ds" select="$test/project/projectName"/>
    3-<x:out select="$ds"/> <br>
    4-<c:set var="tt" value="${ds}" />
    5-<c:out value="${tt}" />
    In line 3 variable ds returns: myProject
    In line 5 variable tt returns: [[projectName: null]]
    perhaps on line 4 ds is storing some array to tt and i am not calling correct array element. I tried many options but still could not find solution. Plz Plz do something urgent for me. Thanks
    Jessy
    Message was edited by:
    jessy

  • •If you are using FormsCentral to collect data with PDF forms, consider downloading the form and using Adobe Acrobat software to distribute and track responses. Learn how to re-purpose your form.  Ok, How?

    Once Formscentral is done, how can I continue to use my forms as a PDF file? Will my customer still just be able to hit submit and have the form come to me? What can I maintain from the original format?

    Hi SEJA,
    I believe the following Detailed FAQ document will answer all your questions regarding FormsCentral: Retirement . Please check it out.
    In case you still have a doubt, feel free to reply back.
    Regards,
    Rahul

  • I have a problem during the collect data and save it in file with the HP8753C

    Hello,
    I'm using the "HP8753 collect and display data.vi" with the functionnality "save" in file (.txt or xls).
    When I'm using it to collect and save data one time to time, I have no problem. But when I would like to use it to collect and save several data with a structure "For", the HP8753 status will become blocked and the collect and save data in file is disable.
    The only function "collect data" with a structure "for" is Ok but will become not OK with the option "save" in file. Why, please ?

    Hello,
    Thank you for contacting National Instruments.
    It sounds like your instrument is "hanging" or "freezing" when you try to read and save data from it in LabVIEW.
    I took a look at the context help for that particular VI. It appears that if you attempt to read data from the HP8753 while it is also taking measurements, it can cause the instrument to hang. This may be the problem you are experiencing.
    Look over your program and ensure that the instrument is not trying to take new measurements as you read data from it in LabVIEW. Sequence structures may be useful in this regard. If you are still experiencing problems, however, let me know.
    Matthew C
    Applications Engineer
    National Instruments

  • OWB Can't Import Existing Package with Collection Data Type as Arguments

    I created a package and compiled it successfully as the follows:
    +++++++++++++++++++++++++++++
    CREATE OR REPLACE PACKAGE PACKAGE_TEST AS
    TYPE Num_LIST IS TABLE of NUMBER INDEX BY BINARY_INTEGER;
    FUNCTION TEST_FUNCTION1 ( arg1 NUMBER, arg2 NUMBER) RETURN NUMBER;
    FUNCTION TEST_FUNCTION2 ( args NUM_LIST) RETURN NUMBER;
    END PACKAGE_TEST;
    CREATE OR REPLACE PACKAGE BODY PACKAGE_TEST AS
    FUNCTION TEST_FUNCTION1 ( arg1 NUMBER, arg2 NUMBER) RETURN NUMBER IS
    ln_sum NUMBER;
    BEGIN
    ln_sum := arg1 + arg2;
         RETURN ln_sum;     
    EXCEPTION
    WHEN OTHERS THEN
    RETURN -10000;     
    END TEST_FUNCTION1;
    FUNCTION TEST_FUNCTION2 ( args NUM_LIST) RETURN NUMBER IS      
         ln_sum NUMBER;
    BEGIN
    ln_sum :=0;
         FOR i IN 1.. args.COUNT LOOP
         ln_sum := ln_sum + args( i );     
         END LOOP;     
         RETURN ln_sum;     
    EXCEPTION
    WHEN OTHERS THEN
    RETURN -10000;     
    END TEST_FUNCTION2;     
    END PACKAGE_TEST;
    ++++++++++++++++++++++++++++++++++++++++
    Then I tried to import the package into OWB (9.2). The problem came: all the package body and
    the specification of TEST_FUNCTION1 were imported, but the package specification of
    TEST_FUNCTION2 couldn't be imported. The IMPORT FILTER gave an error message:
    "TEST_FUNCTION2: Argument Data type is not supported".
    How to resolve this problem? It is very import for our project, since we have to import some
    packages with user_defined collection data types as arguments.
    Thank you.
    Lushu

    Hi Lushu,
    Unfortunately this is indeed not supported and I would not know how to work around this one. The only way I guess that this would work is to not import it, and then use Expressions to call the function with inputs.
    Jean-Pierre

  • How to build a array with collected data

    Hi,
    I have collected data from serial port with VISA. Now I want to build a array with 100 date points. Should I connect VISA Read with Build Array directly? How to do it?
    PS: All of them are in a While Structure.
    Thank you!

    An inefficient way to create the array is to use the build array and a shift register as shown below. It's more effecient in terms of memory management to create the array and then use the replace array subset as shown in the other image. Of course, if you don't need the array inside the loop, just wire the value out of the while loop and on the exit tunnel, right click and select 'Enable Indexing'.
    Message Edited by Dennis Knutson on 07-03-2007 10:25 PM
    Message Edited by Dennis Knutson on 07-03-2007 10:26 PM
    Attachments:
    Crude Build Array.PNG ‏4 KB
    Better Build Array.PNG ‏6 KB

  • Compare current date with dat from db by JSTL

    hi all
    I use
    <tr><c:forEach items="${allFound}" var="found" varStatus="myRow">
    <td><c:out value="${found.submitDate}"/></td>
    </tr>
    </c:forEach>
    to past some value out of db
    how can I compare this submitDate with Current Date by JSTL
    Thank you!

    Whether or not you can compare it depends on what the type of "${found.submitDate} is coming from the Database.
    I am going to presume it is a java.util.Date.
    You can get the current date like this
    <jsp:useBean id="now" class="java.util.Date"/>
    You can then compare them using an EL expression:
    {code}
    <c:if test="${submitDate < now}">
    We have not yet reached the submit date.
    </c:if>{code}
    EL uses the java compareTo methods, so both of your objects +must+ be of the same class in order for this comparision to work.
    If you get back a String from the database, you would have to use <fmt:parseDate> to get a java date.
    If you get back a java.sql.Date from the database, it would get trickier. The hack would be to go java.sql.Date -> String -> java.util.Date using <fmt:formatDate> and <fmt:parseDate>
    Hope this helps,
    evnafets

  • Use Java to collect data from HTML

    Hi Guys
    I am doing a online stock trading project, the main part is to collect raw data from http://finance.yahoo.com User can retrieve the stock detail by inputting the right stock symbol, such as "AOL". I dont have too much problem in this part because yahoo provde a spreedsheet format to display the result. If you type the URL below, it can bring you a set of stock data separating by comma. So, I can use StringTokenizer(date, ",") to collect each data from yahoo into my system.
    ========================================================================
    http://finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&e=.csv&s=AOL&
    "AOL",15.57,"8/12/2003","4:01pm",+0.04,15.47,15.63,15.40,12097200
    ========================================================================
    However beside this function, I also need to search Stock Symbol, because user may only know the company name. Although Yahoo finance also provide this function, with no spreedsheet format provided. So, if I type the URL below, it will only give me a set of result BUT in HTML format.
    ========================================================================
    http://finance.yahoo.com/l?s=AOL&t=S&m=
    ========================================================================
    So, can anyone tell me what is the best way to collect data from a HTML page? Or anyone know any good stock quoting sites which also provide spreedsheet format?
    Thank you very much
    Kel

    I am doing a online stock trading project, the
    the main part is to collect raw data from
    http://finance.yahoo.com
    Sounds fun.
    So, can anyone tell me what is the best way to
    to collect data from a HTML page? Or anyone know any
    good stock quoting sites which also provide
    spreedsheet format?I really don't know any other stock quote sites. But if you want to implement a search function for stock names, I would do it like this
    1) Code the HTTP SUBMIT/POST to lookup the possible stock names
    2) Use XSL to filter out the HTML path to the table with results, the layout is consistent, so there are no strange exceptions. You can check the DOM structure by using Mozilla's DOM inspector. Just write down the path to the TABLE element and select it, and transform it to CSV for example.
    3) Reparse the CSV to fill some boxes
    To possibly save some server load use a small fixed size in memory cache to store N requests based on some strategy.
    The other part is actual a separate part of what you want to code and should be a separate class in which you can feed the stock name.
    If the user types in a bad stock name, you can retrieve a list of possible names using the input as the company name.
    Greets.
    Maybe there is a SOAP service out there somewhere.

  • How to populate a form based on values in a database with JSTL?

    I know how to write Java code to connect to a database, but where exactly (and how) in my JSP page , using JSTL tags will I actually call the function that connects to the database?
    Should the code to connect and populate the Java Bean fields go into the JavaBean constructor or anther method ( but from what I understand I can't really call the Java Bean's methods through JSTL - unless I did it througha scriplet)

    I know how to write Java code to connect to a
    database, but where exactly (and how) in my JSP page
    , using JSTL tags will I actually call the function
    that connects to the database?You won't. The point of writing JSPs with JSTL is to realize that the purpose of JSP is to produce HTML, and not to do extraneous things like accessing databases. You would write a servlet that connects to the database, extracts the data, and puts it somewhere the JSTL can find it. (Most likely in a List object in request scope.)
    Then the servlet forwards to a JSP, where you use JSTL simply to scan through that List and convert the objects in it into HTML.

  • Performance Report Manager not collecting data

    I'm running SMC 3.6 with the Performance report manger module installed on the server and hosts. The hosts are logging data to their circular file. But when I open the Report Manager then Data-Data Collection there are no hosts listed in the "Hosts with Data Collection Enabled" or "Hosts with Data Collection Disabled" fields.

    PRM is sensitive to host naming issues. If your SunMC Agent resolves it's IP backwards to "hostA.mydomain.com" and your SunMC Server resolves that same IP backwards to "hostA" (or if the situation is reversed) then you'll have problems.
    If you do find a mismatch (but SunMC is otherwise running fine - indicating the security is still valid) simply try deleting the icon for a host and recreating it with the proper name. I.E. erase the icon you made for "hostA" and replace it with an icon for "hostA.mydomain.com". It will look and feel the same in the Console, but PRM will treat it differently.
    Note that PRM only collects data from the Agent every hour, so it may take that long for your changes to show any effect.
    Regards,
    [email protected]
    http://www.HalcyonInc.com

  • Server manager hangs on collecting data, i can't install/uninstall any applications, mmc works on random, no errors in any logs

    Hi, ive been searching around for for 4-5 hours on google and here and I'm turning a bit desperate
    I rebooted the server today, and after that it just hangs on collecting data, mmc stuff works on random, I got evenviewer open, and checked system and application, but it only showed exchange alerts etc, according to itself, everything is fine, which is it not, I can't goto control panel, can't install/uinstall software, cant run windows update, can't connect via RDP etc.
    I tried misc solutions I found, like this
    1. Click Start->Run...->type msconfig and press Enter
    2. Click Services tab and select Hide All Microsoft Services and Disable All third party Services.
    3. Click Startup tab and Disable All startup items
    4. Click OK and choose Restart
    but msconfig just hangs when I click OK.
    server is a DL380G5 with 64 bit

     
    Hi,
    First I would like to confirm the following points:
    1.    Had any changes been made on the computer before the issue began to occur, such as an installation or upgrade?
    2.    Does any error message appear or does it just hang when opening Control Panel, install/uninstall software, run Windows Update, connect RDP?
    3.    Have you installed any anti-virus programs on the computer?
    First let’s delete the Server Manager cache files in C:\Windows\System32\ServerManager\Cache.
    If it still hangs, I suggest booting into Safe Mode.
    Please restart the computer, keep pressing F8 and enter Safe Mode.
    Does the hanging issue also occur in Safe Mode? If not, let’s try the steps below in Safe Mode again:
    1. Click Start->Run->type msconfig and press Enter.
    2. Click Services tab and select Hide All Microsoft Services and Disable All third party Services.
    3. Click Startup tab and Disable All startup items.
    4. Click OK and choose Restart.
    What’s the result in Normal Mode now?
    If the issue persists, please boot into Safe Mode and run your anti-virus programs perform a complete virus scan.
    If the issue still occurs after scanning for viruses, please send the System Inforamtion to me for further research:
    1. Press Start, type in msinfo32 in the Start Search bar and then press Enter.
    2. Choose Save from the File menu and save it as an NFO file.
    3. Find the file, right-click on this file, click "Send To", and click "Compressed (zipped) Folder".
    4. Upload the compressed file to me from the following site:
    https://sftus.one.microsoft.com/choosetransfer.aspx?key=3e32f38f-0e6a-4b3a-8d5c-8ad6d50df5ef
    Password: gSvd99ic_EhP6D
    Hope it helps.
    Tim Quan - MSFT

  • Error when extracting data with extractor 2lis_04_matnr - NEED HELP ASAP !!

    Hi experts!
    Got an error when extracting data with extractor 2lis_04_matnr.
    System says (short dump):
    DUMP TEXT START----
    Runtime error:    CONNE_IMPORT_WRONG_COMP_TYPE
    Exception:   CX_SY_IMPORT_MISMATCH_ERROR
    Error when attempting to import object "MC04P_0MAT_TAB".
    The current ABAP program "SAPLMCEX" had to be terminated because one of the statements could not be executed. This is probably due to an error in the ABAP program. When attempting to import data, it was discovered that the data type of the stored data was not the same as that specified in the program.
    An exception occurred. This exception is dealt with in more detail below. The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR', was neither caught nor passed along using a RAISING clause, in the procedure  "MCEX_BW_LO_API" "(FUNCTION)".                                                                             
    Since the caller of the procedure could not have expected this exception      
    to occur, the running program was terminated.                                
    The reason for the exception is:  When importing the object "MC04P_0MAT_TAB", the component no. 5 in the dataset has a different type from the corresponding component of the target object in the program "SAPLMCEX". <b>The data type is "D" in the dataset, but "C" in the program.</b>
    DUMP TEXT END----
    Please, can someone explain me how to solve it? 
    Really need help ASAP!
    Thanks in advance,
    Jaume
    Message was edited by:
            Jaume Saumell
    Message was edited by:
            Jaume Saumell

    Hi,
    Check this note: 328181
    So you need to delete entries in SM13/LBWQ for application and also detup table content.
    And then refill teh set up table.
    If you are in production clear the entries by running collective run no of times for this application 04.
    With rgds,
    Anil Kumar Sharma .P

Maybe you are looking for

  • Windows 7 (32-Bit) - iTunes won't recognize iphone!?

    I have just updated my sony vaio fw41e to windows 7 home premium (32-bit). My chipset is intel pm45. I am running itunes 9.0.2 which I believe is the most current. The computer recognizes the iphone and offers me several autoplay options but thats al

  • Conversion change for UOM in PO

    Dear All, There are some PO which are posted dated 14.07.2010 for which the uom conversion is 3 pcs <=> to 1 CSE as what is set in the material master for that material selected in PO. But for the same material for which PO posted after 29.03.2010, U

  • Bring Up Flash Presentation In Multiple formats with hyperlinks?

    I have a web site that is 100% flash http://rcgov.org/firedept when it comes up as you can see the center section is always the same starting flash .swf. If you click on the various buttons other .swf files load in the center section of this page. Wh

  • Regd:- trigger.

    hi friends, please help me on trigger.. i want Update the data on same table where insert in same table. example. i am inserting records on employee table same time i want to update same data on same same table.but its giving me Mutating error.. what

  • Exchange 2010 DAG error adding members

    I am attempting to setup a DAG with two exchange 2010 server running sp2.  The DAG is there but when I try to add either server I get the following error: Summary: 1 item(s). 0 succeeded, 1 failed. Elapsed time: 00:00:11 EXCHANGE Failed Error: A serv