Help needed in JSP Expression Language

Hi all,
I have been working for JSP Expression Language Sample execution since past 5 days. I am using the application server as "Jboss Server" and web server as "Tomcat".
I have been included the jsp-api.jar file in my lib directory of application server as well as source folder's lib directory.
When i am trying to build the source code, i am getting this build error.
[javac] D:\eclipse\workspace\esolvProject\development\src\com\esolv\taglibs\
web\classes\SetSupport.java:186: cannot resolve symbol
[javac] symbol : method getExpressionEvaluator ()
[javac] location: class javax.servlet.jsp.PageContext
[javac] ExpressionEvaluator evaluator = pageContext.getExpressionEvaluator();
In my jsp-api.jar , there are two classes called,
PageContext and JspContext, Both are abstract classes.
PageContext inherits JspContext class. JspContext class have the method getExpressionEvaluator() , returns ExpressionEvaluator.
PageContextImpl - class . it has been called internally when we are trying to call PageContext class. In PageContextImpl class, there is one comment before, the method's definition. that is
" Since JSP 2.0 "
But we have the JSP 2.0 version. But it won't work.
Please help me ont this.
Thanks in Advance,
Natraj

>
If the pblm was due to setting the classpath.
The error should be showed for all files in the jar
file.
why i am getting the error for particular method ?
it is accessing the other methods of same class
'JspContext' . but it is not accessing that method.
Thats my question.
Just check that your .jar file is 2.0 compliant and that you do not have any other jars(for servlet or jsp api) in the classpath.
Probably you have an older version of .jar file in your path. So the errors will appear only for those methods that have been added since 2.0, all other methods would compile fine.
Please tell me the jar files to work out the
expression language. so that i can cross check my
list of jars.Hmmm...I dont use jboss. In tomcat the jar file name is jsp-api.jar. But it would have been the same even for jsp1.1, going by jar file names wouldnt help. Just look at your cp as if with a microscope to identify redundant jars.
cheers,
ram.

