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>

Similar Messages

  • Need help on Flex JSP tag library

    I am new to Flex and currently developing portlets where I
    need to integrate Flex into JSP pages. According to various
    documents from Adobe and other online discussions, this can be done
    with Flex JSP tag library. It appears that the taglib used to be a
    separate package that you could download but no longer available (I
    was only able to find a few broken links). Instead, the library is
    now part of the LiveCycle DS product according to Adobe. However, I
    have downloaded LiveCycle DS and couldn't find the necessary taglib
    in the package. Your help will be highly appreciated.

    I'm trying to do the same thing you are. Its mentioned that
    the library is part of LifeCycle DS but I couldn't find it in there
    either.
    Here's a site I found where you can download
    FlexModule_j2ee.zip It includes some instructions too.
    http://opensource.adobe.com/wiki/display/flexsdk/Downloads
    Here are some other links which may be helpful.
    http://livedocs.adobe.com/flex/3/html/help.html?content=apache_2.html
    http://labs.adobe.com/wiki/index.php/LiveCycle_Data_Services:Setting_up_an_SDK,_Compilers, _and_Flex_Builder
    http://download.macromedia.com/pub/labs/flex_mod_apache/flex_mod_apache.pdf

  • Urgent help needed for XML Tags using XMLForest()

    Folks
    I need some urgent help regarding getting use defined tag in your
    XML output.
    For this I am using XMLElement and XMLForest which seems to work fine
    when used at the SQL prompt but when used in a procedure throws and error
    SQL> Select SYS_XMLAGG(XMLElement("SDI",
                                       XMLForest(sdi_num)))
         From sdi
         where sdi_num = 22261;- WORKS FINE
    But when used in a procedure,doesnt seem to work
    Declare
        queryCtx  DBMS_XMLQuery.ctxType;
        v_xml     VARCHAR2(32767);
        v_xmlClob CLOB;
        BEGIN
        v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
                                             XMLFOREST(sdi_num)))
        From sdi
        where sdi_num = 22261';
        queryCtx :=DBMS_XMLQuery.newContext(v_xml);
        v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
        display_xml(v_xmlClob);
    End;
    CREATE OR REPLACE PROCEDURE  display_xml(result IN OUT NOCOPY CLOB)
    AS
         xmlstr varchar2(32767);
         line varchar2(2000);
    BEGIN
         xmlstr:=dbms_lob.SUBSTR(result,32767);
         LOOP
         EXIT WHEN xmlstr is null;
         line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
         dbms_output.put_line('.'||line);
         xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
         END LOOP;
    end;
    SQL> /
    .<?xml version = '1.0'?>
    .<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
    XML tag name.</ERROR>
    PL/SQL procedure successfully completed.
    SQL>HELP is appreciated as to where I am going wrong?

    Hi,
    if you want to transform something to something else, you should declare, what is your source.
    I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
    Kind regards,
    Hendrik

  • 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

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

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

  • 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

    I am having a jsp page.. Now i am displaying a message "Updation success" after this i have to wait for 3 seconds and the page should close automatically

    By the way, the word "updation" does not exist AFAIK.Perhaps it's time for a dictionary updation.

  • Justifications needed for using tags in JSP, Please reply

    Hi forum
    My question is to those java people who have also done JSP. I m sound in java server side (servlet programming), now I have asked by my project manager to do server side programming in JSP using tagLibraries (as these are used by those ppl who didnt have much java knowledge). I have worked inserver side java, then my question is y should I start working on tags,
    On the other hand I can do all the work in java embedding in JSP (on some extent, seperated by diffrent helper/util classes to reduce the thickness of JSP page).
    so I want to ask u ppl that should a java programmer needs to use tag libraries to code a JSP page, however he can code it in java directly.
    I will feal great pleasure if u will write ur opinions and help me to ease my life.
    thanx in advance
    Best Regards
    Tahir

    You should use tag libraries whenever you can because:
    1) They increase code re-useability. You can insert the same tag in many pages using just a few lines to do complex tasks, as opposed to writing a lot of scriptlet code in each JSP.
    2) Enhance your ability to seperate logic from display. Everything in your tags is logic. Everything in your JSP is display - with the tags bridging the logic to the display.
    3) Make the JSPs cleaner and easier to maintain. They read easier with tags than with a lot of scriptlets. Non-java people can be used to update the look and feel of the web page, or to debug the HTML later on, relieving the Java programmers for the tag work, or other jobs more suited to them.
    4) Your boss said to do tags, so do tags.

  • I need help proving the date tag on a photo stored in my iPhoto is from the date it was sent to my iphone/date it was imported into iphoto - and that it is NOT the date the photo was actually taken.  Please help!

    I need help proving the date tag on a photo stored in my iPhoto is from the date it was sent to my iphone/date it was imported into iphoto - and that it is NOT the date the photo was actually taken.   I recieved a photo via text on my iphone and then I synced my iphone to my macbook and now it is in iphoto.  I already know that the date on the photo per the tag that shows up on it in iphoto is NOT the date the photo was actually taken.  I need article or literature or something confirming the tag is from when it was sent to the iphone and/or when it was imported.  I greatly appreciate some assistance!

    All I am trying to do is find something on a forum board or article etc stating that the the date showing in iphoto could be the date it was imported or synced or sent to me and not the actual date taken.
    The date on the photo could be anything because you can edit the date with iPhoto or any of 100 apps, free and paid for. So, the date on the photo will prove nothing, I'm afraid.
    Regards
    TD

  • Help Needed Tagging Complex Tables

    I am often asked to create accessible versions of PDFs for clients that contain complex tables -- e.g., merged and/or blank cells, multiple levels of subcategory headings. Are there any online resources that might help me understand (a) IF it is possible to create accessible versions of these tables and, if so, (b) HOW to tag them. In the ideal world, we would go back to the original document and revise the table, but that's not always possible.
    For example, a document I am working on currently includes a table that looks something like this:
    Category
    Period 1
    Period 2
    FTE
    $
    FTE
    $
    A. First Heading
        1. First Subhead
            a. Topic A
    34
    45
            b. Topic B
    54
    63
    Subtotal
    108
       2. Second Subhead
           a. Topic A
    etc.
    I understand how to tag the "Period 1" and "Period 2" headings as column headings that span 2 columns, but I'm not clear on how to handle the blank cells and/or the subheadings. Sorry for such an open-ended questions, but I'm not sure where to look - all the documentation I've seen seems to address fairly simple tables. I am using Acrobat XI for Mac.
    Any guidance would be greatly appreciated. Thank you!

    Yes, it is possible to create accessible versions of the these tables. There are several possible solutions.  In the example above, you are correct that Period 1 and Period 2 need to be tagged as <TH> with Span = 2 Column. Scope also needs to be set to Column.  FTE and $ also need to be tagged as TH with Scope = Column. All the cells in Column 1 (A. First Heading, 1. First Subhead, etc.) are <TH> with Scope = Row. 
    Because this is a complex table you need to Associate the table content with these headings using <ID> tags. 
    This is unfortunately where things can get a little time consuming.  The process can be done within Acrobat using the Touch Up Reading Order (TOR) tool (Accessibility Tool Panel). To briefly summarize -- Select the TOR, select the Table, and click the Table Button on the TOR Menu to open up the Table Editor.  The TOR Menu will disappear, and the table will be visible. You can click on individual cells, right click and select Cell Properties. 
    Select one of the header cells, right click and then select Table Cell Properties. There you will see the ID, which is usually something memorable like TD_08934_121.  Changes this to something meaningful like PERIOD_1 and P1_FTE. The name must be unique within the file. 
    Click OK to save and exit the Table Cell Properties window.
    Using the TOR select all of the content cells beneath that header and right click to open the Cell Properties.  Acrobat will let you select more than one cell by using the Shift Key, if there are no conflicting values in Cell Properties. Note: At times you may need to work one cell at a time.
    Once the Table Cell Properties is open, click the plus next to Associate Header Cell IDs and select the appropriate Heading ID that you defined above.
    Repeat until all the content cells are associated with their appropriate column headings, subheadings and row headings.
    That's method 1. 
    Method 2 would be to use the CommonLook plug-in.  Adding Table Cell IDs is CommonLook's strong point, but the price is high and there is a learning curve. And I've experienced some troublesome issues involving borders and shading in some files.  Still if you have Commonlook available it can be a REAL timesaver for tagging complex tables.
    Lastly, there are some tricks and workarounds that would make the structure of this table simple and therefore accessible without all of this.  If you are experienced  working in the Tags Panel in Acrobat. In the example above you could convert the first row of content  Headings Period 1 and Period 2 to Artifacts and then entirely delete that row from the table within the tags panel,  Then add alternative text to the second row of headings so FTE will always read as "Period 1 FTE" or Period 2 FTE" and so forth. Some purists may object to this method, but it would work.
    NOTE: Any of these methods require further checking with a screen reader to ensure the tables are recognized by tables and no mistakes were made in assigning the headings to the cells and I would also check to make sure any blank cells read as "Blank" as they may be mistagged in the tags panel by the authoring application (e.g., MS Word). 

  • Help! writing japanese using jsp tag extension

    Hello Group !
    I'm having problems implementing a simple jsp tag extension.
    I've written a written a short code that is invoked in my tag (see below).
    The code goal is to write two japanese letters. However, all I get are two
    single-byte letters which my browser displays as '?'.
    What should I do to make Weblogic write japanese and not Latin ?
    Should I dynamically mess with the Locale ??
    Any help would be highly appriciated.
    Here's my piece of code:
    public class myBlock extends javax.servlet.jsp.tagext.BodyTagSupport {
    private void parseTagBody() throws IOException, JspException
    ServletResponse response = (ServletResponse) pageContext.getResponse();
    response.setContentType("text/html;charset=EUC_JP");
    pageContext.getOut().write(38498);
    pageContext.getOut().write(39745);
    pageContext.getOut().flush();
    Best,
    Tal Moshaiov

    dataTable might help.
    [example 1|http://www.javabeat.net/tips/46-hdatatable-java-server-faces-jsf.html]
    [example 2|http://www.jsftoolbox.com/documentation/help/12-TagReference/html/h_dataTable.html]

  • Jsp tags list needed

    Hi, please tell me where can I find list of all JSP tags with description.
    Thanks.

    Hi, The following links provide enough stuff abt JSP.
    http://jsptags.com/docs/tutorials/index.jsp
    http://jsptags.com/docs/index.jsp
    C U...

  • Help needed to run JSTL 1.1 in Tomcat 6.0.16

    Hi All,Help needed to run JSTL 1.1 in Tomcat 6.0.16. I am trying to run the example given in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html The example tries to connect to MySQL database from JSP using JSTL and JNDI Datasource.I am running the example using Eclipse 3.4.2 using Sysdeo plugin to start and stop Tomcat server from Eclipse IDE.
    My web.xml file has <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    </web-app>
    and test.jsp has proper taglib directives
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    I have placed the jstl.jar and standard.jarof the jakarta-taglibs-standard-1.1.2.zip under E:\Deepa\workspace\DBTest\WebContent\WEB-INF\lib directory also placedcontext.xml file under E:\Deepa\workspace\DBTest\WebContent\META-INF and the content of context.xml is as below
    <Context path="/DBTest" docBase="DBTest"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="deepa" password="mysql" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>
    </Context>
    Now while running the example, Eclipse creates one DBTest.xml file under C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost
    which has the following line:
    <Context path="/DBTest" reloadable="true" docBase="E:\Deepa\workspace\DBTest" workDir="E:\Deepa\workspace\DBTest\work" />
    I am getting the following error when running http://localhost/DBTest/WebContent/test.jsp
    in Browser:
    <HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
    org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
    org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
    org.apache.jasper.compiler.Parser.parse(Parser.java:138)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    In the Tomcat Server console, I am getting the following error:
    INFO: Server startup in 7295 ms
    May 20, 2009 6:36:48 AM org.apache.jasper.compiler.TldLocationsCache processWebDotXml
    WARNING: Internal Error: File /WEB-INF/web.xml not found
    May 20, 2009 6:36:48 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application
    what is the problem with my code?
    When running the same example, by creating a local server in Eclipse(creating new Server connection pointing to same Tomcat 6.0 installation) it runs fine without any error.

    Hi evnafets,
    Wow, very helpful information, great insight into working of Eclipse. Thanks a lot.
    I have one more question. I have a context.xml file under {color:#0000ff}E:\Deepa\workspace\DBTest\WebContent\META-INF{color} folder and that has the Resource element to connect to MySQL database:
    {code{color:#000000}}{color}<Context path="/DBTest" docBase="DBTest" debug="5" reloadable="true" crossContext="true">
    <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="deepa" password="mysql" driverClassName="com.mysql.jdbc.Driver"
    {color:#0000ff}url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>{color}
    {color:#0000ff}</Context>{color}As usual when running application in local Tomcat server of Eclipse, this data source works fine. But when I run the application on Tomcat, by starting Sysdeo plugin from Eclipse, the DBTest.xml file created in C:\Tomcat 6.0\conf\Catalina\localhost has the context entry as<Context path="/DBTest" reloadable="true" docBase="E:\Deepa\workspace\DBTest\WebContent" workDir="E:\Deepa\workspace\DBTest\work">
    </Context>The<Resource> element I have specified in the context.xml of \WebContent\META-INF folder is not taken into account by Tomcat and it gives the following error:May 21, 2009 5:20:04 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException_: Cannot create JDBC driver of class '' for connect URL 'null'"
    _at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(_QueryTagSupport.java:276_)
    at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(_QueryTagSupport.java:159_)
    at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(_test_jsp.java:113_)
    at org.apache.jsp.test_jsp._jspService(_test_jsp.java:66_)
    at org.apache.jasper.runtime.HttpJspBase.service(_HttpJspBase.java:70_)
    at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_)
    at org.apache.jasper.servlet.JspServletWrapper.service(_JspServletWrapper.java:374_)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(_JspServlet.java:342_)
    at org.apache.jasper.servlet.JspServlet.service(_JspServlet.java:267_)
    at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_ApplicationFilterChain.java:290_)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationFilterChain.java:206_)
    at org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapperValve.java:233_)
    at org.apache.catalina.core.StandardContextValve.invoke(_StandardContextValve.java:191_)
    at org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve.java:128_)
    at org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve.java:102_)
    at org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineValve.java:109_)
    at org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.java:286_)
    at org.apache.coyote.http11.Http11Processor.process(_Http11Processor.java:845_)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(_Http11Protocol.java:583_)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(_JIoEndpoint.java:447_)
    at java.lang.Thread.run(_Thread.java:619_)
    {code}
    So to overcome this error I had to place the <Resource> element in DBTest.xml under C:\Tomcat 6.0\conf\Catalina\localhost {color:#000000}and then it works fine. {color}{color:#ff0000}*Why is the context.xml file in META-INF not considered by Tomcat server using Sysdeo Plugin?*
    *Thanks,*
    *Deepa*{color}
    {color}
    Edited by: Deepa76 on May 26, 2009 9:32 PM

  • How to get the values of an Array using JSP Tags

    Hey guys,
    I need some help. I've splited a String using
    fn:split(String, delim) where String = "1,2,3,4" and delim is ,
    This method returns an Array of splited Strings. how do i get the values from this array using jsp tags. I don't wanna put java code to achive that.
    Any help would be highly appreciated
    Thanks

    The JSTL forEach tag.
    In fact if all you want to do is iterate over the comma separated list, the forEach tag supports that without having to use the split function.
    <c:set var="list" value="1,2,3,4"/>
    <c:forEach var="num" items="${list}">
      <c:out value="${num}"/>
    </c:forEach>The c:forTokens method will let you do this with delimiters other than a comma, but the forEach tag works well just with the comma-delimited string.

Maybe you are looking for

  • How to activate licence after purchase and reception of serial number

    I am still in the trial period and now bought the software. When entering the serial number after clicking on button for activation of the licence I get message serial number unknown. I registered the product on my account in the cloud with the same

  • Printing slow after Snow Leopard Upgrade

    Hi! Newbie here! I recently upgraded my 2007 iMac to Snow Leopard and as a result my Canon BJC-2100 printer has slowed to a crawl. It seems the software adjusted the print quality to the sharpest setting but this also slowed the process way down. I d

  • Correcting Restore Point

    Hi, Running SQL Server 2008 R2.  We have applications that we maintain for clients on several different servers.  Recently, it was discovered that a member of the team was not using copy-only backups when taking backups of client databases to transit

  • Spry accordeon - all tabs must be closed in browser

    Hi, I made an accordeon with only pictures and I need to know where I can change the setting to close the first tab. So that you only see all the tabs and no content. When the visitor clicks on a tab it needs to open. The accordeon works but the firs

  • Component allocation for operations

    Hi Friends, I have 5 components for one finished material.When i create the routing for that material all components are assigned for first peration .But i want 3 components for first operation 2 components for second operation and one component for