Problem in using request parameters in jstl xml code

hi,
my need is to get a request parameter and use the variable in jstl(xml) select conditions.
my code is ,
<%String txname=request.getParameter("tname");%>
<x:forEach var="fe" select="$doc/transaction/tx[@tname=${txname}]/field">
     <field>ss <x:out select="$fe/@fname"/> </field>
</x:forEach>
i'm using tomcat5.0. I deployed the jstl.jar, standard.jar, jaxen.jar and saxpath.jar in WEB-INF/lib directory.
I able to run other jstl(xml) files which doesn't need any variables from out side.
i used the scirpt for getparameter as i unable to get the code ${param.tname}
help me.
urs
pavan.

Looks like you haven't imported the taglib:
JSTL1.0: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
JSTL1.1: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
You use JSTL1.0 in JSP1.2 containers (eg Tomcat 4)
You use JSTL1.1 in JSP2.0 containers (eg Tomcat 5)
also check this post if you have further troubles. It has basic troubleshooting for JSTL.

Similar Messages

  • Problem in use xmlgen.insertXML to insert XML file to Object Viewse

    I am trying to update XML file to Object View but it failed. Refer to the steps that I was doing.
    1) Use utl_file.get_line to read XML file which I generated (It is no problem)
    2)The xml data is
    <?xml version="1.0" ?>
    - <ROWSET>
    - <ROW num="1">
    <PK_NO>305</PK_NO>
    <ACC_NAME>PAPERS AND CLIPS</ACC_NAME>
    <FROM_NAME>MB METAL PTE LTD</FROM_NAME>
    <MAS_NO>990015</MAS_NO>
    <MAS_DATE>2000-04-07 15:47:52.0</MAS_DATE>
    <CURR_CODE>SGD</CURR_CODE>
    <MAS_CODE>WRFQ</MAS_CODE>
    <REMARK>SADKJAS</REMARK>
    - <LINEITEMLIST_NTAB>
    - <LINEITEMLIST_NTAB_ITEM>
    <ITEM_NO>1</ITEM_NO>
    <STK_C>2506401</STK_C>
    <SP_STK_C>H282828</SP_STK_C>
    <STK_NAME>STICK-ON-NOTES - 11110 1.5, 12 100 SHEET PADS</STK_NAME>
    <UOM>SET</UOM>
    <QTY>10</QTY>
    <SALES_PRICE>95.50</SALES_PRICE>
    <REMARK>SADKJAS</REMARK>
    </LINEITEMLIST_NTAB_ITEM>
    - <LINEITEMLIST_NTAB_ITEM>
    <ITEM_NO>2</ITEM_NO>
    <STK_C>7706001</STK_C>
    <SP_STK_C>H282828</SP_STK_C>
    <STK_NAME>FACESHIELD/EYE PROT CLEAR GLASS WTR PLATE, STANDARD DREW</STK_NAME>
    <UOM>PCS</UOM>
    <QTY>1</QTY>
    <SALES_PRICE>100</SALES_PRICE>
    <REMARK>SADKJAS</REMARK>
    </LINEITEMLIST_NTAB_ITEM>
    </LINEITEMLIST_NTAB>
    </ROW>
    </ROWSET>
    3) From Object View, I generated xml file is
    - <ROWSET>
    - <ROW num="1">
    <PK_NO>2</PK_NO>
    <ACC_NAME>PAPERS AND CLIPS</ACC_NAME>
    <FROM_NAME>MB METAL PTE LTD</FROM_NAME>
    <MAS_NO>990015</MAS_NO>
    <MAS_DATE>2000-06-07 00:00:00.0</MAS_DATE>
    <CURR_CODE>SGD</CURR_CODE>
    <MAS_CODE>WRFQ</MAS_CODE>
    - <LINEITEMLIST_NTAB>
    - <LINEITEMLIST_NTAB_ITEM>
    <ITEM_NO>1</ITEM_NO>
    <STK_C>2506401</STK_C>
    <STK_NAME>STICK-ON-NOTES - 11110 1.5,X2 12 100 SHEET PADS</STK_NAME>
    <UOM>SET</UOM>
    <QTY>1</QTY>
    <SALES_PRICE>10</SALES_PRICE>
    </LINEITEMLIST_NTAB_ITEM>
    </LINEITEMLIST_NTAB>
    </ROW>
    - <ROW num="2">
    <PK_NO>4</PK_NO>
    <ACC_NAME>ABC</ACC_NAME>
    <FROM_NAME>VBF</FROM_NAME>
    <MAS_NO>99200</MAS_NO>
    <MAS_DATE>2000-01-04 00:00:00.0</MAS_DATE>
    <CURR_CODE>SGD</CURR_CODE>
    <MAS_CODE>DSDS</MAS_CODE>
    <REMARK>WRFQ</REMARK>
    <LINEITEMLIST_NTAB />
    </ROW>
    </ROWSET>
    3) I use INSTEAD OF trigger for Object View to insert the data to database.
    I got the message is:
    ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException:5.
    Anybody can give me the advise for that.
    null

    If you have the ftp server at 8080 running (9iR2 only) the simples way is to upload it to the database through that server. You can then do whatever you want using the xdburitype() procedure.
    Below is an excerpt of a script I use to register XML schema's (I've got some very long ones, about 150K). It should work with "any" file..
    begin
         dbms_xmlschema.registerSchema (
              schemaURL => 'http://www.agralin.nl/WebQuery/ns/&1',
              schemaDoc => xdburitype('/age/&1..xsd'),
              local => TRUE,
              genTables => FALSE,
              genbean => FALSE,
              genTypes => TRUE,
              force => FALSE,
              owner => 'AGE'
    end;

  • Problem in accessing an ABAP variable in XML code

    Hi all,
    How do we access an abap variable in an xml code..
    Thanks in advance.

    Durai,
    sorry abt the duplicate post.....
    I am looping the internal table....... i even tried using a workarea......it is still not working.....
    My table is holding the values( Checked it while de-bugging)......but i think its not taking up the values in the XML code........
    I tried out the following.....
    <Point>
    <Value type="x"> <%= workarea-field > </Value>
    <Value type="y"> <%= workarea-field > </Value>
    </Point>
    But its not working................Is my syntax right......
    null

  • Problem in using module AF_Modules/StrictXml2PlainBean in xml to file scena

    Hi Expert ,
    I have problem in converting XML to CSV in the following structure.
    MT_EAN_MASTER
           -E1WBB01
                  -E1WBB03
                           -EAN_MASTER
                                    -Item_no
                                    -Item_desc
                                    -ean
    I am using AF_Modules/StrictXml2PlainBean in receiver communication channel.
    modulekey               parametername                                         parametervalue
    abc                          EAN_MASTER.fieldSeparator                    , (comma)
    abc                          recordTypes                                              EAN_MASTER
    I have to use 3 level hierarchy structure because of a requirement where an item can have multiple ean.
    CSV is not getting generated as it is giving me an error in RWB as
    The element nesting level for the structure EAN_MASTER is too deep (reference: 3 levels, found: 4 levels): com.sap.aii.af.modules.conversion.xml2plain.ConversionException: The element nesting level for the structure EAN_MASTER is too deep (reference: 3 levels, found: 4 levels) at XML element MT_EAN_MASTER,E1WBB01,E1WBB03,EAN_MASTER
    Please provide some solution to generate a CSV with end seperator as newline.

    For this scenario,
    First I have used FCC for the same structure and CSV is also generated, but the CSV when opened with NOTEPAD it is not showing endSeparator , i.e my first row last element is concatenated with second row first element,there is no row seperator.
    But the same when opened with WordPad,we can see the data, row wise
    now the destination system open the file in notepad only.
    for that i tried using this Bean specified above but it is not fulfilling the requirement.
    The parameters I have mentioned in FCC are as follows:
    Recordset Structure : E1WBB01,E1WBB03,EAN_MASTER
    NAME                                      VALUE
    EAN_MASTER.fieldSeparator     ,   (comma)
    EAN_MASTER.endSeparator     'nl'
    E1WBB03.fieldSeparator            ,
    E1WBB03.endSeparator             'nl'
    E1WBB01.fieldSeparator            ,
    E1WBB01.endSeparator             'nl'
    Please provide a solution,why thr endSeparator is not shown in notepad.
    Thanks

  • Problem when use multiple c:import jstl on jsp on Tomcat 5.0

    I have jsp that use multipe import jstl tag. I was able to run on the Tomcat 5.5.9. When I deploy it on Tomcat 5.0.28, it is not working.
    For example:
    <c:import url="/jsp/page1.jsp" />
    <c:import url="/jsp/page2.jsp" />
    I look at Tomcat cache directory and I only see page1.jsp compiled but not page2.jsp. I look at the catalina.out log file and the error message shows below. I thought JSTL is working for Tomcat 5.x up. Do anyone have any idea? Please help.
    Thanks.
    java.lang.ArrayIndexOutOfBoundsException: 204
         at org.apache.jasper.compiler.JspReader.peekChar(JspReader.java:164)
         at org.apache.jasper.compiler.JspReader.isSpace(JspReader.java:357)
         at org.apache.jasper.compiler.JspReader.isDelimiter(JspReader.java:440)
         at org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:405)
         at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1285)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
         at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(Unknown Source)
         at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(Unknown Source)
         at org.apache.jsp.jsp.offermgmt.ajax.ajaxPromotion_jsp._jspx_meth_c_import_1(ajaxPromotion_jsp.java:218)
         at org.apache.jsp.jsp.offermgmt.ajax.ajaxPromotion_jsp._jspService(ajaxPromotion_jsp.java:70)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

    Can you access page1 and page2.jsp correctly on their own?
    ie could the problem be with page2.jsp rather than the import command?

  • Problem with using Request dispatcher in my login,jspx

    Hi
    I am using Jdev 11g and new to adf.
    I am trying to work with adf security.
    I designed a login.jspx page and loginproxy.jspx accoridng to the following link
    http://groundside.com/blog/DuncanMills.php?title=j2ee_security_a_jsf_based_login_form&more=1&c=1&tb=1&pb=1
    I have added this code in login.java
         ExternalContext ectx =    FacesContext.getCurrentInstance().getExternalContext();
         HttpServletRequest request =    (HttpServletRequest)ectx.getRequest();
         HttpServletResponse response =    (HttpServletResponse)ectx.getResponse();
         RequestDispatcher dispatcher =   request.getRequestDispatcher("loginnew.jspx");
    RequestDispatcher dispatcher =   request.getRequestDispatcher("j_security_check");
        request.setAttribute("j_username", username);
        request.setAttribute("j_password", password);
         dispatcher.forward(request,response);
    When it tries to execute dispatch statement, it goes in an infinite loop and finally gets me a stack overflow error and also in the cosole it prints series of exceptions like
    ActionListenerImpl><processAction> javax.servlet.ServletException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class oracle.adf.controller.ControllerException
    javax.faces.el.EvaluationException: javax.servlet.ServletException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class oracle.adf.controller.ControllerExceptionI have to validate the user against database hence i created a login.jspx with a backing bean so that i can access the username and password and validate the credentials against db and redirect user to the appropriate page.
    The functionality i want to implement is very simple but i just cant get it to work using adf security.
    any help is highly appreciated.
    thanks
    at

    Hi Pedja,
    Thanks for the prompt reply.
    I have been following the link you mentioned to create ADF security and successfully implementedthe first part where if i directly give any internal page url it redirects me back to login page.
    Instead of using weblogic-sql authenticator, i wanted to manually authenticate the user in loginbean.java where i check the username passowrd against the db.
    I had also implemented the method to access username,password mentioned in the following thread
    Re: ADF security on my jspx  page as login page
    Insted of using authentication.login, i am calling the db method to do the validation.
    The thing is after my db validation it does redirect me to the success page(menu.jspx). but when i click links on menu.jspx it redirects me back to login page.
    so i understand that user is not yet set in the session.
    I am stuck at the point how do i code the login.jspx, currently my login.jspx does not have any j_security_check and i think this is what is creating the problem.
    while searching for adding jsecurity in jspx i landed on the blog of 2006 and started using that.
    Can you please point me to some link which explains how to code login.jspx , i have been trying hard for couple of days.
    Thanks again
    ash

  • How to get the page request parameters in Command Button code

    Hi everyone,
    I am new to JSF and working on some Command Buttons. I put my java code via Edit Event, it works fine. But I don't know how to get some parameters from HttpServletRequest.
    Can anyone give some guidance? It would be much appreciated.
    Mike

    Thanks a lot for your tip. Unfortunately I could not open the link you provided due to some network issue.
    Yes, I intend to get some parameters from URL. I did try to put your code and get the parameters predefined in the URL, however I got the null returned. By the way, I put the following code in the page source part and it works. Just don't know how to get the value being passed to the command button event code.
    <%
    String userID = request.getParameter("u");
    System.out.println("this is from head - the userID is :: " + userID);
    %>
    Thanks again and hope you could give me further advice.

  • Problem when using IRoomInfoReader/IRopomUsers in SDN example code

    Hi I am working on EP 6.0 SP2 P31, KMC 6.0 SP2 P31 and making Room development with NW Developer Studio. From https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/knowledge management and collaboration developers guide.html  I got the room extension example in com.sap.netweaver.kmc.roomextension.zip. I just add a ON_AFTER_CREATE_ROOM and code for handling this event before adding
    IRoomInfoReader roomInfo = (IRoomInfoReader)context.getValue(RoomExtensionParameter.ROOM_INFO);
    or
    IRoomUsers roomUsers = (IRoomUsers)context.getValue(RoomExtensionParameter.ROOM_INFO);
    (in order to retrieve the newly created room’s owner's id)
    The example code is working, the extensions are visible, they can be added to our room template and room can be created successfully with this template.
    After adding one of these two commands program stops just before this command line and there is no error message recorded in the log file.
    Does this KMC release version support using these two interfaces? Thanks for help.
    Best regards.
    Wang

    Hi Wang,
    as a lucky guy working on SP2, you have all logs at hand - did you check both \usr\sap\<id>\j2ee\j2ee_00\cluster\server\managers\console_logs\...error.log as well as \usr\sap\<id>\j2ee\j2ee_00\cluster\server\managers\log\portal\logs\knowledgemanagement.x.log ?!
    Did you try to log extensively? try/catch every Exception?
    Both interfaces do exist on SP2 P31.
    Did you check which class context.getValue(RoomExtensionParameter.ROOM_INFO) in fact produces?! (If not null, ask for .getClass().getName().)
    Hope it helps
    Detlev

  • Build XML Document in Servlet use JSTL xml tags in JSP

    Is it possible to build an XML document either org.w3c.dom.Document or preferably org.jdom.Document in a Servlet and pass it as a Bean or Bean property to a JSP and use it in the JSTL xml tags? If so how is it done? I don't want to write the document out to a file.
    Thanks
    Mark

    Both DOM and JDOM allow you to serialize XML to an output stream. Use the StringWriter as the output stream and when its finished you will have the XML in a String. Put the String in the Request scope and your JSP should be able to see it.

  • Problem in using SAX parser.

    Hai All,
    I have got a problem in using SAX parser.
    My XML looks like this:
    <authorizer>
    <first-name>HP</first-name>
    <last-name>Services</last-name>
    <phone>800-22-1984</phone>
    </authorizer>
    <destination>
    <first-name>John</first-name>
    <last-name>Doe</last-name>
    <company>John Doe Enterprises, Inc.</company>
    <department>Manufacturing</department>
    <phone>800-555-1234</phone>
    <address>
    <street-one>1654 Peachtree Str</street-one>
    <street-two>Suite Y</street-two>
    <city>Atlanta</city>
    <province>GA</province>
    <country>US</country>
    <postal-code>30326</postal-code>
    </address>
    </destination>
    my part of SAX parser code is:
    public void startElement (String name, AttributeList attrs)
    throws SAXException
    accumulator.setLength(0);
    public void characters (char buf [], int offset, int len)
    throws SAXException
    accumulator.append(buf, offset, len);
    public void endElement (String name)
    throws SAXException
    if (name.equals("first-name") )
    firstname=accumulator.toString().trim();
    if (name.equals("last-name"))
    lastname=accumulator.toString().trim();
    My problem is that i have to store the values of first-name and last-name.
    but i have that in both
    <authorizer> </authorizer> Tag and
    <destination> </destination>
    I need to retrive authorizer's firstname,lastname and
    destination's firstname and lastname.
    what i mean is i need to store authorizerFirstName,authorizerLastName
    destinationFirstname and destinationLastname.
    Pls let me know how to do that.
    Thanks in advance.
    Pooja.

    hi pooja,
    I think you are using DataHandler for parsing. Its deprecated. try using contentHandler . You can get the value of the element at the beginning. say for example
    <firstname>sdfs</firstname>
    the startElement will be firstname
    the next method that it invokes will be characters method which has the text associated with the element. I am sending a sample code for your problem. try using it .
    boolean m_boolinAuth = false;
    boolean m_boolinDest = false;
    boolean m_bAuthFName = false;
    boolean m_bAuthLName = false;
    public void startElement(String namespaceURI, String elementName, String qName, Attributes atts)
    //does the logic for startElement
    if(qName.equals("Authorization"))
    m_boolinAuth = true;
    m_boolinDest = false;
    else if(qName.equals("Destination"))
    m_boolinDest = true;
    m_boolinAuth = false;
    if(qName.equals("firstname"))
    m_bFirstName = true;
    if(qName.equals("lastname"))
    m_bLastName = true;
    public void characters(char[] ch, int start, int length)
    //does the logic for characters.
    String str = new String(ch,start,length);
    if(m_bFirstName)
    if(m_boolinAuth)
    m_strAuthFirstName =str;
    else if(m_boolinDest)
    m_strDestFirstName = str;
    m_bFirstName = false;
    if(m_bLastName)
    //same as first name case;
    }

  • Problem  in using COLLECT statment

    Hi experts,
    getting problem in using COLLECT statement.  attaching my code below.
    LOOP AT it_final1 INTO wa_final1.
         LOOP AT it_final INTO wa_final WHERE vagrp = wa_final1-vagrp AND verwmerkm = wa_final1-verwmerkm.
           wa_final1-anzwertg = wa_final-anzwertg.
           COLLECT wa_final1 INTO it_final1.
         ENDLOOP.
         CLEAR: wa_final1, wa_final.
       ENDLOOP.
    here , i want to use collect statement only for  "anzwertg" field from internal table. but 2 more fields also getting  compressed .
    attaching screen shot
    here, original_input and max fields also getting compressed.
    could anybody please help me out in this.
    Thanks in advance.
    Regards
    satish

    Hi satish....
    collect statement works based on char fields..
    by default it will taken char fields as a key fields .........
    if any char field is repeated then corresponding numc values will be added....
    other wise it will act as a APPEND statement......
    Here in ur code there is no char field then how it will caliculate that values...
    just check it once..
    Regards,
    Vamsi....

  • 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?

  • Problem in Getting host name by using request.getHostName() on solaris 9

    Hi there,
    I'm trying to get the machine name of the system from which the request was initiated by using request.getHostName() on Solaris 9 but it is giving me the IP Address of the machine which har sent the request to the server and the same thing is running on Windows and AIX platform. Can anyone tell me any solution to this problem.
    Thanks in advance.
    Nitin Jain

    Hi Nitin,
    Following is the specification for getRemoteHost()
    "Returns the fully qualified name of the client that sent the request, or the IP address of the client if the name cannot be determined. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST." I think the same would be true for getHostName().....
    So, this can be one possiblity why ur given IP.

  • Problem for using oracle xml parser v2 for 8.1.7

    My first posting was messed up. This is re-posting the same question.
    Problem for using oracle xml parser v2 for 8.1.7
    I have a sylesheet with
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">.
    It works fine if I refer this xsl file in xml file as follows:
    <?xml-stylesheet type="text/xsl" href="http://...../GN.xsl"?>.
    When I use this xsl in pl/sql package, I got
    ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    After I changed name space definition to
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> in xsl file, I got
    ORA-20100: Error occurred while processing: XSL-1019: Expected ']' instead of '$'.
    I am using xml parser v2 for 8.1.7
    Can anyone explain why it happens? What is the solution?
    Yi

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Element's dont have text content, they [b]contain text node children.
    So instead of trying to setNodeValue() on the element, construct a Text node and use the appendChild method on the element to append the text node as a child of the element.<HR></BLOCKQUOTE>
    Steve,
    We are also creating an XML DOM from java and are having trouble getting the tags created as we want. When we use XMLText it creates the tag as <tagName/>value rather than <tagName>value</tagName>. We want separate open and close tags. Any ideas?
    Lori

  • Overriding SPMetal Defaults by Using a Parameters XML File

    hi everybody,
    I have a datatable
    Employee below :
    FullName Single line of text
    Age
    Number
    After use SPMetal to generate entities, i have
    EmployeeItem below:
    FullName string
    Age
    double?
    I want Age is Integer so i use "Overriding SPMetal Defaults by Using a Parameters XML File" :
    <?xml version="1.0" encoding="utf-8"?>
    <Web AccessModifier="Public" xmlns="http://schemas.microsoft.com/SharePoint/2009/spmetal">
    <List Name="Employee" Type="Employee">
    <ContentType Name="Employee" Class="Employee">
    <Column Name="FullName" />
    <Column Name="Age" Type="Integer" />
    <ExcludeOtherColumns/>
    </ContentType>
    </List>
    <ExcludeOtherLists />
    </Web>
    When generate it have error "There is an error in XML doc" at :
    <Column Name="Age" --error here-- Type="Integer" />
    Would you like help me?

    Hi,
    I came across the same error when testing your code in my environment.
    Anyway, if we convert the Number field to Integer, there will be a risk of damaging our data due to the conversion accuracy.
    So if you want to use the Integer type of data, a workaround is that you can convert the double type of data to Integer type programmatically after retrieving the data you want.
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for