Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Illegal start of expression

843810Apr 28 2006 — edited May 1 2006
I am getting "Illegal Start of Expression" apparently at the beginning of each "=fomat" line. I admit I know nothing about Java, but I am a programmer so the code I have below seems logical to me...

Please ask any questions, or let me know if you need more code. Help!!! :)

Thank You

Larry

This is the original code that works:

while (rs.next())
{
%>
<TR>
<%
for (int j = 1; j <= columnCount; j++)
{
%>
<TD> <% =format.getFormattedColumn(rs.getString(j), rsMeta.getColumnType(j), rsMeta.getColumnName(j), request.getParameter("optContentType")) ; %> </TD> <%
}
%>
</TR>
<%
}

This is the code after my changes:

String fname = " " ;
while (rs.next())
{
%>
<TR>
<%
for (int j = 1; j <= columnCount; j++)
{
fname = rsMeta.getColumnName(j).toUpperCase() ;
%>
<TD>
<%
if (fname.endsWith("_D"))
=format.getFormattedColumn(rs.getString(j), Types.DATE, rsMeta.getColumnName(j), request.getParameter("optContentType")) ;
else
=format.getFormattedColumn(rs.getString(j), rsMeta.getColumnType(j), rsMeta.getColumnName(j), request.getParameter("optContentType")) ;
%>
</TD>
<%
}
%>
</TR>
<%
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2006
Added on Apr 28 2006
2 comments
101 views