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 Xavier Lawrence <xl...@jahia.com> on 2005/01/18 10:23:45 UTC

CSS and portlets

Hello,

I am currently modifying an existing Struts application so it generates
content to a portlet.

One question that I have is that the existing application uses custom
styles in a CSS file. Is there a way to make the portlet use the styles in
the CSS file without copy-paste them in the JSPs ???

Is there a way I could customize jetspeed so it knows about these styles ?

Thanks in advance for any help.

Regards

Xavier

-- 
---------=[ xlawrence at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company



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


j_security_check and portlets

Posted by Xavier Lawrence <xl...@jahia.com>.
Hello,

What would be the best way to translate the following for a portlet:

  <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>@SECURITY-DOMAIN@</realm-name>
    <form-login-config>
      <form-login-page>/WEB-INF/jsp/login/login.jsp</form-login-page>
      <form-error-page>/WEB-INF/jsp/login/error.jsp</form-error-page>
    </form-login-config>
  </login-config>

and then in login.jsp:

<form method="post" action="j_security_check" >

Is there a way of doing something similar but for Portlets ???

Note that I have a struts application underneath. I was allready planning
to define a new action to display the login page, but how should I do to
display the error page in case of a wrong login ???

Thanks in advance for any help

Regards

Xavier


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


RSS portlet and bug with SAX transform

Posted by Vladimir Lisin <vl...@emgas.gazprom.ru>.
Hi all

Following the FAQ about RSS portlet and bug with SAX transform  I coped 
the xalan-2.3.1.jar from 
C:\jakarta-tomcat\webapps\jportal\WEB-INF\lib\xalan-2.3.1.jar  to 
C:\jakarta-tomcat\common\endorsed\xalan.jar
And  my RSS portlet works well but  on console  after starting Tomcat  I 
have the next:

 
............................................................................................................................. 
 
Starting Apache Jetspeed Portal/1.5

24.01.2005 16:24:25 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8090
24.01.2005 16:24:25 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
24.01.2005 16:24:25 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/60 
config=C:\jakarta-tomcat\bin\..\conf\jk2.proper
ties
[Fatal Error] :2:1: Content is not allowed in prolog.

How I must  react on the last message ?
In the mail archive I didn't find  nothing about it :-((((

Thanks in advance.
Vladimir 

J1.5: Can't EditAccount

Posted by Vladimir Lisin <vl...@emgas.gazprom.ru>.
Hi, all

I have unexpected  problem.
 In template  top_loggedIn.jsp is the link "<a href="<jetspeed:uriLookup 
type="EditAccount"/>"  .
After clicking on this I have the next errors:
-----------------------------------------------------------------------------------------------------------------------------------------------

Error encountered processing a template: 
/layouts/html/default.jsporg.apache.jasper.JasperException: 
/WEB-INF/templates/jsp/screens/html/ErrorNoScreenData.inc(16,0) Page 
directive: can't have multiple occurrences of contentType at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94) 
at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428) 
at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:140) 
at 
org.apache.jasper.compiler.Validator$PageDirectiveVisitor.visit(Validator.java:161) 
at org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:280) at 
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028) at 
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070) at 
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076) at 
org.apache.jasper.compiler.Node$Root.accept
.
..........................................................................................................
Please, can anabody comment and suggest the solution in next  problem ?
Thanks in advance.
Vladimir 

RE: J1.5: Remember me/auto-logon facility

Posted by Vladimir Lisin <vl...@emgas.gazprom.ru>.
Hi,
Mark and Dan !
Very thanks for help :-))))
I assumed another, more simple,  order for  the auto-logon.
And I shall look at source file.

Best regards,  Vladimir


RE: J1.5: Remember me/auto-logon facility

Posted by Mark Orciuch <ma...@ngsltd.com>.
Logging out deletes the cookie. To keep the auto-login active you must
not logout. This way if you close the browser, reopen it and go back to
the portal URL, you will be automatically logged in.

Best regards,

Mark Orciuch - morciuch@apache.org
Jakarta Jetspeed - Enterprise Portal in Java
http://portals.apache.org/


> -----Original Message-----
> From: Vladimir Lisin [mailto:vlisin@emgas.gazprom.ru] 
> Sent: Wednesday, January 26, 2005 8:16 AM
> To: Jetspeed Users List
> Subject: J1.5: Remember me/auto-logon facility
> 
> 
> Hi all
> 
> Please, can anabody comment and suggest the solution in next  
> problem ?
> 
> I am filling the Login and PSW fields,  flagging  the 
> checkbox " Remember 
> me".
> Thereafter I see the cookie "lisin@10.5.6[2].txt"  in directory 
> C:\Documents and Settings\Lisin.ELCOMGAZ\Cookies\
> Then I make logout and see that cookie "lisin@10.5.6[2].txt" 
> was deleted.
> And at second login I haven't  any   "/auto-logon" :-(((((
> How must work  the "Remember me/auto-logon facility" in J1.5 
> ? The next is the fragment of my JR.properties: 
> ..............................................................
> ...........................
>    # Remember me/auto-logon facility automatic.logon.enable=true
> #    number of seconds until logon expires (2592000 = 1 month, 
> 30*24*60*60)
> automatic.logon.cookie.maxage=2592000
> automatic.logon.cookie.comment=Jetspeed automatic logon cookie
> #    domain, blank means use getServer to derive it.  Is of the form 
> .foo.com.
> automatic.logon.cookie.domain=
> #    path, blank means use getContextPath, default to / - all paths
> automatic.logon.cookie.path=/
> #    specifies when the random portion of the cookie is regenerated-
> #     - firstlogon, means it is only generated the first time 
> the users 
> #                   requests this feature, useful when you 
> want to allow
> #                   them to use the feature across computers
> #     - everylogon, means it is regenerated upon each successful logon
> #                   useful for getting a little added 
> security (default)
> automatic.logon.cookie.generation=everylogon
> 
> # automatically save user state on logout
> automatic.logout.save = true 
> ..............................................................
> ...................................
> 
> 
> Thanks in advance.
> Vladimir 
> 



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


