0

I thought I got the class path right??

lines 89 and 94 throwing the error

<%@ page language="java" %>
<%@ page import="trader.webservices.util.Utils" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Vector" %>
<%@ page import="java.net.URLDecoder" %>
<%@ page import="trader.webservices.util.AABAHeaderFooter" %>
<%@ page import="trader.webservices.data.UserDataVO" %>
<%@ page import="trader.webservices.data.UserInfoDAO" %>


<%  
	RequestDispatcher dispatcher = request.getRequestDispatcher("/jsp/ErrorPage.jsp");

	UserDataVO userData = null;
	
	
	String domainName	= UserInfoDAO.removeHostRedirection(request.getServerName());
	//TESTING PURPOSES
	domainName	= "pattymcnease.com";
	//domainName	= "traceysellscthomes.com";
	//domainName =    "ellenclark.topseller.net";
	//int partnsId = Integer.parseInt(request.getParameter("partnerId")); 
	

		

		try{
			
			userData = UserInfoDAO.getUserInfo(domainName);
		}catch(Exception e){
			request.setAttribute("pageError","The account URL ("+domainName+") was not valid.");
			dispatcher.forward(request, response);
		}
		
		String parentPage = request.getParameter("parentPage") == null ? "": request.getParameter("parentPage");
		//int accountID = userData.getAccountID();
    	
		String accountName = userData.getAcctName();
		int acctId = userData.getAcctId();
		
    	
				
		Vector newsId = UserInfoDAO.getNewsID();
		Vector newsTitle = UserInfoDAO.getNewsTitle();
		Vector newsSubTitle = UserInfoDAO.getNewsSubTitile();
		Vector newsDate = UserInfoDAO.getNewsDate();
		
				
		//String imageUrl = "http://www." + domainName + "/dev/plus/images/";
		//String imageUrl = "http://www." + domainName + "/files/" + acctId + "/";
		
		
		
		
		
				
		%>
		




<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
	<TR>
		<TD>
			<FONT FACE="ARIAL NARROW,HELVETICA" SIZE="2">
			<CENTER>
			<B>Real Estate News</B><BR>Find out what's happening in real estate.
			<HR>
			</CENTER>
		</TD>
		<TD>
			<IMG ALIGN=RIGHT SRC="http://cdn.homes.com/cgi-bin/readimage_v2/437914411" WIDTH=60 HEIGHT=45>
		</TD>
	</TR>
</TABLE>



<!-- end header include -->
<% if (newsId != null) { %>
	<%	for (int i=0;i<newsId.size();i++) { %>
			



<BR><a href="/JAABA/jsp/consumer/newsDetail.jsp?storyid=<%=newsId.elementAt(i)%>">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<b><%=URLDecoder.decode(newsTitle.elementAt(i))%></b></font>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><i> - <%=newsDate.elementAt(i)%></i></font>
<BR>

<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<%=URLDecoder.decode(newsSubTitle.elementAt(i))%> </font></A><BR>
<BR><BR>

<%}%>
<%}%>

thanx

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by mimsc
0

<%=URLDecoder.decode(newsSubTitle.elementAt(i))%>

should be:

<%=URLDecoder.decode((String)newsSubTitle.elementAt(i))%>

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.