portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/login login.jsp
Date Sat, 01 May 2004 17:01:03 GMT
dlestrat    2004/05/01 10:01:03

  Added:       applications/security/src/webapp/WEB-INF portlet.tld web.xml
                        portlet.xml jetspeed-portlet.xml
               applications/security/src/webapp/WEB-INF/security/login
                        login.jsp
  Log:
  Set up for security portlets. Starting with login portlet.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/portlet.tld
  
  Index: portlet.tld
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1" ?>
  <!--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
  <!DOCTYPE taglib PUBLIC
    "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
  <taglib>
      <tlibversion>1.0</tlibversion>
      <jspversion>1.1</jspversion>
      <shortname>Tags for portlets</shortname>
      <tag>
          <name>defineObjects</name>
          <tagclass>org.apache.pluto.tags.DefineObjectsTag</tagclass>
          <teiclass>org.apache.pluto.tags.DefineObjectsTag$TEI</teiclass>
          <bodycontent>empty</bodycontent>
      </tag>
      <tag>
          <name>param</name>
          <tagclass>org.apache.pluto.tags.ParamTag</tagclass>
          <bodycontent>empty</bodycontent>
          <attribute>
              <name>name</name>
              <required>true</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
              <name>value</name>
              <required>true</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
      </tag>
      <tag>
          <name>actionURL</name>
          <tagclass>org.apache.pluto.tags.ActionURLTag</tagclass>
          <teiclass>org.apache.pluto.tags.BasicURLTag$TEI</teiclass>
          <bodycontent>JSP</bodycontent>
          <attribute>
              <name>windowState</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
              <name>portletMode</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
              <name>secure</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
              <name>var</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
      </tag>
      <tag>
          <name>renderURL</name>
          <tagclass>org.apache.pluto.tags.RenderURLTag</tagclass>
          <teiclass>org.apache.pluto.tags.BasicURLTag$TEI</teiclass>
          <bodycontent>JSP</bodycontent>
          <attribute>
              <name>windowState</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
              <name>portletMode</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
              <name>secure</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
              <name>var</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
          </attribute>
      </tag>
      <tag>
          <name>namespace</name>
          <tagclass>org.apache.pluto.tags.NamespaceTag</tagclass>
          <bodycontent>empty</bodycontent>
      </tag>
  </taglib>
  
  
  
  1.1                  jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
  <!--
  <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                           "http://java.sun.com/dtd/web-app_2.3.dtd">
  -->
  <web-app>
    <display-name>Security Portlets</display-name>
    <description>Security Portlets</description>
  
    <servlet>
      <servlet-name>JetspeedContainer</servlet-name>
      <display-name>Jetspeed Container</display-name>
      <description>MVC Servlet for Jetspeed Portlet Applications</description>
      <servlet-class>org.apache.jetspeed.container.JetspeedContainerServlet</servlet-class>
    </servlet>
  
    <servlet-mapping>
       <servlet-name>
          JetspeedContainer
       </servlet-name>
       <url-pattern>
         /container/*
       </url-pattern>
    </servlet-mapping>
  
  </web-app>
  
  
  
  1.1                  jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/portlet.xml
  
  Index: portlet.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
  <portlet-app id="security" version="1.0">
  	<portlet id="LoginPortlet">
      	<init-param>
        		<name>ViewPage</name>
        		<value>/WEB-INF/security/login/login.jsp</value>
  		</init-param>
      	<portlet-name>LoginPortlet</portlet-name>
      	<display-name>Login Portlet</display-name>
      	<portlet-class>org.apache.jetspeed.portlet.ServletPortlet</portlet-class>
  	    <expiration-cache>-1</expiration-cache>
      	<supports>
  	      <mime-type>text/html</mime-type>
      	  <portlet-mode>VIEW</portlet-mode>
      	</supports>
  		<portlet-info>
  			<title>Login Portlet</title>
  			<short-title>Login Portlet</short-title>
      	</portlet-info>
    	</portlet>
  
  </portlet-app>
  
  
  
  
  1.1                  jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/jetspeed-portlet.xml
  
  Index: jetspeed-portlet.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
  <portlet-app id="security" version="1.0" 
      xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" 
      xmlns:js="http://portals.apache.org/jetspeed" 
      xmlns:dc="http://www.purl.org/dc">
      
      <dc:title>Security Portlets</dc:title>
      <dc:title xml:lang="en">Security Portlets</dc:title>
      <dc:creator>J2 Team</dc:creator>
      
      <portlet>
          <portlet-name>LoginPortlet</portlet-name>
          <dc:title>Login Portlet</dc:title>
          <dc:creator>J2 Team</dc:creator>
      </portlet>
  
  </portlet-app>
  
  
  1.1                  jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/login/login.jsp
  
  Index: login.jsp
  ===================================================================
  <%--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  --%>
  <html>
    <title>Login</title>
    <body>
      <form method="POST" action='<%= response.encodeURL("j_security_check")%>'>
        Username <input type="text" size="15" name="j_username">
        <br>
        Password <input type="password" size="15" name="j_password">
        <input type="submit" value="Login">
      </form>
    </body>
  </html> 
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message