Re: Tiles extend

2002-09-25 Thread Miguel Angel Medina Lopez

Thanks Devin

It's a solution, but if I put in the inherited definition an attribute with
a the null value () it must work, isn't it?
I think this is a bug of the distribution that it'll be repaired in next
build.

Best regards

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España


- Original Message -
From: "Richards, Devin N (Devin)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 8:54 PM
Subject: RE: Tiles extend


> we just created a JSP that contained only a   and passed that in
place of the null.
>
> -Devin
>
>
> -Original Message-
> From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 2:44 PM
> To: Struts Users Mailing List
> Subject: Re: Tiles extend
>
>
> Thank you Padma
>
> I have resolved the problem. I'm using EasyStruts for JBuilder and the
> source code for the tiles-defs.xml when I extend a definitions put the
> attribute path="", then the class you say detect that the path isn't null.
I
> have edited the file and erase this attribute, and it's work. Sorry.
>
> Now, I have a new error extending tiles definitions. I want to override an
> attribute with the value null, so isn't appear in the definitive page. The
> code:
> path="/WEB-INF/paginas/plantillas/plantillaPrivada.jsp">
>   />
>  value="/WEB-INF/paginas/comunes/cabeceraPrivado.jsp" />
>   
>   
> 
>  
>
> With this the application use the value of the parent.If the value of the
> attribute is a real JSP, not the null value, it's works fine.
>
> Can you help me. Thank you
>
> -
> Miguel Ángel Medina López
> Logic Factory: www.logic-factory.com
> Granada - España
>
>
>
>
> - Original Message -
> From: "Padma Ginnaram" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 24, 2002 6:46 PM
> Subject: RE: Tiles extend
>
>
> I had a simillar problem using tiles(version prior to 1.1) and enclosed is
> an email discussing the issue. See if this fix works for you.
>
> - Padma
>
> -Original Message-
> From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 12:30 PM
> To: Struts Users Mailing List
> Subject: Tiles extend
>
>
> Hi all:
>
> I'm developing my first aplication with struts and tiles. I define the
tiles
> in a XML file and I wanted to extend a definition. In the documentation
said
> when I extend a definition only must fill the attributes "name" and
> "extends", but not "path" because it's extended. However when I did that
an
> error occur (Cannot get request dispatcher for path). If I put the same
path
> in both definitions it works fine. Is it a bug or always a must fill the
> path attribute.
>
> I'm using Struts 1.1 beta2.
>
> Thank you
>
> -
> Miguel Ángel Medina López
> Logic Factory: www.logic-factory.com
> Granada - España
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
>
>
> --
--
> 
>
>
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts tags for display a collection of views

2002-09-25 Thread Heligon Sandra

Excuse me I do not understand the direction of your answer.
I already read documentation about tags offered by struts.  
For displaying a list of objects it seems that there are two possible
choices logic:iterate and nested tags.  
The problem that I meet today in the construction of my page to displaying
data several similar sights seemed me common.  
This is why I sought of the assistance on this forum.  
I find interessant very to be able to exchange our knowledge, 
and our experiments that makes it possible to reduce times of development
considerably. 
I know that the tutoriaux ones and documentation exist but the examples
given are often simple.  On the other hand the users of Struts like you and
me, build more complex cases.  

Sandra, 

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: 24 September 2002 19:10
To: 'Struts Users Mailing List'
Subject: RE: Struts tags for display a collection of views


This would require a tutorial (or two).  I would suggest you do one, then
ask a question.

Mark

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 12:10 PM


Hi,

I don't know HTML/Struts tags very well, I would like to know if it
is possible to
display this kind of view:

   Previous <|  |> Next


|   |
|   (body)  |
|   |



In fact I have to display a list that can have a large size and
multiple
views are required. The buttons Previous and next all to navigate
from one view to another.

Could you explain me how this type of views is managed ?

Thanks a lot


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Accessing the Commons Logging Interface

2002-09-25 Thread Tal Rotbart

Hi all,

In Struts 1.1b2, how do I access the Commons Logging Interface from withing
a Struts Plug-In?
1. The chapter in the User Guide is still [TO DO]
2. It seems that the "log" static member field from within "ActionServlet"
is not public.
3. I have not found any "getLog" member function anywhere... Seems like a
missing feature...

