You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by objectworlds <ob...@netscape.net> on 2003/07/02 03:21:10 UTC
Re: struts-logon
I also looked in the distribution file jakarta-struts-1.1-rc2 as suggested
but I couldn't find it there either , just as yourself.
I was being polite when I wrote I went for the cut & paste approach,
but actually as far I could see the only choice available was Hobson's
choice.
objectworld6@netscape.net wrote:
> You'll find that example and others on this page.
>
> http://jakarta.apache.org/struts/resources/examples.html
>
> rsmazara@ebi.ac.uk wrote:
>
>> Hi Can some please tell me how to get this sample application ? I
>> could not find it in the Binary or Source distributions
>> thanks
>>
>>
>> Rupinder
>>
>> -----Original Message-----
>> From: Steve Raeburn [mailto:steve@ninsky.com]
>> Sent: 29 June 2003 20:06
>> To: Struts Users Mailing List
>> Subject: RE: struts-logon
>>
>> There's a tld file missing from the WEB-INF/lib folder.
>>
>> Cut and past the following into a file called app.tld in the WEB-INF/lib
>> folder. (This is just the version from the Struts example application
>> that
>> is in the Struts distribution, so you can copy that file if it's
>> easier).
>>
>> Steve
>>
>>
>>
>> <?xml version="1.0" encoding="ISO-8859-1" ?>
>> <!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>Application Tag Library</shortname>
>> <uri>http://jakarta.apache.org/taglibs/struts-example-1.0</uri>
>> <info>
>> This tag library contains functionality specific to the Struts
>> Example Application.
>> </info>
>>
>> <tag>
>> <name>checkLogon</name>
>> <tagclass>org.apache.struts.webapp.example.CheckLogonTag</tagclass>
>> <bodycontent>empty</bodycontent>
>> <info>
>> Validate that there is a currently logged on user, by checking for
>> the existence of a session-scope bean under the specified name.
>> If there is no such bean, forward control to the specified page,
>> which will typically be a logon form.
>>
>> name - Name of the session-scope bean to check for [user]
>>
>> page - Context-relative path to the logon page [/logon.jsp]
>> </info>
>> <attribute>
>> <name>name</name>
>> <required>false</required>
>> <rtexprvalue>true</rtexprvalue>
>> </attribute>
>> <attribute>
>> <name>page</name>
>> <required>false</required>
>> <rtexprvalue>true</rtexprvalue>
>> </attribute>
>> </tag>
>>
>> <tag>
>> <name>linkSubscription</name>
>>
>> <tagclass>org.apache.struts.webapp.example.LinkSubscriptionTag</tagclass>
>>
>> <info>
>> Generate a URL-encoded hyperlink to the a URL made up of the
>> specified base value, plus optional query parameters that
>> select the specified Subscription object.
>>
>> name - Name of the attribute containing the specified
>> Subscription. [subscription]
>>
>> page - Context-relative URL of the generated link
>> </info>
>> <attribute>
>> <name>name</name>
>> <required>false</required>
>> <rtexprvalue>true</rtexprvalue>
>> </attribute>
>> <attribute>
>> <name>page</name>
>> <required>true</required>
>> <rtexprvalue>true</rtexprvalue>
>> </attribute>
>> </tag>
>>
>> <tag>
>> <name>linkUser</name>
>> <tagclass>org.apache.struts.webapp.example.LinkUserTag</tagclass>
>> <info>
>> Generate a URL-encoded hyperlink to the a URL made up of the
>> specified base value, plus optional query parameters that
>> select the specified User object.
>>
>> name - Name of the attribute containing the specified user.
>> [user]
>>
>> href - Context-relative URL of the generated link
>> </info>
>> <attribute>
>> <name>name</name>
>> <required>false</required>
>> <rtexprvalue>true</rtexprvalue>
>> </attribute>
>> <attribute>
>> <name>page</name>
>> <required>true</required>
>> <rtexprvalue>true</rtexprvalue>
>> </attribute>
>> </tag>
>>
>> </taglib>
>>
>>
>>
>>> -----Original Message-----
>>> From: objectworlds [mailto:objectworld6@netscape.net]
>>> Sent: June 29, 2003 10:54 AM
>>> To: Struts Users Mailing List
>>> Subject: struts-logon
>>>
>>>
>>>
>>> I was trying out the sample applications.
>>> This email is regarding struts-logon. It doesn't work.
>>> steps followed ---
>>> - Placed the struts-logon.war in the webapps directory.
>>> - Restarted tomcat 4.1.18.
>>> - The web directories were created by tomcat.
>>> - went to browser and typed http://localhost:8080/struts-logon
>>> - The browser displayed :-
>>>
>>> HTTP Status 404 - /struts-logon
>>>
>>> ------------------------------------------------------------------
>>> --------------
>>>
>>> type Status report
>>>
>>> message /struts-logon
>>>
>>> description The requested resource (/struts-logon) is not available.
>>>
>>> I haven't had a chance to fix it yet so just reporting the problem
>>> as it
>>> stands.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>>
>
--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org