[jboss-dev-forums] [Design of JBoss Portal] - Issue with JSF <f:view> tag

vaalati do-not-reply at jboss.com
Wed Mar 7 19:55:36 EST 2007


Hi,
I am trying to use JSF to develop a portlet and when I load the Portlet in a page I get an error which says 

javax.portlet.PortletException: Org.apache.jasper.JasperException:Exception in JSP

And this exception points to the line in the JSP where the <f:view> tag is defined. I have pasted the code in my JSP below. Could some one please tell me what is wrong with it and why I am getting the error.

I am extending the GenericPortlet to write my own Portlet class. I hope this should not be an issue, correct?

Thanks much,
Vijay



<%@ page language="java" session="true" %>
<%@ page import = "java.util.HashMap" %>
<%@ page import = "javax.swing.*" %>
<%@ page import = "javax.portlet.PortletSession" %>

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portlet" %>

<portlet:defineObjects/>

<portlet:actionURL var="loginAction">
        <portlet:param name="command" value="doLogin" />
</portlet:actionURL>

<%
	HashMap dbMap = new HashMap();
	dbMap.put((Object)(new String("DB 1")),(Object)(new String("1")));
	dbMap.put((Object)(new String("DB 2")),(Object)(new String("2")));
%>


	
		ADM Login Page
	
	
		<f:view>
		</f:view>
	


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026062#4026062

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026062



More information about the jboss-dev-forums mailing list