Any ideas?

Thanks!
Tal Rotbart


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Logging with Struts on RI: was Redirected to index.jsp unexpectedly

2002-09-25 Thread Geoff Seel

Folks

Know I can't expect people on mailing lists to solve all my problems but
I was surprised that nobody could help with logging issue below. Has
anyone used Struts successfully with the Sun J2EE Reference
Implementation (1.3.1)? Does anyone know where the logs should be?
Thanks.

In message <[EMAIL PROTECTED]>, Geoff Seel
<[EMAIL PROTECTED]> writes
>Joe
>
>Thanks for suggestions. Have put sys-outs into TopLevelAction and even
>logs and a sys-out into a version of ActionServlet but don't see
>anything in logs. Using Sun RI 1.3.1, which I thought was Tomcat based,
>expected to find output in catalina..log. Anyone know where log
>stuff should be appearing?
>

-- 
Geoff Seel  Voice:  +44 (0)20-8296-0684
Financial Object Toolkits Ltd.  Mobile: 0797-688-0668
54, Berrylands Road,Fax:+44 (0)870-054-7931
Surbiton,   e-mail: [EMAIL PROTECTED]
Surrey KT5 8PD  WWW:www.foto.co.uk 
United Kingdom

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Logging with Struts on RI: was Redirected to index.jsp unexpectedly

2002-09-25 Thread Tal Rotbart

Standard output should be in stdout.log, in $CATALINA_HOME/logs...
The logs with the dates are when the commons logging interface is used,
methinks.

Tal

- Original Message -
From: "Geoff Seel" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 11:19 AM
Subject: Logging with Struts on RI: was Redirected to index.jsp unexpectedly


> Folks
>
> Know I can't expect people on mailing lists to solve all my problems but
> I was surprised that nobody could help with logging issue below. Has
> anyone used Struts successfully with the Sun J2EE Reference
> Implementation (1.3.1)? Does anyone know where the logs should be?
> Thanks.
>
> In message <[EMAIL PROTECTED]>, Geoff Seel
> <[EMAIL PROTECTED]> writes
> >Joe
> >
> >Thanks for suggestions. Have put sys-outs into TopLevelAction and even
> >logs and a sys-out into a version of ActionServlet but don't see
> >anything in logs. Using Sun RI 1.3.1, which I thought was Tomcat based,
> >expected to find output in catalina..log. Anyone know where log
> >stuff should be appearing?
> >
>
> --
> Geoff Seel  Voice:  +44 (0)20-8296-0684
> Financial Object Toolkits Ltd.  Mobile: 0797-688-0668
> 54, Berrylands Road,Fax:+44 (0)870-054-7931
> Surbiton,   e-mail: [EMAIL PROTECTED]
> Surrey KT5 8PD  WWW:www.foto.co.uk
> United Kingdom
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Help needed with ActionForm Bean

2002-09-25 Thread Vincent Berruchon

thanks for your reply, perhaps there's something I've haven't understand:

I'd like to display  in my select dropdown data that come from a 
database... where should I get this data from the DB this should be done 
before the call of the getXXX method of the ActionForm when.

Should I use an action where I get data from the DB and forward it to 
the action associated with the jsp page containing the form?? is it the 
way to do it?


Vincent

