小编Soh*_*hil的帖子

无法使用<portlet:actionURL>调用portlet的方法

我一直在尝试使用这个小教程开发Portlet with Multiple Actions来调用portlet的方法'signinAction' .但是当我尝试这样做时,我得到Portlet暂时不可用的错误.我在Tomcat的服务器控制台中看不到任何东西.另外,当我使用processAction()时,我没有收到错误.我不知道出了什么问题.

JSP:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>

<portlet:actionURL var="signinAction" name="signinAction">
</portlet:actionURL>



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>


</head>
<body onload="load()" id="body1">
<form action="<%=signinAction.toString() %>" name="signinForm" method="post" onsubmit="return signin(this)">

<center>

<div class="div-upside-down" id="div-style">    

<table  width="95%">
<tr>
    <td colspan="3"><p class="pp"></p>
    </td>
</tr>
<tr>
    <td id="td1">
        <input type="text"  id="email" name="email"  placeholder="Email" />
        <p id="one"></p>
    </td>

    <td id="td2">
        <input type="password" …
Run Code Online (Sandbox Code Playgroud)

java portlet liferay

1
推荐指数
1
解决办法
1282
查看次数

标签 统计

java ×1

liferay ×1

portlet ×1