Jsp not compiling....

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page import='com.uk.nhs.training.data.ActivityMatrix'%>
<%@ page errorPage="ExceptionHandler.jsp"%>
<SCRIPT language="JavaScript" type="text/javascript">
function showBookingDays(id)
var bookings = document.getElementsByName('booking');
alert(bookings.length);
for(i=0;i<=bookings.length;i++)
if(bookingConflicts.bookings.checked==true)
//showDiv(id);
else
bookingConflicts.bookings[i].checked=false;
function showDiv(divId)
var item = document.getElementById(id);
alert("show item"+item);
if (item)
item.className='unhidden';
</script>
<div id="content"><!-- Top story -->
<div id="topstory" class="box">
<div id="topstory-img"></div>
<!-- /topstory-img -->
<div id="topstory-desc">
<div id="topstory-title"><strong>BOOK Activity</strong></div>
<!-- /topstory-title -->
<div id="topstory-desc-in"></div>
<!-- /topstory-desc-in --></div>
<!-- /topstory-desc --></div>
<!-- /topstory -->
<div id="bodycontent">
<% int errorCount=0; %>          
          <spring:bind path="bookactivityevent.*">
          <c:forEach items="${status.errorMessages}" var="error">
                    <B><font color="red">Error: <c:out value="${error}"/></font><B/>
                    <% errorCount++; %>
          </c:forEach>
          </spring:bind>
<form method="post" name="bookingConflicts" action="<c:url value="/secure/bookActivityTrainer.htm"/>">
<input type="hidden" name="bookingId"/>
<input type="hidden" name="bookingDetailsId"/>
<table align="left" width="50%" border=0>
<tr>
<td></td>
<td>BookingType</td>
<td>ClientName</td>
<td>CourseTitle</td>
<td>Duration</td>
<tr>
</tr>
<tr>
<c:forEach var="booking" items="${bookactivityevent.conflictBookings}" varStatus="a">
<tr align="left">
          <td><INPUT TYPE="checkbox" NAME="booking" id="booking" value="<c:out value="${booking.bookingId}"/>" onClick="showBookingDays('<c:out value="${booking.bookingId}"/>')"></td>
          <td><c:out value="${booking.bookingType}"/></td>
          <td><c:out value="${booking.client.orgName}"/></td>
          <td><c:out value=""/></td>
          <td><c:out value="${booking.bookingId}"/></td>
     <c:set var="temp" value="${0}"/>
     <c:forEach var="bookingDetails" items="${booking.bookingDetails}">
     <tr align="right">
     <div align="left class="hidden" id="<c:out value="${booking.bookingId}"/>" >
     <td>
     <INPUT TYPE="RADIO" NAME="bookingDetails" id="<c:out value="${bookingDetails.bookingDetailsId}"/>" onClick="">Day<c:out value="${temp}"/>
     </td>
     <td>
     <c:out value="${bookingDetails.trainer.firstName}"/><c:out value="${bookingDetails.trainer.surName}"/>
     </td>
          <c:set var="temp" value="${temp+1}"/>
     </div>
     </tr>
          </c:forEach>
     </tr>
     </c:forEach>
<tr>
          <td align="left" colspan="2"><input type="submit" name="_target0" value="Previous"/></td>
          <td align="left" colspan="2"><input type="submit" name="_target0" value="Amend"/></td>
          <td align="left" colspan="2"><input type="submit" name="_target2" value="Submit"/></td>
          <td align="left" colspan="2"><input type="submit" name="_target2" value="Rebook/Cancel"/></td>
     <td align="left" colspan="2"><input type="button" name="Cancel"
               value="Cancel" onClick="goHomePage();"/></td>
     </tr>
</table>
</form>
</div>
<hr class="noscreen"/>
<!-- /content -->
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page import='com.uk.nhs.training.data.ActivityMatrix'%>
<%@ page import='com.uk.nhs.training.data.ActivityTimeConstants'%>
<SCRIPT language="JavaScript" type="text/javascript">
function bookActivity()
if (document.bookActivityController.activitySelect.selectedIndex == 0)
alert("Please Select Activity");
else if (document.bookActivityController.trainerId.selectedIndex == 0)
alert ( "Please Select Trainer");
else if(document.bookActivityController.fromDate.value=="")
alert("Please supply the Start Date of Activity")
else
validateForExistingCourses();
function validateForExistingCourses()
flag="wait";
var trainerId=document.getElementById("trainerId").value;
var fromDate=document.getElementById("fromDate").value;
var toDate=document.getElementById("toDate").value;
var activityId=document.getElementById("activitySelect").value;
url="ajaxList.htm?actionType=checkBookedCoursesActivities&trainerId="+trainerId+"&fromDate="+fromDate+"&toDate="+toDate+"&activitySelect="+activityId;
what = "checkForPreBookedCoursesActivities(req.responseXML)";
doCallback(null);
function checkForPreBookedCoursesActivities(theXmlResponse)
// alert("in here in checking prebookedCourses");
if(theXmlResponse != null)
     var isActivityExisting = theXmlResponse.getElementsByTagName('existingActivity')[0].text;
     var isCourseExisting = theXmlResponse.getElementsByTagName('existingbookedcourse')[0].text;     
          if(isActivityExisting=="Y")
          alert("Activity You are trying to book for Trainer already exists");
          return false;
          else if(isCourseExisting=="Y")
          if(confirm('Conflict Message. The dates choosen conflict with a current booking.Do you want to override'))
window.open("/training1.1/secure/prebookedEvents.htm","clientwindow",'StatusBar', 'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=400,left=0,top=0');
return false;
else
document.bookActivityController.action="/training1.1/secure/bookActivityTrainer.htm?actionType=submitForm";
document.bookActivityController.submit();
function goHomePage()
     window.location="/training1.1/secure/welcome.htm";
function showHideAmPm(divId)
if(document.bookActivityController.halfday.checked==true)
showDiv(divId);
else
hideDiv(divId);
function showDiv(divId)
var item = document.getElementById(divId);
alert("show item"+item);
if (item)
item.className='unhidden';
function hideDiv(divId)
var item = document.getElementById(divId);
alert("unhide item"+item);
if (item)
item.className='hidden';
function getActivitiesPm()
if(document.bookActivityController.am.checked==true)
document.bookActivityController.pm.checked=false;
flag="wait";
     url="ajaxList.htm?actionType=activities&keyword=PM";
     what = "setActivities(req.responseXML)";
     doCallback(null);
     document.bookActivityController.activityTimeSelect.value="halfday";
     document.bookActivityController.activityTimeSubType.value="pm";
     // alert("subType"+document.bookActivityController.activityTimeSubType.value);
function getActivitiesAm()
if(document.bookActivityController.pm.checked==true)
document.bookActivityController.am.checked=false;
flag="wait";
     url="ajaxList.htm?actionType=activities&keyword=AM";
     what = "setActivities(req.responseXML)";
     doCallback(null);
     document.bookActivityController.activityTimeSelect.value="halfday";
     document.bookActivityController.activityTimeSubType.value="pm";
function getSingleDayActivities()
if(document.bookActivityController.singleday.checked==true)
document.bookActivityController.moredays.checked=false;
document.bookActivityController.halfday.checked=false;
hideDiv('partofhalfday');
document.bookActivityController.activityTimeSelect.value="fullday";
flag="wait";
     url="ajaxList.htm?actionType=activities&keyword=FullDay";
     what = "setActivities(req.responseXML)";
     doCallback(null);
else
hideDiv('activitySelect');
function getMoreDaysActivities()
alert();
if(document.bookActivityController.moredays.checked==true)
document.bookActivityController.singleday.checked=false;
document.bookActivityController.halfday.checked=false;
hideDiv('partofhalfday');
document.bookActivityController.activityTimeSelect.value="moredays";
flag="wait";
     url="ajaxList.htm?actionType=activities&keyword=FullDay";
     what = "setActivities(req.responseXML)";
     doCallback(null);
else
hideDiv('activitySelect');
showDiv('dateTo');
function setActivities(theXmlResponse)
          //start filling the Venues Select boxes now
          if(theXmlResponse != null)
               var coursesBox=document.getElementById("activitySelect");
               coursesBox.options.length=0;
               var activityElementsLength=theXmlResponse.getElementsByTagName('activity').length;     
               var activityElementsArray=theXmlResponse.getElementsByTagName('activity');
               //alert("length"+activityElementsLength+activityElementsArray);                              
          for(x = 0; x < activityElementsLength; x++)
                    //coursesBox.options[coursesBox.options.length] = new Option(coursesElementsArray[x].firstChild.text, coursesElementsArray[x].lastChild.text);
                    var optn = document.createElement("OPTION");
               optn.text = activityElementsArray[x].firstChild.text;