Galbreath, Mark wrote:
> It's magic.
> 
> 
> Seriously, your getters and setters in your ActionForm bean correspond to
> the HTML input fields in your JSP.  So if you have a select dropdown in the
> JSP called "state," in some HTML form for collecting personal information
> you could have
> 
>   private state = "";
> 
>   public void setState( String state) {
> this.state = state;
>   }
> 
>   public String getState() {
> return state;
>   }
> 
> in your Action form.  In order to make Struts aware of this bean, you must
> declare in your struts-config.xml file and have an action path mapped from
> your JSP to an Action class that will manipulate the bean values that are
> set by Struts:
> 
>  type="com.whatever.PersonInfoForm" />
> 
>  type="com.whatever.GetPersonalInfoAction" 
> name="PersonalInfoForm"
> scope="session"
> validate="true"
> parameter="isNew">
>   
>   
> 
> 
> So this associates your bean with your JSP and your ActionClass.  When your
> user goes to http://yoursite/personalInfo.do (depending on the mapping in
> your web.xml), personalInfo.jsp will be invoked and the rendered HTML
> displayed.  After the user fills out the form and submits (for example, the
> form action is /reviewPersonalInfo which will display everything the user
> just entered), the following action path is invoked:
> 
>  type="com.whatever.SavePersonalInfoAction"
> name="PersonalInfoForm"
> input="/PersonalInfo.jsp"
> scope="session"
> validate="true"
> parameter="isError">
>   
>   
> 
> 
> and reviewPersonalInfo.jsp will appear to display the information contained
> in your bean through the use of Struts tags. At this point you can also
> access the bean's state in your Action class through the form object to save
> it to a database or whatever.
> 
> Okay?
> 
> Mark
> 
> (That should have earned me a few [OT/FRIDAY] msgs, eh?)
> 
> 
> -Original Message-
> From: Vincent Berruchon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 11:19 AM
> 
>   Hi, I'm still newie and really confused on how to get HTML form filled 
> with struts...
> I want to fill a select input in a form in one of my JSP.
> So I've write an ActionForm Bean with the get and set methods for each 
> properties corresponding to an input on the form.
> But I don't know where these "set" methods are (or should) be called to 
> fill actionForm properties before the calls to the get methods?
> 
> Can someone help us?
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Logout in a container-managed security environment -- Follow-up

2002-09-25 Thread Charles McClain

All:

Just to close the loop:

The 404 not-found error I was receiving was coming from the Apache
webserver; when I switched to using the Tomcat servlet container
standalone, FORM-based authentication -- set up as per the advice of
those of you who replied  --  worked properly.

I *thought* that I had Apache configured to pass everything through to
Tomcat, but obviously, I have something wrong in my Apache
configuration.  I'll take a look at that in the near future.

Thanks again,

-- Charlie

