import xxx (class) cannot be resolved
Hi guys
I make webcenter project using jdeveloper tools. I have some problem on my project. when I deploy my project on a server, there are some error on my project.
Here may code project
"<%@ page contentType = "text/html; charset=UTF-8"
pageEncoding = "UTF-8"
import = "javax.portlet.*, java.util.*, dashbreliab.boundary.Dashboard.DashboardLeadingLogging,
dashbreliab.boundary.Dashboard.resource.DashboardLeadingLoggingBundle, java.sql.PreparedStatement,
java.sql.ResultSet, java.sql.Connection, dashbreliab.Connection.ConnectionDashb, dashbreliab.LeadLag.LeadLagSharedResource,
dashbreliab.LeadLag.LeadLagEngine, dashbreliab.entity.DataERP.EntityScore"%>
<%@ taglib uri = "http://java.sun.com/portlet_2_0" prefix="portlet"%>
<portlet:defineObjects/>
<portlet:actionURL var="reset" />
<%
// is write mode ?
boolean writeMode = (Boolean) portletSession.getAttribute("writeMode");
//def value for vars
String[] colName = ((String) portletSession.getAttribute("colName")).split(",");
String[] colNameHuman = ((String) portletSession.getAttribute("colNameHuman")).split(",");
String[] addDesc = ((String) portletSession.getAttribute("addDesc")).split(";");
String[] valuesActual = new String[colName.length];
String[] labelSatuan = LeadLagSharedResource.labelSatuan;
//String[] valuesTarget = new String[colName.length];
Connection con = ConnectionDashb.createReadOnlyCon();
String sql;
PreparedStatement stmt;
ResultSet rs;
if(portletSession.getAttribute("ll_year",PortletSession.APPLICATION_SCOPE) == null){
valuesActual[1] = ""+LeadLagEngine.getYearNow(con, "LEADING_LOGGING_ACTUAL");
valuesActual[0] = ""+LeadLagEngine.getMonthNow(con, "LEADING_LOGGING_ACTUAL", Integer.parseInt(valuesActual[1]));
}else{
valuesActual[1] = (String)portletSession.getAttribute("ll_year",PortletSession.APPLICATION_SCOPE);
valuesActual[0] = (String)portletSession.getAttribute("ll_month",PortletSession.APPLICATION_SCOPE);
}
if(portletSession.getAttribute("error") == null){
sql = "SELECT * FROM LEADING_LOGGING_ACTUAL WHERE YEAR = ? AND MONTH = ?";
stmt = con.prepareStatement(sql);
stmt.setInt(1, Integer.parseInt(valuesActual[1]));
stmt.setInt(2, Integer.parseInt(valuesActual[0]));
rs = stmt.executeQuery();
if(rs.next()){
for(int i=1;i<colName.length;i++){
valuesActual[i] = rs.getString(colName[i].trim());
}
}
rs.close();
stmt.close();
}else{
for(int i=2;i<colName.length;i++){
valuesActual[i] = (String)portletSession.getAttribute("actual_"+colName[i].trim().toLowerCase());
//valuesTarget[i] = (String)portletSession.getAttribute("target_"+colName[i].trim().toLowerCase());
}
}
rs = null;
stmt = null;
ArrayList<Double> scores = LeadLagEngine.getScoreData(con, Integer.parseInt(valuesActual[0]), Integer.parseInt(valuesActual[1]));
EntityScore sc = LeadLagEngine.getCalculatedScore(scores);
String noDataLabel = LeadLagSharedResource.nullValuesLabel;
con.close();
con = null;
%>
<style type="">
.lead{
background-color: Green;
color: White;
}
.lag{
background-color: Red;
color: White;
}
.error{
color: Red;
}
</style>
<% if(portletSession.getAttribute("error") != null){ %>
<div class="error">
SOME ERROR : <br />
<%=portletSession.getAttribute("errorMessage")%>
Please Fix This.. <br />
<a href="<%=reset%>">Reset Form</a>
</div>
<% } %>
<form action="<portlet:actionURL/>" method="POST">
<input type="hidden" name="act" value="change_year_month"/>
CURRENT YEAR =
<input type="text" name="year" value="<%=(valuesActual[1])%>"/>
CURRENT MONTH =
<select name="month">
<option value="1" <%if(valuesActual[0].equals("1")){%>selected="selected"<%}%>>Januari</option>
<option value="2" <%if(valuesActual[0].equals("2")){%>selected="selected"<%}%>>Pebruari</option>
<option value="3" <%if(valuesActual[0].equals("3")){%>selected="selected"<%}%>>Maret</option>
<option value="4" <%if(valuesActual[0].equals("4")){%>selected="selected"<%}%>>April</option>
<option value="5" <%if(valuesActual[0].equals("5")){%>selected="selected"<%}%>>Mei</option>
<option value="6" <%if(valuesActual[0].equals("6")){%>selected="selected"<%}%>>Juni</option>
<option value="7" <%if(valuesActual[0].equals("7")){%>selected="selected"<%}%>>Juli</option>
<option value="8" <%if(valuesActual[0].equals("8")){%>selected="selected"<%}%>>Agustus</option>
<option value="9" <%if(valuesActual[0].equals("9")){%>selected="selected"<%}%>>September</option>
<option value="10" <%if(valuesActual[0].equals("10")){%>selected="selected"<%}%>>Oktober</option>
<option value="11" <%if(valuesActual[0].equals("11")){%>selected="selected"<%}%>>Nopember</option>
<option value="12" <%if(valuesActual[0].equals("12")){%>selected="selected"<%}%>>Desember</option>
</select>
<input type="submit" value="Change Year and Month"></input>
<br/>
<% if(valuesActual[valuesActual.length-1] != null && !valuesActual[valuesActual.length-1].equals("")){ %>
LAST UPDATE =
<%=(valuesActual[valuesActual.length-1])%>
<% } %>
</form>
<hr/>
<form action="<portlet:actionURL/>" method="POST">
<% if(writeMode){ %>
<input type="submit" value="Change Value"/>
<% } %>
<input type="hidden" name="act" value="change_value"/>
<input type="hidden" name="year" value="<%=(valuesActual[1])%>"/>
<input type="hidden" name="month" value="<%=(valuesActual[0])%>"/>
<table border="1" width="100%">
<thead>
<tr>
<td>No.</td>
<td>Key.</td>
<td>Actual.</td>
<td>Score.</td>
</tr>
</thead>
<tbody>
<%
String cssClass = "lead";
for(int i=2;i<colName.length-1;i++){
if(i-2 >= LeadLagSharedResource.lag_start && i-2 <= LeadLagSharedResource.lag_end){
cssClass = "lag";
}else{
cssClass = "lead";
}
if(valuesActual[i] != null && Float.parseFloat(valuesActual[i]) == LeadLagSharedResource.nullValues){
valuesActual[i] = LeadLagSharedResource.nullValuesLabel;
}
%>
<tr class="<%=cssClass%>">
<td><%=i%></td>
<td><%=colNameHuman[i]%><br /><i><%=addDesc[i-2]%></i></td>
<td><% if(!writeMode){ %>
<input readonly="readonly" type="text" name="actual_<%=colName[i].trim().toLowerCase()%>"
value="<%if(valuesActual[i] == null){%>0<%}else{%><%=valuesActual[i]%><%}%>" size="10" />
<%=labelSatuan[i-2]%>
<% }else{ %>
<input type="text" name="actual_<%=colName[i].trim().toLowerCase()%>" id="actual_<%=i%>"
value="<%if(valuesActual[i] == null){%>0<%}else{%><%=valuesActual[i]%><%}%>" size="10" />
<%=labelSatuan[i-2]%>
<input type="button" onclick="document.getElementById('actual_<%=i%>').value = '<%=noDataLabel%>';" value="Set as No Data">
<% } %>
</td>
<td>
<input type="text" disabled="disabled" value="<%if(valuesActual[i] == null){%>0<%}else{%><%=scores.get(i-2)%><%}%>" size="5" /> %
</td>
</tr>
<% if(i-2 == LeadLagSharedResource.lag_end){ %>
<tr class="<%=cssClass%>">
<td></td>
<td>SCORE LEGGING</td>
<td>
</td>
<td>
<input type="text" disabled="disabled" value="<%if(valuesActual[i] == null){%>0<%}else{%><%=sc.getScoreLag()%><%}%>" size="5" />
</td>
</tr>
<% } if(i-2 == LeadLagSharedResource.lead_end){ %>
<tr class="<%=cssClass%>">
<td></td>
<td>SCORE LEADING</td>
<td>
</td>
<td>
<input type="text" disabled="disabled" value="<%if(valuesActual[i] == null){%>0<%}else{%><%=sc.getScoreLead()%><%}%>" size="5" />
</td>
</tr>
<% } %>
<% } %>
</tbody>
</table>
</form>"
I make all of my class inside package. And absolutely call every class include package name. For example on that code above.
I have package name dashbreliab.boundary.Dashboard and DashboardLeadingLogging is my class inside that package. I think that it has fullfill the rules.
But , i didn't work at all. There some error appear.
And Here the error
"import DashboardLeadingLogging cannot be resolved
import DashboardLeadingLoggingBundle cannot be resolved"
and there are so many same error in another
jsp file.
if anyone can help me, of course i'll so happy.
Please kind for help me solve this problem..
Thankyou