Problems in c:out tag.

hi all,
i a JSP page i have added code like this on body onload.
          <c:if test="${not empty rgnToDate}" >
               document.getElementById("rgnToDate").value = '<c:out value="${rgnToDate}" />';
          </c:if>     so in referenceData() i am not adding rgnToDate into map. but on click of apply in this search page i am adding that one in model and view as well as in session.
so when user clicks on that tab again then referenceData() function gets called. and rgnToDate is not added in map. so it should not be displayed in rgnToDate box. but it is still getting displayed.
is this error is because of i am adding that value in session also ?
can we see all the variable added in model and view in jsp page ?
please reply,

is this error is because of i am adding that value in session also ?I would say so yes
${rgnToDate} is referring to your session scoped variable.
If you don't want it there, then remove the attribute.
can we see all the variable added in model and view in jsp page ?I am not sure what you are referring to by the variables in the "model" and "view" here.
Certainly all the variables in any of the scopes (page, request, session, application) are available to EL.
hope this helps,
evnafets

Similar Messages

  • Taglib problem: Cannot parse custom tag with short name table

    Hello!
    I am having problems deploying a jsp tag in web as. The same war file works fine on websphere, jboss. SAP web as seems to be complaining about the short name in the tld.
    Can any body me to any known web as issues with jsp tags?
    Thanks
    [code]
    Application error occurs during processing the request.
    Details: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page /usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/dispear/servlet_jsp/disp/root/test.jsp.
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:85)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.getClassName(JSPServlet.java:207)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.compileAndGetClassName(JSPServlet.java:369)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:164)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.engine.services.servlets_jsp.lib.jspparser.exceptions.JspParseException: Cannot parse custom tag with short name table.
         at com.sap.engine.services.servlets_jsp.lib.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:129)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.syntax.ElementCollection.action(ElementCollection.java:52)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.initParser(JSPParser.java:307)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:74)
         ... 18 more
    Caused by: com.sap.engine.services.servlets_jsp.lib.jspparser.exceptions.JspParseException: Unknown class name java.lang.Object.
         at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.convertString(TagBeginGenerator.java:365)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.generateSetters(TagBeginGenerator.java:187)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.generateServiceMethodStatements(TagBeginGenerator.java:212)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.generate(TagBeginGenerator.java:269)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:127)
         ... 21 more
    [/code]

    Hi Ray,
    I am facing similar kind of issue.
    Can you please help to resolve it?
    Thanks in advance.
    Logs are as below [Here I am using standard tag lib]::
    Caused by: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Cannot parse custom tag with short name [out].
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:183)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspIncludeDirective.action(JspIncludeDirective.java:51)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.customTagAction(JspElement.java:994)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.action(JspElement.java:228)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:69)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.GenerateJavaFile.generateJavaFile(GenerateJavaFile.java:72)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:270)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.generateJavaFile(JSPProcessor.java:194)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:126)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassName(JSPChecker.java:319)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.compileAndGetClassName(JSPChecker.java:248)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassNameForProduction(JSPChecker.java:178)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.processJSPRequest(JSPChecker.java:109)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JspParser.generateJspClass(JspParser.java:154)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:193)
         ... 47 more
    Caused by: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Attribute [value] of [<c:out>] can accept only static values.
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.calculateAttributeValue(TagBeginGenerator.java:476)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.generateSetters(TagBeginGenerator.java:394)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.generateServiceMethodStatements(TagBeginGenerator.java:562)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.generate(TagBeginGenerator.java:678)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:181)
         ... 64 more
    Regards,
    Sankalp

  • Problem using JSTL XML tags.

    My xml tag is giving problems. All other tags (core/sql and EL) are working fine. Even a very simple code like :
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <!-- parse an XML document -->
    <x:parse var="simple">
    <a>
    <b>
    <c>C </c>
    </b>
    <d>
    <e> E </e>
    </d>
    </a>
    </x:parse>
    <!-- display using XPath expressions -->
    <x:out select="$simple//e"/>
    gives error as :
    javax.servlet.ServletException: Cannot inherit from final class
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
         org.apache.jsp.jsp.xml.first_jsp._jspService(first_jsp.java:65)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    Pls. help!

    Works with no problems for me. (same exact code posted into a JSP)
    Running on Tomcat 5, Java1.4
    What server are you running, and version of java?
    Is there anything else on the page? Are you extending a class somehow?
    Do you have any extra libraries in the web-inf/lib directory that might be conflicting?

  • General Task List- Query Log Out Tag Out

    Hello,
    We are uploading new Gereneral Task List. Some task required Log Out Tag Outs for a prcedure:
    For example: 1) Schedule  with operations 2) Flush unit 3) Lock out tag out procedures 4) Pull unit and clean propeller.
    For reporting purpose we want to identify all the Task List that require LogOut TagOuts. Is there a way to query those items.
    Thanks

    Create Different Control Key " LOTO" going to Spro - PMCS - Maint & Service Orders - Function & Settings of Order types - Control Key - Maintain Control Key - Create New Entries , Create New One With Name" LOTO" , Assign Parameters( tick sheduling if needed )or Keep Every thing Blank , Save it
    Now in Creation of Task list , For Lock out & tag out Operation , Maintain this Control Key "LOTO " & rest is same.
    Use IW37 or IW37N , with Control key Entered in Order to monitor the Order , Operation with this LOTO Control Key,
    I think this solves ur problem , there is already a default Control Key "WCM" in Ideas , which Activates Work Clearance Application you can check it.
    or
    you Can maintain System Condition Manually in Order Operations when you get Maintenance Order from Plan , You Cannot  maintain this in Task list individual Operation.
    Regards,
    Edited by: Srinivas Narayana Gowda on Jun 11, 2009 10:17 AM

  • Problems with TV Out signal after upgrading to iOS 5.1

    Has anyone experienced problems with TV Out signals on their iPad 2 using the Apple HDMI Adapter after upgrading to iOS 5.1?  I am trying to connect to my HDTV after upgrading and cintunally receive an "Unsupported Video Signal" message with a blank/back screen.  Prior to upgrading, I had no connection problems and could view TV Shows, Movies, Music Videos, Keynote, etc...without problems.  I've been unable to find any resolution to this problem, even followed Apple guidance to detach and reattach the HDMI adapter without success.  Seems like a software bug to me and it's a major problem when trying to conduct business or personal activities.  Hopeing Apple has a fix in work already...anyone else have any ideas?  Thx in advance...

    Try a reset. Press & hold the Power and Home buttons together for 10+ seconds, ignoring the red power-off slider, until you see the Apple logo. It is safe to do, there should be no content loss. It is the same as rebooting your computer.
    If that does not work, restore the iPad to the factory settings.

  • Problem with fading out particles in cs5

    I have a problem with fading out particles or anything for that matter in my CS5 after effects!  I set up the key frames right.  O opacity at first and whatever number at next and it fades in fine,  But when I try to do the reverse it will not fade out and only stops the effect if I cut its durration at the red par representing it on the top of the time line. This produces and rough aburpt cut of the effect which will not due.  Please can anyone tell me what I am doing wrong that I can't fade out particles with opacity?

    First question: What OS and what's the build of CS5.5?
    Second question: What effect are you using? There are a bunch of ways to generate particles.
    Last question: if you turn off the effect can you get the layer to fade out? Pressing Alt/Option + t will set a keyframe for opacity on your layer and reveal the keyframe in the time line. Do that, set the value to 0, then move down the timeline a few frames and set the value to 100. This should generate another keyframe. Now move down a few more frames and press Alt/Option + t or change the value for opacity to anything and then back to 100, or copy the previous keyframe and paste to set a 3rd keyframe. Finally move down a few more frames and set the value to 0. You should have 4 keyframes in your tlimeline for opacity. If you want to clean up the layer press Alt/Option + ] to set the out point for the layer.
    Everything should work just fine. Turn on the effect and your layer and the effect should fade out.
    If you want to do something else with the particles, like fade out a particle over the lifetime of the particle we'll need to know which plug-in you're using.

  • Problems with filling out PDF forms

    We have problems with filling out PDF-forms. Aotomatic filling of forms is deactivated and we use the Adobe Reader 11.0.05. The problem is: After some time the inputs are wrong put down in the form. For example: I write 120 and in the form stands 125. We have already extinguished the cache. Thanks for your help in advance.

    You will get that first message when the document has been changed in a way that invalidates the internal digital signature that's applied when a document is Reader-enabled. Certain changes are allowed (e.g., filling fields, commenting, signing) and will not invalidate the signature, but others are not. The exact cause of the change is often hard to track down, but it can be due to font problems, some type of file corruption, or something that Acrobat/Reader attempts to correct when the file is opened/saved. You will also get the message if the users system time is not correct and is currently set to some time before the document was Reader-enabled. It seems best to use the most recent version of Acrobat to enabled the documents and recent versions of Reader to work with them.
    It problem is probably not related to the user using anything in the Sign pane.

  • Has anybody had a problem with greyed out wifi on i phone 4 gs

    Has anybody had a problem with greyed out wifi setting on iphone 4gs

    Forty four in the last week.
    wifi greyed out

  • Problem While Taking out Printout Through ME9F

    Hi,
    I am facing problem while taking out printout of purchase orderthrough ME9F.
    as if i have to take out the printout of any po i have change the printer to LP02 in messages in me22n.
    In messages i hav output type NEUand in that Logical destination is set to LP01.
    Now can any body tell me how can I Set that output type for printer LP02 So that whenever the New Po is created i Don't have to change it's Logical destination type.

    hi,
    FIrstly check NACE
    THen go to MN05 for setting...
    Steps:
    Maintain the o/p type...
    click on the key combination...
    Can maintain at any of them as per your requirement...
    in the next screen,Then change for single vendor or for range of vendors....enter the necessary data...
    Then in the next window, maintain the vendor, function and partner if any, medium etc...and save it...
    Now from next time it'll give you the this maintained o/p type...
    Regards
    Priyanka.P
    Edited by: Priyanka Paltanwale on Oct 22, 2008 10:04 AM

  • Problem in Adding Accessibility Tag to PDF file.

    While adding accessibility tag to the pdf file some extra text content (@) added to the pdf file,  the sample pdf file's are in following link please find the problem.
    Before Add Tags to Document:
    http://uploadingit.com/file/avecc8bshs4s792h/Test2_Before_Add%20Tags%20to%20Document%20in% 20Acrobat%209%20Pro.pdf
    After Add Tag to Document:
    http://uploadingit.com/file/5w09yp78zyc39g7e/Test2_After_Add%20Tags%20to%20Document%20in%2 0Acrobat%209%20Pro.pdf

    Hi,
        while writing report at top-of-page event
        write sy-pagno this will be printed on spool
        and also PDF will have page count .
         report ztest
               line-count 65.
    *after 65 lines top-of-page is triggered and pageno is
    incremented
        top-of-page.
         write sy-pagno.
    Regards
    amole

  • Problems to read out an XML

    Hello together
    I have a problem to read out an XML file with JDOM. I am in charge to read out one attribute of the XML with JDOM. But my XML file has more than one Attribute of the same type. It is repeated more than once... It looks like that...
    <Resolution v="PT15M"/>
                   <Interval>
                        <Pos v="1"/>
                        <Qty v="0"/>
                   </Interval>
                   <Interval>
                        <Pos v="2"/>
                        <Qty v="0"/>
                   </Interval>
                   <Interval>
                        <Pos v="3"/>
                        <Qty v="0.379"/>
                   </Interval>
                   <Interval>
                        <Pos v="4"/>
                        <Qty v="2.453"/>
                   </Interval>
                   <Interval>
                        <Pos v="5"/>
                        <Qty v="0"/>
                   </Interval>
                   <Interval>
                        <Pos v="6"/>
                        <Qty v="0"/>
                   </Interval>
                   <Interval>
                        <Pos v="7"/>
                        <Qty v="1.108"/>
                   </Interval>
                   <Interval>
                        <Pos v="8"/>
                        <Qty v="2.22"/>
                   </Interval>
                   <Interval>
                        <Pos v="9"/>
                        <Qty v="0"/>
                   </Interval>
                   <Interval>
                        <Pos v="10"/>
                        <Qty v="0.247"/>
                   </Interval>
                   <Interval>
                        <Pos v="11"/>
                        <Qty v="0.712"/>
                   </Interval>
                   <Interval>
                        <Pos v="12"/>
                        <Qty v="0.964"/>
                   </Interval>
    Now, I want to read out the Qty from 1 to 6 and I tried it now with an Iterator but it doesn't work...I don't know what the problem is, so please help me...
    I also post the Java File here. I am sorry for y English..
    package FahrplanXML;
    import java.io.File;
    import java.io.IOException;
    import java.util.Iterator;
    import org.jdom.Attribute;
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.JDOMException;
    import org.jdom.input.SAXBuilder;
    public class Saxwer {
         //Variablendeklaration
         private File inFile;
         //Konstruktor
         public Saxwer(File in) {
              this.inFile = in;     
         //Weitergabe der Variablen durch return vorbereiten
         //public String getDtdVersion() {
              //System.out.println (scheduleDtdVersion);
              //return scheduleDtdVersion;     
         public void saxwer() throws JDOMException, IOException {
              //FileAuswahl filename = new FileAuswahl();
                   System.out.println(inFile);
                   SAXBuilder builder = new SAXBuilder();
                   Document doc = builder.build(inFile);
                   /*Elemente holen*/
                   //1.Stufe
                   //Root Element auslesen
                   Element schedulemessage = doc.getRootElement();
                   //2. Stufe
                   //Childs von Root Element auslesen
                   Element messageidentification = schedulemessage.getChild("MessageIdentification");
                   Element messageversion = schedulemessage.getChild("MessageVersion");
                   Element messagetype = schedulemessage.getChild("MessageType");
                   Element processtype = schedulemessage.getChild("ProcessType");
                   Element scheduleclassificationtype = schedulemessage.getChild("ScheduleClassificationType");
                   Element senderidentification = schedulemessage.getChild("SenderIdentification");
                   Element senderrole = schedulemessage.getChild("SenderRole");
                   Element receiveridentification = schedulemessage.getChild("ReceiverIdentification");
                   Element receiverrole = schedulemessage.getChild("ReceiverRole");
                   Element messagedatetime = schedulemessage.getChild("MessageDateTime");
                   Element scheduletimeinterval  = schedulemessage.getChild("ScheduleTimeInterval");
                   Element scheduletimeseries  = schedulemessage.getChild("ScheduleTimeSeries");
                   //3. Stufe
                   // Childs von scheduletimeseries auslesen
                   Element senderstimeseriesidentification = scheduletimeseries.getChild("SendersTimeSeriesIdentification");
                   Element senderstimeseriesversion = scheduletimeseries.getChild("SendersTimeSeriesVersion");
                   Element businesstype = scheduletimeseries.getChild("BusinessType");
                   Element product = scheduletimeseries.getChild("Product");
                   Element objectaggregation = scheduletimeseries.getChild("ObjectAggregation");
                   Element outarea = scheduletimeseries.getChild("OutArea");
                   Element outparty = scheduletimeseries.getChild("OutParty");
                   Element measurementunit = scheduletimeseries.getChild("MeasurementUnit");
                   Element period = scheduletimeseries.getChild("Period");
                   //4. Stufe
                   // Childs von period auslesen
                   Element timeinterval = period.getChild("TimeInterval");
                   Element resolution = period.getChild("Resolution");
                   Element interval = period.getChild("Interval");
                   //5. Stufe
                   // Childs von interval auslesen
                   Element position = interval.getChild("Pos");
                   Element quantity = interval.getChild("Qty");
                   /*Attribute holen*/
                   //Attribute von Root Element (Stufe 1) auslesen (aus XML)
                   String scheduleDtdVersion = schedulemessage.getAttributeValue ("DtdVersion"); 
                   String scheduleDtdRelease = schedulemessage.getAttributeValue ("DtdRelease");
                   //Attribute aus Stufe 2 auslesen (aus XML)
                   String messageidentificationv = messageidentification.getAttributeValue ("v");
                   String messageversionv = messageversion.getAttributeValue ("v");
                   String messagetypev = messagetype.getAttributeValue ("v");
                   String processtypev = processtype.getAttributeValue ("v");
                   String scheduleclassificationtypev = scheduleclassificationtype.getAttributeValue ("v");
                   String senderidentificationv = senderidentification.getAttributeValue ("v");
                   String senderidentificationcodingscheme = senderidentification.getAttributeValue ("codingScheme");
                   String senderrolev = senderrole.getAttributeValue ("v");
                   String receiveridentificationv = receiveridentification.getAttributeValue ("v");
                   String receiveridentificationcodingscheme = receiveridentification.getAttributeValue ("codingScheme");
                   String receiverrolev = receiverrole.getAttributeValue ("v");
                   String messagedatetimev = messagedatetime.getAttributeValue ("v");
                   String scheduletimeintervalv = scheduletimeinterval.getAttributeValue ("v");
                   //Attribute aus Stufe 3 auslesen (aus XML)
                   String senderstimeseriesidentificationv = senderstimeseriesidentification.getAttributeValue ("v");
                   String senderstimeseriesversionv = senderstimeseriesversion.getAttributeValue ("v");
                   String businesstypev = businesstype.getAttributeValue ("v");
                   String productv = product.getAttributeValue ("v");
                   String objectaggregationv = objectaggregation.getAttributeValue ("v");
                   String outareav = outarea.getAttributeValue ("v");
                   String outareacodingscheme = outarea.getAttributeValue ("v");
                   String outpartyv = outparty.getAttributeValue ("v");
                   String outpartycodingscheme = outparty.getAttributeValue ("v");
                   String measurementunitv = measurementunit.getAttributeValue ("v");
                   //Attribute aus Stufe 4 auslesen (aus XML)
                   String timeintervalv = timeinterval.getAttributeValue ("v");
                   String resolutionv = resolution.getAttributeValue ("v");
                   //Attribute aus Stufe 5 auslesen (aus XML)
                   Iterator i = period.getChildren("Interval").iterator();
                   while(i.hasNext()) {
                     Element currentElement = (Element)i.next();
                     Iterator j = currentElement.getAttributes().iterator();
                     System.out.print(j);
                     while(j.hasNext()) {
                          Attribute currentAttribute = (Attribute)j.next();
                       System.out.println("Attribute\t Name: "+currentAttribute.getName()+", Value: "+currentAttribute.getValue());
                   String positionv = position.getAttributeValue ("v");
                   String quantityv = quantity.getAttributeValue ("v");
                   Detailoberflaeche xmluebergabe = new Detailoberflaeche(scheduleDtdVersion, scheduleDtdRelease, messageidentificationv, messageversionv, messagetypev, processtypev, scheduleclassificationtypev, senderidentificationv, senderidentificationcodingscheme, senderrolev, receiveridentificationv, receiveridentificationcodingscheme, receiverrolev, messagedatetimev, scheduletimeintervalv, senderstimeseriesidentificationv, senderstimeseriesversionv, businesstypev, productv, objectaggregationv, outareav, outareacodingscheme, outpartyv, outpartycodingscheme, measurementunitv, timeintervalv, resolutionv, positionv, quantityv);
                   xmluebergabe.grundoberflaechen();
    }Thank you for your help....
    Kind regards
    Roger

    Hello together
    I have a problem to read out an XML file with JDOM. I am in charge to read out one attribute of the XML with JDOM. But my XML file has more than one Attribute of the same type. It is repeated more than once... It looks like that...
    <Resolution v="PT15M"/>
    <Interval>
    <Pos v="1"/>
    <Qty v="0"/>
    </Interval>
    <Interval>
    <Pos v="2"/>
    <Qty v="0"/>
    </Interval>
    <Interval>
    <Pos v="3"/>
    <Qty v="0.379"/>
    </Interval>
    <Interval>
    <Pos v="4"/>
    <Qty v="2.453"/>
    </Interval>
    <Interval>
    <Pos v="5"/>
    <Qty v="0"/>
    </Interval>
    <Interval>
    <Pos v="6"/>
    <Qty v="0"/>
    </Interval>
    <Interval>
    <Pos v="7"/>
    <Qty v="1.108"/>
    </Interval>
    <Interval>
    <Pos v="8"/>
    <Qty v="2.22"/>
    </Interval>
    <Interval>
    <Pos v="9"/>
    <Qty v="0"/>
    </Interval>
    <Interval>
    <Pos v="10"/>
    <Qty v="0.247"/>
    </Interval>
    <Interval>
    <Pos v="11"/>
    <Qty v="0.712"/>
    </Interval>
    <Interval>
    <Pos v="12"/>
    <Qty v="0.964"/>
    </Interval>
    Now, I want to read out the Qty from 1 to 6 and I tried it now with an Iterator but it doesn't work...I don't know what the problem is, so please help me...
    The problem is, that the Iterator doesn't bring out my Quantity Attribute (see part of the xml above). I didn't get any error messages, so I really don't know what the problem is. I am a beginner, so maybe you can help me...
    I also post the Java File here. I am sorry for my English..
                   /*Elemente holen*/
                   //4. Stufe
                   // Childs von period auslesen
                   Element timeinterval = period.getChild("TimeInterval");
                   Element resolution = period.getChild("Resolution");
                   Element interval = period.getChild("Interval");
                   //5. Stufe
                   // Childs von interval auslesen
                   Element position = interval.getChild("Pos");
                   Element quantity = interval.getChild("Qty");
                   /*Attribute holen*/
                   //Attribute aus Stufe 4 auslesen (aus XML)
                   String timeintervalv = timeinterval.getAttributeValue ("v");
                   String resolutionv = resolution.getAttributeValue ("v");
                   //Attribute aus Stufe 5 auslesen (aus XML)
                   Iterator i = period.getChildren("Interval").iterator();
                   while(i.hasNext()) {
                   Element currentElement = (Element)i.next();
                   Iterator j = currentElement.getAttributes().iterator();
                   System.out.print(j);
                   while(j.hasNext()) {
                        Attribute currentAttribute = (Attribute)j.next();
                   System.out.println("Attribute\t Name: "+currentAttribute.getName()+", Value: "+currentAttribute.getValue());
                   String positionv = position.getAttributeValue ("v");
                   String quantityv = quantity.getAttributeValue ("v");
    Thank you for your help....
    Kind regards
    Roger
    Message was edited by:
    superb
    Message was edited by:
    superb

  • EL expressions with c:out tags?

    Hi,
    If EL expressions are normally evaluated and displayed on a page, what is the purpose of enclosing them in <c:out> tags?
    Take the following snippet for example:
    <img src="<c:out value='${initParam.categoryImagePath}${category.name}.jpg'/>"The same snippet without the <c:out> tag produces the same output in a browser:
    <img src="${initParam.categoryImagePath}${category.name}.jpg"I understand that <c:out> also enables you to escape XML content, but if this isn't required, should the <c:out> tag be used? Are there any 'best practice' concerns involved?
    Many thanks for any replies!

    It is for historical reasons.
    The Expression Language EL was originally only available as part of the JSTL tags, ie you could only use it with a <c:out> tag or similar.
    That was JSTL1.0
    As of Servlet2.4/JSP2.0 (eg Tomcat 5) EL expressions became part of the JSP specification, and containers had to evaluate them as runtime expressions.
    That was one of the major changes with JSTL1.1
    By all means if the value doesn't have to be escaped for HTML purposes, then I would say use the expression without the tag.
    BTW your example leads to repetition. Maybe that should be made into a custom tag? <my:img image="${category.name}"/>
    cheers,
    evnafets

  • Remove c:out tag

    Hello
    I am using tomcat 5.0
    In my jsp file, I have to type like this
    Name: <c:out value="${myVariable}"/>I know that I can have something like
    Name: ${myVariable}In the top of jsp, I have
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>How I can remove <c:out ...... />
    Thanks

    Well you open the file in your favorite editor, find the line with the <c:out> you don't want, highlight the first part of it (up to the ${, and hit the key labelled "delete", then highlight the tail part of it,  (from } to the end) and press delete again.
    Or you could use a tool to do a global search and replace.
    But seriously - why do it? What does it hurt? What could it break?
    The <c:out> tag escapes html characters for you, so you ARE changing the functionality of the application by doing this.
    Actually taking a closer look, you are using JSTL1.0 (from the URI)
    If you have a JSP2.0 compatible container (eg Tomcat 5 + ) you should just upgrade to JSTL1.1
    - replace standard.jar and jstl.jar
    - change your import line to <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> (note the subtle addition of /jsp)
    - upgrade the declaration in web.xml to register that it is 2.4, rather than 2.3 (using the new xml schema syntax)
    Cheers,
    evnafets

  • HT4796 Are there any unanticipated problems in carrying out the procedure outlined for 'Windows Migration Assistant'?

    Are there any unanticipated problems in carrying out the procedure outlined in the 'Windows Migration Assistant' instructions?

    One I have seen mentioned a couple of times is it will set up an identical user account on the Mac, which has led to some problems.
    I don't know how to fix this since I haven't used Windows since 1995.

  • Problem with InputSelect Data Tag if there is no register in database

    Hello all,
    I4m working with Oracle JDeveloper 3.2.2 and I have a problem with InputSelect Data Tag.
    When I tried to access a JSP page with this object and there was n't a record at the table, an error occurred.

    All the input tags operate on rows in the cache. Prior to using the input tags, use the Row tag with the 'Create' option to make sure you have a valid row.

Maybe you are looking for

  • Customisation for PO Release (different Values for different Doc Types)

    Dear Experts, I need to configure for PO release procedure where in the Characteristics would be Plant (2 Plants), Doc Type (3 types - Standard PO, Imports PO & Capital PO) and Value (2 stage release: 0-100000 & >100000 INR for Std PO, 0-200000 & >20

  • How do I Family Share in-app purchases?

    How do I Family Share in-app purchases?   The free app only allows certain areas to open. An in-app purchase unlocks the full app capability.  I cannot Family Share the in-app purchase. How do I do this?

  • [Request] Add to Settings - prevent energy saving (monitor/display) in fullscreen view

    Hello it would be nice to have a setting for "prevent energy saving (turn off the display) in fullscreen view" so we don't have to move the mouse every few minutes or to change the energy saving settings if we watch a longer flash video. Thanks Windo

  • Re: Error during upgrade to 12.1.1

    Hi. Im upgrading my application from 11.5.10.2 to 12.1.1 on linux 32 bit server. i Have already upgraded my Database from 10.2.0.5 to 11.2.0.2. Now when im applying driver patch u6678700.drv, the following jobs fails, apstca01.sql     FAILED ceburgrp

  • InDesign File Sizes

    I'm experiencing some strange things with document file sizes in InDesign (CS3 and CS4) I have a document that's 2.6 Mb. When I delete all the content, it stays as 2.6 Mb. When I copy the content to another file, the new file is 1.6 Mb. When I delete