-Original Message-
From: Charles McClain [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 24, 2002 7:10 PM
To: Struts User Mailing List
Subject: Logout in a container-managed security environment -- Follow-up


All:

I received several replies to my original question, all of which
indicated that, in order to do a forceful logout, I needed to use
FORM-based CMA rather than BASIC.  One of the replies recommended an
article on the topic, which I downloaded and read.

I implemented FORM-based authentication, making the changes to my
web.xml, indicating the login form and error page, etc.  The container
(Tomcat 4.0) seems to know that I want FORM-based authentication, since
it pops up my login page.  I did, by the way, include the fields
j_username and j_password, and my form action is j_security_check, as
per the instructions.

However, when I press the submit button, my browser gives me a 404
not-found error on the (nonexistent, of course) page j_security_check.
I've checked the Apache and Tomcat logs, and one of the Tomcat logs
tells me that it has "Configured an authenticator for method FORM", but
it still seems to be looking for a page by that name rather than
invoking the method.

Anyone have any ideas?

Charles McClain
Phone:  603.659.2046
email:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Logout in a container-managed security environment -- Follow-up

2002-09-25 Thread James Higginbotham

Charles,

The thing to keep in mind is that you cannot call the login page
directly. Rather, you have to call a protected page, which will trigger
the login page, then will post to the j_security_check, and the
container will then forward to the protected page if the user
authenticated correctly. It seems that most containers do not register
the j_security_check directly, but rather look for it once a protected
resource has been requested. 

HTH,
James

> -Original Message-
> From: Charles McClain [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, September 24, 2002 6:10 PM
> To: Struts User Mailing List
> Subject: Logout in a container-managed security environment 
> -- Follow-up
> 
> 
> All:
> 
> I received several replies to my original question, all of 
> which indicated that, in order to do a forceful logout, I 
> needed to use FORM-based CMA rather than BASIC.  One of the 
> replies recommended an article on the topic, which I 
> downloaded and read.
> 
> I implemented FORM-based authentication, making the changes 
> to my web.xml, indicating the login form and error page, etc. 
>  The container (Tomcat 4.0) seems to know that I want 
> FORM-based authentication, since it pops up my login page.  I 
> did, by the way, include the fields j_username and 
> j_password, and my form action is j_security_check, as per 
> the instructions.
> 
> However, when I press the submit button, my browser gives me 
> a 404 not-found error on the (nonexistent, of course) page 
> j_security_check. I've checked the Apache and Tomcat logs, 
> and one of the Tomcat logs tells me that it has "Configured 
> an authenticator for method FORM", but it still seems to be 
> looking for a page by that name rather than invoking the method.
> 
> Anyone have any ideas?
> 
> Charles McClain
> Phone:  603.659.2046
> email:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Accessing the Commons Logging Interface

2002-09-25 Thread du Plessis, Corneil C

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

In your class:
static private Log log = LogFactory.getLog(MyClass.class);



Corneil du Plessis
Technical Specialist
Internet Development
Retail Channels
Standard Bank
Direct +27 (11) 636-2210
Mobile +27 (83) 442-9221
ICQ# 66747137



-Original Message-
From: Tal Rotbart [mailto:[EMAIL PROTECTED]]
Sent: 25 September, 2002 09:47
To: Struts Users Mailing List
Subject: Accessing the Commons Logging Interface


Hi all,

In Struts 1.1b2, how do I access the Commons Logging Interface from withing
a Struts Plug-In?
1. The chapter in the User Guide is still [TO DO]
2. It seems that the "log" static member field from within "ActionServlet"
is not public.
3. I have not found any "getLog" member function anywhere... Seems like a
missing feature...

Any ideas?

Thanks!
Tal Rotbart


--
To unsubscribe, e-mail:

For additional commands, e-mail:


__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] Struts Wiki?

2002-09-25 Thread rob

I have a few irritations documented in a personal archive I'd be
happy to forward them to you for your list.  Just mail me if you want
they're just typed out in plain text.

Cliff Rowley wrote:
> That would be great.  I have ample hosting, but as yet no Java support. 
> I'd like to hear if anyone is doing something similar first before I
> spend hours trawling the archives categorizing stuff.  If someone has
> already taken this on, perhaps we could combine efforts.
> 
> On Mon, 2002-09-16 at 18:59, Kevin A. Smith wrote:
> 
>>If it would be useful, I can donate hosting space. . .
>>
>>-Original Message-
>>From: Cliff Rowley [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, September 16, 2002 1:58 PM
>>To: [EMAIL PROTECTED]
>>Subject: [OT] Struts Wiki?
>>
>>
>>There seems to be a trend of common Struts related pitfalls (not
>>necessarily the fault of Struts itself), and I was wondering if anyone
>>has taken the time to document these for easier lookup, rather than
>>resorting to searching the list archives.  If not, I'll probably take it
>>on as a extra-curricular task at some point in the near future to set up
>>a wiki type thing whereby these pitfalls can be documented and
>>categorized.  I'm talking about things like the old redirect=false vs
>>redirect=true to carry through request parameters etc.
>>
>>If anyone has such a resource already available, please shout so I don't
>>duplicate effort :)
>>-- 
>>
>>Regards
>>
>>---
>> Cliff Rowley| [EMAIL PROTECTED]
>> Software Engineer   |   www.doctype.co.uk
>> +44 (0) 1206 514263 | www.cliffrowley.com
>>---
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




url parameters not being copied to form bean

2002-09-25 Thread rob

I'm not sure why but I have parameters that are not being copied
to my form bean.  The url written on the page is correct but when
the link is followed only the parameter specified in the global
forward (action=choose) is copied to the bean and (selected=N) is not.

Surely it's a subtle error somewhere but can anyone suggest what
exactly?  I've successfully done this in other applications and this
is the first time it's not worked.

Thanks

Rob

I have a little something like the following to write my link.




  Item
 
 




My form-bean looks like so:


My global-forward looks like so:


My action mapping looks like so:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Logout in a container-managed security environment

2002-09-25 Thread Charles McClain

Mohan:

I just finished setting up container-managed FORM-based authentication
and getting it working, based on advice from several people on this
mailing list.  I'll pass on what I learned, and others can add to it or
correct my advice.  I'm assuming that you know how to set up
container-managed FORM-based authentication, and that your question only
applies to its relationship to Struts.  If that is not the case, you can
review the replies I received to my original posting, or write back and
I will provide detail.

Container-managed FORM-based authentication is separate and apart from
the Struts framework, and indeed can be applied to an application that
is not based on Struts.

When you set up FORM-based authentication, you specify a login page and
login error page.  When the user enters a URL that falls within the
 and  you specified in
your web.xml, the container takes over and pops up the login page you
specified in your  entry.

Assuming that your login page form specifies "j_security_check" as the
action, when the user hits the submit button, control passes back to the
container, which validates j_username and j_password against the
container's security realm; if they are valid, then the container passes
control to the  specified in your web.xml.  If they are
invalid, the container passes control the error page you specified.

Since this validation is performed by the container, you do NOT want a
Struts ActionForm associated with the login page, nor do you want an
Action associated with it.  If you have prep work you need performed,
you should perform it in the Action associated with your welcome page.
It will get performed when the login passes the container's validation
and the container passes control to your welcome page.

It IS useful, however, to have a  back to the login
page, so that your login error page can direct the user back to the
login page, to re-login after an error, and so that, after he logs out,
your logout confirmation page can direct him back to the login page.
Also, your login page and login error page may contain Struts tags.

Since I'm still in the process of converting my app over to FORM-based
authentication, I haven't completely worked out the interaction between
the container and Struts as far as subsequent login-checking is
concerned.  I don't think you need to check the user's login status on
your JSPs and in your actions, because I think the container will force
the user to the login page if he tries to enter the app "in the middle"
via a bookmark or something.  I will be testing this in the near future.

However, I do know that you can gain access to the username and/or role
via the Jakarta Taglib request library; for example, I originally
converted my app to container-managed BASIC authentication expressly so
that I could use the  tag to vary menu and screen
content based on the user's role.

I apologize for my incomplete knowledge, and as I said, I encourage
others to correct or add to what I have written, but since no one else
has yet replied to you, I figured you'd rather have some reply than
none.  I'll be smarter in a few days, after I've had a chance to fully
integrate the container-managed FORM-based authentication facility and
do all my testing.

-- Charlie

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 25, 2002 3:09 AM
To: 'Struts Users Mailing List'
Subject: RE: Logout in a container-managed security environment


Hi,
   I am not sure how Container-managed login security will affect
Struts loginform and loginaction. How do you forward to the main screen
after login in this case? bye, Mohan

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 10:43 PM
To: Struts Users Mailing List
Subject: Re: Logout in a container-managed security environment


It all falls under "Container-Managed Authentication".  It's just a 
different authentication method.

FORM-based authentication is what you see ... on a lot of sites :-) 
(either that or custom [roll-your-own] authentication) where you get the

