<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Happy New Year Stuart,<br><br>So i see.<br>Could it be possible to redirect only the users that click to "MyDspace" in the "/community-list" page?<br><br><br>Thanks in advance,<br>Anna <br><br>--- Στις <b>Δευτ., 22/12/08, ο/η Stuart Lewis <i>&lt;sdl@aber.ac.uk&gt;</i></b> έγραψε:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Από: Stuart Lewis &lt;sdl@aber.ac.uk&gt;<br>Θέμα: Re: [Dspace-general] redirection to 'community-list.jsp'<br>Προς: annamavroudi@yahoo.gr, "dspace" &lt;dspace-general@mit.edu&gt;<br>Ημερομηνία: Δευτέρα, 22 Δεκέμβριος 2008, 21:02<br><br><pre>Hi Anna,<br><br>&gt; i'm working with 1.5.1 version -with the jspui- and i'm dealing<br>with the<br>&gt; following problem:<br>&gt;  i have been trying to get the redirection in the jspui from
 the<br>&gt; 'ldap-form.jsp' (where the ldap authorization is acquired) not to<br>the<br>&gt; '/mydspace' page but to '/community-list.jsp' page.<br>&gt; i've looked through the JSPs and java files which are relative to<br>&gt; ldap&amp;authorization for a link like '/mydspace' but didn't<br>find anything execpt<br>&gt; one in the 'authenticate.java'file but this is not for this<br>specific<br>&gt; redirection. Has anyone found it?<br><br>This is issue is slightly complicated. The URL that the user is redirected<br>to is in Authenticate.java (line 145) as you have found:<br><br> - originalURL = request.getContextPath() + "/mydspace";<br><br>However... this is only used if a user requested the login screen, rather<br>than DSpace redirecting them there, in which case DSpace decides where to<br>forward them to. For example if a user tries to access a restricted item,<br>and they are not logged in, then they will be redirected to the login<br>screen. Once
 they have logged in, DSpace will then forward them to the item<br>they requested.<br><br>If you want to log in directly, then visit<br>http://your-dspace/jspui/ldap-login and if you have changed the line in<br>Authenticate.java then they should be redirected appropriately.<br><br>If this is not happening, it is probably because your users are clicking on<br>'My DSpace' in order to log in. This tries to take them to their<br>'My DSpace'<br>screen, but first requires them to log in. Once they have done so, they are<br>redirected to the page they wanted, My DSpace. DSpace is sending them to the<br>destination that they requested.<br><br>If you want all users to be redirected to a different URL all of the time,<br>then change the following code in Authenticate.java:<br><br> if (originalURL == null)<br> {<br>     // If for some reason we don't have the original URL, redirect<br>     // to My DSpace<br>     originalURL = request.getContextPath() +
 "/mydspace";<br>  }<br>  else<br>  {<br>     // Set the flag in the session, so that when the redirect is<br>     // followed, we'll know to resume the interrupted request<br>     session.setAttribute("resuming.request", new Boolean(true));<br>  }<br><br>Change this to just:<br><br>  originalURL = request.getContextPath() + "/community-list";<br><br>I hope this helps,<br><br><br>Stuart<br>_________________________________________________________________<br><br>Gwasanaethau Gwybodaeth                      Information Services<br>Prifysgol Aberystwyth                      Aberystwyth University<br><br>            E-bost / E-mail: Stuart.Lewis@aber.ac.uk<br>                 Ffon / Tel: (01970) 622860<br>_________________________________________________________________<br><br></pre></blockquote></td></tr></table><br>



      <hr size=1><font size=-1 face=Arial> 
Χρησιμοποιείτε Yahoo!<br> 
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων <br> 
<a href="http://login.yahoo.com/config/mail?.intl=gr">http://login.yahoo.com/config/mail?.intl=gr</a> </font>