JSTL c:set tag replace single qoutes to & #039;

Hi all,
i'm using the JSTL-Tags to create and query a SQL-Statement.
I use the c:set Tag to set a part of my query...
<c:set var="selectSeveral" value="d.hardwarecode = '${param.p_macAddress}'"/>
...and the sql:query Tag to excecute the query:
SELECT <c:out value="${selectValue}"/>
FROM event e, device d, billingunit b
WHERE e.eventdate >= to_date('<c:out value="${param.p_dateFrom}"/>', 'DD.MM.YYYY HH24:MI:SS')
AND e.eventdate <= to_date('<c:out value="${param.p_dateTo}"/>', 'DD.MM.YYYY HH24:MI:SS')
AND <c:out value="${selectSeveral}"/>
AND e.deviceid = d.deviceid
AND d.billingunitid = b.billingunitid
GROUP BY <c:out value="${groupValue}"/>
By excecuting the Statement with Tomcat i get a Oracle ORA-00911: invalid character Errormessage.
I found the reason for this in the Logfile, where the Statement looks like this:
SELECT e.eventdate, e.sessionend, e.sourceip, e.amount, d.hardwarecode, d.typecode, b.name, b.code
FROM event e, device d, billingunit b
WHERE e.eventdate >= to_date('17.03.2003 19:44:06', 'DD.MM.YYYY HH24:MI:SS')
AND e.eventdate <= to_date('17.03.2003 20:54:59', 'DD.MM.YYYY HH24:MI:SS')
AND e.sourceip = & #039;172.24.214.222& #039;
AND e.deviceid = d.deviceid
AND d.billingunitid = b.billingunitid
ORDER BY eventdate asc
As you can see JSTL replaced the single quotes with the number code of the single quotes. (& #039;)
Any ideas how to solve this problem.
Thanks in advance.
Cu Daniel

Try setting the escapeXml attribute to false - it defaults to true, and will replace XML (and HTML) special characters to their entity codes. For example:
<c:out value="${selectValue}" escapeXml="false"/>

Similar Messages

  • Issue with JSTL ( c:import ) tags in Weblogic 9.2

    Hi,
    I'm trying to migrate a struts (1.2.9) application from Weblogic 8.1 to Weblogic 9.2. This application has JSPs with JSTL (1.0) tags.
    I have a JSP page that has multiple (around 7) c:import statements. When I launch my application, only the content from the last c:import statement is being displayed and rest of the c:import tags statements is simply ignored by Weblogic.
    I don't find any errors in the logs. When I comment out last c:import statement in this JSP then the content from the above c:import statement is being displayed. Only one (last one) c:import statement's content is being displayed in that whole page.
    This app worked just fine Weblogic 8.1.
    Any resolutions, hints, insights or workarounds on this issue is appreciated.
    Thanks in advance,
    Mani
    Edited by: mayyalas on Aug 10, 2009 6:13 PM

    Hello,
    You should not need to edit the wlp-light-web-lib.war weblogic.xml file. There are many places where other classes in wlp-light-web-lib are dynamically loading classes (using Class.forName()) from "higher-level" shared library modules (such as wlp-framework-full-web-lib), so I am certain that it works in general. There may just be an issue with how your shared library is set up, or how your webapp deployment descriptors are set up.
    So you mention that you have a shared library module containing your implementation of the AnalyticEventHandler; is this a .war file? And in the webapp you are trying to deploy this in, does your weblogic.xml explicitly include your shared library? If so, is your shared library being included before or after the standard WLP shared libraries?
    If you would like, posting your webapp's weblogic.xml may help to find the problem.
    Kevin

  • Replace Single Quote with double quote

    Hi All,
    I have a String s="help'me'to'replace";
    i want to replace single quote( ' ) in to double quote ( " )
    The final out put should be like this help"me"to"replace
    ( Actually this string i have to pass in to an XML )
    Please help any one

    s.replaceAll("'","\"");{code}
    or just one of the String#replace() methods.
    Edited by: sabre150 on Mar 17, 2009 11:48 AM                                                                                                                                                                                                                                                               

  • Can we have a multiple TAGS in single line.Pls let me know

    Hi Team,
    Can we have a multiple TAGS in single line.Ie 2 open tags and 2 close tags in XML..Pls let me know

    chk this xml file
    <ns0:Test1>  
    <Address><street>LinkinPark</street><city>Paris</city></Address>
    </ns0:Test1>
    But I am not sure whether u can have any value for parent node in 7.0 for like node Address... only child nodes can have value..
    It can be done in 7.1
    Regards,
    Syed

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Getting img tags to work in sub page using jstl core import tag

    Am trying to bring disparate system page reports together under one web app. This means using the jstl core import tag (I dont want to redirect as I want to hide the urls, this web app provides better security than those it calls).
    Use of the import tag works to a degree but any resources (ie. img tags) don't load.
    Have created a much simplified example that demonstrates..
    So heres the jsp...
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <h3>Delivery Performance Report</h3>
    <c:url value="http://localhost/mycontext/subpage.html" var="myUrl"/>
    <c:import url="${myUrl}" />and a simple sub page (note plain html, no jsp, this mimics my project as the other systems are hidden source, non jsp)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <HEAD>
    <TITLE>sub page</TITLE>
    </HEAD>
    <BODY>
         This is the sub page<br>
         <img src="images/banner_image.jpg" />
    </BODY>
    </HTML>While I dont get any errors what I do get is ..
    Delivery Performance Report
    This is the sub page
    ...but image fails to load.
    If I redirect instead of import it works, but as I said I need to hide the url from the user as security is an issue.
    Any help appreciated, really pulling my hair out with this final stage of something that will make a real difference to us!
    regards,
    G.

    Thanks for the answer but Im afraid thicko here doesnt get it.
    The img src is relative to the sub page, and I have tried it with an absolute address (ie. http://localhost/.....) with the same result.
    If I call the sub page direct (get with browser) the image tag works. Its just if the sub page is imported with the jstl core import tag.
    I've not tried a base tag. The real project always returns pages containing absolute urls... http://ourReportServer/reports?....plenty of params so dont belive relevant, please correct me if Im wrong here though.
    thanks, G.

  • Set tag - OOS ?

    Hello, I have a simple question, 
    on the configurator window, @ set tag command, 
    there is an option as "set to OOS mode" 
    1st, what is the difference between check on "set to OOS mode" or not ? 
    I've done both ways and do not see the difference.. 
    2nd, I'm confused how the FF network use device  ID , address and PD_TAG
    here is my understanding
    device id is just for the uniqe id like a serial number for the device
    address is used to be identified in the network 
    PD_TAG, device tag is just a name of the device visualized in the user interface or program in the network 
    so that users know what it is
    so according to my understanding, set tag will not, should not affect the network / functioning 
    because tag is not used in the network data communication ? Therefore, I do not understand why
    the "set to OOS mode" check box is necessary,,, I think it's meaningless 
    please correct me if I'm thinking it wrong, 
    Have a great day ! 
    Solved!
    Go to Solution.

    Hi,
    You are almost right for them.
    But only one thing, the PD_TAG is also used to do data communication.
    Sometimes you could access the device using the PD_TAG.
    So the PD_TAG also should be unique in the network.
    And considering "set to OOS mode" is another thing.
    Just like you said most of time, there is no difference set or not.
    But for some devices the PD_TAG cannot be changed if the Block is not in OOS mode.
    That is the reason to have this function.
    Thanks.
    -Chris

  • How to replace single backslash(\) to double backslash(\\)

    Hi
    I want to replace single backslash to double backslash from the string.
    Code is here
    String data="File name :\n.txt;File name:\t.txt";               
    data = data.replace("\\","\\\\");
    System.out.println("-->" +data);
    i tried to this code but its not working. Help me if anyone is know.
    Please reply me asap.
    Thanks

    DVekaria wrote:
    Are you not getting my question.Obviously not. That's why we've asked you to clarify it. Twice, at least.
    whatever data contenting in Variable, it must print as its on the screen.This code does that.
    String s = "a\nb\tc;"
    System.out.println(s);The variable s contains a reference to a String object. That String object holds 5 characters: 'a', newline, 'b', tab, 'c'. The println prints out exactly what's in that String--those 5 characters. Note that there is not even one single backslash in that String.
    a
    b cThis is exactly what you asked for.
    Now let's say I create a file in Notepad, and I type the following, and then save it:
    a\nb\tcThat file contains 7 characters. 'a', '\', 'n', 'b', '\', 't', 'c'. If I read that file with Buffered reader, it will give me a String object with those same 7 charcters. If I print it out it will print out those 7 characters.
    a\nb\tcNote that in both cases, I am printing out exactly what is in the String.
    Think carefully on what is the same and what is different between those two cases, and use it to form a clearer definition of your problem. Remember, we want to know what you're trying to accomplish. Just saying "I want to replace backslashes" tells us how you're trying to solve your problem.

  • How do I remove one failing hard drive from raid set and replace with new one

    Last Friday apparently one of my raid drives started failing.
    As I mentioned on this forum I started getting continous beeping.
    I was finally able to get the raid working at a degraded level.  I ordered a replacement hard drive which is arriving today.
    (In the meantime I made twice daily backups of my work.....)
    Below was the message I got from the browser based raid software:
    Blahblah 09    1000.2GB   RaidSet Member SamSung HD103SJ
    Blahblah 10    1000.2GB     Free                 SamSung HD103SJ
    Blahblah 11    1000.2GB   RaidSet Member SamSung HD103SJ
    Blahblah 12    1000.2GB   RaidSet Member SamSung HD103SJ
    (See this earlier thread if you wish!)
    http://forums.adobe.com/thread/727867?tstart=0
    At one point when I did the checked the browser interface I saw the message Failed and Degraded
    As I said, I was able to work over the weekend on the degraded system.
    This morning I got the beeping again and did the rescue and now I am running a "full raid" without the notice that one raid was "Free".
    In any case, the new hard drive is arriving today.
    What steps should I take to incorporate the new drive into the raid system.
    I have one OS drive
    and 4 tb raid drives.   One needs to be replaced with the new one that I am getting today.
    Thanks
    Rowby

    Harm,
    Regarding your comment:
    Re: How do I remove one failing hard drive from raid set and replace with new one
    Please tell me how to read the serial number from an individual drive rather easily, without un-installing them:
    If you select the proper drive to change out, you only need to remove one drive and look at its serial number...
    Step 1: Identify bad drive serial number using Areca's tools
    Step 2: Turn off the computer
    Step 3: Remove what you think is the bad drive based on following your numbered cable method, marked hot-swap bays, whatever
    Step 4: Verify that the serial number matches the "bad drive" serial number from step 1; if it does great, proceed; if it does not match, go back to step 3
    Step 5: Change out the CORRECT drive - that's the bottom line for this whole procedure
    Cheers,
    Jim

  • Replace single character and leave the ones in expressions

    Hi,
    I'm looking for nice and elegant solution to my problem. Let's say I have a string "e+exp(e)". I want to replace all "e" with "1", excepts the one in "exp". I was trying to use regular expressions but I've failed after an hour... The solution should be able to solve things like replace "a" in "rand(a)" without changing rand. Basically I need to replace single character without replacing the ones in words/expressions.
    Any ideas?  
    Certified LabVIEW Developer, Certified TestStand Developer
    Solved!
    Go to Solution.

    No time for elegance right now, just brute force.  I would pad the string with spaces on each end to remove end cases and then search for the character surrounded by non-word characters. 
    Message Edited by Darin.K on 04-14-2010 04:06 PM
    Attachments:
    VariableParsingRegex.png ‏18 KB

  • Set-ADUser -Replace

    Hi
    I could be wrong, but I think there's an error in the help for Set-ADUser, in the section describing the -Replace parameter:
    For example, if you want to replace the value "555-222-2222" with the values
    "555-222-1111" for Phone-Office-Other attribute (LDAP display name
    'otherTelephone') set the Replace parameter as follows.
    -Replace @{otherTelephone='555-222-2222', '555-222-1111'}
    Wouldn't that example set the otherTelephone property to the two values given rather than replacing the first one wuth the second?
    Thanks

    Looks like you're right. I just took a look through the AD cmdlets with dotPeek, and when the -Replace parameter is used (with an array), it calls Clear() followed by AddRange() on the property collection:
    if (customPropertyValue is object[])
    propertyValue.Clear();
    propertyValue.AddRange((object[]) customPropertyValue);
    else
    propertyValue.Value = customPropertyValue;

  • How to set tagged pdf settings for batch process

    Framemaker doesn't allow me to set tagged pdf settings without opening a file (i.e. *.mif/*.fm/*.book).We are using .MIF files to generate PDF in an automated process.( .MIF files will be sent to FrameMaker as a batch file using DZBATCHER then it it uses distiller to produce the PDF).
    How can I set tagged PDF settings for this kind of operation?

    Tagged PDF info is a document level property, i.e. you need to define it in the MIF. Check your MIF manual for: <DPDFStructure and <DPDFStructureDefined statements.
    Note: If you're using any FM version earlier that FM9 and not the FrameServer version, please read your EULA very carefully (Section 2.2 - 2.4) concerning automated creation of PDF files. With FM9, the restriction apparently has been loosened to only how the process is intiated (Section 2.3).
    Copies of the EULAs can be seen here: http://www.adobe.com/products/eulas/

  • Dual Ethernet will not connect if set to share Single IP address

    The subject says it all. My trusty old Dual Ethernet will not connect if set to share Single IP address.
    I cannot get anything but a self assigned IP address with it set to share a single IP address.
    Before about Tuesday of last week I had connected to it a Mac mini, iMac, Dell Desktop, Dell Laptop, and PS3 all working fine. I think Comcast or Apple updated their system or Airport software and now the old dual Ethernet will not share a single IP address.

    So far as I know, there has been no recent change in Apple's software affecting the Snow (a/k/a Dual Ethernet) base station. About 2-1/2 weeks ago, Apple distributed an update to AirPort software for Intel Macs running Tiger, but it would not have affected the base station.
    Your topic implies that when the Snow is not set to share a single IP address (i.e., presumably, when "Distribute IP addresses" is unchecked in the Network pane of AirPort Admin Utility for Graphite and Snow), one of the computers is connecting to the Internet through the base station. I also imagine that the self assigned IP address you mention is the IP address of that computer, rather than of the base station, and that that computer obtains an IP address from Comcast when the Snow is not distributing IP addresses.
    Assuming that that computer is connecting wirelessly, then whatever settings that computer is using for TCP/IP and PPPoE in the AirPort part of System Preferences, while the computer connects to the Internet, should be the ones used for the base station, in the Internet pane of AirPort Admin Utility for Graphite and Snow. (Most likely, it is simply "Using DHCP.") The IP address obtained from Comcast should be received by the base station, when it is set to distribute IP addresses in the Network pane, and the IP address should show up in the Internet pane. (When the Snow is distributing IP addresses, it has two IP addresses itself, a WAN IP address obtained from Comcast and a LAN IP address, 10.0.1.1, visible only to devices in your network.)
    Even when the settings are correct, the Snow might not be able to obtain an IP address if your cable modem remembers the computer, which had been receiving the IP address previously. You'll probably need to shut down the computers and unplug power to the base station and cable modem. After waiting 5 minutes, restore power to the modem, then after another 5 minutes, restore power to the base station, then after another 5 minutes, start up a computer.

  • Three data sets in a single Flex chart?

    Hello everyone;
    I've successfully integrated two data sets into a single Flex
    chart; now I'm wondering how to bring in another one. Here's an
    example of what I'd want to do. Say I wanted to chart average
    lifespan and average household income by US State. So I'm imagining
    each state could be represented by a pair of bar charts - one
    representing lifespan and using the left y axis and one
    representing income and using the right y axis. The third component
    would be the state, which the user should be able to display or
    hide. I'm imagining states being represented by color and a label
    on the x axis, and user controls to display more or fewer years.
    Any change I could actually pull this off?
    Thanks for any help.

    I'm not entirely certain where the conflict from adding
    States would appear, but I'm a little unclear on your data model.
    Have you considered putting all the information into a single data
    set? I would suggest filling an Array Collection with a class like
    this:
    public class infoHolder
    public var lifespan:int;
    public var salary:int;
    public var stateName:string;
    Then you can simply fill your chart like this:

  • JSTL c:import tag exception on WAS 6.20

    Hi all,
    has anyone been able to use the c:import jstl 1.0 tag on WAS 6.20?
    Everytime we access it it throws the following error:
    Exception occurs while processing a request to the servlet: jsp.
    javax.servlet.jsp.JspTagException: Since tag handler class org.apache.taglibs.standard.tag.el.core.ImportTag implements BodyTag, it can't return Tag.EVAL_BODY_INCLUDE
    Most, if not all, other tags seem to work fine, just this one doesn't. The same testpage and jstl version works fine on other non-SAP J2EE engines we have tested it on.
    Best Regards,
    Kalle Pokkinen

    Hi,
    This answer is mostly for reference - see OSS 0371142 2004 "JSP Standard 1.2 versus 1.1" for details.
    Best regards,
    Todor

Maybe you are looking for

  • I have a Late 2005 (Power PC) G5 running 10.5.7 that I purchased used from

    Hi all, I have a Late 2005 (Power PC) G5 running 10.5.7 (13 GB ram) that I purchased used from a company online that refurbishes and resells off-lease machines. It worked great until a few days ago when I came back to it frozen. It had a pixelated pa

  • "Adobe Encore media" does not open

    "Adobe Encore media" does not open and the following screen appears: Firma Problema:   Nome Evento Problema: APPCRASH   Nome Applicazione: Adobe Media Encoder.exe   Applicazione Versione: 6.0.3.1   Applicazione Timestamp: 50575647   Nome modulo con E

  • Alv sorting

    hi need to sort alv data, but the entries are like header and item means first line is of header data and if has items then       the items will be displayed starting from second line but some columns for all items       will be empty (means header d

  • Sales Order line item confirmed?

    Hi, Is there any table / field to which we can refer to for knowing whether the sales order line item's open quantity has been confirmed or not. I see the line entries in table VBEP, but, in that I guess I'll have to do calculations to check whether

  • I can't keep Yahoo mail account open 2 weeks in a row even with a mark in box KEEP ME OPEN. I did go to Tools, Options, Security to check SAVED PASSWORD box

    Usually, after opening Firefox, to check my Yahoo mail, I log in with my password, and mark the little box in front of KEEP ME OPEN, I can check my mail, and then close Firefox. Whenever I open Firefox, I can access my Yahoo mail account without typi