Calendars in JSP's

Can anyone give me clues as to putting a calendar on my
JSP page with functionality. I want to be able to select values from
this calendar. Tutorials, hints etc anything please.

Hi,
If you are not submitting anything from calander, then I think a calander in an applet is best solution. But you can have it ready-made u have to prepare it, GUI.

Similar Messages

  • Can any one give me hint how to create(dsplay) calendar in jsp 1.2

    can any one give me hint how to create(dsplay) calendar in jsp 1.2
    friends
    i wants to display calendar (not the date) in tabular way please give me hint how to create it

    Hi,
    i would just add my question cos it looks similar , how can i add calendar of the whole year and let the user browse and select it
    thanX in advance

  • Problem in embedd ing calendar in jsp using struts framework

    hi
    i am working on one application which needs date as ainput and have to store in database. i have embedd one calendar coming in popup but it is working with mozila not in internet explorer. plz give me some suggestion to put this calendar on my jsp.
    thanx
    Gyan

    gyan.poddar wrote:
    but it is working with mozila not in internet explorerSounds like a Javascript problem rather than JSP/Java problem.
    If this Javascript is generated by some JSP tag, then I would report it at the website/forum/mailinglist of the taglibrary in question. If this Javascript is just customized or some other 3rd party script, then either fix it or report it at their own website.

  • Chinese character Display for Date from Gregorian calendar in JSP

    Hi
    I am doing internationalization for my JSPs, as part of that i am doing character encoding to utf-8(for chinese/japanese). Evrything is fine..
    Now the problm is i am displaying gregorian calendar to select date in a small window using some javascript code...
    For default encoding it is working fine....for utf-8 or other encoding it is raising error.(may be javascript)and also the date is nto displaying properly..i think the problem would be in javascript/.
    So can you pls tell me how to over come this problm...
    thanks in adance...
    regards
    bhaskar

    Sorry ..forgot to include the output...
    this is the output i am getting instead of 29-Nov-2005 00:00:00
    29-A-2005 00:00:00

  • Java-specific way to show and select dates on a calendar in JSP?

    I need my JSP to show a calendar and let a user choose a date. However, I know this is normally done in Javascript and I don't want to use Javascript ever. Is there an all-Java/HTML way to do this? Thanks.
    Ken

    try dis code out this may help....
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="iCardsErrorPage.jsp" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
         <title>Choose Day</title>
         <script language="javascript">   
              function gotoPage()
                   var year = document.selectdate.year.options[document.selectdate.year.selectedIndex].value;
                   var month = document.selectdate.month.options[document.selectdate.month.selectedIndex].value;
                   if ((month=="")||(month==null))
                        alert("Please enter a month and year.");
                        return false;
                   if ((year=="")||(year==null))
                        alert("Please enter a month and year.");
                        return false;
                   document.location = 'selectdate.jsp?year='+year+'&month='+month+'&formName=<%= request.getParameter("formName")%>&where=<%= request.getParameter("where")%>';
         </script>
    </head>
    <body bgcolor="#999999">
         <%@ page import="java.util.Calendar" %>
         <%@ page import="java.util.Date" %>
         <%@ page import="java.util.GregorianCalendar" %>
         <form name="selectdate">
         <%
              Calendar calendar = new GregorianCalendar();
              Date trialTime = new Date();
              calendar.setTime(trialTime);
              Calendar calendar2 = new GregorianCalendar();
              calendar2.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), 1);
              int today = calendar.get(Calendar.DAY_OF_MONTH);
              int currentYear = calendar.get(Calendar.YEAR);
              String Month = "";
              int daynum= 1;
              int column = 1;
              int row = 1;
              int year = 0;
              int month = 0;
              String y = request.getParameter("year");
              if (y==null)
                   year = calendar2.get(Calendar.YEAR);
              else
                   year = Integer.parseInt(y);
                   calendar2.set(year,calendar2.get(Calendar.MONTH),1);
              String m = request.getParameter("month");
              if (m==null)
                   month = calendar2.get(Calendar.MONTH);
              else
                   month = Integer.parseInt(m);
                   calendar2.set(calendar2.get(Calendar.YEAR),month,1);
              int firstDay = calendar2.get(Calendar.DAY_OF_WEEK);
              switch (month)
                   case Calendar.JANUARY: Month = "January";break;
                   case Calendar.FEBRUARY: Month = "February";break;
                   case Calendar.MARCH: Month = "March";break;
                   case Calendar.APRIL: Month = "April";break;
                   case Calendar.MAY: Month = "May";break;
                   case Calendar.JUNE: Month = "June";break;
                   case Calendar.JULY: Month = "July";break;
                   case Calendar.AUGUST: Month = "August";break;
                   case Calendar.SEPTEMBER: Month = "September";break;
                   case Calendar.OCTOBER: Month = "October";break;
                   case Calendar.NOVEMBER: Month = "November";break;
                   case Calendar.DECEMBER: Month = "December";break;
              }      %>
                <TABLE border="0" cellpadding="0" cellspacing="0" WIDTH="200" ALIGN="LEFT" >
                  <TR>
                         <TD ALIGN="CENTER" COLSPAN="4" >
                             <SELECT NAME="month" SIZE="1" ONCHANGE="gotoPage();return false;">
                                  <OPTION VALUE="0" <% if (month==0){%>SELECTED<% } %>>Jan</OPTION>
                                  <OPTION VALUE="1" <% if (month==1){%>SELECTED<% } %>>Feb</OPTION>
                                  <OPTION VALUE="2" <% if (month==2){%>SELECTED<% } %>>Mar</OPTION>
                                  <OPTION VALUE="3" <% if (month==3){%>SELECTED<% } %>>Apr</OPTION>
                                  <OPTION VALUE="4" <% if (month==4){%>SELECTED<% } %>>May</OPTION>
                                  <OPTION VALUE="5" <% if (month==5){%>SELECTED<% } %>>Jun</OPTION>
                                  <OPTION VALUE="6" <% if (month==6){%>SELECTED<% } %>>Jul</OPTION>
                                  <OPTION VALUE="7" <% if (month==7){%>SELECTED<% } %>>Aug</OPTION>
                                  <OPTION VALUE="8" <% if (month==8){%>SELECTED<% } %>>Sep</OPTION>
                                  <OPTION VALUE="9" <% if (month==9){%>SELECTED<% } %>>Oct</OPTION>
                                  <OPTION VALUE="10" <% if (month==10){%>SELECTED<% } %>>Nov</OPTION>
                                  <OPTION VALUE="11" <% if (month==11){%>SELECTED<% } %>>Dec</OPTION>
                           </SELECT>
                             <SELECT NAME="year" SIZE="1" ONCHANGE="gotoPage();return false;">
                                  <OPTION VALUE="<%= currentYear-2 %>" <% if (year==currentYear-2){%>SELECTED<% } %>><%= currentYear-2 %></OPTION>
                                  <OPTION VALUE="<%= currentYear-1 %>" <% if (year==currentYear-1){%>SELECTED<% } %>><%= currentYear-1 %></OPTION>
                                  <OPTION VALUE="<%= currentYear %>" <% if (year==currentYear){%>SELECTED<% } %>><%= currentYear %></OPTION>
                                  <OPTION VALUE="<%= currentYear+1 %>" <% if (year==currentYear+1){%>SELECTED<% } %>><%= currentYear+1 %></OPTION>
                                  <OPTION VALUE="<%= currentYear+2 %>" <% if (year==currentYear+2){%>SELECTED<% } %>><%= currentYear+2 %></OPTION>
                           </SELECT>
                        </TD>
                  </TR>
                  <TR valign="top" >
                         <TD valign="top" align="left" class="header" WIDTH="20%"> </TD>
                         <TD valign="middle" colspan="2" ALIGN="CENTER" class="header" WIDTH="60%">
                             <font style="font-family:Verdana, Arial, Helvetica, sans-serif" style="font-size:12px" style="font-weight:normal" style="color:#FFFFCC" style="vertical-align:middle"><%= Month %> <%= year %></font>
                        </TD>
                         <TD valign="top" align="right" class="header" WIDTH="20%"> </TD>
                  </TR>
                  <TR>
                         <TD CLASS="FORMTABLE" COLSPAN="4">
                             <TABLE border="0" cellpadding="0" cellspacing="0" WIDTH="100%" >
                             <!--<TR>
                                       <TD CLASS="FORMTABLE" ALIGN="RIGHT"><B>Year</B></TD>
                                  <TR>
                                       <TD COLSPAN="7" ALIGN=center CLASS="FORMTABLE"><B>
                                       <%= Month %> <%= year %></B></TD>
                                  </TR>-->
                                  <TR>
                                    <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Sun</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Mon</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Tue</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Wed</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Thu</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Fri</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Sat</font></TD>
                                  </TR>
                                  <TR>
                               <%
                                       int maxdays = calendar2.getActualMaximum(Calendar.DAY_OF_MONTH);
                                       String max = String.valueOf(maxdays);
                                       while (daynum<=maxdays)
                                            if (row==1)
                                                 for (int j=1; j<firstDay; j++)
                                                 { %>
                                                   <TD ALIGN=center> </TD>
                                                   <%
                                                           column++;
                                            while ((column<8)&&(daynum<=maxdays))
                                            { %>
                                              <TD ALIGN="CENTER"><font style="font-family:Verdana, Arial, Helvetica, sans-serif" style="color:#FFFFFF" style="font-size:14px" style="cursor:hand"><A onclick="sendDate('<%= daynum %>'); return false;"
                                                 <%
                                                      if ((calendar.get(Calendar.MONTH))==(calendar2.get(Calendar.MONTH)) &&
                                                         (calendar.get(Calendar.YEAR))==(calendar2.get(Calendar.YEAR)) &&
                                                         (calendar.get(Calendar.DAY_OF_MONTH))==daynum)
                                                      { %>
                                                           CLASS="RED"
                                                  <% } %>><%= daynum %> </A></font></TD>
                                                   <%
                                                      column++;
                                                      daynum++;
                                            if (column!=8)
                                                 for (int j=column; j<8; j++)
                                                 { %>
                                                   <TD ALIGN="CENTER" > </TD>
                                         <%  }
                                            } %>
                                  </TR>
                                  <%
                                       if (daynum<maxdays)
                                       { %>
                                            <TR>
                                    <% }
                                       column=1;
                                       row++;
                                       } %>
                           </TABLE>
                        </TD>
                  </TR>
                </TABLE>

  • Handling requests with a single JSP

    Is it possible to route all requests in a given folder to one JSP? I'd like requests like:
    /calendar/Home.ics
    to go to
    /calendar/index.jsp
    I know I can do this with a Servlet, but I'm trying to run an application-wide bean when someone calls one of the /calendar/*ics files.
    Thanks!
    Ben

    Thanks, I was able to figure the answer myself..
    I am writing a simple page to handle the loading of calendars in lieu of having webdav. I have a servlet handling the data load (from calendar to MySQL database). Then I have a JSP area that uses an application bean to hold the information from the database (database sometimes takes 30 sec to respond). Within webdav, it would only work with the servlet area, and I needed to take the updated calendar info and force a refresh in the JSP area to know that there was a change.
    Sorry for the odd details. If you are interested in something like that, just post here, and I'll make the code available on SourceForge when I'm done.
    Ben

  • How to Include a servlet in a jsp

    Hello,
    My jsp pages are all tied to respective Servlets. So when I have to forward to a jsp, I forward to a servelt which redirects to that jsp.
    Now I have a jsp page which has to include another jsp page.
    So I am trying to include a servlet in my jsp page which inturn redirects itself to the included jsp.
    Have tried doing the following
    <jsp:include page="../../servlet/ServletName" flush="true">
    </jsp:include>
    does not work. It compiles well but no output
    any ideas ????
    ~ Soumya

    It does not seem to work... Let me give you the snippet of code I used.
    calendarEntry.java - the parent jsp
    <tr rowspan="60%">
    <td width="100%">
         <jsp:include page="file://c:/../../servlet/MonthEventList">
         </jsp:include>
    </td>
    </tr>
    MonthEventList.java - the included servlet
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class MonthEventList extends HttpServlet {
         * Attributes
         private static final String CONTENT_TYPE = "text/html";
         private HttpSession session;
         public void init() throws ServletException
         public void doPost(HttpServletRequest request,
    HttpServletResponse response) throws
    ServletException, IOException
              try {     
              HttpSession session = request.getSession(true);
              String url;
         url = "/jsp/site/calendar/monthEventList.jsp";
                        //ReDirect to where the page is going
                        response.sendRedirect(url);
                        return;
              } catch (Exception ex) {
              String url="/jsp/site/calendar/main/servletError.jsp;
         response.sendRedirect(url);
              return;
         public void doGet(HttpServletRequest request,HttpServletResponse
    response) throws ServletException, IOException
              doPost(request, response);
    monthEventList.jsp
    just displays some dummy data
    So if this is the case, do you think the <jsp:include> can work ??
    Thanks in advance
    Soumya

  • Are you looking to skill up on Oracle ADF?

    If there is anyone on the list who is interested in learning about Oracle JDeveloper and Oracle ADF, I am running a "QuickStart Guide to Fusion Development with Oracle ADF" in Edinburgh (Scotland) on the 26th October.
    Details of the event are here:
    http://www.ukoug.org/calendar/show_event.jsp?id=5168
    This is being run by the UKOUG.
    Regards
    Grant

    Hi,
    I am sure you would get some help from :
    http://blogs.technet.com/b/sbs/archive/2010/10/08/folder-redirection-in-small-business-server-2008.aspx
    https://social.technet.microsoft.com/Forums/en-US/448583ca-471e-4a0c-9d26-aa9181e73962/folder-redirection-changing-location?forum=smallbusinessserver
    User setting can be found:
    Windows SBS Console > Shared Folders and Web Sites > Shared Folders - in Tasks panel click on Redirect folders for user accounts to the server.
    Under Folder Names Select folder(s) you want to redirect (e.g. Documents).
    Under User Accounts select accounts you want to have folders redirected.
    Click OK
    Binu Kumar - MCP, MCITP, MCTS , MBA - IT , Director Aarbin Technology Pvt Ltd - Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Presentations To Look Out For At The UK User Conference.....

    Oracle Primavera Premier Support - Creating Customer Value
    Understand the available support tools, support resources and much more!
    Tony Banks - Director, Oracle Primavera
    P6 in Public Sector – Health & Safety Laboratory (HSL) Implementing Best Practice
    Come to see how HSL have deployed P6 Web & Timesheets to support continuous improvement with their project management capability.
    Dr Mark White - HSL
    Costain Group Leverages Global Best Practice and Collaboration to Achieve Goal of "Being Number One"
    Enterprise deployment of P6 in Infrastructure (Highways, Rail, Nuclear and Airports), Environment (Water, Waste and Marine), Energy & Process
    Phil Budden & Mark Paulding - Costain
    For More Details Or To Register Online Visit: http://www.ukoug.org/calendar/show_event.jsp?id=4902

    Oracle Primavera Premier Support - Creating Customer Value
    Understand the available support tools, support resources and much more!
    Tony Banks - Director, Oracle Primavera
    P6 in Public Sector – Health & Safety Laboratory (HSL) Implementing Best Practice
    Come to see how HSL have deployed P6 Web & Timesheets to support continuous improvement with their project management capability.
    Dr Mark White - HSL
    Costain Group Leverages Global Best Practice and Collaboration to Achieve Goal of "Being Number One"
    Enterprise deployment of P6 in Infrastructure (Highways, Rail, Nuclear and Airports), Environment (Water, Waste and Marine), Energy & Process
    Phil Budden & Mark Paulding - Costain
    For More Details Or To Register Online Visit: http://www.ukoug.org/calendar/show_event.jsp?id=4902

  • Working sample of JSTL:xml?

    Can someone send me a working sample war file using jstl:xml under JSTL 1.1/tomcat 5?
    I think my JSP is right, but I tried it on tomcat-5.5.4, 5.0.28 with JDK1.4.2, JDK1.5.0. All of them give me [#document: null] result. There must be something wrong in my configuration.
    If someone can send me a working war file, I would really appreciate.
    My email address: [email protected]
    Thanks!

    Okay, it is clear to me, you are thinking something that may be working is not, because you are testing incorrectly.
    Doing a c:out of the variable returned from <xml:parse> and getting [#document:  null] is not a sign that the xml document wasn't parsed. I am not sure exatly what the null part of the output means but...
    Look at this code:
    //Sidebar.xml
    <?xml version="1.0"?>
    <home_bar>
        <bar_width>250</bar_width>
        <button_height>30</button_height>
        <button_width>200</button_width>
        <button_img>images/norm_button.gif</button_img>
        <button_list>
          <button id="1">
            <link_url>./</link_url>
            <text>Home</text>
          </button>
          <button id="2">
            <link_url>/Calendar</link_url>
            <text>Calendar</text>
          </button>
          <button id="3">
            <link_url>/Calendar/howto.jsp</link_url>
            <text>How To Use the Calendar</text>
          </button>
          <button id="4">
            <link_url>/Webmail</link_url>
            <text>Webmail</text>
          </button>
          <button id="5">
            <link_url>/Webmail/howto.jsp</link_url>
            <text>Webmail HowTo</text>
          </button>
          <button id="6">
            <link_url>/Web/howto.jsp</link_url>
            <text>How To Make a Web Page</text>
          </button>
          <button id="7">
            <link_url>/HTML/howto.jsp</link_url>
            <text>Learn HTML</text>
          </button>
          <button id="8">
            <link_url>/JS/howto.jsp</link_url>
            <text>Learn JavaScript</text>
          </button>
        </button_list>
    </home_bar>
    //Sidebar.jsp
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
      <c:import var="sideBarXml" url="Sidebar.xml" />
      <x:parse doc="${sideBarXml}" var="sideBar" />
      <%-- Show that the side bar was read --%>
        <!-- Side Bar = <c:out value="${sideBar}"/> -->
      <%-- End of Test Output --%>
      <x:set var="theBar" select="$sideBar/home_bar"/>
      <style type="text/css">
        .sidebar
          width  : <x:out select="$theBar/bar_width"/>px;
          float  : left;
          clear  : left;
        .button
          background : transparent url(<x:out select="$theBar/button_img"/>) no-repeat scroll center;
          height     : <x:out select="$theBar/button_height"/>px;
          width      : <x:out select="$theBar/button_width"/>px;
          cursor     : pointer;
          float      : left;
          clear      : left;
          text-align : center;
          color      : white;
      </style>
      <div class="sidebar">
         <x:forEach select="$theBar/button_list/button" var="button" varStatus="status">
           <div class="button" onclick="document.location='<x:out select="$button/link_url"/>';">
             <x:out select="$button/text"/>
           </div>
         </x:forEach>
      </div>
    //index.jsp
    <html>
      <head>
        <title>Showing JSTL:XML tags</title>
        <style type="text/css">
          DIV.content
            disaplay: block;
            float   : left;
            clear   : right;
            width   : 500px;
            font-family: Serif;
        </style>
      </head>
      <body>
        <jsp:include page="Sidebar.jsp"/>
        <div class="content">
          Just some things to show for the content of the JSP...
        </div>
      </body>
    </html>
    //WEB-INF/web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app 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-app_2_4.xsd"
        version="2.4">
      <display-name>XML Display Application</display-name>
    </web-app>
    //HTML Output
    <html>
      <head>
        <title>Showing JSTL:XML tags</title>
        <style type="text/css">
          DIV.content
            disaplay: block;
            float   : left;
            clear   : right;
            width   : 500px;
            font-family: Serif;
        </style>
      </head>
      <body>
        <!-- Side Bar = [#document: null] -->
      <style type="text/css">
        .sidebar
          width  : 250px;
          float  : left;
          clear  : left;
        .button
          background : transparent url(images/norm_button.gif) no-repeat scroll center;
          height     : 30px;
          width      : 200px;
          cursor     : pointer;
          float      : left;
          clear      : left;
          text-align : center;
          color      : white;
      </style>
      <div class="sidebar">
         <div class="button" onclick="document.location='./';">
             Home</div>
         <div class="button" onclick="document.location='/Calendar';">
             Calendar</div>
         <div class="button" onclick="document.location='/Calendar/howto.jsp';">
             How To Use the Calendar</div>
         <div class="button" onclick="document.location='/Webmail';">
             Webmail</div>
         <div class="button" onclick="document.location='/Webmail/howto.jsp';">
             Webmail HowTo</div>
         <div class="button" onclick="document.location='/Web/howto.jsp';">
             How To Make a Web Page</div>
         <div class="button" onclick="document.location='/HTML/howto.jsp';">
             Learn HTML</div>
         <div class="button" onclick="document.location='/JS/howto.jsp';">
             Learn JavaScript</div>
         </div><div class="content">
          Just some things to show for the content of the JSP...
        </div>
      </body>
    </html>The WEB-INF/lib directory contains jstl.jar and standard.jar (JSTL 1.1.1 I think). Nothing but basic Tomcat 5.0.29 installed in the common directories. JDK1.4 installed.
    Anyway, from the output, you can see in the comment inside the HTML source that the c:out for the parsed XML file reads [#document: null]. However, the XML was correctly parsed and generated the proper sidebar.
    I know that if you do something like this:
    <x:set var="theBar" select="$sideBar/home_bar"/>
    <c:out value="${theBar}"/> you get [[home_bar: null]].
    Also, if you do:
    <x:out select="$sideBar"/> you will get all the data from the xml file (not the tags) printed out.

  • Announcement - UK Oracle User Group Meeting 09-Sep-2004

    The UK Oracle User Group Development Engineering Special Interest Group which covers the Forms and JDeveloper Tools will be holding one of it's regular meetings in Oracle's Reading Offices (UK) on the 9th September 2004. For details see http://www.ukoug.org/calendar/show_event.jsp?id=436.

    I agree.
    What's needed is at least 5 years of ongoing active Support (including emerging new Platform Versions).
    If Sun/Oracle expects their clients to migrate to a new product, they should provide detailed migration information and usable migration tools (covering existing Components and Plans, inheritance, Dependencies and installation history data) to protect the substantial investments existing clients have made in the N1SPS framework.
    Of particular interest for my client are the virtual host concept and modeling of dependencies over multiple hosts for application server (Oracle WebLogic) clusters.
    I'm not sure if Sun/Oracle did fully understand the potential of N1SPS - especially for managing (their own) Middleware products - when they decided to EOL N1SPS.
    Regards
    Erwin Richard
    System Architect - Freelancer
    mailto: [email protected]

  • Presentations To Look Out For At The User Conference....

    Product Spotlight - Primavera Contract Management
    Krista Lambert – Senior Product Manager: Contract Management, Oracle Primavera
    Oracle Primavera Premier Support - Creating Customer Value
    Understand the available support tools, support resources and much more!
    Tony Banks - Director, Oracle Primavera
    Book Now:
    http://www.ukoug.org/calendar/show_event.jsp?id=4902

    My opinion would be that the main problem to look for is buying the Time Capsule for the wrong reason, like attempting to use it as a regular hard drive when it was designed for Time Machine backups.

  • What is the different the logic in here

    Hi method one work fine but method two no
    what mistake in method two
    two
    Date sdate = null;
        Date edate = null;
        Date oldDay =null;
       temp = request.getParameter("sdate");
       String temp1=request.getParameter("edate");
        Calendar cal = Calendar.getInstance();
        cal.setTime(new Date());
        cal.set(Calendar.DAY_OF_MONTH, 1);
    /** if((temp==null)&&(temp1==null))
          sdate = cal.getTime();
          cal.add(Calendar.MONTH, 1);
          cal.add(Calendar.DATE, -1);
          edate = cal.getTime();
          if(temp != null){
          sdate = StringFormater.transformDate(temp);
          //if first date is selected and biger than the laast day
           edate = cal.getTime();
          if(sdate.after(edate)){
          cal.setTime(sdate);
          cal.add(Calendar.MONTH, 1);
          cal.add(Calendar.DATE ,-1);
          edate = cal.getTime();
          //session.setAttribute("oldDate", edate);
         else {
            session.setAttribute("oldDate", edate);
            edate=(Date)session.getAttribute("oldDate");
         }  */one
    if (temp != null) {
            sdate = StringFormater.transformDate(temp);
        else {
            sdate = cal.getTime();
        temp = request.getParameter("edate");
        if (temp != null) {
            edate = StringFormater.transformDate(temp);
        } else {
            cal.add(Calendar.MONTH, 1);
            cal.add(Calendar.DATE, -1);
            edate = cal.getTime();
      if(sdate.after(edate)){
        cal.setTime(sdate);
        cal.add(Calendar.MONTH, 1);
        cal.add(Calendar.DATE ,-1);
        edate = cal.getTime();
      }thank you

    for the following code
    i can't let the else work , we have two calendar on jsp , we want
    the defaul is the 12 /1(sdate) to 12/31(edate)
    i f i change the sdate to 1/1/2007 then the end should be automatically to 1/31/2007
    and if the first one is 1/2/2007, then 1/28/2007, but if the first one change to 1/1/2007 the end one should keep 1/28/2007 not change,
    the secode one do the job, and yes the logic is more better , but I want to know what mistake I made in the way one??
    if(temp != null){
          sdate = StringFormater.transformDate(temp);
          //if first date is selected and biger than the laast day
           edate = cal.getTime();
          if(sdate.after(edate)){
          cal.setTime(sdate);
          cal.add(Calendar.MONTH, 1);
          cal.add(Calendar.DATE ,-1);
          edate = cal.getTime();
          //session.setAttribute("oldDate", edate);
         else {
            session.setAttribute("oldDate", edate);
            edate=(Date)session.getAttribute("oldDate");
         } Thank you

  • I have a wierd problem

    I have a javascript calender, which enters a date into a JSP page. when it enters the date, a result (extracted from mysql) disappears... why? and how can i resolve this?

    <a href="#" class="round-title-toggle" onClick="toggle('toggle<%=aos_code%><%=i%>'); return false;"><strong><%=module_desc%></strong></a></br>
                             <div id="toggle<%=aos_code%><%=i%>" <%=toggle_unit%>>
                             <form name="module_<%=aos_code%><%=i%>_form" id="module_<%=aos_code%><%=i%>_form" method="get" action="progress_tracker.jsp">
                                  <input type="hidden" id="sr_module_id" name="sr_module_id" value="<%=sr_module_id%>" />
                                  <input type="hidden" id="sr_studentid" name="sr_studentid" value="<%=sr_studentid%>" />
                                  <input type="hidden" id="studentid" name="studentid" value="<%=sr_studentid%>" />
                                  <input type="hidden" id="period" name="period" value="<%=period%>" />
                                  <input type="hidden" id="startres" name="startres" value="<%=startres%>" />
                                  <input type="hidden" id="endres" name="endres" value="<%=endres%>" />
                                  <input type="hidden" id="searchtext" name="searchtext" value="<%=searchtext%>" />
                                  <input type="hidden" id="searchorderby" name="searchorderby" value="<%=searchorderby%>" />
                                  <input type="hidden" id="sr_module_number" name="sr_module_number" value="<%=sr_module_number%>" />
                                  <table width="97%" cellpadding="4" cellspacing="0" border="0" style="margin-left:10px">
                                       <tr>
                                            <th class="left"> </th>
                                            <th class="left" width="22%">Activity</th>
                                            <th class="left" width="15%">Target for Completion</th>
                                            <th class="left" width="21%">Status</th>
                                            <th class="left" width="16%">Unit/Module Completion Date </th>
                                       </tr>
                                       <tr>
                                            <th width="3%" valign="top">1. </th>
                                            <td><textarea id="activity1_desc" name="activity1_desc" cols="25" rows="3"><%=activity1_desc%></textarea></td>
                                              <td><input type="hidden" name="activity1_date" id="activity1_date" value="<%=activity1_date%>"><a href="javascript:void(0)" onClick="window.open('/star/calendar/cal_update.jsp?formname=module_<%=aos_code%><%=i%>_form&pageparam=activity1_date','calendar','width=220,height=230')"><%=dateformat.format(activity1_date)%></a></td>
                                            <td><label><input type="radio" name="activity1_status" value="1" <% if(activity1_status.equals("1")) { out.print("checked"); } %>/>Not Achieved</label><br />
                                            <label><input type="radio" name="activity1_status" value="2" <% if(activity1_status.equals("2")) { out.print("checked"); } %>/>Partial</label><br />
                                           <label><input type="radio" name="activity1_status" value="3" <% if(activity1_status.equals("3")) { out.print("checked"); } %>/>Full Achieved</label>                                       </td>
                                           <td><input type="hidden" name="activitycomp1_date" id="activitycomp1_date" value="<%=activitycomp1_date%>"><a href="javascript:void(0)" onClick="window.open('/star/calendar/cal_update.jsp?formname=module_<%=aos_code%><%=i%>_form&pageparam=activitycomp1_date','calendar','width=220,height=230')"><%=dateformat.format(activitycomp1_date)%></a></td>
                                      </tr>
                                       <tr>
                                         <th> </th>
                                         <th colspan="2" class="left">Tutor Comments</th>
                                         <th colspan="2" class="left">Student Comments </th>
                                   </tr>
                                       <tr>
                                         <th> </th>
                                         <th colspan="2" class="left"><textarea id="tutor1_comments" name="tutor1_comments" cols="25" rows="3"><%=tutor1_comments%></textarea></th>
                                         <th colspan="2" class="left"><textarea id="student1_comments" name="student1_comments" cols="25" rows="3"><%=student1_comments%></textarea></th>
                                      </tr>
                                       <tr>
                                            <th valign="top" bgcolor="#00CCCC">2. </th>
                                        <td bgcolor="#00CCCC"><textarea id="activity2_desc" name="activity2_desc" cols="25" rows="3"><%=activity2_desc%></textarea></td>
                                        <td bgcolor="#00CCCC"><input type="hidden" name="activity2_date" id="activity2_date" value="<%=activity2_date%>"><a href="javascript:void(0)" onClick="window.open('/star/calendar/cal_update.jsp?formname=module_<%=aos_code%><%=i%>_form&pageparam=activity2_date','calendar','width=220,height=230')"><%=dateformat.format(activity2_date)%></a></td>
                                         <td bgcolor="#00CCCC">
                                         <label><input type="radio" name="activity2_status" value="1" <% if(activity2_status.equals("1")) { out.print("checked"); } %>/>Not Achieved</label><br />
                                            <label><input type="radio" name="activity2_status" value="2" <% if(activity2_status.equals("2")) { out.print("checked"); } %>/>Partial</label><br />
                                             <label><input type="radio" name="activity2_status" value="3" <% if(activity2_status.equals("3")) { out.print("checked"); } %>/>Full Achieved</label>                                     </td>
                                         <td bgcolor="#00CCCC"><input type="hidden" name="activitycomp2_date" id="activitycomp2_date" value="<%=activitycomp2_date%>"><a href="javascript:void(0)" onClick="window.open('/star/calendar/cal_update.jsp?formname=module_<%=aos_code%><%=i%>_form&pageparam=activitycomp2_date','calendar','width=220,height=230')"><%=dateformat.format(activitycomp2_date)%></a></td>
                                      </tr>
                                       <tr>
                                         <th bgcolor="#00CCCC"> </th>
                                         <th colspan="2" bgcolor="#00CCCC" class="left">Tutor Comments</th>
                                         <th colspan="2" bgcolor="#00CCCC" class="left">Student Comments</th>
                                   </tr>
                                       <tr>
                                         <th bgcolor="#00CCCC"> </th>
                                         <th colspan="2" bgcolor="#00CCCC" class="left"><textarea id="tutor2_comments" name="tutor2_comments" cols="25" rows="3"><%=tutor2_comments%></textarea></th>
                                         <th colspan="2" bgcolor="#00CCCC" class="left"><textarea id="student2_comments" name="student2_comments" cols="25" rows="3"><%=student2_comments%></textarea></th>
                                      </tr>
                                       <tr>
                                            <th valign="top">3. </th>
                                            <td><textarea id="activity3_desc" name="activity3_desc" cols="25" rows="3"><%=activity3_desc%></textarea></td>
                                         <td><input type="hidden" name="activity3_date" id="activity3_date" value="<%=activity3_date%>"><a href="javascript:void(0)" onClick="window.open('/star/calendar/cal_update.jsp?formname=module_<%=aos_code%><%=i%>_form&pageparam=activity3_date','calendar','width=220,height=230')"><%=dateformat.format(activity3_date)%></a></td>
                                            <td>
                                            <label><input type="radio" name="activity3_status" value="1" <% if(activity3_status.equals("1")) { out.print("checked"); } %>/>Not Achieved</label><br />
                                            <label><input type="radio" name="activity3_status" value="2" <% if(activity3_status.equals("2")) { out.print("checked"); } %>/>Partial</label><br />
                                             <label><input type="radio" name="activity3_status" value="3" <% if(activity3_status.equals("3")) { out.print("checked"); } %>/>Full Achieved</label>                                        </td>
                                            <td><input type="hidden" name="activitycomp3_date" id="activitycomp3_date" value="<%=activitycomp3_date%>"><a href="javascript:void(0)" onClick="window.open('/star/calendar/cal_update.jsp?formname=module_<%=aos_code%><%=i%>_form&pageparam=activitycomp3_date','calendar','width=220,height=230')"><%=dateformat.format(activitycomp3_date)%></a></td>
                                      </tr>
                                       <tr>
                                         <th> </th>
                                         <th colspan="2" class="left">Tutor Comments</th>
                                         <th colspan="2" class="left">Student Comments</th>
                                   </tr>
                                       <tr>
                                         <th> </th>
                                         <th colspan="2" class="left"><textarea id="tutor3_comments" name="tutor3_comments" cols="25" rows="3"><%=tutor3_comments%></textarea></th>
                                         <th colspan="2" class="left"><textarea id="student3_comments" name="student3_comments" cols="25" rows="3"><%=student3_comments%></textarea></th>
                                      </tr>
                                       <tr>
                                            <th bgcolor="#00CCCC">4. </th>
                                        <td bgcolor="#00CCCC"><textarea id="activity4_desc" name="activity4_desc" cols="25" rows="3"><%=activity4_desc%></textarea></td>
                                        <td bgcolor="#00CCCC"><input type="hidden" name="activity4_date" id="activity4_date" value="<%=activity4_date%>" /><a href="javascript:void(0)" onclick="window.open('/star/calendar/cal_update.jsp?formname=module_<%=aos_code%><%=i%>_form&pageparam=activity4_date','calendar','width=220,height=230')"><%=dateformat.format(activity4_date)%></a></td>
                                            <td bgcolor="#00CCCC">
                                            <label><input type="radio" name="activity4_status" value="1" <% if(activity4_status.equals("1")) { out.print("checked"); } %>/>Not Achieved</label><br />
                                            <label><input type="radio" name="activity4_status" value="2" <% if(activity4_status.equals("2")) { out.print("checked"); } %>/>Partial</label><br />
                                             <label><input type="radio" name="activity4_status" value="3" <% if(activity4_status.equals("3")) { out.print("checked"); } %>/>Full Achieved</label>                                     </td>
                                         <td bgcolor="#00CCCC"><input type="hidden" name="activitycomp4_date" id="activitycomp4_date" value="<%=activitycomp4_date%>"><a href="javascript:void(0)" onClick="window.open('/star/calendar/cal_update.jsp?formname=module_<%=aos_code%><%=i%>_form&pageparam=activitycomp4_date','calendar','width=220,height=230')"><%=dateformat.format(activitycomp4_date)%></a></td>
                                      </tr>
                                       <tr>
                                         <th bgcolor="#00CCCC"> </th>
                                         <th colspan="2" bgcolor="#00CCCC" class="left">Tutor Comments</th>
                                         <th colspan="2" bgcolor="#00CCCC" class="left">Student Comments</th>
                                   </tr>
                                       <tr>
                                         <th bgcolor="#00CCCC"> </th>
                                         <th colspan="2" bgcolor="#00CCCC" class="left"><textarea id="tutor4_comments" name="tutor4_comments" cols="25" rows="3"><%=tutor4_comments%></textarea></th>
                                         <th colspan="2" bgcolor="#00CCCC" class="left"><textarea id="student4_comments" name="student4_comments" cols="25" rows="3"><%=student4_comments%></textarea></th>
                                      </tr>
                                       <tr>
                                         <th class="left" colspan="2">Interim Grade:
                                       <input name="module_interim_grade" type="text" id="module_interim_grade" value="<%=module_interim_grade%>" size="3" maxlength="3" /></th>
                                         <th class="left"> </th>
                                        <th class="left">Final Grade:
                                  <input name="module_final_grade" type="text" id="module_final_grade" value="<%=module_final_grade%>" size="3" maxlength="3" /></th>
                                        <th class="left">Unit Point Score:
                                  <input name="unit_point_score" type="text" id="unit_point_score" value="<%=unit_point_score%>" size="3" maxlength="3" /></th>
                                    </tr>
                                       <tr>
                                         <th class="left" colspan="3"><span style="text-align:center;">Module Achieved:</span>
                                    <input type="radio" name="module_achieved" id="radio" value="1" <% if(module_achieved.equals("1")) { out.print("checked"); } %> />
                                    Yes
                                    <input type="radio" name="module_achieved" id="radio" value="0" <% if(module_achieved.equals("0")) { out.print("checked"); } %> />
                                  No</th>
                                         <th class="left"><span style="text-align:center;">
                                          <input type="button" id="recorddelete<%=aos_code%><%=i%>" name="recorddelete<%=aos_code%><%=i%>" value="Delete Record" onmouseup="delete_module('module_<%=aos_code%><%=i%>_form','<%=sr_module_number%>');" />
                                        </span></th>
                                        <th class="left"><span style="text-align:center;"><span style="text-align:right;">
                                          <input type="button" id="recordsubmit<%=aos_code%><%=i%>" name="recordsubmit<%=aos_code%><%=i%>" value="Save changes >" onmouseup="modify_module('module_<%=aos_code%><%=i%>_form');" />
                                        </span></span></th>
                                    </tr>
                                  </table>
                                  </div><%--end module toggle--%>
                             </form>THE MODULE NAME IS CALLED "MODULE_DESC"

  • ADF Special Interest Group Event - 8th June.

    The UKOUG have announced a Special Interest Group focused specifically on ADF and bringing together customers, product managers and consultants. All the speakers are experienced ADF practitioners, many of whom you will have heard from on these forums. Topics include ADF security, how to customize ADF applications and how to make them performant.
    There will also be a presentation by the ADF Enterprise Methodology Group.
    The full agenda is printed here:http://www.ukoug.org/calendar/show_events.jsp?year=2010&month=06&day=08
    The day will be rounded of with a Q&A panel with the ADF experts.
    Spaces are limited so register now if you are interested.
    Regards
    Grant

    Repost

Maybe you are looking for

  • Firefox won't open except in Safemode

    When I clicked to open Firefox a few days ago, a little window opened with this message: ''A script on this page may be busy, or it may have stopped responding. You can stop the script now or you can continue to see if the script will complete. Scrip

  • How can i restore my  imac os x mavericks after upgraded to os x yosemite

    hi m i upgrade my i mac to os x Yosemite but it is slow down the mac . Now I need to restore  the old system which is os x mavericks . can I do that and how ? thank you .

  • System.close() and resources

    Hi, in my application I start many threads, and them open files. Those threads are like daemons waiting for changes in those files. If i.e. a critical error is detected, is valid to finish the app a "System.exit()", or do I have to close every file a

  • How do I get my 30gig Ipod Vid to get out of restore mode?

    Long story short is that I somehow fried my hd. I put a new one it, it worked perfect. As soon as I connected it to my laptop it restored it and voila, I was off and running. I then tried to use my headphones and realized I forgot to plug in the head

  • How to Restrict the Message Processing Before IE

    Hello Experts, I have a specific business requirement for one of my interfaces. It looks like: 3rd party - > WMQ - >PI Example: 3rd party sends 3 (Header, detail and Trailer) messages WMQ and MQ processes these 3 messages one by one through specific