optn.value = activityElementsArray[x].lastChild.text;
coursesBox.options.add(optn);
     if (activityElementsLength>0)
               showDiv('activityTD');
          flag="release";
</script>
<div id="content"><!-- Top story -->
<div id="topstory" class="box">
<div id="topstory-img"></div>
<!-- /topstory-img -->
<div id="topstory-desc">
<div id="topstory-title"><strong>BOOK Activity</strong></div>
<!-- /topstory-title -->
<div id="topstory-desc-in"></div>
<!-- /topstory-desc-in --></div>
<!-- /topstory-desc --></div>
<!-- /topstory -->
<div id="bodycontent">
<% int errorCount=0; %>          
          <spring:bind path="bookactivityevent.*">
          <c:forEach items="${status.errorMessages}" var="error">
                    <B><font color="red">Error: <c:out value="${error}"/></font><B/><br/>
                    <% errorCount++; %>
          </c:forEach>
          </spring:bind>
<form method="post" name="bookActivityController" action="<c:url value="/secure/bookActivityTrainer.htm"/>">
<table align="right" width="50%" border=0>
<input type="hidden" name="activityTimeSelect"/>
<input type="hidden" name="activityTimeSubType"/>
<tr>
<td align="left">
<spring:bind path="bookactivityevent.userSuppliedActivity.activity.time">
<c:set var="activitytime" value="${bookactivityevent.userSuppliedActivity.activity.time}"/>
<INPUT TYPE="checkbox" NAME="halfday" onclick="showHideAmPm('partofhalfday')" <c:if test="${(activitytime == 'AM')}"> checked</c:if>/>Half Day    
<div align="left "id="partofhalfday"
<c:choose>
<c:when test="${(activitytime eq 'AM') || (activitytime eq 'PM')}"> </c:when>
<c:otherwise> class="hidden"</c:otherwise>
</c:choose>>
<INPUT TYPE="RADIO" NAME="am" onClick="getActivitiesAm()" value="am" <c:if test="${(activitytime eq 'AM')}"> checked </c:if> >AM <INPUT TYPE="RADIO" NAME="pm" onClick="getActivitiesPm()" <c:if test="${(activitytime eq 'PM')}"> checked </c:if>>PM <BR>
</div>
</td>
</tr>
<tr>
<td><INPUT TYPE="checkbox" NAME="singleday" onClick="getSingleDayActivities()" <c:if test="${activitytime eq 'FULLDAY'}"> checked </c:if>> Single Day</td>
</tr>
<tr>
<td><INPUT TYPE="checkbox" NAME="moredays" onClick="getMoreDaysActivities()" <c:if test="${activitytime eq 'MOREDAYS'}"> checked </c:if>> More Days</td>
</tr>
</spring:bind>
<tr>
          <td align="left" id="activityTD">Activity :
          <c:set var="activityList" value="${requestScope.activityMap}"/>
     <c:choose>
                    <c:when test="${empty activityList}">
                    <spring:bind path="bookactivityevent.userSuppliedActivity.activity.activityId">
          <select name="activitySelect" id="activitySelect" size="1"
               STYLE="width: 150px">
               <option value="Choose Activity" default>Choose Activity</option>
          </select>
          </spring:bind>
          </c:when>
          <c:otherwise>      
          <spring:bind path="bookactivityevent.userSuppliedActivity.activity.activityId">
          <select name="activitySelect" id="activitySelect"
               size="1" STYLE="width: 150px">
               <option value="" default>Choose Activity</option>
               <c:forEach var="activity" items="${activityList}" varStatus="a">
                    <c:choose>
                         <c:when
                              test="${(bookactivityevent !=null) && (bookactivityevent.userSuppliedActivity.activity.activityId == activity.activityId)}">
                              <option value="<c:out value="${activity.activityId}"/>" selected><c:out
                                   value="${activity.activityId}" /></option>
                         </c:when>
                         <c:otherwise>
                         <option value="<c:out value="${activity.activityId}"/>"><c:out
                                   value="${activity.activity}"/>
                         </c:otherwise>
                    </c:choose>
               </c:forEach>
          </select>
     </spring:bind>
     </c:otherwise>
     </c:choose>
     </td>
</tr>
     <tr>
          <td align="left">Trainer:
          <spring:bind path="bookactivityevent.userSuppliedActivity.trainer.trainerId">
          <select name="trainerId" id="trainerId"
               size="1" STYLE="width: 150px">
               <option value="" default>Choose Trainer</option>
               <c:forEach var="trainer" items="${trainers}" varStatus="a">
                    <c:choose>
                         <c:when
                              test="${(bookactivityevent !=null) && (bookactivityevent.userSuppliedActivity.trainer.trainerId == trainer.trainerId)}">
                              <option value="<c:out value="${trainer.trainerId}"/>" selected>
                              <c:out value="${trainer.firstName}"/>&nbsp<c:out
                                   value="${trainer.surName}" /></option>
                         </c:when>
                         <c:otherwise>
                              <option value="<c:out value="${trainer.trainerId}"/>"><c:out
                                   value="${trainer.firstName}"/>&nbsp<c:out
                                   value="${trainer.surName}" /></option>
                         </c:otherwise>
                    </c:choose>
               </c:forEach>
          </select>
     </spring:bind>     
          </td>
     </tr>
     <tr>
          <td align="left" id="dateFrom">From Date
          <spring:bind path="bookactivityevent.userSuppliedActivity.dateFrom">
          <fmt:formatDate var="formattedFromDate" type="date" pattern="dd/MM/yyyy" value="${status.value}"/>
          <input type="text" name="dateFrom" value="<c:out value='${formattedFromDate}'/>"/>
          </spring:bind>
          <a href="javascript:cal1.popup();"><img
               src="../design/cal.gif" width="16" height="16" border="0"
               alt="Click Here to Pick up the date"></a></td>
     </tr>
     <tr>
          <td align="left" id="dateTo" class="hidden">To Date
          <spring:bind path="bookactivityevent.userSuppliedActivity.dateTo">
          <fmt:formatDate var="formattedToDate" type="date" pattern="dd/MM/yyyy" value="${status.value}"/>
          <input type="text" name="dateTo" value="<c:out value='${formattedToDate}'/>"/>
          </spring:bind>
          <a href="javascript:cal2.popup();"><img
               src="../design/cal.gif" width="16" height="16" border="0"
               alt="Click Here to Pick up the date"></a></td>
     </tr>
     <tr>
          <td align="left" colspan="2"><input type="submit" name="_target2" value="BookActivity"/></td>
               <c:if test="${(bookactivityevent != null) && (not empty bookactivityevent.conflictBookings)}">
<td align="left" colspan="2"><input type="submit" name="_target1" value="OverRideBookings"/></td>
</c:if>
          <td align="left" colspan="2"><input type="button" name="Cancel"
               value="Cancel" onClick="goHomePage();" /></td>
     </tr>
</table>
</form>
</div>
<hr class="noscreen"/>
<div class="content-padding"></div>
<script language="JavaScript">
     var cal1 = new calendar1(document.bookActivityController.elements['dateFrom']);
     cal1.year_scroll = true;
     cal1.time_comp = false;
var cal2 = new calendar1(document.bookActivityController.elements['dateTo']);
     cal2.year_scroll = true;
     cal2.time_comp = false;
</script></div>
<!-- /content -->
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ page isELIgnored="false" %>
<%@ page import="java.util.List" %>
<%@ page import="com.uk.nhs.training.data.BookingDetails" %>
<div id="content">
<!-- Top story -->
<div id="topstory" class="box">
<div id="topstory-img"></div> <!-- /topstory-img -->
<div id="topstory-desc">
<div id="topstory-title">
          <strong>BOOK COURSE (CONT..)</strong>
