You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Hari, Piyush" <Pi...@intuit.com> on 2005/08/10 19:09:10 UTC

Calling the Action class in the JSP ?

I developed a portlet with a login page. I want that when the user clicks
the Submit button, another JSP page appears in the portlet. To do this, I
want to link the form action with the Action class which has a processAction
()  method overwritten to make the changes. How can I relate the two ? My
action class and JSp are below:

I am using Jetspeed-2.

 

Your help will be appreciated.

 

 

Action Class

----------------------------------------------------------------------------
--------------------------------------------------


 public class LoginClass extends javax.portlet.GenericPortlet 

{

            public LoginClass() {}

public void doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) throws
javax.portlet.PortletException, java.io.IOException {

                        response.setContentType("text/html");

                        javax.portlet.PortletRequestDispatcher rd =
getPortletContext().getRequestDispatcher(VIEW_URI);

                        rd.include(request, response);

            }

 

public void doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) throws
javax.portlet.PortletException, java.io.IOException {

                        response.setContentType("text/html");

                        javax.portlet.PortletRequestDispatcher rd =
getPortletContext().getRequestDispatcher(EDIT_URI);

                        rd.include(request, response);

            }

            

            public void processAction(ActionRequest request, ActionResponse
response)

            {

                        //called when forms are posted

            }          

}

 

VIEW_URI.jsp

----------------------------------------------------------------------------
----------------------------------------------

<%@ page session="false" %>

<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>

<portlet:defineObjects/>

 

<FORM METHOD="POST" ACTION="???"/>">

 

 

 

      <table>

 

      <tr>

            <td><font size="2" face="Verdana">User ID :</font></td>

            <td><input type="text" id="text_userID" value=""></td>

      </tr>

      <tr>

            <td><font size="2" face="Verdana">Password :</font></td>

            <td><input type="text" id="text_pass" value=""></td>

            

      </tr> 

      <tr>

            <td/>

            <td>

                        <input type="submit" name="eventSubmit_doLogin"
value="Signin">

                  

            </td>

      </tr>

      

</table>

</form>

----------------------------------------------------------------------------
------------------

 

Regards,

Piyush


Re: SSO features, administrator's documentation?

Posted by David Sean Taylor <da...@bluesunrise.com>.
Andrej Vanek wrote:
> The http://portals.apache.org/jetspeed-2/sso.html does not tell too much..

true

not much ...
http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/design-docs/src/sso/


There is also the SSO Admin portlet, and integration into the SSO IFrame 
and SSO WebContent portlets.

> Although the security documentation is getting very nice and useful!
> 
> (1) Can anybody tell rough features of Jetspeed-2's SSO?
> What scenarios does it cover?

Its a simple credential store solution.
Credentials are stored by Site (remote URL) in a 1..n assocation between 
Site and Portal Principal (Jetspeed User or Group), and a Remote 
Principal and Remote Credential. The SSO iframe or web content portlets 
will look at the current portal principal (subject), and when retrieving 
a hosted iframe or remote site, try to find a matching credential using 
the API:

SSOContext context = sso.getCredentials(subject, site);

Credentials can be associated with a user or group.
Thus if a user is a part of a group, then the group's credentials can be 
  automatically passed in.


The solution still needs a bit of work, major missing pieces:
* encryption
* certificates

The method of authenticating also needs some enhancements.
Only one solution is supported: request parameters

In summary I think we have a good framework, but it needs more work.

> p.e. SSO between portlets and their back-end systems, or between the
> jetspeed-2 portal web-application and other independend web applications
> running on the same Tomcat container, or even something else??

Either way, doesnt matter.
Just set the URL in the Site (see the Admin portlet)

> 
> (2) Does anybody on documentation of Jetspeed-2's SSO? (I'd like to know if
> it will be reachable by middle or end of this month)
> 
Well Im scheduled to do some work in this area later this month
Maybe we can work together on completing it and documenting
What do you think?

-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

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


SSO features, administrator's documentation?

Posted by Andrej Vanek <a....@bonum.sk>.
The http://portals.apache.org/jetspeed-2/sso.html does not tell too much..
Although the security documentation is getting very nice and useful!

(1) Can anybody tell rough features of Jetspeed-2's SSO?
What scenarios does it cover?
p.e. SSO between portlets and their back-end systems, or between the
jetspeed-2 portal web-application and other independend web applications
running on the same Tomcat container, or even something else??

(2) Does anybody on documentation of Jetspeed-2's SSO? (I'd like to know if
it will be reachable by middle or end of this month)

thanks in advance, Andrej



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