login prompt in the form of an actual page.  The keys are:
- submit to action="j_security_check"
- field named "j_username"
- field named "j_password"

You would configure your security-constraints the same way you do now. 
 This is a servlet specification thing.  The only thing that you 
(should) have to change is the type of authentication (there is 
additional configuration for form-based auth - must specify login page 
and error page).  Apart from the minor differences in configuration, it 
really is as straight-forward as the above.  Note that you'll have to 
configure a realm for the container to lookup the users in.  This could 
be a flat-file, a DBMS, or JNDI resource.  Of course, you could probably

"roll your own" here too (Tomcat lets you anyway), so you're not really 
constrained to using only those provided.  For more information on

Container Managed Security With ActionForms

2002-09-25 Thread Vinh Tran

After reviewing the archives on the subject of Container Managed Security
I've concluded using ActionForms with CMS is not possible.  However, I would
like to ask the gurus of this list if in fact this is possible.

Here is what I want to do...
1. Login form that submits to an ActionForm for validation.
2. After validation occurs send it to CMS.
3a. If CMS successfully authenticates a user, forward to an Action for
post-processing.
3b. If CMS fails to authenticate, display error on Login page.

Is this possible?



Help needed uploading files

2002-09-25 Thread Brett



Hello, I know this has been discussed before but the struts site seems to be playing 
up and I cant get into it to search the list.  Anyway I am having problems getting 
files to upload to my server.  The problem I have is when I read from the InputStream 
opened from the Request I get -1.  In other words there is nothing to read.