</div> <!-- /topstory-title -->
<div id="topstory-desc-in">
</div> <!-- /topstory-desc-in -->
</div> <!-- /topstory-desc -->
</div> <!-- /topstory -->
<div>
<SCRIPT language="JavaScript" type="text/javascript">
function setEndDate()
     var i=0;
     for (var j = 0; j < document.forms[0].elements.length; j++) {
          if (document.forms[0].elements[j].type == 'text')i++;
     for (var k = 0; k < i; k++) {     
          document.getElementById("hhh"+k).value=document.getElementById("bbb"+k).value;
function free_date_picker(obj_name, layer_name, text_to ,type, hide_self, language, row_id, coursetime)
// IF str < lng, add leading 0 to complete the str
function leading_zeros(str, lng)
// param validation
if(lng == null)
lng = 2;
var str = str.toString();
while(str.length < lng)
str = '0' + str;
return str;
// Nbr days for this month
function returnDays(date)
var year = date.getFullYear();
var month = date.getMonth();
var days = 31;
if( month == 3 || month == 5 || month == 8 || month == 10 ){
days = 30;
else if(month == 1){
days = 28;
if(year % 4 == 0){
days = 29;
if(year % 100 == 0){
days = 28;
if(year % 400 == 0){
days = 29;
return(days);
// Return last month
function returnLastMonth(date)
var year = date.getFullYear();
var month = date.getMonth();
var dt = new Date();
month --;
if(month == -1){
month = 11;
year --;
dt.setYear(year);
dt.setDate(1);
dt.setMonth(month);
return dt;
// Retourne le mois suivant
function returnNextMonth(date)
var year = date.getFullYear();
var month = date.getMonth();
var dt = new Date();
month ++;
if(month == 12){
month = 0;
year ++;
dt.setYear(year);
dt.setDate(1);
dt.setMonth(month);
return dt;
// Retourne le nom du mois
function return_month_name(date)
switch(language){
case("en"):
var month = new Array('January', 'February', 'March', 'April', 'May', 'June',
'July', 'August', 'September', 'October', 'November', 'December');
break;
case("fr"):
default:
var month = new Array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin',
'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');
return month[date.getMonth()];
function return_month_in_letters(themonth)
switch(language){
case("en"):
var month = new Array('January', 'February', 'March', 'April', 'May', 'June',
'July', 'August', 'September', 'October', 'November', 'December');
break;
case("fr"):
default:
var month = new Array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin',
'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');
return month[themonth];
this.setto = function(eng_date)
// input text
if(type == 1)
document.getElementById(text_to).value = eng_date;
// span, div ...
if(type == 2)
document.getElementById(text_to).innerHTML = eng_date;
this.write_calendar = function(date)
var monDate;
var nb_days_last_month = 0;
var cnt_days = 0;
var days_month = 0;
var str = new String();
var style = new String();
var next_month = new Date();
var last_month = new Date();
var today = new Date();
var date = new Date(date);
var last_year = new Date(date);
var next_year = new Date(date);
date.setDate(1); // le premier du mois
next_month = returnNextMonth(date); // le mois précédent
last_month = returnLastMonth(date); // le mois suivant
nb_days_last_month = returnDays(last_month); // nombre jours mois précédent
cnt_days = -date.getDay()+1; // compteur de jours, part le dimanche du début du mois
days_month = returnDays(date); // nombre de jours mois sélectionné
str = ''; // forge la chaîne de caractères à mettre dans la div
next_year.setYear(date.getFullYear() + 1); // année précédente
last_year.setYear(date.getFullYear() - 1); // année suivante
str += '<table cellspacing="0" cellpadding="0" border="1" width="250" bgcolor="blue">';
str += '<tr>';
// année précédente
str += ' <td colspan="1" align="left"><a href="' + "javascript:" +
obj_name + ".write_calendar('" + eval(last_year) + "')" + ';"><--</a></td>';
// mois précédent
str += ' <td colspan="1" align="left"><a href="' + "javascript:" +
obj_name + ".write_calendar('" + eval(last_month) + "')" + '"><-</a></td>';
// libellé mois année
str += ' <td colspan="3" align="center">'
str += return_month_name(date) + ' ' + date.getFullYear();
str += ' </td>';
// mois suivant
str += ' <td colspan="1" align="right"><a href="' + "javascript:" +
obj_name + ".write_calendar('" + eval(next_month) + "')" + '">-></a></td>';
// année suivante
str += ' <td colspan="1" align="right"><a href="' + "javascript:" +
obj_name + ".write_calendar('" + eval(next_year) + "')" + '">--></a></td>';
str += '</tr>';
// pour tous les jours du mois
var cnt_semaines = 0;
while(cnt_semaines < 6){
cnt_semaines ++;
str += ' <tr>';
for(var cnt = 0; cnt < 7; cnt++){
// mois suivant
if(cnt_days > days_month){
day = cnt_days - days_month;
month = next_month.getMonth() + 1;
year = next_month.getFullYear();
style = "font-size:10px;";
// mois précédent
else if(cnt_days < 1){
day = cnt_days + nb_days_last_month;
month = last_month.getMonth() + 1;
year = last_month.getFullYear();
style = "font-size:10px;";
// mous sélectionné
else{
var d1 = new Date();
var d2 = new Date();
// Todays date for comparision.
          var today=new Date();     
d1.setMonth(date.getMonth());
d1.setYear(date.getFullYear());
d1.setDate(cnt_days);
day = cnt_days;
month = date.getMonth() + 1;
year = date.getFullYear();
// aujourd'hui ?
if(d1.getFullYear() == d2.getFullYear() && d1.getMonth() == d2.getMonth() && d1.getDate() == d2.getDate() ){
style = "font-size:18px;font-color:red;";
else{
style = "font-size:12px;";
//dstr = year + '/' + leading_zeros(month) + '/' + leading_zeros(day);
          dstr=leading_zeros(day) + ' ' + return_month_in_letters(month-1) + ' ' + year;
          if (cnt==1) monDate=dstr;
// inscrit la cellule
str += ' <td width="14%">';
str += ' <span style="' + style + '">';
if (month < (today.getMonth()+1) || (year < today.getFullYear()) ) {
str += '<font color="darkblue">';
str += day;
str += '</font>';
} else if ((cnt>=1)&& (cnt<=5) && (month == (today.getMonth()+1)) && (day > today.getDate())) {
str += ' <a href="javascript:' + obj_name + '.setto(\'' + dstr + '\')" onClick="getWeekCalendarViewTrainer(\''+monDate+'\', \''+row_id+'\', \''+coursetime+'\', \''+dstr+'\')">';
str += day;
str += ' </a>';
} else if ( ((cnt>=1)&& (cnt<=5) && (month > (today.getMonth()+1))) || ( (cnt>=1)&& (cnt<=5) && (year > today.getFullYear()) ) ) {
str += ' <a href="javascript:' + obj_name + '.setto(\'' + dstr + '\')" onClick="getWeekCalendarViewTrainer(\''+monDate+'\', \''+row_id+'\', \''+coursetime+'\', \''+dstr+'\')">';
str += day;
str += ' </a>';
}else {
str += '<font color="darkblue">';
str += day;
str += '</font>';
str += ' </font>';
str += ' </td>';
cnt_days ++;
str += ' </tr>';
str += '</table>';
document.getElementById(layer_name).innerHTML = str;
this.show = function()
if(hide_self)
document.getElementById(layer_name).style.visibility = 'visible';
this.hide = function()
if(hide_self)
document.getElementById(layer_name).style.visibility = 'hidden';
// create layer and show calendar
document.write('<div id="' + layer_name + '" onmouseout="' + obj_name + '.hide();">...</div>');
this.write_calendar(new Date());
</SCRIPT>
<form name="BookType2" action="<c:url value="/secure/bookCourse.htm"/>" method="post" onsubmit="javascript:setEndDate()">
     <%int errorCount=0; %>
     <spring:bind path="booking.*">
     <c:forEach items="${status.errorMessages}" var="error">
               <B><font color="red">Error: <c:out value="${error}"/></font><B/><br/>
               <% errorCount++; %>
     </c:forEach>
     </spring:bind>
     <% if (errorCount == 0) { %>
     <table width="960">
          <%int i=0; %>
          <c:forEach items="${booking.bookingDetails}" var="q" varStatus="rowStatus">
          <tr><td colspan="3">Pick a Date from the Date Picker for Course:          
               <strong> <c:out value="${q.course.courseTitle}"/></strong></td></tr>
          <tr><td>
          <%String theCourseTime=((BookingDetails)pageContext.getAttribute("q")).getCourse().getCoursetime();%>
          <script>var b<%=i %> = new free_date_picker('b<%=i %>', 'date_picker_b<%=i %>', 'bbb<%=i %>', 1, false, 'en', '<%=i %>', '<%=theCourseTime%>');</script>
          </td><td>
          <spring:bind path="booking.bookingDetails['${rowStatus.index}'].startDate">
          <input name="bookingDetails[<%=i %>].startDate" id="bbb<%=i %>" type="text" size="17" readOnly="true" value="<c:out value="${status.value}"/>" />
          </spring:bind>
          <spring:bind path="booking.bookingDetails['${rowStatus.index}'].endDate">
          <input name="bookingDetails[<%=i %>].endDate" id="hhh<%=i %>" type="hidden" value="<c:out value="${status.value}"/>" />
          </spring:bind>
          <br/><br/>
          <c:if test="${q.trainer.trainerId == null}">
          <spring:bind path="booking.bookingDetails['${rowStatus.index}'].trainer.trainerId">
          <select name="bookingDetails[<%=i %>].trainer.trainerId" id="trainerValue<%=i %>">
          <option value="">Select trainer</option>
          </select>
          </spring:bind>
          </c:if>
          <c:if test="${q.trainer.trainerId != null}">
          <spring:bind path="booking.bookingDetails['${rowStatus.index}'].trainer.trainerId">
          <select name="bookingDetails[<%=i %>].trainer.trainerId" id="trainerValue<%=i %>">
          <option value="<c:out value="${status.value}"/>" selected><c:out value="${q.trainer.title} ${q.train                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

The slightest mistake in a javascript function will cause JSP to have problems and Javascript will not tell you what the
problem is. Example, if you are missing a ';' it will not tell you where the problem is.
Its best to comment out all contents of all the javascript functions and run your JSP. If displays ok, then uncomment
out one function at a time and try running the JSP again. Keep doing this until you come across the one or more
functions that have a problem and fix them.
One problem I think I found is this:
FROM
for(i=0;i<=bookings.length;i++)
TO:
for(var i=0;i<=bookings.length;i++)
If you comment out the javascript and it still doesnt compile, comment out blocks of the html tags, then uncomment one section at a time to see where the problem is. Alternatively, install an IDE such as Eclipse. Its JSP editor will often highlight where there is a problem in the html tags (but not in the javascript)

Similar Messages

  • Included JSPs not compiling

    I have some JSP code which does not compile in JDeveloper but works fine when deployed in a web server (Websphere).
    There is a page called main.jsp with code like:
    Map clientDataList = (Map) request.getAttribute("clientDataList");
    <%@ include file="standard1Page.jsp" %>
    clientDataList is set in a servlet which forwards to main.jsp. On standard1Page.jsp I want to access the clientDataList object:
    <%= clientDataList.get("sitealignment") %>
    But standard1Page.jsp does not compile in JDeveloper because clientDataList is not defined on that page:
    Error(2,75): variable clientDataList not found in class _standard1Page
    Is this a fundamental problem with JDeveloper not following through the "includes" when doing the project compile, or is there something I can set to make this stuff compile. If not I'm going to have to edit my JSPs in a text editor so I can compile my project.
    Francis

    I have some JSP code which does not compile in JDeveloper but works fine when deployed in a web server (Websphere).
    There is a page called main.jsp with code like:
    Map clientDataList = (Map) request.getAttribute("clientDataList");
    <%@ include file="standard1Page.jsp" %>
    clientDataList is set in a servlet which forwards to main.jsp. On standard1Page.jsp I want to access the clientDataList object:
    <%= clientDataList.get("sitealignment") %>
    But standard1Page.jsp does not compile in JDeveloper because clientDataList is not defined on that page:
    Error(2,75): variable clientDataList not found in class _standard1Page
    Is this a fundamental problem with JDeveloper not following through the "includes" when doing the project compile, or is there something I can set to make this stuff compile. If not I'm going to have to edit my JSPs in a text editor so I can compile my project.
    Francis The problem is that "standard1page.jsp" is not a JSP page, it is just a text fragment to be included in a real JSP page. As it's just a fragment, it won't compile correctly as a JSP page. If you add it to your project as ".jsp", JDeveloper tries to compile it.
    A common convention for JSP included fragments is to name them with a".jspf" suffix, so it's relatively clear what they are, and to make the IDE not compile them as JSP pages.

  • JSP not compiled by JASPER, but OK by hand

    If I alter my JSPs, I get the message at the bottom. However, if I go to the work directory and manually do a JAVAC on the _jsp.java file, it compiles fine and I can refresh the page and it is now fine.  I'm using a bean, and to make it work by hand had to move it into the work directory under its package name.  Is the \/*.jsp in the source name causeing this error?
    I am using APACHE 2, TOMCAT 4.1, ANT 1.4 and mod_jk on a Windows 2000 server machine.
    Following this message is the relavent parts of my environment variables:
    ======================================================
    StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
         at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
         at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    2002-10-11 08:39:59 Error compiling file: D:\Programs\Apache\Tomcat\work\Standalone\localhost\_\/ISS_jsp.java [javac] Compiling 1 source file
    ======================================================
    ANT_HOME=D:\Programs\Apache\Ant
    APACHE_HOME=D:\Programs\Apache\Apache2
    CATALINA_HOME=D:\Programs\Apache\Tomcat
    CLASSPATH=.;D:\Programs\SQLLIB\java\db2java.zip;D:\Programs\SQLLIB\java\runtime.zip;d:\java\jdk1.4\lib\ext\QTJava.zip;D:\JAVA\JDK1.4
    \lib;D:\JAVA\J2EE\lib\j2ee.jar;D:\JAVA\J2EE\lib\jhall.jar;
    DB2INSTANCE=DB2
    DB2TEMPDIR=D:\Programs\SQLLIB
    J2EE_HOME=D:\JAVA\J2EE
    JAVA_HOME=D:\JAVA\JDK1.4
    JDK_HOME=D:\JAVA\JDK1.4
    libpath=.;D:\JAVA\JDK1.4\lib;D:\JAVA\J2EE\lib;
    Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;D:\Programs\SQLLIB\BIN;D:\Programs\SQLLIB\FUNCTION;D:\Programs\SQLLIB\SAMPLES
    \REPL;D:\Programs\SQLLIB\HELP;D:\IMNNQ_NT;d:\Programs\PGPNT;D:\JAVA\JDK1.4\bin;D:\JAVA\J2EE\bin;;D:\Programs\PROTEC~1
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 1, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0801
    QTJAVA="d:\java\jdk1.4\lib\ext\QTJava.zip"

    I have this error too...
    In log of tomcat it appears the following error:
    2002-11-27 09:16:55 Error compiling file: C:\Arquivos de programas\Apache Group\Tomcat 4.1\work\Standalone\localhost\fms\/index_jsp.java [javac] Compiling 1 source file
    I believe that the error occurs due to ?... \/index_jsp.java? that it appears in the message.
    Where I can correct this error?
    Help-me...
    Mr. Darcy
    In browser it appers the following error:
    Type:Exception report
    message description: The server encountered an internal error () that prevented it from fulfilling this request.
    exception :
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)

  • Can not compile the jsp in Tomcat 4

    Hello anyone
    Now I use jdk1.4 and Tomcat 4.0.4, and put in the directory d:\j2sdk and d:\tomcat. Even I set the classpath as follow, I still compile jsp.
    SET CLASSPATH=.;D:\j2sdk\lib\tools.jar;D:\tomcat\common\lib\servlet.jar
    but at before, i can run it at Tomcat 3.2.
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:4: Class or interface declaration expected.
    import javax.servlet.*;
    ^
    D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.userCounter$jsp not found.
    public class userCounter$jsp extends HttpJspBase {
    ^
    2 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    pls help, thank you very much!

    This is a new problem with jdk1.4 when compiling with tomcat.
    The solution is to ensure that any classes in WEB-INF/classes are in a package structure and the relevant jsp calls the same using the package name.
    best
    kev

  • NWDS 7 does not compile JSPs

    I have recently downloaded NWDS tool that comes with the NW04s trial version (NWDS version 7).
    When I create portal components (par files), NWDS does not compile the java files.  It creates a par file even with errors in Java. Is this a new "feature" of NWDS? am I missing anything?

    Create DC for the JSP also. It will work.

  • Some jsps will not compile FC5+Tomcat

    Hello,
    I cannot compile SOME jsp pages for some reason.
    I have something like this:
    http://www.mydomain.net:8080/WEB/index.jsp - this comiles
    http://www.mydomain.net:8080/WEB/BLAH/BLAH/index.jsp - will not compile where BLAH is a bunch of different folders.
    I have it all working on Win XP. Now I am trying to make it work on FC5.
    I took the page that can compile and moved it to BLAH/BLAH folder and it does not compile now!
    OS: Fedora Core 5 (if it matters)
    What is going on? Any ideas?
    Thanks.

    sure, here it is
    Thanks for help.
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:342)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:248)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Compile failed; see the compiler error output for details.
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:216)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • Why JSP not use new class that I compile again?

    I use bean class with JSP. But When I add some code and compile new bean. JSP not use new been class it use old class.
    I try to set file server.xml and set <DefaultContext reloadable="true"/> and restart Tomcat. But it not work?
    any help please?

    I run JSP in http://localhost:8080/stringbean.jsp
    is context name mean localhost
    in c:\tomcat\work has following directory
    standalone (level1 dir)
    localhost (level2 dir)
    - (level3 dir)
    examples (level3 dir)
    manager (level3 dir)
    tomcat-doc (level3 dir)
    webdav (level3 dir)

  • How I not compile jsp again?

    Whenever I restart the weblogic server, all the jsp loading will be slow since it seems wl will compile all jsp again. I have tried to set the startmode=true and config war's reload period = -1. But it does not work. It result in the very poor performance since the jsp loading will consume so much time. How I force the wl does not compile the jsps again?
              

    import java.awt.event.*;
    import java.awt.*;
    import java.applet.*;
    public class MyApplet extends Applet implements Runnable {
    // Variable definitions
    int a[];
    double b[];
    // methods definitions
    public void init(){
    MyFile file = new MyFile();
    MyMath math = new MyMath();
    file.file_init(); // see file: MyFile.class
    math.math_init(); // see file: MyMath.class
    public void start() {
    public void run() {
    // note these two methods
    file.file_read(); // see file: MyFile.class
    math.math_atan(); // see file: MyMath.class
    ----------------------------MyMath.class-----------------------------------------
    public class MyMath {
    // variable definitions
    int x[];
    double y[];
    public void math_init(){
    public void math_atan() {
    // some user define math opperation
    public void math_dispose() {
    // some destroy code
    ------------------------------MyFile.class----------------------------------------
    public class MyFile {
    // variable definitions
    public void file_init() {
    // file initialize code
    public void file_dispose() {
    // file dispose code
    public void file_read() {
    // read some format file
    Note classes are something like c structure you can make a instances of them see a struct would be something like this
    struct MyMath {
       int math_init;
    }math;
      ^
      |
    instance
    and we could access the info in that struct like  math.math_init; well java uses classes keyword "class" like you see above but java does this
    MyMath math = new MyMath();
            ^
            |
          instance
    math.math_init();Well good luck hope this helps

  • Appc does not compile JSPs under WEB-INF

    Hi,
              We are using WLS 8.1 and I noticed that appc does not compile jsps that are
              under WEB-INF. Is this expected? If the jsps are outside of WEB-INF then
              appc works fine...
              Thanks!
              John
              

    Although the client is not allowed to directly access jsps under WEB-INF, it
              is perfectly acceptable (and often recommended) to use a front controller to
              forward to jsps. Often these jsps are "hidden" in the WEB-INF directory so
              that they can't be accessed directly by the client. This pattern works fine
              under 8.1 except that appc won't precompile the jsps under WEB-INF (the
              container does compile the jsps when they are called). I believe this is a
              bug... If jsps are allowed in WEB-INF then appc should compile them...
              John
              "Stjepan Brbot" <stjepan.brbot@@zg.hinet.hr> wrote in message
              news:[email protected]...
              > Yes, this is expected! Web container, or better to say it's web component,
              > does not serve content of WEB-INF directory directly mening you cannot
              > access jsp inside WEB-INF like
              http://host:port/WebApp/WEB-INF/something.jsp
              > hence there's no need for compiling JSP's in it! The content of WEB-INF
              > directory can be accessed only via internal links so it is mostly used for
              > referencing taglibs. JSPs, HTMLs, images and all other file type that has
              to
              > be accessible directly by client web-server (not container internally)
              > should be in application directory or one of it's subdirectories.
              >
              > "John Hampton" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > >
              > > We are using WLS 8.1 and I noticed that appc does not compile jsps that
              > are
              > > under WEB-INF. Is this expected? If the jsps are outside of WEB-INF
              then
              > > appc works fine...
              > >
              > > Thanks!
              > > John
              > >
              > >
              >
              

  • JSP Pages are not compiling in JBoss5.1.0GA

    Hi Folks,
    We have developed an webapplication and we deployed in JBoss4.0.1sp1 application is running fine.
    One week back we downloaded JBoss5.1.0GA and we deployed the same application in JBoss5.1.0GA, but we are getting this eaception "org.apache.jasper.JasperException: Unable to compile class for JSP: "
    please find the exception details below
    ====================================================================================================
    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: Unable to compile class for JSP:
    An error occurred at line: 56 in the generated java file
    The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
    An error occurred at line: 17 in the jsp file: /pages/configset/createconfigset.jsp
    The method setJspId(String) is undefined for the type ViewTag
    14: <%@page import="com.cisco.wo.configui.beans.backing.configset.CreateBackingBean"%>
    15: <%@page import="com.cisco.wo.configui.utils.ConfigUIConst"%>
    16:
    17: <f:view>
    18:
    19:
    20: <%
    An error occurred at line: 45 in the jsp file: /pages/configset/create.jsp
    The method setJspId(String) is undefined for the type SubviewTag
    42:
    43: <!-- Start header -->
    44:
    45: <f:subview id="configsetHeader">
    46: <c:import url="configsetheader.jsp" />
    47: </f:subview>
    48:
    An error occurred at line: 45 in the jsp file: /pages/configset/createt.jsp
    The method setBodyContent(BodyContent) is undefined for the type SubviewTag
    42:
    43: <!-- Start header -->
    44:
    45: <f:subview id="configsetHeader">
    46: <c:import url="setheader.jsp" />
    47: </f:subview>
    48:
    An error occurred at line: 45 in the jsp file: /pages/configset/create.jsp
    The method doInitBody() is undefined for the type SubviewTag
    42:
    43: <!-- Start header -->
    44:
    45: <f:subview id="configsetHeader">
    46: <c:import url="configsetheader.jsp" />
    47: </f:subview>
    48:
    Thanks in Advance...!

    Hi All,
    We developed the JSF web application in JBoss4.0.1SP1 the application running fine.
    The same application we deployed in JBoss5.1.0GA some of the pages are compiling and some of the pages are not compiling.
    the exception log:
    =======================================================================================================================================
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 16 in the jsp file: /pages/configset/itemstab.jsp
    The method setJspId(String) is undefined for the type ViewTag
    13: <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    14:
    15: <%@page errorPage="configseterrorpage.jsp"%>
    16: <f:view>
    17:      <head>
    18:      <title>Configuration Set - Items</title>
    19:      <!-- Include Global Meta Data -->
    An error occurred at line: 46 in the jsp file: /pages/configset/itemstab.jsp
    The method setJspId(String) is undefined for the type SubviewTag
    43:
    44:      <!--googleoff: index-->
    45:
    46:      <f:subview id="configsetheader">
    47:           <c:import url="configsetheader.jsp" />
    48:      </f:subview>
    49:
    An error occurred at line: 46 in the jsp file: /pages/configset/itemstab.jsp
    The method setBodyContent(BodyContent) is undefined for the type SubviewTag
    43:
    44:      <!--googleoff: index-->
    45:
    46:      <f:subview id="configsetheader">
    47:           <c:import url="configsetheader.jsp" />
    48:      </f:subview>
    49:
    An error occurred at line: 46 in the jsp file: /pages/configset/itemstab.jsp
    The method doInitBody() is undefined for the type SubviewTag
    43:
    44:      <!--googleoff: index-->
    45:
    46:      <f:subview id="configsetheader">
    47:           <c:import url="configsetheader.jsp" />
    48:      </f:subview>
    49:
    An error occurred at line: 413 in the generated java file
    The method doAfterBody() is undefined for the type SubviewTag
    An error occurred at line: 61 in the jsp file: /pages/configset/itemstab.jsp
    The method setJspId(String) is undefined for the type SubviewTag
    58:
    59:      <!-- Begin Main Content -->
    60:      <div class="icw">
    61:      <div class="icwWrapper icwOrder" style="width: 921px"><f:subview
    62:           id="configsetsummary">
    63:           <c:import url="configsetsummary.jsp" />
    64:      </f:subview></div>
    An error occurred at line: 61 in the jsp file: /pages/configset/itemstab.jsp
    The method setBodyContent(BodyContent) is undefined for the type SubviewTag
    58:
    59:      <!-- Begin Main Content -->
    60:      <div class="icw">
    61:      <div class="icwWrapper icwOrder" style="width: 921px"><f:subview
    62:           id="configsetsummary">
    63:           <c:import url="configsetsummary.jsp" />
    64:      </f:subview></div>
    note The full stack trace of the root cause is available in the JBoss Web/2.1.3.GA logs.
    ============================================================================
    Thanks in Advance...!

  • JSP not showing code insight on press of CTRL+SPACE

    Hi , i am using jDeveloper 11.1.2.
    When i was using JDeveloper 11.1.1.3 , my jsp's where showing code insight correctly when i clicked on CTRL+SPACE after writing any methodname etc.
    But after upgrading to jdeveloper 11.1.2 my jsps are not showing code insight on ctrl+space , only java file shows properly code insight.
    Please help me.
    Note: but my jsp's compile successfully and run also, only code insight is not working.
    Zeeshan

    can some one please help me ?
    Zeeshan

  • Urgent: JSP gives compilation error in one environment, but works OK in another. wls 6.1 on Solaris

              I have tried a lot searching for such issue, but cd not find any solution which
              cd help me.
              We have a jsp which compiles well in one enviroment, but does not compile in another.
              The enviroment in which it compiles is as follows:
              OS: Solaris 2.6, Patch level 32
              wls version: 6.1 with no service pak
              The enviroment in which it does not compile is as follows:
              OS: Solaris 8, Patch level 19
              wls version: 6.1 with no service pak
              In the second enviroment, it gives the folowing error, when invoked...
              //error start....
              /requisition/reqteamwiz.jsp(532): scriptlet close brace '}' unbalanced at line
              532 which breaks scope '_base_service_scope_'
              probably occurred due to an error in /requisition/reqteamwiz.jsp line 532:
              <strong><font face="Verdana" size="1"><input type="button" style="font-family:
              Verdana; font-size: 8pt" name="B1" value=" Submit " onClick="FrontPage_Form1_Validator(document.FrontPage_Form1,
              '<%= i%>')"></td></font></strong>
              //error end
              The line seems OK, and this works fine in the first enviroment.
              Cd anyone pls give any suggestions or references as to any known issues with the
              second enviroment.
              Thanks a lot...
              

              [email protected] (David M. Karr) wrote:
              >>>>>> "vinay" == vinay s <[email protected]> writes:
              >
              > vinay> I have tried a lot searching for such issue, but cd not find
              >any solution which
              > vinay> cd help me.
              > vinay> We have a jsp which compiles well in one enviroment, but does
              >not compile in another.
              > vinay> The enviroment in which it compiles is as follows:
              > vinay> OS: Solaris 2.6, Patch level 32
              > vinay> wls version: 6.1 with no service pak
              >
              > vinay> The enviroment in which it does not compile is as follows:
              > vinay> OS: Solaris 8, Patch level 19
              > vinay> wls version: 6.1 with no service pak
              >
              > vinay> In the second enviroment, it gives the folowing error, when
              >invoked...
              > vinay> //error start....
              > vinay> /requisition/reqteamwiz.jsp(532): scriptlet close brace '}'
              >unbalanced at line
              > vinay> 532 which breaks scope '_base_service_scope_'
              > vinay> probably occurred due to an error in /requisition/reqteamwiz.jsp
              >line 532:
              > vinay> <strong><font face="Verdana" size="1"><input type="button"
              >style="font-family:
              > vinay> Verdana; font-size: 8pt" name="B1" value=" Submit " onClick="FrontPage_Form1_Validator(document.FrontPage_Form1,
              > vinay> '<%= i%>')"></td></font></strong>
              > vinay> //error end
              >
              > vinay> The line seems OK, and this works fine in the first enviroment.
              > vinay> Cd anyone pls give any suggestions or references as to any
              >known issues with the
              > vinay> second enviroment.
              > vinay> Thanks a lot...
              >
              >If you use an expression scriptlet for an attribute value, it has to
              >be the
              >entire attribute value, not just a portion of it.
              >
              >--
              >===================================================================
              >David M. Karr ; Java/J2EE/XML/Unix/C++
              >[email protected] ; SCJP; SCWCD
              >
              >
              I am using the scriplet for entire value, seems the post got jumbled up.
              FrontPage_Form1_Validator is a javascript function which takes 2 parameters, one
              of which is provided by the expression scriplet.
              <strong><font face="Verdana" size="1"><input type="button" style="font-family:
              Verdana; font-size: 8pt" name="B1" value=" Submit " onClick="FrontPage_Form1_Validator(document.FrontPage_Form1,
              '<%= i%>')"></td></font></strong>
              

  • JSP not executing the java code

    Hello there.
    my m/c: tru64 unix
    Apache version: 2.0
    tomcat version: 4.0.5
    browser version: IE5
    I have index.jsp as
    =======
    <HTML>
    <HEAD>
    <TITLE> Vimala's JSP </TITLE>
    </HEAD>
    <BODY>
    Hello <%= request.getParameter ("name") %>
    <%
    for (int i=1; i < 5; i++)
    out.print ("<BR> Sample JSP loop");
    %>
    <FORM METHOD=POST ACTION="vimala.jsp">
    Enter nothing
    <INPUT TYPE=TEXTAREA NAME=name>
    <BR><BR><INPUT TYPE=SUBMIT>
    </FORM>
    </BODY>
    </HTML>
    =======
    The above neither prints the getParameter ("name") as passed in URL nor it prints the "for loop" values.
    However the html related things such as title and Form are properly displayed in the browser.
    I think I'm missing something in the tomcat (server.xml) or apache (httpd.conf) configurations. Your inputs to solve my problem is very much appreciated.
    Thank you,
    Vimala.

    Please find the web.xml here.
    ==============web.xml start==============
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <!-- ======================== Introduction ============================== -->
    <!-- This document defines default values for all web applications -->
    <!-- loaded into this instance of Tomcat. As each application is -->
    <!-- deployed, this file is processed, followed by the -->
    <!-- "/WEB-INF/web.xml" deployment descriptor from your own -->
    <!-- applications. -->
    <!-- ================== Built In Servlet Definitions ==================== -->
    <!-- The default servlet for all web applications, that serves static -->
    <!-- resources. It processes all requests that are not mapped to other -->
    <!-- servlets with servlet mappings (defined either here or in your own -->
    <!-- web.xml file. This servlet supports the following initialization -->
    <!-- parameters (default values are in square brackets): -->
    <!-- -->
    <!-- debug Debugging detail level for messages logged -->
    <!-- by this servlet. [0] -->
    <!-- -->
    <!-- input Input buffer size (in bytes) when reading -->
    <!-- resources to be served. [2048] -->
    <!-- -->
    <!-- listings Should directory listings be produced if there -->
    <!-- is no welcome file in this directory? [true] -->
    <!-- -->
    <!-- output Output buffer size (in bytes) when writing -->
    <!-- resources to be served. [2048] -->
    <!-- -->
    <!-- readonly Is this context "read only", so HTTP -->
    <!-- commands like PUT and DELETE are -->
    <!-- rejected? [true] -->
    <servlet>
    <servlet-name>default</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>listings</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- The "invoker" servlet, which executes anonymous servlet classes -->
    <!-- that have not been defined in a web.xml file. Traditionally, this -->
    <!-- servlet is mapped to URL pattern "/servlet/*", but you can map it -->
    <!-- to other patterns as well. The extra path info portion of such a -->
    <!-- request must be the fully qualified class name of a Java class that -->
    <!-- implements Servlet (or extends HttpServlet), or the servlet name -->
    <!-- of an existing servlet definition. This servlet supports the -->
    <!-- following initialization parameters (default values are in square -->
    <!-- brackets): -->
    <!-- -->
    <!-- debug Debugging detail level for messages logged -->
    <!-- by this servlet. [0] -->
    <servlet>
    <servlet-name>invoker</servlet-name>
    <servlet-class>org.apache.catalina.servlets.InvokerServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- The JSP page compiler and execution servlet, which is the mechanism -->
    <!-- used by Tomcat to support JSP pages. Traditionally, this servlet -->
    <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
    <!-- following initialization parameters (default values are in square -->
    <!-- brackets): -->
    <!-- -->
    <!-- classpath What class path should I use while compiling -->
    <!-- generated servlets? [Created dynamically      -->
      <!--                       based on the current web application] -->
    <!-- -->
    <!-- classdebuginfo Should the class file be compiled with -->
    <!-- debugging information? [false] -->
    <!-- -->
    <!-- ieClassId The class-id value to be sent to Internet -->
    <!-- Explorer when using <jsp:plugin> tags. -->
    <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
    <!-- -->
    <!-- jspCompilerPlugin The fully qualified class name of the JSP -->
    <!-- compiler plug-in to be used. See below for -->
    <!-- more information. -->
    <!-- [Use internal JDK compiler] -->
    <!-- -->
    <!-- keepgenerated Should we keep the generated Java source code -->
    <!-- for each page instead of deleting it? [true] -->
    <!-- -->
    <!-- largefile Should we store the static content of JSP -->
    <!-- pages in external data files, to reduce the -->
    <!-- size of the generated servlets? [false] -->
    <!-- -->
    <!-- logVerbosityLevel The level of detailed messages to be produced -->
    <!-- by this servlet. Increasing levels cause the -->
    <!-- generation of more messages. Valid values are -->
    <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
    <!-- [WARNING] -->
    <!-- -->
    <!-- mappedfile Should we generate static content with one -->
    <!-- print statement per input line, to ease -->
    <!-- debugging? [false] -->
    <!-- -->
    <!-- scratchdir What scratch directory should we use when -->
    <!-- compiling JSP pages? [default work directory  -->
      <!--                       for the current web application] -->
    <!-- -->
    <!-- If you wish to use Jikes to compile JSP pages: -->
    <!-- * Set the "classpath" initialization parameter appropriately -->
    <!-- for this web application. -->
    <!-- * Set the "jspCompilerPlugin" initialization parameter to -->
    <!-- "org.apache.jasper.compiler.JikesJavaCompiler". -->
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    <param-name>logVerbosityLevel</param-name>
    <param-value>WARNING</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
    </servlet>
    <!-- Server Side Includes processing servlet, which processes SSI -->
    <!-- directives in HTML pages consistent with similar support in web -->
    <!-- servers like Apache. Traditionally, this servlet is mapped to -->
    <!-- URL pattern "*.shtml". This servlet supports the following -->
    <!-- initialization parameters (default values are in square brackets): -->
    <!-- -->
    <!-- buffered Should output from this servlet be buffered? -->
    <!-- (0=false, 1=true) [0] -->
    <!-- -->
    <!-- debug Debugging detail level for messages logged -->
    <!-- by this servlet. [0] -->
    <!-- -->
    <!-- expires The number of seconds before a page with SSI -->
    <!-- directives will expire. [No default] -->
    <!-- -->
    <!-- isVirtualWebappRelative -->
    <!-- Should "virtual" paths be interpreted as -->
    <!-- relative to the context root, instead of -->
    <!-- the server root? (0=false, 1=true) [0] -->
    <!-- -->
    <!-- ignoreUnsupportedDirective -->
    <!-- Should unknown or misspelled Ssi directives -->
    <!-- be ignored and no errors shown? -->
    <!-- (0=false, 1=true) [1] -->
    <!-- IMPORTANT: To use the CGI servlet, you also need to rename the -->
    <!-- $CATALINA_HOME/server/lib/servlets-ssi.renametojar file -->
    <!-- to $CATALINA_HOME/server/lib/servlets-ssi.jar -->
    <!--
    <servlet>
    <servlet-name>ssi</servlet-name>
    <servlet-class>org.apache.catalina.servlets.SsiInvokerServlet</servlet-class>
    <init-param>
    <param-name>buffered</param-name>
    <param-value>1</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>expires</param-name>
    <param-value>666</param-value>
    </init-param>
    <init-param>
    <param-name>isVirtualWebappRelative</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>ignoreUnsupportedDirective</param-name>
    <param-value>1</param-value>
    </init-param>
    <load-on-startup>4</load-on-startup>
    </servlet>
    -->
    <!-- Common Gateway Includes (CGI) processing servlet, which supports -->
    <!-- execution of external applications that conform to the CGI spec -->
    <!-- requirements. Typically, this servlet is mapped to the URL pattern -->
    <!-- "/cgi-bin/*", which means that any CGI applications that are -->
    <!-- executed must be present within the web application. This servlet -->
    <!-- supports the following initialization parameters (default values -->
    <!-- are in square brackets): -->
    <!-- -->
    <!-- cgiPathPrefix The CGI search path will start at -->
    <!-- webAppRootDir + File.separator + this prefix. -->
    <!-- [WEB-INF/cgi] -->
    <!-- -->
    <!-- clientInputTimeout The time (in milliseconds) to wait for input -->
    <!-- from the browser before assuming that there -->
    <!-- is none. [100] -->
    <!-- -->
    <!-- debug Debugging detail level for messages logged -->
    <!-- by this servlet. [0] -->
    <!-- IMPORTANT: To use the CGI servlet, you also need to rename the -->
    <!-- $CATALINA_HOME/server/lib/servlets-cgi.renametojar file -->
    <!-- to $CATALINA_HOME/server/lib/servlets-cgi.jar -->
    <!--
    <servlet>
    <servlet-name>cgi</servlet-name>
    <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
    <init-param>
    <param-name>clientInputTimeout</param-name>
    <param-value>100</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>6</param-value>
    </init-param>
    <init-param>
    <param-name>cgiPathPrefix</param-name>
    <param-value>WEB-INF/cgi</param-value>
    </init-param>
    <load-on-startup>5</load-on-startup>
    </servlet>
    -->
    <!-- ================ Built In Servlet Mappings ========================= -->
    <!-- The servlet mappings for the built in servlets defined above. Note -->
    <!-- that, by default, the CGI and SSI servlets are not mapped. You -->
    <!-- must uncomment these mappings (or add them to your application's own -->
    <!-- web.xml deployment descriptor) to enable these services -->
    <!-- The mapping for the default servlet -->
    <servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>/</url-pattern>
    </servlet-mapping>
    <!-- The mapping for the invoker servlet -->
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    <!-- The mapping for the JSP servlet -->
    <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    <!-- The mapping for the SSI servlet -->
    <!--
    <servlet-mapping>
    <servlet-name>ssi</servlet-name>
    <url-pattern>*.shtml</url-pattern>
    </servlet-mapping>
    -->
    <!-- The mapping for the CGI Gateway servlet -->
    <!--
    <servlet-mapping>
    <servlet-name>cgi</servlet-name>
    <url-pattern>/cgi-bin/*</url-pattern>
    </servlet-mapping>
    -->
    <!-- ==================== Default Session Configuration ================= -->
    <!-- You can set the default session timeout (in minutes) for all newly -->
    <!-- created sessions by modifying the value below. -->
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <!-- ===================== Default MIME Type Mappings =================== -->
    <!-- When serving static resources, Tomcat will automatically generate -->
    <!-- a "Content-Type" header based on the resource's filename extension, -->
    <!-- based on these mappings. Additional mappings can be added here (to -->
    <!-- apply to all web applications), or in your own application's web.xml -->
    <!-- deployment descriptor. -->
    <mime-mapping>
    <extension>abs</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ai</extension>
    <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aif</extension>
    <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aifc</extension>
    <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aiff</extension>
    <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aim</extension>
    <mime-type>application/x-aim</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>art</extension>
    <mime-type>image/x-jg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>asf</extension>
    <mime-type>video/x-ms-asf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>asx</extension>
    <mime-type>video/x-ms-asf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>au</extension>
    <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>avi</extension>
    <mime-type>video/x-msvideo</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>avx</extension>
    <mime-type>video/x-rad-screenplay</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>bcpio</extension>
    <mime-type>application/x-bcpio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>bin</extension>
    <mime-type>application/octet-stream</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>bmp</extension>
    <mime-type>image/bmp</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>body</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>cdf</extension>
    <mime-type>application/x-cdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>cer</extension>
    <mime-type>application/x-x509-ca-cert</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>class</extension>
    <mime-type>application/java</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>cpio</extension>
    <mime-type>application/x-cpio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>csh</extension>
    <mime-type>application/x-csh</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>css</extension>
    <mime-type>text/css</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dib</extension>
    <mime-type>image/bmp</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dtd</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dv</extension>
    <mime-type>video/x-dv</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dvi</extension>
    <mime-type>application/x-dvi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>eps</extension>
    <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>etx</extension>
    <mime-type>text/x-setext</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>exe</extension>
    <mime-type>application/octet-stream</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>gif</extension>
    <mime-type>image/gif</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>gtar</extension>
    <mime-type>application/x-gtar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>gz</extension>
    <mime-type>application/x-gzip</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>hdf</extension>
    <mime-type>application/x-hdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>hqx</extension>
    <mime-type>application/mac-binhex40</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>htc</extension>
    <mime-type>text/x-component</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>htm</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>hqx</extension>
    <mime-type>application/mac-binhex40</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ief</extension>
    <mime-type>image/ief</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jad</extension>
    <mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jar</extension>
    <mime-type>application/java-archive</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>java</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jnlp</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpe</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpeg</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpg</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>js</extension>
    <mime-type>text/javascript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>kar</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>latex</extension>
    <mime-type>application/x-latex</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>m3u</extension>
    <mime-type>audio/x-mpegurl</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mac</extension>
    <mime-type>image/x-macpaint</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>man</extension>
    <mime-type>application/x-troff-man</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>me</extension>
    <mime-type>application/x-troff-me</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mid</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>midi</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mif</extension>
    <mime-type>application/x-mif</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mov</extension>
    <mime-type>video/quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>movie</extension>
    <mime-type>video/x-sgi-movie</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mp1</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mp2</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mp3</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpa</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpe</extension>
    <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpeg</extension>
    <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpega</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpg</extension>
    <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpv2</extension>
    <mime-type>video/mpeg2</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ms</extension>
    <mime-type>application/x-wais-source</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>nc</extension>
    <mime-type>application/x-netcdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>oda</extension>
    <mime-type>application/oda</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pbm</extension>
    <mime-type>image/x-portable-bitmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pct</extension>
    <mime-type>image/pict</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pdf</extension>
    <mime-type>application/pdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pgm</extension>
    <mime-type>image/x-portable-graymap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pic</extension>
    <mime-type>image/pict</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pict</extension>
    <mime-type>image/pict</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pls</extension>
    <mime-type>audio/x-scpls</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>png</extension>
    <mime-type>image/png</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pnm</extension>
    <mime-type>image/x-portable-anymap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pnt</extension>
    <mime-type>image/x-macpaint</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ppm</extension>
    <mime-type>image/x-portable-pixmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ps</extension>
    <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>psd</extension>
    <mime-type>image/x-photoshop</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>qt</extension>
    <mime-type>video/quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>qti</extension>
    <mime-type>image/x-quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>qtif</extension>
    <mime-type>image/x-quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ras</extension>
    <mime-type>image/x-cmu-raster</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rgb</extension>
    <mime-type>image/x-rgb</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rm</extension>
    <mime-type>application/vnd.rn-realmedia</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>roff</extension>
    <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rtf</extension>
    <mime-type>application/rtf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rtx</extension>
    <mime-type>text/richtext</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sh</extension>
    <mime-type>application/x-sh</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>shar</extension>
    <mime-type>application/x-shar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>smf</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>snd</extension>
    <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>src</extension>
    <mime-type>application/x-wais-source</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sv4cpio</extension>
    <mime-type>application/x-sv4cpio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sv4crc</extension>
    <mime-type>application/x-sv4crc</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>swf</extension>
    <mime-type>application/x-shockwave-flash</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>t</extension>
    <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tar</extension>
    <mime-type>application/x-tar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tcl</extension>
    <mime-type>application/x-tcl</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tex</extension>
    <mime-type>application/x-tex</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>texi</extension>
    <mime-type>application/x-texinfo</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>texinfo</extension>
    <mime-type>application/x-texinfo</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tif</extension>
    <mime-type>image/tiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tiff</extension>
    <mime-type>image/tiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tr</extension>
    <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tsv</extension>
    <mime-type>text/tab-separated-values</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ulw</extension>
    <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ustar</extension>
    <mime-type>application/x-ustar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xbm</extension>
    <mime-type>image/x-xbitmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xpm</extension>
    <mime-type>image/x-xpixmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xwd</extension>
    <mime-type>image/x-xwindowdump</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>wav</extension>
    <mime-type>audio/x-wav</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- Wireless Bitmap -->
    <extension>wbmp</extension>
    <mime-type>image/vnd.wap.wbmp</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- WML Source -->
    <extension>wml</extension>
    <mime-type>text/vnd.wap.wml</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- Compiled WML -->
    <extension>wmlc</extension>
    <mime-type>application/vnd.wap.wmlc</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- WML Script Source -->
    <extension>wmls</extension>
    <mime-type>text/vnd.wap.wmls</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- Compiled WML Script -->
    <extension>wmlscriptc</extension>
    <mime-type>application/vnd.wap.wmlscriptc</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>wrl</extension>
    <mime-type>x-world/x-vrml</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>Z</extension>
    <mime-type>application/x-compress</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>z</extension>
    <mime-type>application/x-compress</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>zip</extension>
    <mime-type>application/zip</mime-type>
    </mime-mapping>
    <!-- ==================== Default Welcome File List ===================== -->
    <!-- When a request URI refers to a directory, the default servlet looks -->
    <!-- for a "welcome file" within that directory and, if present, -->
    <!-- to the corresponding resource URI for disp

  • Why JSP not move to jhtml direction?

    I have both knowledge of JSP and JHTML (from ATG). I like jhtml much more. The jhtml architecture is far superior than jsp. I just list following features:
    * better component naming, using directory and properties, instead of jsp.
    * excellent Form handling capabilities.
    * support expression
    * droplet is more powerful and simple than those customer tag.
    JSP is not better than MS ASP, which has better infrastructure, such as ADO etc. I don't understand why so many developers are fan of JSP, even Servlet! After a while, I am tired of them.

    I can't speak about jhtml, but I do disagree with you about the MS ASP comparison. There are lots of very important reasons why JSP is better, but I'll list a few:
    1. JSP is compiled, ASP is interpreted.
    This results in faster executing code and less bugs due to compile time checking.
    2. JSP (Java) is strongly typed, ASP is typeless (Variants)
    Typed variables are better with memory and much better with reducing bugs due to discovering incompatible data types. Consider the fact that a simple boolean as a Variant in ASP takes up 16 bytes (last I looked at the actual C struct used under the covers).
    3. JSP is platform independent, ASP only runs on Windows. Also, the are many different JSP containers to choose from, ASP only provides one.
    The competition between Weblogic, Websphere, etc. greatly improves the JSP market since the strongest survive over time. Consider the fact that MS only threw out ASP for ASP.Net because J2EE is affecting their market share.
    4. The scalability of ASP is severely restricted by the thread affinity of single-threaded apartments (STA) that IIS sets up to run non-MTS COM components. For example, you are committing scalability suicide if you keep any references to STA components in session or application state. And VB6 can only create STA components. You need VC++ to create MTS components.
    5. JSP has the ability for standard and custom tag libraries, ASP has no capability.
    Tag libraries are proving to be very valuable in the JSP space. A moderate use of well written tag libraries can severely increase developer productivity as well as reduce costs by shifting some page development from expensive Java developers to web designers.
    6. ASP requires IIS, which has major security holes in the software. Attest to the fact that the Code Red virus alone cost over $4 Billion in wasted productivity alone.
    Do not shrug off the above differences. They are major. They are the reason that developers have moved to the JSP world. If you're still not convinced, analyze why MS threw away ASP and produced ASP.Net. Despite what you read, ASP.Net is NOT simply the next version of ASP. They are architecturally two entirely different beasts. The proof of this is the fact that an ASP and ASP.Net page cannot co-exist in the same ASP application. That is, they do not share session or application state or cannot make calls into functions defined within each other. There's a reason for this.
    Except for item 3 and 6, ASP.Net solves all of the above problems. In fact, if you compare .Net to J2EE, it's frightening how MS did not violate some sort of an architectural copyright, if one exists. .Net is effectively a clone of J2EE.
    .Net is a good platform and will do well since MS is very committed to it. If you're a MS shop, you will be in good hands for new development. Besides being a proprietary platform, the only other problem is the massive amount of capital that will be required to migrate the millions of lines of VB, VC++, and ASP code to .Net. All the migration wizards in the world can never solve this!
    Good luck.

  • Call to BPEL Process from JSP - Not working!

    Hi All,
    I'm trying to execute the sample JSP page provided in the BPEL Guide, which calls the BPEL "CreditRatingService" service.
    The JSP Page compiled normally, but it does not invoke the BPEL Process. The JSP Page is just waiting.. the browser is loading the page for ever..which means it is not able to call the BPEL process. If i comment the below code
    NormalizedMessage res = deliveryService.request("CreditRatingService", "process", nm);
    then the page is displaying..
    Thanks for any help
    Regards
    Chandra

    Hi Afonso,
    I looked at the files under the below locations..
    C:\product\10.1.3.1\OracleAS_1\j2ee\home\log\home_default_group_1
    C:\product\10.1.3.1\OracleAS_1\bpel\system\logs
    C:\product\10.1.3.1\OracleAS_1\bpel\domains\default\logs
    I found the below error mesage
    <ERROR> <collaxa> <ProcessJob::execute> Timed out reading http:.........
    from C:\product\10.1.3.1\OracleAS_1\bpel\system\logs\orabpel.txt log file.
    But this log file is generated when I start my SOA Suite and not when I open the JSP Page. But I'm guessing may be for the same reason, it the not calling the BPEL process.
    I don't have any issues while I deploy the BPEL process or calling the BPEL Process from the console.
    Thanks for any help
    -Chandra

Maybe you are looking for

  • JSM without using AQ

    Hi All, Since I am using 8.1.7 SE, the AQ option is not available. Is it possible to just write a java-based stored procedure to connect to the jms server running else where. When a new row is inserted into the table, the trigger will be triggered an

  • WRT54G3G-VF + E220 not detected

    Hi, everyone!  I bought WRT54G3GV2-VF as I had an Huawei E220 device. But it was a failure, when I plugged E220 into the WRT54G3GV2-VF and nothing appeared in Status or Setup for 3G/UMTS device. I get None for all Mobile network status and the 3G/UMT

  • Adobe Reader 11.0.10 - High CPU load, multiple processes

    Hi, we have found 2 computers (Windows XP Pro x86, Windows 7 Pro (not sure x64 or x86) were the latest version use all CPU with multiple processes AcroRead32.exe. PDF are loaded from local drive. I've tried on my computer (Windows 10 TP x64). No prob

  • Cannot upload QM Catalog long text

    All, Can you help with entering QM catalog code group long text into the Production System? It works correctly in the Test System but I cannot edit the catalog using QS41 in Production (basis will not grant QS41 edit permission for client). I underst

  • Java implementation of Excel Rate function

    Hello, I need to use the Excel Rate built in function in java code. Has any one done this be4? or has seen this on the web. Thanks for ur help!