Similar Messages

  • Help me!!!. Please help me fix bug Expression Language Injection in Portal

    hi all,
    I'm trying to fix bug Expression Language Injection vulnerabilities on oracleas portal, error scanning tool using Acunetix Web Vulnerability Scanner ver 8.0 build 20120209
    I tried to include in the portlet filters special characters to detect signs of attack websites. For example an attack details: URL encoded GET input product_id was set to ${99240+11490}
    But the way I tried above fails, scan tools Acunetix identified a bug that is high
    I hope to soon get the help :)
    I thank very much
    Jackie
    E: [email protected]

    hello Erik Janssen,
    Thank you very much. I've tried it that way but when scanned by Acunetix Web Vulnerability Scanner tool ver 8.0 still errors appear Expression Language Injection.
    I describe to you more clearly understand. For example an attack details:
    URL encoded GET input product_id was set to *${99240+11490}*
    * Request
    GET /portal/page/portal/listpro?product_id=%24%7b99240+11490%7d
    I built a special filter characters in the portlets so that if the value retrieved from the parameter contains special characters are predefined Raise Error, but still not successful bug fix.
    Look forward to receiving your help. Thank you very much :)
    Jackie
    E: [email protected]

  • JSP/Expression Language in Web AS 6.40

    Hello
    We are trying to port a Servlet/JSP Application from Tomcat to SAP Web AS. It's based on Spring/Hibernate and we are heavily using JSP with Expression Language and JSTL.
    The first problem i had with the "c:forEach" tag, was solved by using the "core" taglib instead of the "core_el" taglib (which means JSTL without Expression Language seems to work)
    As i found out SAP Web AS 6.40 complies to the J2EE 1.3 Standard. Therefore it supports JSP 1.2 and not JSP 2.0 with Expression Language EL.
    Despite not supporting the current JSP Standard, is there any possibility to get JSP Pages with Expression Language running on Web AS 6.40?
    If no, is it planned to support JSP 2.0 in future versions of Web AS and when is it scheduled?
    Thanks for answers
    Sigmar

    Sigmar,
    there is already released light version of J2EE engine including J2EE1.4...You can have a look at the begin page of the SDN, or directly download it by link :
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/64919927-0b01-0010-e9bf-d1570518023d [original link is broken]
    As bonus it includes Java EE 5 preview
    Regards
    Bojidar

  • JSP expression language

    Hello,
    When I edit .JSP file with JDeveloper 10.1.3.1, the tag is underlined with the yellow line
    <jsp:include page="${param.content}" />. I am sure it's very easy to fix, does anyone know how?

    Hi, Chris Muir:
    The <jsp:include> tag documentation says the page attribute requires round brackets
    around the value, as follows:
    <jsp:include page="({$param.content})"/>That understanding is wrong. You are referring to the following documentation in JDev online help, right?
    JSP syntax <jsp:include page="(relativeURL | <%= expression %> | ${ Expression })"
    [flush="true | false"]
    [jsp:param]>
    </jsp:include> Here the round brackets "( )", together with the vertical lines "|" is just to indicate several choice are available. The page attribute does not require round brackets. If you do include round brackets, they will become part of the value for the page attribute, which is certainly not what one want. The same can be said about the square brackets around flush or jsp:param.
    Alternatively a yellow/orange line in the JDev editor usually indicates a warning, not an
    error. On the left hand side of the editor, is the code assist icon showing (a lightbulb),
    and selecting it, does it reveal any useful info?
    Alternatively (x 2) on the right hand side of the editor, is there a yellow box showing,
    and hovering your mouse over the yellow box for a second or two, does any useful
    information show?These are nice suggestions. Still another alternative. Hover your mouse right above the yellow line, a small message window pops up. It shows the relevant reason for the yellow line. That at least works for me.
    Moreover, the warning is, "${param.content} is not found under root C:\jdev\studio10131\jdev\mywork\Application1\Project1\public_html\". It is just a warning. This warning is as much as JDev can do since ${param.content} is a runtime expression that can not be resolved at design time. One can safely ignore it as long as one remembers to create the alluded page.

  • Help needed in jsp tags

    I am trying to design a view page that retrieves records from database,as the data may contain tags like<p>,<b> I am using encodeHtmlTag function to display them as it is .but some text needs to be appeared in bold but if i give the same,b. as input while viewing it is displayed as",b>" since i am using encodeHtmlTag it encodes all the tags .How i can solve this issue.?
    as a way i tried using "[ " b " ]" as the tag for bold option ,but i am not able to write proper function to recognize that charater and change that tag to ",b>".
    can anyone please help me in this.

    Thanks a Lot.Since I am at my beginning phase of jsp i am not able to I will be more thankful to you if recode my following code so that the bold option works fine with Italics.
    with the following code it encodes all the"<" characters so that if i want to make some part of text as bold while retrieving from database its not working how i can achieve this with the following codes.(r34.jsp).
    j11.jsp is the index page from which it forwards to next page r34.jsp which is the display page i.e it retrieves data from database and displays them.i need help in this page only.
    j11.jsp:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.sql.*,java.util.*"%>
    <% 
    StringBuffer cname = new StringBuffer();
    StringBuffer pname = new StringBuffer();
    String nn ="\n\n";
    String body1="null";
    int cnamesize=0;
    int pnamesize=0;
    Vector nnn = new Vector();
    Vector nnp = new Vector();
    Vector nn1 = new Vector();
    String selectedclient="null";
    String prjname1,prjid;
    String xname = request.getParameter("client")!=null?request.getParameter("client"):"";
    //String xname1 = request.getParameter("pname1")!=null?request.getParameter("pname1"):"";
    String xname2 = request.getParameter("prjid")!=null?request.getParameter("prjid"):"";
    //session.setAttribute("prjnamerec", xname1);
    %>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>Select the Client</title>
        <script language="javascript">
          function calljsp(){
            document.forms[0].action='r34.jsp';
         </script>
      </head>
      <body background="rlogo1.bmp">
        <img src="rheader.bmp" width="990" height="150"></img>
      <center>
      <h2>Login Department</h2>
      </center>
        <form name="clientselection" method=post>
         <h2>Client Selection </h2>
         <table>
            <tr>
                  <marquee><%=xname%></marquee>
              <td>Client :
                <select name="client">
                  <option value="">SELECT</option>
                  <%  try{
                  Class.forName("com.mysql.jdbc.Driver");
                  Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3307/r", "root", "root");
                  Statement statement = connection.createStatement();
                  ResultSet rs = statement.executeQuery("select client from client");
                  while(rs.next())
                      String cname1 = rs.getString(1);
                      nnn.addElement(cname1);
                  int j1 = nnn.size();
                  for(int x = 0;x<j1;x++){
                  String clientName = nnn.elementAt(x)+"";
                  %>
                  <option value="<%= clientName %>">
                    <%=   clientName %>
                  </option>
                  <%  }%>
                </select>
                <input type="submit" value="View Projects"/>
              </td>
            </tr>
          </table>
          <% 
          if(request.getParameter("client")!=null){
                  ResultSet rs1 = statement.executeQuery("select distinct(proj_name),proj_id from projects where client='"+xname+"'");
                  while(rs1.next()){
                    nn1.addElement(rs1.getString(1));
                    nnp.addElement(rs1.getString(2));
          pnamesize=nn1.size();
          for(int p = 0;p<pnamesize;p++){
              prjname1=nn1.elementAt(p)+"";
              prjid=nnp.elementAt(p)+"";
          %>
          <table>
            <tr valign="top" colspan="2">
              <td>
                <br/>
                 <input type="radio" name="prjid"  value="<%=prjid%>"><%=prjid%> &nbsp&nbsp <b><%= prjname1%> </b>
                 <input type="submit" value="Go" onClick="calljsp()"/>
              <br/>
              </td>
            </tr>
          </table>
          <% if(request.getParameter("pname1")!=null){
               //ResultSet rs2 = statement.executeQuery("select * from csrmail where prjname='"+xname1+"'  ");
                 // while(rs2.next()){
            }%>
          <%}%>
         <%}%>
         <% connection.close();
          }catch(SQLException e){
            e.printStackTrace();
          %>
        </form>
      </body>
    </html>
    r34.jsp
    <%!String encodeHtmlTag(String ma){
                                int malength= ma.length();
                          StringBuffer mailbuffer=new StringBuffer();
                              for(int m=0;m<malength;m++)
                               char c=ma.charAt(m);
                                  if(c=='<')
                                      mailbuffer.append("<");
                                  else if(c=='>')
                                       mailbuffer.append(">");
                                   else if(c=='&')
                                       mailbuffer.append("&");
                                    else if(c=='"')
                                       mailbuffer.append(""");
                                    else if(c==' ')
                                       mailbuffer.append(" ");
                                      else if(c=='\n')
                                       mailbuffer.append("<br>");
                                        else if(c=='[')
                                                  c = ma.charAt(m+1);
                                               if(c=='/')
                                                  c=ma.charAt(m+2);
                                                  char d= ma.charAt(m+3);
                                                  if(c=='b'&& d==']')
                                                       mailbuffer.append("</b>");
                                                    m=m+4;
                                                  else if(c=='I'&& d==']')
                                                         mailbuffer.append("</I>");
                                                        m=m+4;
                                                      c = ma.charAt(m);
                                                       if(c=='[')
                                                       c = ma.charAt(m+1);
                                                       if(c=='/')
                                                             c=ma.charAt(m+2);
                                                           char d2= ma.charAt(m+3);
                                                          if(c=='b'&& d2==']')
                                                              mailbuffer.append("</b>");
                                                            m=m+4;
                                              else if(c=='b')
                                               if(ma.charAt(m+2)==']')
                                                    mailbuffer.append("<b>");
                                               m=m+3;
                                               else if(c=='I')
                                               if(ma.charAt(m+2)==']')
                                                    mailbuffer.append("<I>");
                                               m=m+3;
                                             c=ma.charAt(m);
                                              mailbuffer.append(c);
                                      else
                                       mailbuffer.append(c);
                                    return mailbuffer.toString();
                                  }%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.sql.*,java.util.*,import java.util.StringTokenizer"%>
    <%
    String xname = request.getParameter("client")!=null?request.getParameter("client"):"";
    //String xname1 = request.getParameter("pname1")!=null?request.getParameter("pname1"):"";
    String xname2= request.getParameter("prjid")!=null?request.getParameter("prjid"):"";
    Vector nnn = new Vector();
    Vector nn1 = new Vector();
    Vector nn2 = new Vector();
    Vector nn3 = new Vector();
    Vector nn4 = new Vector();
    Vector nn5 = new Vector();
    //Vector nn6 = new Vector();
    StringBuffer sb = new StringBuffer();
    StringBuffer redt=new StringBuffer();
    StringBuffer qudt=new StringBuffer();
    StringBuffer retime=new StringBuffer();
    StringBuffer qutime=new StringBuffer();
    //StringBuffer nn6=new StringBuffer();
    StringTokenizer stok1 ;
    String cquery="null";
    String creply="null";
    String cqdate="null";
    String mdate="null";
    String crdate="null";
    ResultSet rs=null;
    ResultSet rs1=null;
    %>  
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>Records Display</title>
          <script language="javascript">
             function calljsp1(){
                    document.forms[0].action='j11.jsp';
         </script>
      </head>
      <body background="rlogo1.bmp">
       <img src="rheader.bmp" width="990" height="150"></img>
        <form name="RecordsDiplay" method=post>
                  <%String thisclntname12 = xname;%>
                  <%//String thisprjname12 = xname1;%>
                  <%String thisprjid12 = xname2;%>
                    <%//out.println(thisprjname12);%>
                <b>ProjectID :</b>
                    <%out.println(thisprjid12);%>
                     <table bgcolor="rgb(206,206,255)">
            <tr>
              <td>
                      <br>
                         <br>
                  <%
                    try
                        //String thisprjname = xname1;
                         String thisclntname = xname;
                         String thisprjid = xname2;
                         Class.forName("com.mysql.jdbc.Driver");
                         Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3307/r", "root", "root");
                         /*Statement statement = connection.createStatement();
                         ResultSet rs = statement.executeQuery("select mails,mdate from csrmail where proj_id='"+thisprjid+"' ");*/
                   PreparedStatement ps=connection.prepareStatement("select mails,mdate from csrmail where proj_id=?");
                   ps.setString(1,thisprjid);
                   ps.executeQuery();
                   rs=ps.getResultSet();
                         while(rs.next())
                            String cname1 = rs.getString(1);
                            String mdatte = rs.getString(2);
                            nnn.addElement(cname1);
                            nn5.addElement(mdatte);
                           int j1 = nnn.size();
                           for(int x = 0;x<j1;x++)
                              StringBuffer mmdt=new StringBuffer();
                              StringBuffer mmtime=new StringBuffer();
                              String mdt1 =  nn5.elementAt(x)+"";
                              String mdt=mdt1.substring(8,10);
                              String mmonth=mdt1.substring(5,7);
                              String myear=mdt1.substring(0,4);
                              String mhh=mdt1.substring(11,13);
                              String mmm=mdt1.substring(14,16);
                              String mss=mdt1.substring(17,19);
                              mmdt.append(mdt+"-"+mmonth+"-"+myear);
                              mmtime.append(mhh+":"+mmm+":"+mss);
                              String mails1 = nnn.elementAt(x)+"";
                      %>
                            <b>Mail Posted Date</b>
                               <%out.println(mmdt);%>
                            <b>Mail Posted Time :</b>
                               <%out.println(mmtime);%>
                            <br>
                            <br>
                            <b>  <style="font-family:verdana;font-size:80%;color:EE82E">Mail :  </b>
                               <%out.println(encodeHtmlTag(mails1));%>
                            <br>
                      <br>
                       <%}%>
                        </table>
            </tr>
              </td>  
                       <br>
                        <%/*ResultSet rs1 = statement.executeQuery("select * from csrquery where proj_id='"+thisprjid+"' ");*/
            PreparedStatement ps1=connection.prepareStatement("select * from csrquery where proj_id=?");
                   ps1.setString(1,thisprjid);
                   ps1.executeQuery();
                   rs1=ps1.getResultSet();
               while(rs1.next())
                          cquery = rs1.getString(2);
                          cqdate = rs1.getString(4);
                          creply=rs1.getString(5);
                          String nd = "No Reply";
                          crdate = rs1.getString(7);
                            if(rs1.wasNull())
                               nn4.addElement(nd);
                             else
                                nn4.addElement(crdate);
                          nn1.addElement(cqdate);
                          nn2.addElement(cquery);
                          nn3.addElement(creply);
                          int q=nn1.size();
                            for(int j=0;j<q;j++)
                                {%>
                    <%//out.println(thisprjname12);%>
                   <b>ProjectID :</b>
                    <%out.println(thisprjid12);%>
                   <br>
                   <br>
                                 <% String qudt1 = nn1.elementAt(j)+"";
                                  String cqdtt=qudt1.substring(8,10);
                                  String cqmonth=qudt1.substring(5,7);
                                  String cqyear=qudt1.substring(0,4);
                                  String cqhh=qudt1.substring(11,13);
                                  String cqmm=qudt1.substring(14,16);
                                  String cqss=qudt1.substring(17,19);
                                  qudt.append(cqdtt+"-"+cqmonth+"-"+cqyear);
                                  qutime.append(cqhh+":"+cqmm+":"+cqss);
                                  String qu = nn2.elementAt(j)+"";
                                 String re = nn3.elementAt(j)+"\n\n";
                                  String b= qu;
                                 String b1 = re;
                              stok1 = new StringTokenizer (re,"\n");
                                //System.out.println(creply);
                                  String redt1 =  nn4.elementAt(j)+"";              
                                   if(redt1.equals("No Reply")){
                                      redt.append(redt1);
                                         retime.append(redt1);
                                   else
                                     String redtt=redt1.substring(8,10);
                                      String remonth=redt1.substring(5,7);
                                      String reyear=redt1.substring(0,4);
                                    String rehh=redt1.substring(11,13);
                                      String remm=redt1.substring(14,16);
                                      String ress=redt1.substring(17,19);
                                     redt.append(redtt+"-"+remonth+"-"+reyear);
                                     retime.append(rehh+":"+remm+":"+ress);
                                   } %>
                              <br>
                               <table>      
                                <tr>
                                 <td>
                                   <b>Query Posted Date</b>
                               <%out.println(qudt);%>
                                   <b>Query Posted Time :</b>
                               <%out.println(qutime);%>
                                   <br>
                               <b style="font-family:verdana;font-size:80%;color:green">Query :</b>
                               <%out.println(encodeHtmlTag(b));
                               %>
                         </td>
                       </tr>
                     </table>
                             <br>
                                <table>
                                <tr bgcolor="rgb(174,174,200)">
                                 <td>
                                   <b>Last Reply Posted Date</b>
                               <%out.println(redt);%>
                                   <b>Last Reply Posted Time :</b>
                               <%out.println(retime);%>
                                   <br>
                                 <%
           while(stok1.hasMoreTokens())
             out.println(encodeHtmlTag(stok1.nextToken()));%>
             <br>
         <% }
                                    int qudtsize = qudt.length();
                                    qudt.delete(0,qudtsize);
                                    int qutimesize = qutime.length();
                                    qutime.delete(0,qutimesize);
                                  int redtsize = redt.length();
                                   redt.delete(0,redtsize);
                                   int retimesize = retime.length();
                                    retime.delete(0,retimesize);
                                   %>
                              <br>
                    <br>
    </td>
                       </tr>
                     </table>
                  <% }
              connection.close();
            }catch(SQLException e)
            e.printStackTrace();
          %>
          <input type="submit"  value="Back" onClick="calljsp1()"/>
        </form>
      </body>
    </html>

  • Help Needed with Airport Express

    Hi All,
    I have recently purchased a new Airport Express with AirTunes and installed the Airport Setup on my laptop as provided on the CD. I am using the Windows Wireless Zero Configuration service to connect to the wireless networks.
    I am able to connect to my internet connection (MTNL Broadband service) using the AEX, but to my surprise Airport Setup Assistant finds the AEX in the scan but is not able to connect to it. However in the background I can see the network connection is established.
    Also the Aiport Admin Utility is not able to even find the AEX in the scan. However if I type the IP address of the AEX on the 'Other' option then it makes a successful connection and show me the dialog box with the AEX properties.
    Would appreciate if anybody could help.
    Thanks,
    Gaurav
    IBM Thinkpad T43 Laptop Windows XP Pro SP2 installed

    Most/many cable modems require that they be reset whenever you switch the Ethernet connection from one device to another. This usually means that you need to power off the cable modem for a minute or two. When the cable modem powers up it will detect the new device and talk to it.
    Some cable modems have a reset button. Some cable modems have a small internal battery which must be removed to do the reset.
    Sometimes the cable modem must be turned off overnight to reset equipment back at the ISP.
    Have you don this? I didn't see mention of it in your post.

  • Help needed regarding regular expressions

    hello
    i need to write a program that recieves a matematical expression and evaluates
    it...in other words a calculator :)
    i know i need to use regular expressions inorder to determine if the input is legal or not ,but i'm really having trouble setting the pattern
    the expression can be in the form : Axxze2223+log(5)+(2*3)*(5+4)
    where Axxze2223 is a variable(i.e a combination of letters and numbers.)
    where as: l o g (5) or log() or Axxx33aaaa or () are illegal
    i tried to set the pattern but i got exceptions or it just didnt work the way i wanted it .
    here's what i tried to do at least for the varibale form:
    "\\s*(*([a-zA-Z]+\\d)+)*\\s*";
    i'm really new to this...and i can't seem to set the pattern by using regular expressions,how can i combine all the rules to one string?
    any help or references would be appreciated
    thanks

    so i'll explain
    let's say i got token "abc22c"(let's call it "token")
    i wan't to check if it's legal
    i define:
    String varPattern = "\\s*[a-zA-Z]+\\d+\\s*";If you want to check a sequence of ASCII characters, longer than one, followed by a single digit, the whole possibly surrounded by spaces -- yes.
    >
    now i want to check if it's o.k
    so i check:
    token.matches(varPattern);
    am i correct?Quite. It's better to compile the Pattern (Pattern.compile(String)), create a java.util.regex.Matcher (Pattern#matcher(CharSequence)), and test the Matcher for Matcher#matches().
    (Class.method -> static method, Class#method -> instance method)
    >
    now i'm having problem defining pattern for log()
    sin() cos()
    that brackets are mandatory ,and there must be an
    expression inside
    how do i do that?First, I'd check the overall function syntax (a valid name, brackets), then whether what's inside the brackets is a valid expression (maybe empty), then whether that expression is valid for that function (presumably always?).
    I might add I'm no expert on parsing, so that's more a supposition than a guide.

  • Help needed in Regular Expression

    I have been give a task to replace all table_name (Emp) in Procedure p1 to Table_name(Employee).
    Can anyone help me ?
    Regards,
    Prathamesh

    Hi, Prathamesh,
    REGEXP_REPLACE ( txt
                , '(^|\W)emp(\W|$)'
                , \1employee\2'
                )will return a copy of txt with the full word 'emp' replaced by 'employee'.
    For example, if txt is:
    emp foo a=emp  temp emp_name emp.bthe expression above will return
    employee foo a=employee  temp emp_name employee.b 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statments) and the results you want from that data.

  • Help need on XPath expression

    Hi All,
    I have xml file like
    - <aob:AOB-XML xmlns:aob="aob.kana.com" aob:file="\\training3\iq\data\system\knowledgebases\2404\2404.aob" aob:encoding="unicode">
    - <o:Folder xmlns:o="cbr 1.aob.kana.com" aob:objid="O172">
    <o:Title aob:lang="German">Problems</o:Title>
    <o:Author_Creation_Information o:Date_and_Time="2004-04-23T12:53:17+05:30" />
    <o:Author_Modification_Information o:Author="O221" o:Date_and_Time="2004-04-23T12:53:29+05:30" />
    - <o:Problem aob:objid="O187">
    <o:Title aob:lang="German">Software Problem</o:Title>
    <o:Author_Creation_Information o:Date_and_Time="2004-04-23T12:53:17+05:30" />
    <o:Author_Modification_Information o:Author="O221" o:Date_and_Time="2004-04-23T12:54:14+05:30" />
    <o:Contained_in_Folders o:Title="O172" />
    </o:Problem>
    - <o:Problem aob:objid="O230">
    <o:Title aob:lang="German">Database Problem</o:Title>
    <o:Author_Creation_Information o:Author="O221" o:Date_and_Time="2004-04-23T12:53:29+05:30" />
    <o:Author_Modification_Information o:Author="O221" o:Date_and_Time="2004-04-23T12:53:50+05:30" />
    <o:Contained_in_Folders o:Title="O172" />
    </o:Problem>
    </o:Folder>
    </aob:AOB-XML>
    from the xml I need to write the Xpath expression to get the o:Title based on o:Author.
    Thanks
    Babu H

    please consider this the actual xml file
    - <aob:AOB-XML xmlns:aob="aob.kana.com" aob:file="\\3\iq\data\system\knowledgebases\2404\2404.aob" aob:encoding="unicode">
    - <o:Folder xmlns:o="cbr 1.aob.kana.com" aob:objid="O172">
    <o:Title aob:lang="German">Problems</o:Title>
    <o:Author_Creation_Information o:Time="2004-04-23T12:53:17+05:30" />
    <o:Author_Modification_Information o:Author="O221" o:Time="2004-04-23T12:53:29+05:30" />
    - <o:Problem aob:objid="O187">
    <o:Title aob:lang="German">Software Problem</o:Title>
    <o:Author_Creation_Information o:Time="2004-04-23T12:53:17+05:30" />
    <o:Author_Modification_Information o:Author="O221" o:Time="2004-04-23T12:54:14+05:30" />
    <o:Contained_in_Folders o:Title="O172" />
    </o:Problem>
    - <o:Problem aob:objid="O230">
    <o:Title aob:lang="German">Database Problem</o:Title>
    <o:Author_Creation_Information o:Author="O221" o:Time="2004-04-23T12:53:29+05:30" />
    <o:Author_Modification_Information o:Author="O221" o:Time="2004-04-23T12:53:50+05:30" />
    <o:Contained_in_Folders o:Title="O172" />
    </o:Problem>
    </o:Folder>
    </aob:AOB-XML>

  • ?? Invalid Cursor State - Help needed in JSP.

    OK...here's the problem I have a page that loads the values from a database into input fields so as users could edit and update the data into the respective tables.
    But the problem is i get this error which I have never come accross before. So any help clarifying this would be much appreciated.
    The stack trace :
    500 Internal Server Error
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
         at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3307)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5492)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:399)
         at /abb/jspages/editCosting.jsp._jspService(/abb/jspages/editCosting.jsp.java:40) (JSP page line 13)
         at com.orionserver[Orion/2.0.2 (build 11157)].http.OrionHttpJspPage.service(.:70)
         at com.evermind[Orion/2.0.2 (build 11157)]._ay._rkb(.:5741)
         at com.evermind[Orion/2.0.2 (build 11157)].server.http.JSPServlet.service(.:31)
         at com.evermind[Orion/2.0.2 (build 11157)]._cub._pod(.:521)
         at com.evermind[Orion/2.0.2 (build 11157)]._cub._bmc(.:177)
         at com.evermind[Orion/2.0.2 (build 11157)]._ax._ltc(.:666)
         at com.evermind[Orion/2.0.2 (build 11157)]._ax._uab(.:191)
         at com.evermind[Orion/2.0.2 (build 11157)]._bf.run(.:62)By the way I am using Microsoft Access as the DB and Orion Server 2.0.2.

    sorry guys...It was me who's the stupid one gocha. Actually there error was caused by a typo i made in the rs.next codings.
    Since i just copied it from another well functioning coding i didn't check for typos in the coding. Maybe i accidentally pressed something on the keyboard.
    Thanks for the help guys..I really appreciate it.

  • The JSP Expression Language

    Developing and Using Functions
    iam new to use the jsp ..
    iam learning how to use taglib.
    user defined functions
    tell me steps to write user defined function using taglib
    iam trying run the Code sample 3
    in the given url..
    http://java.sun.com/developer/technicalArticles/javaserverpages/JSP20/

    Read this: http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html
    =======================================================
    To use these tags, you need to have 4 files:
    1. Your .java file with the function ( the add() method in your case )
    2. A .tld file, the taglib descriptor, to hold the 'function descriptor' as you call it. This maps the tag to the Java method
    3. The web.xml, it has to have entries that tell the container ( Tomcat? ) where to find the TLD for a particular URI (http://jakarta.apache.org/tomcat/jsp2-example-taglib in your case )
    4. The JSP page with the taglib directive as you've already made.
    =======================================================
    How it works is:
    1. the JSP page taglib directive tells the container that the prefix 'my' will refer to the taglib identified by the URI "http://jakarta.apache.org/tomcat/jsp2-example-taglib".
    2. The container must now know which tag library is being referred to. The container, during startup, tracks all the entries in the web.xml and maps the URI with the location ( taglib-uri and taglib-location ).
    3. The location points to your Java class: one.Compute
    =======================================================
    My doubt:
    1)where i have to place the function descriptorThis is to be part of a .tld file, the taglib descriptor. Let's assume you save this TLD as myTaglib.tld and place it in /WEB-INF. Your entry will be like this:
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    web-jsptaglibrary_2_0.xsd"
    version="2.0">
    <tlib-version>1.0</tlib-version>
    <function>
            <description>add x and y</description>
            <name>add</name>
            <function-class>jsp2.examples.el.Compute
                </function-class>
            <function-signature>int
                add(java.lang.String,java.lang.String)
                    </function-signature>
        </function>
    </taglib>------------------------------------------------------------------------------------------------
    2)<%@ taglib prefix="my"
    ri="http://jakarta.apache.org/tomcat/jsp2-example-tagl
    ib %>in the url just i have to mention that url else
    anything i have to edit it.This is fine, as long as the URI value matches the taglib-uri element in your web.xml
    You web.xml should have an entry :
    <taglib>
    <taglib-uri>
    http://jakarta.apache.org/tomcat/jsp2-example-taglib
    </taglib-uri>
    <taglib-location>
    /WEB-INF/myTaglib.tld
    </taglib-location>
    </taglib>
    3)i had placed the compute .java program inside
    package one is it necessary to place that program
    in separate package else i can place it along other
    java files.
    ) is i have to include any jar or TLD files in my
    project ..All your loose classes ( .class files ) go into /WEB-INF/classes. They should be in folders representing the package heirarchy. So in your case, you've not declared the package in the code given. So I'm assuming you have
    package one; in your .java file.
    So your class should go into /WEB-INF/classes/one/Compute.class
    All JARred classes ( in the form of .jar archives ) should be put into the /WEB-INF/lib folder.
    The post is a bit messy but I think I've managed to get the basics right :)

  • Help Needed in Application Express

    Hi Experts ,
    We recently installed APEX , we want to allow users to create applications, as I am new to this I got these doubts :
    1.How we can migrate developed applications to production? Is there a way to turn this migration over to Production Control?
    2.How we can limit the size of the tables that users create? ( Because we got some big tables with 3 billion records , so we dont want the users to create big tables from the base tables )
    3.Do the results of their reports get saved?If so,do we have control over that? (size, length of time saved )
    Please help me in this regards...
    Thanks
    Venu Kadiyala

    Hi Venu,
    <p>
    1.> You have to export the application in development and import it back in production. Every time it will ask for application ID, you can use the exiting application ID as of dev, or assign a new ID or replace an exiting application in production. I would recommend use auto assign a new ID for the first time migration and then onwards choose the third option and provide existing ID so that production URL would remain same.
    <p>
    For exporting follow the path
    <p>
    <b> Home>Application Builder>Application #>Export / Import>Export</b>
    <p>2.> I don’t think you can limit the size of a table directly, but you can write PL-SQL blocks and display appropriate message to the users.
    <p>
    3.> Reports don't get saved. You can have the functionality where you can download the reports in excel or print PDF.
    Regards,
    Manish
    Message was edited by:
    Manish Jha

  • Help needed with an AIR language packaging problem

    I have a game that includes resources for the Hebrew language, however the <supportedLanguages/> tag supports only ISO 639-1 languages, and Hebrew is not listed; in fact I got a compiler/packaging error when I tried to use "he".  Currently I am getting a notice in Google play that warns me this game might not be packaged correctly: "You translated the store listing into Hebrew but not the APK."   Is there a way around this problem, perhaps some manual editing of some files somewhere?  I'd like to publish the same app to the Apple app store, I imagine they will be even less lenient there.
    We are using Flash Builder 4.7 and AIR 3.7 on Windows 7 x64 SP1.  Any assistance would be appreciated.

    It can be done for iOS. Check here: http://forums.adobe.com/message/5140906
    Don't know about Android.

  • Urgent help needed in JSP...

    Hi,
    I have a variable declared in one of the JSP files. How can I access that variable from another JSP page?
    For ex:
    jsp1.jsp
    <%
    String hello = "Hello world!";
    %>
    jsp2.jsp
    <h3>The string is <%= hello %></h3>
    I know this code wont work. But how can I fix it?
    Please let me know your solutions as soon as possible.
    Thank you,
    Rajesh

    Thanx a lot.
    I did understand how to use session to store a java object. Actually, I wanted to use primitive data types... well, I could work around that.
    But, could you please explain what you mean by storing in the application context?
    Thanks a lot,
    Rajesh

  • Help needed in JSP application

    Hi... I am implementing one web application. The main file is index.html whch contain frame where following options are there.
    1. Login 2. Line Count. 3. Leave Balance 4. Extra. 5. Log out. but wht I want is, Once User logged in the options from 2to 5 must be visible..But first time only login option should be available..
    Hope you understand...and please tell me how can i do it
    Wether I have to create 2 page..one for login and another for rest of the options or some other way to do so??
    Thanks inadvance
    Regards
    Chintan

    There is a general feeling that scriptlets in JSP pages are a bad thing.
    They can make the page difficult to follow and understand.
    The syntax used above was from the JSTL - JSP Standard Template Library : http://java.sun.com/products/jsp/jstl/
    The JSTL tags provide a lot of functionality that previously was done in scriptlets.
    eg Looping, conditional branching, formatting, XML handling.
    Benefits: You don't have to constantly switch between java and html with <% %> tags. The code ends up looking much nicer.
    Also it is aimed at page authors, who don't necessarily understand java, but will understand using tags like this.
    Myself, I like it because of the first reason - it just makes the page so much easier to read when everything is in tags, as opposed to constantly switching from java to html and back - particularly with braces.
    You have to agree:
    <c:if test="${params.choice == 'yes'}">
      You said YES!
    </c:if>looks much better than
    <% if (request.getParameter("choice").equals("yes")){ %>
      You said YES!
    <% } %>Cheers,
    evnafets

Maybe you are looking for

  • HD Scaling to 960x540@30 fps or 1280x720@24 fps?

    Wondering what the best way is to get source material (1080i or 720p, 60 fps) onto the ATV with the least quality degredation, two target file options being 960x540@30 fps and 1280x720@24 fps. Based on a little bit of fooling around, seems like forme

  • Cannot find file when starting jnlp from browser

    First of all, im not a web guru, so sorry for my weak knowledge on that part. I have a swing application packed in a war file. In the root of war file i put my jnlp, html that links to jnlp, and jar file. (everything created with NetBeans) But there

  • Can't load iTunes and Apps in my iPhone after upgrading to OS5.

    So, I updated my iPhone late last night to the new IOS5.  It downloaded everything and went through all the permutations my iPhone went through with each OS upgrade. But after the update and sync were complete, I no longer have any Apps on the phone

  • Able to use % to query data in Some self service pages but in some pages we

    Able to use % to query data in Some self service pages but in some pages we get error " Search string cannot start with % "

  • TDS certificate No

    Hi I have one doubt with TDS certificate no, After executing the TDS cert with J1INCERT transaction, we can go with print preview or print option. if we select directly with print option, it will generate the TDS cert no.. But if we go with print opt