Is there anything I have to configure with Struts so that the files in the HTML page 
are uploaded properly.  At the moment it seems as if they are not arriving correctly 
to the server.

(I have ENCTYPE set to multipart etc).

Thanks.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts tags for display a collection of views

2002-09-25 Thread Taylor, Jason

I think you're talking about "paging" through a dataset a certain number of
records at a time.  If I'm right then we're talking about some sort of
collection with a class or set of classes whose mission in life is to
provide meta-data about the collection like "Page 5 of 6", "current
selection is Record #34", etc.  It's a pattern, though I'm not sure what
you'd call it other than "paging", though unfortunately "paging" makes
people think of little electronic devices that annoy people automatically,
so there should be a better word for it.

Bottom line-- what you're talking about is something you could handle on the
front end (in Javascript or some other scripting language) or the back end
(in your Java classes that make up and service your Model), depending on
your preferences/strengths.  

What Struts provides you is the framework for passing the data between the
front and back end that shields you as much as possible from the details of
how the servlet container works.  

Sometimes you'll get rather curt answers if it sounds like you're expecting
Struts to provide features that are more high-level than that of a webapp
framework.  Don't take it personally, there are a *lot* of postings on this
newsgroup, and most of them could be handled by the posters themselves if
they simply read and understood the documentation more carefully.

-JT

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 12:35 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts tags for display a collection of views


Excuse me I do not understand the direction of your answer.
I already read documentation about tags offered by struts.  
For displaying a list of objects it seems that there are two possible
choices logic:iterate and nested tags.  
The problem that I meet today in the construction of my page to displaying
data several similar sights seemed me common.  
This is why I sought of the assistance on this forum.  
I find interessant very to be able to exchange our knowledge, 
and our experiments that makes it possible to reduce times of development
considerably. 
I know that the tutoriaux ones and documentation exist but the examples
given are often simple.  On the other hand the users of Struts like you and
me, build more complex cases.  

Sandra, 

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: 24 September 2002 19:10
To: 'Struts Users Mailing List'
Subject: RE: Struts tags for display a collection of views


This would require a tutorial (or two).  I would suggest you do one, then
ask a question.

Mark

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 12:10 PM


Hi,

I don't know HTML/Struts tags very well, I would like to know if it
is possible to
display this kind of view:

   Previous <|  |> Next


|   |
|   (body)  |
|   |



In fact I have to display a list that can have a large size and
multiple
views are required. The buttons Previous and next all to navigate
from one view to another.

Could you explain me how this type of views is managed ?

Thanks a lot


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: indexed attribute for html tags

2002-09-25 Thread Taylor, Jason

The documentation is not so clear on this.  Basically, what happens in the
case you cite is that a request parameter will be sent to the Action class
you're submitting the form to that would look like
"?id[34].propertyName=" if it were on a query string.  
If that doesn't make sense to you, you need to dig a bit deeper and figure
out how HTTP requests and responses work.  
If it does make sense, you can see for yourself what I'm talking about by
spitting out the parameters when your Action class is invoked by the
controller and when your JSP receives the request object back from the
backend.  Then you can see how all the info is passed back and forth.

-Original Message-
From: deepank [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 9:40 PM
To: Struts Users Mailing List
Subject: indexed attribute for html tags


I would like to use indexed attribute for some html tags to handle dynamic
html input elements (the number of input elements in the form is not fixed)

i have read the struts user guide, but unable understand what this means.
This is given for almost all html input tags

 indexed  -  Valid only inside of logic:iterate tag. If true then name of
the html tag will be rendered as "id[34].propertyName". Number in brackets
will be generated for every iteration and taken from ancestor logic:iterate
tag. (RT EXPR) 

"WHAT DOES "id[34].propertyName" MEAN

can somebody give me an example how to use this attribute. how will the
property of a form bean and its corresponding getter/setter method look like
if i want to use the indexed attribute.

for example i have this in my jsp





Tiles error (Help)

2002-09-25 Thread Heligon Sandra


I am using Tiles and when I run my application
I have the following error:

javax.servlet.ServletException: Can't get definitions factory from
context. 
javax.servlet.ServletException: Can't get definitions factory from
context.
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:471) 
at org.apache.jsp.index$jsp._jspService(index$jsp.java:96)  
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