Re: J1.5: Remember me/auto-logon facility

Posted by Dan Moore <mo...@yahoo.com>.
Hi Vladimir,

I believe you want to look at this source file:
src/java/org/apache/jetspeed/modules/actions/JetspeedSessionValidator.java
and
src/java/org/apache/jetspeed/modules/actions/JLogoutUser.java
to see how autologin is implemented on 1.5.

>From a cursory examination, it appears that logging out actually
removes the auto login cookies.  If you want to test auto login, try
logging in, then closing your browser, then opening your browser and
revisiting the site.

Hope this helps.

Dan

--- Vladimir Lisin <vl...@emgas.gazprom.ru> wrote:

> Hi all
> 
> Please, can anabody comment and suggest the solution in next  problem
> ?
> 
> I am filling the Login and PSW fields,  flagging  the checkbox "
> Remember 
> me".
> Thereafter I see the cookie "lisin@10.5.6[2].txt"  in directory 
> C:\Documents and Settings\Lisin.ELCOMGAZ\Cookies\
> Then I make logout and see that cookie "lisin@10.5.6[2].txt" was
> deleted.
> And at second login I haven't  any   "/auto-logon" :-(((((
> How must work  the "Remember me/auto-logon facility" in J1.5 ?
> The next is the fragment of my JR.properties:
>
.........................................................................................
>    # Remember me/auto-logon facility
> automatic.logon.enable=true
> #    number of seconds until logon expires (2592000 = 1 month, 
> 30*24*60*60)
> automatic.logon.cookie.maxage=2592000
> automatic.logon.cookie.comment=Jetspeed automatic logon cookie
> #    domain, blank means use getServer to derive it.  Is of the form 
> .foo.com.
> automatic.logon.cookie.domain=
> #    path, blank means use getContextPath, default to / - all paths
> automatic.logon.cookie.path=/
> #    specifies when the random portion of the cookie is regenerated-
> #     - firstlogon, means it is only generated the first time the
> users 
> #                   requests this feature, useful when you want to
> allow
> #                   them to use the feature across computers
> #     - everylogon, means it is regenerated upon each successful
> logon
> #                   useful for getting a little added security
> (default)
> automatic.logon.cookie.generation=everylogon
> 
> # automatically save user state on logout
> automatic.logout.save = true
>
.................................................................................................
> 
> 
> Thanks in advance.
> Vladimir 


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


J1.5: Remember me/auto-logon facility

Posted by Vladimir Lisin <vl...@emgas.gazprom.ru>.
Hi all

Please, can anabody comment and suggest the solution in next  problem ?

I am filling the Login and PSW fields,  flagging  the checkbox " Remember 
me".
Thereafter I see the cookie "lisin@10.5.6[2].txt"  in directory 
C:\Documents and Settings\Lisin.ELCOMGAZ\Cookies\
Then I make logout and see that cookie "lisin@10.5.6[2].txt" was deleted.
And at second login I haven't  any   "/auto-logon" :-(((((
How must work  the "Remember me/auto-logon facility" in J1.5 ?
The next is the fragment of my JR.properties:
.........................................................................................
   # Remember me/auto-logon facility
automatic.logon.enable=true
#    number of seconds until logon expires (2592000 = 1 month, 
30*24*60*60)
automatic.logon.cookie.maxage=2592000
automatic.logon.cookie.comment=Jetspeed automatic logon cookie
#    domain, blank means use getServer to derive it.  Is of the form 
.foo.com.
automatic.logon.cookie.domain=
#    path, blank means use getContextPath, default to / - all paths
automatic.logon.cookie.path=/
#    specifies when the random portion of the cookie is regenerated-
#     - firstlogon, means it is only generated the first time the users 
#                   requests this feature, useful when you want to allow
#                   them to use the feature across computers
#     - everylogon, means it is regenerated upon each successful logon
#                   useful for getting a little added security (default)
automatic.logon.cookie.generation=everylogon

# automatically save user state on logout
automatic.logout.save = true
.................................................................................................


Thanks in advance.
Vladimir 

Re: CSS and portlets

Posted by Marina <pp...@yahoo.com>.
Hi, Xavier,

I'm using CSS in my portlet's JSPs as following:

<link rel="stylesheet" type="text/css"
href="<%=renderResponse.encodeURL(renderRequest.getContextPath()
+ "/css/dce-portal.css")%>"/>

and I package all .css styles in the /css/ dir
relative tot he root of the web (portlet) application

Marina

--- Xavier Lawrence <xl...@jahia.com> wrote:

> 
> Hello,
> 
> I am currently modifying an existing Struts
> application so it generates
> content to a portlet.
> 
> One question that I have is that the existing
> application uses custom
> styles in a CSS file. Is there a way to make the
> portlet use the styles in
> the CSS file without copy-paste them in the JSPs ???
> 
> Is there a way I could customize jetspeed so it
> knows about these styles ?
> 
> Thanks in advance for any help.
> 
> Regards
> 
> Xavier
> 
> -- 
> ---------=[ xlawrence at jahia dot com ]=---------
> Jahia : A collaborative source CMS and Portal Server
> www.jahia.org Community and product web site
> www.jahia.com Commercial services company
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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