I work with Struts1.1b2, my config file is the following:


action
 
org.apache.struts.action.ActionServlet

definitions-config
/WEB-INF/tiles-defs.xml


definitions-parser-validate
 true


 validate
true


definitions-debug
1


debug
2


 config
 
/WEB-INF/struts-config.xml

2
 

What does it mean ?

Thanks,
Sandra

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: test.tomcat.41 failing due to LogService class

2002-09-25 Thread Brian Buckley

> Yes, try a Tomcat mailing list for help for starters :)

The test which is failing is one of the targets in the *struts* build.xml.  Does 
anybody run (and pass) the test targets when building struts from source?

Brian




Unable to resolve Validator DTD

2002-09-25 Thread Dave Derry

Well I guess this explains why there hasn't been any struts mail this
morning, since the Jakarta site seems to be down. Just tried to deploy the
app I'm working on and got this message:

2002-09-25 08:50:04,031 DEBUG [org.apache.commons.digester.Digester.sax]
resolveEntity('-//Apache Software Foundation//DTD Struts Validation
Configuration 1.1//EN',
'http://jakarta.apache.org/struts/dtds/validation_1_1.dtd')
2002-09-25 08:50:04,031 DEBUG [org.apache.commons.digester.Digester]  Not
registered, use system identifier

Now I realize that there are a couple of work arounds that I can use, but
most just don't seem right. What is the best work around for this situation?

Core Struts avoids this problem by 'registering' the DTDs with Digester. Why
doesn't Validator do this? Or is this more of a Xerces bug, since Validator
is setting validation to false?

Would it be acceptable for me to patch the Validator code
(ValidatorResourcesInitializer) to register the DTD? I'm not totally sure
how to do this, but I'm sure I could figure it out from the Struts core
code. I would of course submit my patch into Bugzilla for inclusion, if this
sounds like the right thing to do.

Dave Derry




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Logout in a container-managed security environment -- Follow-up

2002-09-25 Thread Eddie Bush

Charles,

I don't remember the solution to this.  The guys on tomcat-user will 
probably tell you to search the archive.  The issue that arises (using 
Apache/TC) is that you have to map things you want the servlet container 
to be responsible for (unless you use mod_webapp; I do not recommend 
this approach - stick with jk).  Play around with adding a mapping for 
j_security_check.  When you figure it out, please post it here or 
directly to me :-)  I'll squirrel it off somewhere so I have it for 
reference the next time someone asks.

You might *try* looking through the TC docs before you start aimlessly 
trying different mappings.  I seem to recall Remmy changed the docs up a 
bit, and they looked much better - but I honestly do not recall if the 
solution to this problem is included nowadays.

Sorry I wasn't more help.

Charles McClain wrote:

>All:
>
>I received several replies to my original question, all of which
>indicated that, in order to do a forceful logout, I needed to use
>FORM-based CMA rather than BASIC.  One of the replies recommended an
>article on the topic, which I downloaded and read.
>
>I implemented FORM-based authentication, making the changes to my
>web.xml, indicating the login form and error page, etc.  The container
>(Tomcat 4.0) seems to know that I want FORM-based authentication, since
>it pops up my login page.  I did, by the way, include the fields
>j_username and j_password, and my form action is j_security_check, as
>per the instructions.
>
>However, when I press the submit button, my browser gives me a 404
>not-found error on the (nonexistent, of course) page j_security_check.
>I've checked the Apache and Tomcat logs, and one of the Tomcat logs
>tells me that it has "Configured an authenticator for method FORM", but
>it still seems to be looking for a page by that name rather than
>invoking the method.
>
>Anyone have any ideas?
>
>Charles McClain
>Phone:  603.659.2046
>email:[EMAIL PROTECTED]
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Error in setting up title attribute in

2002-09-25 Thread Khan, Manuchehar A (ACF)

  
I am getting this error when I compile...Any suggestions?
Error(34): Attribute: title is not a valid attribute name

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Logout in a container-managed security environment -- Follow-up

2002-09-25 Thread Eddie Bush

Yeah, that's right, but I think there is something special to to be done 
so that you get j_security_check to be recognized by Apache as something 
it needs to send to Tomcat.

James Higginbotham wrote:

>Charles,
>
>The thing to keep in mind is that you cannot call the login page
>directly. Rather, you have to call a protected page, which will trigger
>the login page, then will post to the j_security_check, and the
>container will then forward to the protected page if the user
>authenticated correctly. It seems that most containers do not register
>the j_security_check directly, but rather look for it once a protected
>resource has been requested. 
>
>HTH,
>James
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Excuse me !

2002-09-25 Thread Thomas T. Veldhouse

: 90% of the people ask questions on mail list and
: reply to rehearsed answers.

What are you talking about?

Tom Veldhouse

- Original Message - 
From: "Zahid Rahman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 8:51 PM
Subject: Excuse me !




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[OT] Commons Validator JavaDoc

2002-09-25 Thread Jerry Jalenak

Does anyone have the URL for the Validator JavaDoc on jakarta.apache.org?

Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[Validator] What the #@$!!@# am I doing wrong?

2002-09-25 Thread Jerry Jalenak

Guys?  Anyone?  I'm really stuck here, and I hate to be a bother, but can
anyone tell me why this doesn't work?



I've got the following in my application-rules.xml file:



RE: [ANNOUNCE] StrutsTestCase v1.9 Released

2002-09-25 Thread Day, Michael-IBM/TT

Did you know that JSP PRO has nothing to do with announcements to this list?  The 
person who wrote JSP PRO has an email address that originates from acm.org.

-Original Message-
From: Zahid Rahman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 12:05 PM
To: Struts Users Mailing List
Subject: Re: [ANNOUNCE] StrutsTestCase v1.9 Released


I asked because the email address originated from acm.org
hence I asked for clarification.

Different email lists  work in different ways.
I know with some email lists, if you wish to follow the progress of a
particular project
then you can simply choose to subscribe to  announcements only.

Best Regards,
Zahid

- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 4:47 PM
Subject: RE: [ANNOUNCE] StrutsTestCase v1.9 Released


> No, anyone can make an announcement to this list.
>
> It is typically done with [ANN] or [ANNOUNCEMENT]
>
> It's about proper etiquette when sending e-mail to large volumes of
> subscribers and isn't specific to this list, Jakarta, or even Apache.
>
> Is this the first time you've see an [ANNOUNCEMENT]?
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -Original Message-
> > From: Zahid Rahman [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 24, 2002 10:12 AM
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: [ANNOUNCE] StrutsTestCase v1.9 Released
> >
> >
> > I noticed that you have ANNOUNCEMENT as your subject header.
> > Are you the official Struts organiser ?
> >
> > I am only really interested in announcements and I delete the rest
> > ,hence I would like to make sure.
> >
> > Cheers,
> >
> > - Original Message -
> > From: "Deryl Seale" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 24, 2002 2:15 PM
> > Subject: [ANNOUNCE] StrutsTestCase v1.9 Released
> >
> >
> > StrutsTestCase v1.9 improves support for Struts 1.1b2
> > (including support for testing Tiles and sub-applications),
> > provides several requested enhancements, and fixes many
> > reported defects.
> >
> > The project home page can be found here:
> >
> > http://strutstestcase.sourceforge.net
> >
> > Notes for this release can be found here:
> >
> > http://sourceforge.net/project/shownotes.php?release_id=112307
> >
> >
> > Questions and comments are always welcome!
> >
> > Deryl Seale - [EMAIL PROTECTED]
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Firewall and Struts inhibit CSS references

2002-09-25 Thread James Mitchell

The only thing you have to worry about is how your users browsers are
constructing the request for the css file.

Here's some help from Ted:

* Use rewrite to reference HTML assets *

The Struts  tag can convert a context-relative URI into a base
URI that can be used to access style sheets, JavaScripts, images and other
HTML assets. For example,



If you wanted to hedge your bets about where the style sheets will be
located, an ActionForward may also be used.



Likewise, references to JavaScripts, as well as URIs to be processed by
JavaScripts, can be rendered this way.


   SRC=''>