RE: Mail System Error - Returned Mail

2002-05-09 Thread Micael Padraig Og mac Grene

You might want to be a bit more careful about what you suggest.  This may 
be a crime.  Like I said,
I am a lawyer, but you probably know better.

At 01:30 AM 5/10/02 -0400, you wrote:
>We should get everyone to call him on his cell phonehere's the number
>(for those friggin idiots who are about to flame me..the number is in
>the email address)
>
>(832)723-1084
>
>Anyone know what area code that is?
>
>
>JM
>
> > -Original Message-
> > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, May 10, 2002 1:20 AM
> > To: Struts Users Mailing List
> > Subject: Re: Mail System Error - Returned Mail
> >
> >
> >
> > Yep, I am getting this too
> >
> > M.
> >
> > - Original Message -
> > From: "James Mitchell" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, May 10, 2002 12:16 AM
> > Subject: RE: Mail System Error - Returned Mail
> >
> >
> > > Is anyone else getting this with every post to the list?
> > >
> > > JM
> > >
> > > > -Original Message-
> > > > From: Mail Administrator [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, May 10, 2002 1:11 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Mail System Error - Returned Mail
> > > >
> > > >
> > > > This Message was undeliverable due to the following reason:
> > > >
> > > > The user(s) account is temporarily over quota.
> > > >
> > > > <[EMAIL PROTECTED]>
> > > >
> > > > Please reply to [EMAIL PROTECTED]
> > > > if you feel this message to be in error.
> > > >
> > >
> > > --
> > > 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: 




Documentation on request parameter populating of form bean

2002-05-09 Thread Bill Boland

I've been doing some research on how the request parameters are mapped
to form bean properties. I just haven't been able to find much
documentation on this. I was wondering if someone could point me in the
right direction. I think I understand the basics of simple request
parameter to property name mapping. The complexities and rules of index,
mapped, nested syntax are still a bit vague.

Reason: I'm using Struts for the model and controller but I'm not using
it for the View. I'm using Velocity instead (tastes great, less
filling). I'd like to fully understand the capabilities of the
RequestUtils.populate() method that fills the bean from the request
parameters so I can use the naming pattern properly when building forms
in Velocity. I've been pouring through the code in the jakarta-commons,
but it seems to me that this request parameter naming pattern should be
documented somewhere already...but I've overlooked it.

What I think I understand:
  
 Request parameterresulting form bean invocation
 -  --
 name=JohnsetName( "John" )

 amount=123   setAmount( 123 )

 item[2]=applegetItem()[2] = "apple"
 (where getItem() returns an Object[])
   -- or --
getItem().set(2,"apple")
 (where getItem() returns a List)

 propMap(name)=John   getPropMap().put( "name", "John" )
 (where getPropMap() returns a Map)

 colors=green
 colors=blue  setColors( new String[] { "green" , "blue"
} )
 (where setColors() returns an Object[])

 brands=Sony  setBrands( new String[] { "brands" } )

 order.amount=84  getOrder().setAmount( 84 )

 order.item[5].propMap(name)=John
  getOrder().getItem()[5].getPropMap().put(
"name", "John" )

Please correct or add new (and interesting) examples to this to help us
all.

Another question: Is there any standards for request parameter naming
for other server technologies (i.e. CGI, PHP, etc?)

Thanks for any input.

bill



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




RE: Q: forwarding to a servlet

2002-05-09 Thread Bill Boland

I agree. It is as simple as setting the path of the forward to a path
that will invoke the servlet...but servlets may have names or mappings
that may also be used in the path.

For example, I'm using Velocity (instead of JSPs) to view the result of
the action. Here's a snippet of the web.xml that defines the servlet:


  velocity
  com.acme.MyVelocityServlet

  



  
velocity
*.vm
  


Because I have a servlet mapping, all requests with paths ending in .vm
issued on this web application invoke the velocity servlet (just like
all the ones ending in .do are mapped to the Struts ActionServlet in my
application.

This allows a forward such as:

   

to invoke another servlet using mapping.

If a servlet is given a name in the web.xml, it can also be invoked via:

   

or the full class name can be used:

   


-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 09, 2002 10:48 PM
To: Struts Users Mailing List
Subject: Re: Q: forwarding to a servlet

Malcom,
If I understand your question correctly, all you would have to do is set

the path attribute of the forward tag of your Action mapping to the
desired 
servlet path.
ex.   

Regards,

Richard


At 08:59 PM 5/9/2002 -0700, you wrote:
>I'm not clear on how to forward from the action routine to a servlet
(in
>instead of a jsp).  Is there an example of forwarding to a servlet I
could
>examine?
>
>Pointers welcome, thanks.
>
>
>
>--
>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: Puzzling error with logic:iterate

2002-05-09 Thread Ajay Chitre

I think you are missing a jsp:useBean

Not sure if this will help but try this out -


Add a useBean;



Before ---


HTH!
>-- Original Message --
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Date: 10 May 2002 05:46:59 -
>From: "K Br" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Puzzling error with logic:iterate
>
>
>pl help. i have been wracking my small brain over this
>for a few hours and i have no clew.
>
>i am using logic:iterate copybook style; yet, it throws the runtime exception:
>
>javax.servlet.ServletException: Cannot find bean currBook in scope null
>
>the iterate statement is:
>
>   Next book: 
> 
>
>
>
>the complete source is:
>
>
><%@ page language="java" import="My.*"
> import="java.util.*" %>
><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="login" %>
>
>
>  
>
>
>
>
>  
>   <%
>My.Book[] books = new My.Book[4];
>books[0] = new Book("An Introduction to Algebra", 100);
>books[1] = new Book("JSP: An Advanced Course", 234);
>books[2] = new Book("JavaScript and JSP Pages", 333);
> System.out.println("Books = " + books);
>pageContext.setAttribute("books", books, PageContext.PAGE_SCOPE);
>
>   %>
>
>   
>
> 
>   Next book: 
> 
> 
>   
>   
>  
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>

Ajay Chitre

Diligent Team, Inc.
(Where Diligent People Work as a Team)

http://www.DiligentTeam.com


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




Re: Q: forwarding to a servlet

2002-05-09 Thread Richard Yee

Malcom,
If I understand your question correctly, all you would have to do is set 
the path attribute of the forward tag of your Action mapping to the desired 
servlet path.
ex.   

Regards,

Richard


At 08:59 PM 5/9/2002 -0700, you wrote:
>I'm not clear on how to forward from the action routine to a servlet (in
>instead of a jsp).  Is there an example of forwarding to a servlet I could
>examine?
>
>Pointers welcome, thanks.
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




Puzzling error with logic:iterate

2002-05-09 Thread K Br

pl help. i have been wracking my small brain over this
for a few hours and i have no clew.

i am using logic:iterate copybook style; yet, it throws the runtime exception:

javax.servlet.ServletException: Cannot find bean currBook in scope null

the iterate statement is:

   Next book: 
 
 


the complete source is:


<%@ page language="java" import="My.*"
 import="java.util.*" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="login" %>


  




  
   <% 
My.Book[] books = new My.Book[4];
books[0] = new Book("An Introduction to Algebra", 100);
books[1] = new Book("JSP: An Advanced Course", 234);
books[2] = new Book("JavaScript and JSP Pages", 333);
 System.out.println("Books = " + books);
pageContext.setAttribute("books", books, PageContext.PAGE_SCOPE);

   %>

   

 
   Next book: 
 
 
   
   
  






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




Re: Struts Beginner - Looking for *decent* documentation

2002-05-09 Thread Richard Yee

Mark,
You just need to create the jsp with the form and also create a form bean 
that has member variables that match the names of the fields in the form. 
You will also create an Action class (a class that extends Action). Then 
you need to put two entries in the struts.config file like this:

   

   

 


   
   
   
   
   

You will need to replace 'yourFormName', 'yourPackage', 'YourFormAction', 
'yourFormBean', 'yourForm.jsp', and your_forward_page.jsp' with your own 
class and page names. The controller servlet will actually fill in your 
form bean with the corresponding fields of the input form and then pass it 
to the Action class that you specify in the Action mapping. The input form 
jsp doesn't actually do it as you described in your email.

Regards,

Richard

At 11:27 PM 5/9/2002 -0500, you wrote:

>Well, I have spent the last 15 years designing and developing complex
>transaction switching architectures for the healthcare industry,
>unfortunately very little of this work was with the presentation layer.   I
>am somewhat familiar with html and jsp, however I have never worked with
>taglibs.  I understand what they are and how they work, however I need to
>know the syntax and usage of these tags.  Once I have that information, it
>should be easier to determine if Struts is the tool to use for my
>application.
>
>What I am trying to do is quite basic.  I would like to serve up a jsp that
>contains a form.  The form populates a javabean that is passed into a
>servlet, the action controller does some work based on the contents of the
>javabean, and the result is displayed in a jsp.  Pretty straightforward.
>However, it is very difficult to populate the bean without documentation for
>the struts-form taglib.  If this is a bad approach, maybe you can point me
>in the correct direction.
>
>Thanks.
>
>- Original Message -
>From: "James Mitchell" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Thursday, May 09, 2002 11:15 PM
>Subject: RE: Struts Beginner - Looking for *decent* documentation
>
>
> > What kinds of questions do you have?
> >
> > JM
> >
> > > -Original Message-
> > > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, May 10, 2002 12:12 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: Struts Beginner - Looking for *decent* documentation
> > >
> > >
> > >
> > > The primary issue I am having surrounds the usage of a form within
>Struts.
> > > I have been searching the web for documentation surrounding the
> > > struts-form
> > > taglib and cannot find anything.  Any ideas where I may locate such a
> > > document?
> > >
> > > M.
> > >
> > > - Original Message -
> > > From: "James Mitchell" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Thursday, May 09, 2002 11:05 PM
> > > Subject: RE: Struts Beginner - Looking for *decent* documentation
> > >
> > >
> > > > I agree.  The documentation is a little hard to follow.
> > > >
> > > > There are many other places that have docs and samplescheck out
>some
> > > of
> > > > these links.
> > > >
> > > > http://jakarta.apache.org/struts/resources.html
> > > >
> > > >
> > > > JM
> > > >
> > > > > -Original Message-
> > > > > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, May 09, 2002 11:50 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Struts Beginner - Looking for *decent* documentation
> > > > >
> > > > >
> > > > >
> > > > > I have been working at implementing Struts into an existing web
> > > > > framework for the past several days and I feel that the only
> > > > > progress that I have made is that the documentation for Struts is
> > > > > generally poor and very disorganized.  I hope that I am incorrect
> > > > > and that someone can point me to a *good* reference with a few
> > > > > straightforward examples.  Much of my frustration surrounds the
> > > > > documentation for the taglibs.  I am interested in documentation
> > > > > that explains the purpose and usage of each tag, not some generic
> > > > > definition of the tag.
> > > > >
> > > > > What I am trying to accomplish is pretty straight forward,
> > > > > however I have spinning my wheels for the last several days as I
> > > > > attempt to work my way through 4 different Struts examples,
> > > > > trying to correlate the contents back to the Struts
> > > > > documentation.  I believe that Struts is a good tool, however if
> > > > > my experience is indicative of a first time user, the lack of
> > > > > documentation only serves to lessen the usefulness of this tool.
> > > > >
> > > > > Thanks.
> > > > >
> > > > > M.
> > > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > 
> > > > For additional commands, e-mail:
> > > 
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > For additional commands,

Re: Struts Beginner - Looking for *decent* documentation

2002-05-09 Thread James Turner

At 01:33 AM 5/10/2002, you wrote:
>Message-ID: <005401c1f7db$0fc17640$[EMAIL PROTECTED]>
>From: "Mark Udstrand" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Struts Beginner - Looking for *decent* documentation
>Date: Thu, 9 May 2002 23:27:51 -0500
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>
>
>Well, I have spent the last 15 years designing and developing complex
>transaction switching architectures for the healthcare industry,
>unfortunately very little of this work was with the presentation layer.   I
>am somewhat familiar with html and jsp, however I have never worked with
>taglibs.  I understand what they are and how they work, however I need to
>know the syntax and usage of these tags.  Once I have that information, it
>should be easier to determine if Struts is the tool to use for my
>application.
>
>What I am trying to do is quite basic.  I would like to serve up a jsp that
>contains a form.  The form populates a javabean that is passed into a
>servlet, the action controller does some work based on the contents of the
>javabean, and the result is displayed in a jsp.  Pretty straightforward.
>However, it is very difficult to populate the bean without documentation for
>the struts-form taglib.  If this is a bad approach, maybe you can point me
>in the correct direction.
>
>Thanks.

At the risk of shameless self-promotion, I've got a chapter on Struts in my 
new book,
"MySQL and JSP Web Applications".  It's by no means a complete reference on the
subject, but it does walk through the entire process of setting up a moderately
complex multi-form Struts application.

For the full-blown reference, you'll have to wait until 1Q of 2003, since I 
and a co-author
just signed with SAMS to write just such a book for release about then.

James Turner
[EMAIL PROTECTED]


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




Re: *** URGENT Help needed ****

2002-05-09 Thread stefan werner

 you go girl :-)

stefan
- Original Message -
From: "Reid Tardy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 03, 2002 1:29 PM
Subject: *** URGENT Help needed 


> Dearest Struts Gurus,
>
> My name is Reid Tardy.
>
> This may be a bit off topic but I need all of you all to drop what you are
> doing and help me right now. I am trying to modify the Struts example to
run
> on a machine with VB instead of Java. I also want to be able to download
gif
> files into Lotus Notes. I have never used Java before but since I hold an
AA
> in make-up application, an AS in auto mechanics, an AS in massage therapy,
a
> BA in history, an MA in 20th-Century Bulgarian Literature with a minor in
> sword fighting, a PHD in Political Science from a college somewhere in
> Newfoundland and numerous continuing ed certificates. I have spent the
> better part of ten minutes trying to get it to work but it doesn't. My
> browser don't shows anything ... it don't even show an exception. I
haven't
> bothered to look at the documentation. One last question, do I need some
> thing like TomCat? What is a TomCat anyway? Could you tell me how to
install
> one if I need it? Please help immediately but not too fast because I am
> going for beers soon.
>
> Many thanks and kind regards,
>
> Reid
>
> P.S. By the way, James and Mark you both suck more than Micael because you
> haven't answered my question before I posted it.
>
>
>
>
> _
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Mail System Error - Returned Mail

2002-05-09 Thread James Mitchell

We should get everyone to call him on his cell phonehere's the number
(for those friggin idiots who are about to flame me..the number is in
the email address)

(832)723-1084

Anyone know what area code that is?


JM

> -Original Message-
> From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 1:20 AM
> To: Struts Users Mailing List
> Subject: Re: Mail System Error - Returned Mail
>
>
>
> Yep, I am getting this too
>
> M.
>
> - Original Message -
> From: "James Mitchell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, May 10, 2002 12:16 AM
> Subject: RE: Mail System Error - Returned Mail
>
>
> > Is anyone else getting this with every post to the list?
> >
> > JM
> >
> > > -Original Message-
> > > From: Mail Administrator [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, May 10, 2002 1:11 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Mail System Error - Returned Mail
> > >
> > >
> > > This Message was undeliverable due to the following reason:
> > >
> > > The user(s) account is temporarily over quota.
> > >
> > > <[EMAIL PROTECTED]>
> > >
> > > Please reply to [EMAIL PROTECTED]
> > > if you feel this message to be in error.
> > >
> >
> > --
> > 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: Mail System Error - Returned Mail

2002-05-09 Thread Mark Udstrand


Yep, I am getting this too

M.

- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 12:16 AM
Subject: RE: Mail System Error - Returned Mail


> Is anyone else getting this with every post to the list?
>
> JM
>
> > -Original Message-
> > From: Mail Administrator [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, May 10, 2002 1:11 AM
> > To: [EMAIL PROTECTED]
> > Subject: Mail System Error - Returned Mail
> >
> >
> > This Message was undeliverable due to the following reason:
> >
> > The user(s) account is temporarily over quota.
> >
> > <[EMAIL PROTECTED]>
> >
> > Please reply to [EMAIL PROTECTED]
> > if you feel this message to be in error.
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Friday Funnies

2002-05-09 Thread James Mitchell

Don't shoot me if you've already seen these.


 * If con is the opposite of pro, what's the opposite of progress?

 * The difference between ignorance and apathy? I don't know, and I couldn't
care less.

 * Imagine, if you will, a world without hypothetical situations.


Last but not least, a lesson I learned all to well recently

 * Never argue with an idiot. They drag you down to their level then beat
you with experience.


JM


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




RE: Mail System Error - Returned Mail

2002-05-09 Thread James Mitchell

Is anyone else getting this with every post to the list?

JM 

> -Original Message-
> From: Mail Administrator [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 1:11 AM
> To: [EMAIL PROTECTED]
> Subject: Mail System Error - Returned Mail
> 
> 
> This Message was undeliverable due to the following reason:
> 
> The user(s) account is temporarily over quota.
> 
> <[EMAIL PROTECTED]>
> 
> Please reply to [EMAIL PROTECTED]
> if you feel this message to be in error.
> 

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




RE: Struts Beginner - Looking for *decent* documentation

2002-05-09 Thread James Mitchell

I am certainly not a master at Struts, but I can give you a few hints that
may save you some time.

The best way I learned about taglibs was trial and error/asking others and
rummaging through the example code trying to figure it out.  (Having
auto-complete in Netbeans doesn't hurt either.  Although that doesn't help
with what you require)


* Stuff the Bean *
When you want to leverage existing beans and/or VOs, just put them into the
view and nest the taglib calls.
So having an ActionForm with a field called username (w/approp mutators),
then the taglib might look like this


If you had added an existing bean into the form in your action before
forwarding and you can do this



* Reduce the complexity and maintainability of the view *
The DynaActionForm is, in my opinion, a wonderful part of the framework that
lets you specify in the struts-config.xml file the xml equivalent of an
ActionForm. Struts provides all the leg work of population (without code
generation).  I fits cleanly into your existing jsp taglibs WITHOUT changing
your jsp code (in the example above).  This saves the time of maintaining
both the bean code/validation and the config file.


  
  


Need a new field in your bean?  Don't modify code and recompile, just add
another form-property and you are done.
Then use it in any jsp that uses your form.  It really is that simple.


  
  
  


After coding in ASP for over 5 years, I have come to REALLY, REALLY
appreciate this framework.
MS .Net promises to provide something similar to the whole MVC architecture,
but from what I've seen it's not mature enough, and probably won't be for a
while.

I could go on for days about the benefits of using Struts, but it's getting
late and I need to put my 2 year old in bed.
Hope this helps a little.

Oh and by the way, if you hang out on this list for a few weeks, you'll see
just how powerful this thing can be.

JM

Right now I'm having amnesia and deja vu at the same time. I think I've
forgotten this before.


> -Original Message-
> From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 12:28 AM
> To: Struts Users Mailing List
> Subject: Re: Struts Beginner - Looking for *decent* documentation
>
>
>
> Well, I have spent the last 15 years designing and developing complex
> transaction switching architectures for the healthcare industry,
> unfortunately very little of this work was with the presentation
> layer.   I
> am somewhat familiar with html and jsp, however I have never worked with
> taglibs.  I understand what they are and how they work, however I need to
> know the syntax and usage of these tags.  Once I have that information, it
> should be easier to determine if Struts is the tool to use for my
> application.
>
> What I am trying to do is quite basic.  I would like to serve up
> a jsp that
> contains a form.  The form populates a javabean that is passed into a
> servlet, the action controller does some work based on the contents of the
> javabean, and the result is displayed in a jsp.  Pretty straightforward.
> However, it is very difficult to populate the bean without
> documentation for
> the struts-form taglib.  If this is a bad approach, maybe you can point me
> in the correct direction.
>
> Thanks.
>
> - Original Message -
> From: "James Mitchell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, May 09, 2002 11:15 PM
> Subject: RE: Struts Beginner - Looking for *decent* documentation
>
>
> > What kinds of questions do you have?
> >
> > JM
> >
> > > -Original Message-
> > > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, May 10, 2002 12:12 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: Struts Beginner - Looking for *decent* documentation
> > >
> > >
> > >
> > > The primary issue I am having surrounds the usage of a form within
> Struts.
> > > I have been searching the web for documentation surrounding the
> > > struts-form
> > > taglib and cannot find anything.  Any ideas where I may locate such a
> > > document?
> > >
> > > M.
> > >
> > > - Original Message -
> > > From: "James Mitchell" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Thursday, May 09, 2002 11:05 PM
> > > Subject: RE: Struts Beginner - Looking for *decent* documentation
> > >
> > >
> > > > I agree.  The documentation is a little hard to follow.
> > > >
> > > > There are many other places that have docs and samplescheck out
> some
> > > of
> > > > these links.
> > > >
> > > > http://jakarta.apache.org/struts/resources.html
> > > >
> > > >
> > > > JM
> > > >
> > > > > -Original Message-
> > > > > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, May 09, 2002 11:50 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Struts Beginner - Looking for *decent* documentation
> > > > >
> > > > >
> > > > >
> > > > > I have been wor

Re: Struts Beginner - Looking for *decent* documentation

2002-05-09 Thread Mark Udstrand


Well, I have spent the last 15 years designing and developing complex
transaction switching architectures for the healthcare industry,
unfortunately very little of this work was with the presentation layer.   I
am somewhat familiar with html and jsp, however I have never worked with
taglibs.  I understand what they are and how they work, however I need to
know the syntax and usage of these tags.  Once I have that information, it
should be easier to determine if Struts is the tool to use for my
application.

What I am trying to do is quite basic.  I would like to serve up a jsp that
contains a form.  The form populates a javabean that is passed into a
servlet, the action controller does some work based on the contents of the
javabean, and the result is displayed in a jsp.  Pretty straightforward.
However, it is very difficult to populate the bean without documentation for
the struts-form taglib.  If this is a bad approach, maybe you can point me
in the correct direction.

Thanks.

- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 09, 2002 11:15 PM
Subject: RE: Struts Beginner - Looking for *decent* documentation


> What kinds of questions do you have?
>
> JM
>
> > -Original Message-
> > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, May 10, 2002 12:12 AM
> > To: Struts Users Mailing List
> > Subject: Re: Struts Beginner - Looking for *decent* documentation
> >
> >
> >
> > The primary issue I am having surrounds the usage of a form within
Struts.
> > I have been searching the web for documentation surrounding the
> > struts-form
> > taglib and cannot find anything.  Any ideas where I may locate such a
> > document?
> >
> > M.
> >
> > - Original Message -
> > From: "James Mitchell" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, May 09, 2002 11:05 PM
> > Subject: RE: Struts Beginner - Looking for *decent* documentation
> >
> >
> > > I agree.  The documentation is a little hard to follow.
> > >
> > > There are many other places that have docs and samplescheck out
some
> > of
> > > these links.
> > >
> > > http://jakarta.apache.org/struts/resources.html
> > >
> > >
> > > JM
> > >
> > > > -Original Message-
> > > > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, May 09, 2002 11:50 PM
> > > > To: Struts Users Mailing List
> > > > Subject: Struts Beginner - Looking for *decent* documentation
> > > >
> > > >
> > > >
> > > > I have been working at implementing Struts into an existing web
> > > > framework for the past several days and I feel that the only
> > > > progress that I have made is that the documentation for Struts is
> > > > generally poor and very disorganized.  I hope that I am incorrect
> > > > and that someone can point me to a *good* reference with a few
> > > > straightforward examples.  Much of my frustration surrounds the
> > > > documentation for the taglibs.  I am interested in documentation
> > > > that explains the purpose and usage of each tag, not some generic
> > > > definition of the tag.
> > > >
> > > > What I am trying to accomplish is pretty straight forward,
> > > > however I have spinning my wheels for the last several days as I
> > > > attempt to work my way through 4 different Struts examples,
> > > > trying to correlate the contents back to the Struts
> > > > documentation.  I believe that Struts is a good tool, however if
> > > > my experience is indicative of a first time user, the lack of
> > > > documentation only serves to lessen the usefulness of this tool.
> > > >
> > > > Thanks.
> > > >
> > > > M.
> > > >
> > >
> > >
> > > --
> > > 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 Beginner - Looking for *decent* documentation

2002-05-09 Thread James Mitchell

What kinds of questions do you have?

JM

> -Original Message-
> From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 12:12 AM
> To: Struts Users Mailing List
> Subject: Re: Struts Beginner - Looking for *decent* documentation
>
>
>
> The primary issue I am having surrounds the usage of a form within Struts.
> I have been searching the web for documentation surrounding the
> struts-form
> taglib and cannot find anything.  Any ideas where I may locate such a
> document?
>
> M.
>
> - Original Message -
> From: "James Mitchell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, May 09, 2002 11:05 PM
> Subject: RE: Struts Beginner - Looking for *decent* documentation
>
>
> > I agree.  The documentation is a little hard to follow.
> >
> > There are many other places that have docs and samplescheck out some
> of
> > these links.
> >
> > http://jakarta.apache.org/struts/resources.html
> >
> >
> > JM
> >
> > > -Original Message-
> > > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 11:50 PM
> > > To: Struts Users Mailing List
> > > Subject: Struts Beginner - Looking for *decent* documentation
> > >
> > >
> > >
> > > I have been working at implementing Struts into an existing web
> > > framework for the past several days and I feel that the only
> > > progress that I have made is that the documentation for Struts is
> > > generally poor and very disorganized.  I hope that I am incorrect
> > > and that someone can point me to a *good* reference with a few
> > > straightforward examples.  Much of my frustration surrounds the
> > > documentation for the taglibs.  I am interested in documentation
> > > that explains the purpose and usage of each tag, not some generic
> > > definition of the tag.
> > >
> > > What I am trying to accomplish is pretty straight forward,
> > > however I have spinning my wheels for the last several days as I
> > > attempt to work my way through 4 different Struts examples,
> > > trying to correlate the contents back to the Struts
> > > documentation.  I believe that Struts is a good tool, however if
> > > my experience is indicative of a first time user, the lack of
> > > documentation only serves to lessen the usefulness of this tool.
> > >
> > > Thanks.
> > >
> > > M.
> > >
> >
> >
> > --
> > 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 Beginner - Looking for *decent* documentation

2002-05-09 Thread Mark Udstrand


The primary issue I am having surrounds the usage of a form within Struts.
I have been searching the web for documentation surrounding the struts-form
taglib and cannot find anything.  Any ideas where I may locate such a
document?

M.

- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 09, 2002 11:05 PM
Subject: RE: Struts Beginner - Looking for *decent* documentation


> I agree.  The documentation is a little hard to follow.
>
> There are many other places that have docs and samplescheck out some
of
> these links.
>
> http://jakarta.apache.org/struts/resources.html
>
>
> JM
>
> > -Original Message-
> > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 09, 2002 11:50 PM
> > To: Struts Users Mailing List
> > Subject: Struts Beginner - Looking for *decent* documentation
> >
> >
> >
> > I have been working at implementing Struts into an existing web
> > framework for the past several days and I feel that the only
> > progress that I have made is that the documentation for Struts is
> > generally poor and very disorganized.  I hope that I am incorrect
> > and that someone can point me to a *good* reference with a few
> > straightforward examples.  Much of my frustration surrounds the
> > documentation for the taglibs.  I am interested in documentation
> > that explains the purpose and usage of each tag, not some generic
> > definition of the tag.
> >
> > What I am trying to accomplish is pretty straight forward,
> > however I have spinning my wheels for the last several days as I
> > attempt to work my way through 4 different Struts examples,
> > trying to correlate the contents back to the Struts
> > documentation.  I believe that Struts is a good tool, however if
> > my experience is indicative of a first time user, the lack of
> > documentation only serves to lessen the usefulness of this tool.
> >
> > Thanks.
> >
> > M.
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Struts Beginner - Looking for *decent* documentation

2002-05-09 Thread James Mitchell

I agree.  The documentation is a little hard to follow.

There are many other places that have docs and samplescheck out some of
these links.

http://jakarta.apache.org/struts/resources.html


JM

> -Original Message-
> From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 11:50 PM
> To: Struts Users Mailing List
> Subject: Struts Beginner - Looking for *decent* documentation
>
>
>
> I have been working at implementing Struts into an existing web
> framework for the past several days and I feel that the only
> progress that I have made is that the documentation for Struts is
> generally poor and very disorganized.  I hope that I am incorrect
> and that someone can point me to a *good* reference with a few
> straightforward examples.  Much of my frustration surrounds the
> documentation for the taglibs.  I am interested in documentation
> that explains the purpose and usage of each tag, not some generic
> definition of the tag.
>
> What I am trying to accomplish is pretty straight forward,
> however I have spinning my wheels for the last several days as I
> attempt to work my way through 4 different Struts examples,
> trying to correlate the contents back to the Struts
> documentation.  I believe that Struts is a good tool, however if
> my experience is indicative of a first time user, the lack of
> documentation only serves to lessen the usefulness of this tool.
>
> Thanks.
>
> M.
>


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




Q: forwarding to a servlet

2002-05-09 Thread Malcolm Dew-Jones

I'm not clear on how to forward from the action routine to a servlet (in
instead of a jsp).  Is there an example of forwarding to a servlet I could
examine?

Pointers welcome, thanks. 



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




Struts Beginner - Looking for *decent* documentation

2002-05-09 Thread Mark Udstrand


I have been working at implementing Struts into an existing web framework for the past 
several days and I feel that the only progress that I have made is that the 
documentation for Struts is generally poor and very disorganized.  I hope that I am 
incorrect and that someone can point me to a *good* reference with a few 
straightforward examples.  Much of my frustration surrounds the documentation for the 
taglibs.  I am interested in documentation that explains the purpose and usage of each 
tag, not some generic definition of the tag.

What I am trying to accomplish is pretty straight forward, however I have spinning my 
wheels for the last several days as I attempt to work my way through 4 different 
Struts examples, trying to correlate the contents back to the Struts documentation.  I 
believe that Struts is a good tool, however if my experience is indicative of a first 
time user, the lack of documentation only serves to lessen the usefulness of this tool.

Thanks.

M.



[Off Topic] POI Logo Contest

2002-05-09 Thread Eddie Bush

LOL - check it out! =)

http://jakarta.apache.org/poi/news/logocontest.html

(Hey - it's nearly Friday!)

Eddie



RE: jsp size limit?

2002-05-09 Thread Andrew Hill

As much as the customer wants.

-Original Message-
From: Joseph Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 08:45
To: Struts Users Mailing List
Subject: RE: jsp size limit?


True.  'Course, that begs the question:  how much content should you really
have on a single page?

> -Original Message-
> From: Arron Bates [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 5:25 PM
> To: Struts Users Mailing List
> Subject: Re: jsp size limit?
>
>
> Not really. It's a whopping class, and it's only really become an issue
> with JSP's, because people can throw in so much content, tags etc.
>
> Arron.
>
> Joseph Barefoot wrote:
>
> >Is this really such a bad thing?  If someone is writing java classes that
> >compile to >64K, I think they may need to revisit their object-oriented
> >principles. ;)
> >
> >>-Original Message-
> >>From: Malcolm Dew-Jones [mailto:[EMAIL PROTECTED]]
> >>Sent: Thursday, May 09, 2002 12:19 PM
> >>To: Struts Users Mailing List
> >>Subject: Re: jsp size limit?
> >>
> >>
> >>
> >>
> >>
> >>On Thu, 9 May 2002, Arron Bates wrote:
> >>
> >>>There's a limitation on the size of a compliled Java class. Java has
> >>>this arbitrary limit of 62k for a compiled class. Looks like you're
> >>>
> >>In 1986 Macintosh computers had the same 64K code barrier.
> Compiled units
> >>of code had to be split into chunks that were smaller than 64K,
> and linked
> >>together.
> >>
> >>I guess Java isn't really such a modern language after all.
> >>
> >>
> >>
> >>--
> >>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: jsp size limit?

2002-05-09 Thread Andrew Hill

I learnt to program on a BBC Micro back in '84.
I had no issues with 64k limits - the machine only had 32k total :-)

-Original Message-
From: Malcolm Dew-Jones [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 03:19
To: Struts Users Mailing List
Subject: Re: jsp size limit?





On Thu, 9 May 2002, Arron Bates wrote:

> There's a limitation on the size of a compliled Java class. Java has
> this arbitrary limit of 62k for a compiled class. Looks like you're

In 1986 Macintosh computers had the same 64K code barrier.  Compiled units
of code had to be split into chunks that were smaller than 64K, and linked
together.

I guess Java isn't really such a modern language after all.



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Want one Action servlet to forward to another Action servlet

2002-05-09 Thread @Basebeans.com

Subject: Want one Action servlet to forward to another Action servlet
From: [EMAIL PROTECTED] (Joe Fischer)
 ===
My idea is to have an Action servlet query a database to
search on a name.  If multiple names come back, it will forward to a
selection jsp that allows me to select the desired name and then go to
a "details" Action servlet.  That works fine.  But, if the first
servlet finds an exact name match, then it should by-pass the multiple
selection page and go straight to the "display" details Action
servlet.  This servlet needs to make addition queries on the database,
set up some info beans (similar to entity EJBs) and call one of
several jsps to display the results.  So, how do I effect a forward
from the first servlet to the second? Setting up the forward string
the way the jsp does it does not seem to work.
Thanks.
---
Joe

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




RE: jsp size limit?

2002-05-09 Thread Joseph Barefoot

True.  'Course, that begs the question:  how much content should you really
have on a single page?

> -Original Message-
> From: Arron Bates [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 5:25 PM
> To: Struts Users Mailing List
> Subject: Re: jsp size limit?
>
>
> Not really. It's a whopping class, and it's only really become an issue
> with JSP's, because people can throw in so much content, tags etc.
>
> Arron.
>
> Joseph Barefoot wrote:
>
> >Is this really such a bad thing?  If someone is writing java classes that
> >compile to >64K, I think they may need to revisit their object-oriented
> >principles. ;)
> >
> >>-Original Message-
> >>From: Malcolm Dew-Jones [mailto:[EMAIL PROTECTED]]
> >>Sent: Thursday, May 09, 2002 12:19 PM
> >>To: Struts Users Mailing List
> >>Subject: Re: jsp size limit?
> >>
> >>
> >>
> >>
> >>
> >>On Thu, 9 May 2002, Arron Bates wrote:
> >>
> >>>There's a limitation on the size of a compliled Java class. Java has
> >>>this arbitrary limit of 62k for a compiled class. Looks like you're
> >>>
> >>In 1986 Macintosh computers had the same 64K code barrier.
> Compiled units
> >>of code had to be split into chunks that were smaller than 64K,
> and linked
> >>together.
> >>
> >>I guess Java isn't really such a modern language after all.
> >>
> >>
> >>
> >>--
> >>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: jsp size limit?

2002-05-09 Thread Arron Bates

Not really. It's a whopping class, and it's only really become an issue 
with JSP's, because people can throw in so much content, tags etc.

Arron.

Joseph Barefoot wrote:

>Is this really such a bad thing?  If someone is writing java classes that
>compile to >64K, I think they may need to revisit their object-oriented
>principles. ;)
>
>>-Original Message-
>>From: Malcolm Dew-Jones [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, May 09, 2002 12:19 PM
>>To: Struts Users Mailing List
>>Subject: Re: jsp size limit?
>>
>>
>>
>>
>>
>>On Thu, 9 May 2002, Arron Bates wrote:
>>
>>>There's a limitation on the size of a compliled Java class. Java has
>>>this arbitrary limit of 62k for a compiled class. Looks like you're
>>>
>>In 1986 Macintosh computers had the same 64K code barrier.  Compiled units
>>of code had to be split into chunks that were smaller than 64K, and linked
>>together.
>>
>>I guess Java isn't really such a modern language after all.
>>
>>
>>
>>--
>>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: Problems with FormBeans

2002-05-09 Thread Bill Boland

The default scope is "session" (at least on Struts 1.1b1) so unless you
specify it as "request", it is a session scope form bean.

But...it may be that you are creating a new session on each request (if
cookies are turned off and/or you are not URL rewriting when the form is
submitted, etc.) You might want to redirect to a "snoop" JSP or Servlet
that lists the attribute of the application, session and requests scopes
along with the session and cookie information. Just an idea...it's
happened to me!

bill

-Original Message-
From: Trieu, Danny [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 09, 2002 2:28 PM
To: 'Struts Users Mailing List'
Subject: RE: Problems with FormBeans

It is depend on what scope you specified for you from bean in the action
mapping.  My guess is you didn't specify the scope to be session, so
when
your action get submitted the controller look for the bean in the
specified
session( in this case it is not the session scope) and it doesn't find
it
there so it create one for you.

> -Original Message-
> From: Struts Newsgroup [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 2:10 PM
> To:   [EMAIL PROTECTED]
> Subject:  Problems with FormBeans
> 
> Subject: Problems with FormBeans
> From: Maurice Mills <[EMAIL PROTECTED]>
>  ===
> I am having a problem with my struts forms.
> 
> I call an Action class to load a FormBean and put it in the session.
> The bean is used to load the values on the form correctly.
> 
> The problem occurs when the form is submitted.
> 
> Instead of using the bean in the session, the RequestProcessor is
> creating a new one.  I see the constructor of my FormBean being
called.
> 
> Should it be using the one in the session, or creating a new one every
> time?  If the session bean is to be used, how do I make this work?  If
> not, how do I deal with nested lists of attributes of unknown length?
> 
> Thanks,
> Maury
> 
> 
> 
> 
> --
> 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: jsp size limit?

2002-05-09 Thread Joseph Barefoot

Is this really such a bad thing?  If someone is writing java classes that
compile to >64K, I think they may need to revisit their object-oriented
principles. ;)

> -Original Message-
> From: Malcolm Dew-Jones [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 12:19 PM
> To: Struts Users Mailing List
> Subject: Re: jsp size limit?
>
>
>
>
>
> On Thu, 9 May 2002, Arron Bates wrote:
>
> > There's a limitation on the size of a compliled Java class. Java has
> > this arbitrary limit of 62k for a compiled class. Looks like you're
>
> In 1986 Macintosh computers had the same 64K code barrier.  Compiled units
> of code had to be split into chunks that were smaller than 64K, and linked
> together.
>
> I guess Java isn't really such a modern language after all.
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


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




RE: Struts logic question

2002-05-09 Thread Joseph Barefoot

Sorry for not getting back into the thread, been a busy day. :)

Chong:  You're welcome for the action authentication tip, I borrowed it from
someone else.

As far as the role-based authorization:

I like Chris Bartley's class hierarchy-based authorization because it's
aesthetically pleasing, however it does have limitations in that new roles
with authorization cannot be added without adding methods, as I see it.

We have many roles in our system, and we use an "access key" method of
authorization, as follows:

Every action in our system has a resource key associated with it in the
resources file (e.g. action.user.corporate.add).  The key's value will
likely be the text displayed for that action (link, toolbar or menu item,
button, etc.), e.g. "Modify Account" or "Add User".  You can associate user
roles with the key either in an XML file or through database tables...in the
case of an XML file, you should also have an interface class which contains
the legal roles as static constants.  Use a "Authorization Engine" which
loads the key-roles associations into memory for rapid access by your
Actions.

You can associate this "action key" with an ActionMapping by using the
optional "parameter" element in the mapping, setting it's value to the key
name (I think the new Struts version also has optional "setProperty"
elements you could use) .  Then, in your "AuthenticatedAction" class's
perform method, firs make sure the user is logged in and has a defined role
in the session, then retrieve the action key from the mapping (the
"parameter" value) for this URL, and use the Authorization Engine to see
what roles are allowed for this key.  Based on this you can forward or deny
the request.

Note that by using the keys this way, you can also determine whether to
display a particular action key's link on the page based on the user role.
Before forwarding to a page, you would check the roles for every action key
on the page and determine whether to display a particular link.  Note also
that this would only have to be done once (and then cached in the session)
if you have a "toolbar" or "menu" style approach to actions.


The only side-effect of this model (that I know of) is that you have to
preserve the resource key name in three places:  the resources file, the
struts-config, and your XML roles file (or your database).

> -Original Message-
> From: Chong Oh [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 8:05 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts logic question
>
>
> Joseph:
>
> I have a follow up question on this subject.  How would you approach
> authorization?  For example, if different roles have different access to
> different JSPs in the application, do we validate user access on each page
> (using custom tags) or should we add that as another function into the
> Action Class subclass (using the Action Class approach)?  Your
> help is much
> appreciated.
>
> Chong
>
>
>
> -Original Message-
> From: Joseph Barefoot [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 08, 2002 1:52 PM
> To: Struts Users Mailing List
> Subject: RE: Struts logic question
>
>
> Since every JSP that is hit by a user request should go through an Action
> class, it makes more sense to do your login check in an Action class (or a
> Servlet Filter if you're using the 2.3 API).  If you go the Action class
> route, the approach we use is as follows:
>
> 1.  When a user logs in, put a "token" (a bean containing login
> information,
> perhaps) into the session.
>
> 2.  Create a subclass of the Action class which all your Action
> classes will
> subclass, called AuthenticatedAction or whatever you like.  You should
> probably make this an abstract class with an abstract
> "performAction" method
> (name your choice) for the sublclasses to implement.  This method
> will have
> the same signature as the "perform" method except for its name.
>
> 3.  In this AuthenticatedAction class, the perform method checks for the
> token's existence in the session.  If it's not there, the user
> isn't logged
> in, so forward them to the login page.  If the token is there, call
> "performAction()" to execute the subclass's logic and determine
> the forward
> to return.
>
> There are myriad ways of accomplishing login authentication upon each
> request; another way is through the use of a ServletFilter attached to the
> Struts ActionServlet (and any other Servlets you may have and wish to
> enforce authentication on).
>
> You can also do the login check through the use of custom tags if
> you allow
> access to some JSPs directly, NOT through an Action class.  IMO it is best
> to be consistent though and stick with one or the other according to your
> needs.
>
> Also, if you authenticate at the JSP level (through a custom tag or
> scriplet) and not at the Action level, then your actions could be
> hit with a
> request in which they do a whole bunch of processing, then
> forward to a JSP
> which immediately blocks the us

RE: Problems with FormBeans

2002-05-09 Thread Trieu, Danny

It is depend on what scope you specified for you from bean in the action
mapping.  My guess is you didn't specify the scope to be session, so when
your action get submitted the controller look for the bean in the specified
session( in this case it is not the session scope) and it doesn't find it
there so it create one for you.

> -Original Message-
> From: Struts Newsgroup [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 2:10 PM
> To:   [EMAIL PROTECTED]
> Subject:  Problems with FormBeans
> 
> Subject: Problems with FormBeans
> From: Maurice Mills <[EMAIL PROTECTED]>
>  ===
> I am having a problem with my struts forms.
> 
> I call an Action class to load a FormBean and put it in the session.
> The bean is used to load the values on the form correctly.
> 
> The problem occurs when the form is submitted.
> 
> Instead of using the bean in the session, the RequestProcessor is
> creating a new one.  I see the constructor of my FormBean being called.
> 
> Should it be using the one in the session, or creating a new one every
> time?  If the session bean is to be used, how do I make this work?  If
> not, how do I deal with nested lists of attributes of unknown length?
> 
> Thanks,
> Maury
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




Problems with FormBeans

2002-05-09 Thread @Basebeans.com

Subject: Problems with FormBeans
From: Maurice Mills <[EMAIL PROTECTED]>
 ===
I am having a problem with my struts forms.

I call an Action class to load a FormBean and put it in the session.
The bean is used to load the values on the form correctly.

The problem occurs when the form is submitted.

Instead of using the bean in the session, the RequestProcessor is
creating a new one.  I see the constructor of my FormBean being called.

Should it be using the one in the session, or creating a new one every
time?  If the session bean is to be used, how do I make this work?  If
not, how do I deal with nested lists of attributes of unknown length?

Thanks,
Maury




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




Re: info on form-property tag, dynaactionform...

2002-05-09 Thread chuckcavaness

Download chapter 4 from here: 
http://www.theserverside.com/resources/strutsreview.jsp

It covers alot of this.

Chuck
> 
> I can't seem to find an exhaustive treatment that lists all the tags (and
> its attribute) that one can use in the struts configuration file (for
> example, the  tag) and also example on how the newer classes
> such as DynaActionForm work.  Any suggestion on where I can get the usage
> info on these config tags and the classes besides reading the source code?
> 
> Thanks.
> 
> - boon
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

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




RE: info on form-property tag, dynaactionform...

2002-05-09 Thread Galbreath, Mark

Truely!  We couldn't get by without constant verification from the DTD!

Mark

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 4:45 PM


On Thu, 9 May 2002, Boon Chew wrote:

> Date: Thu, 9 May 2002 12:17:00 -0700
> From: Boon Chew <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: info on form-property tag, dynaactionform...
>
>
> I can't seem to find an exhaustive treatment that lists all the tags (and
> its attribute) that one can use in the struts configuration file (for
> example, the  tag) and also example on how the newer
classes
> such as DynaActionForm work.  Any suggestion on where I can get the usage
> info on these config tags and the classes besides reading the source code?
>

The DTD for struts-config.xml files is the canonical list of all the valid
contents, and it has tons of documentation as well.  In your binary
distribution, it's at:

  lib/struts-config_1_1.dtd

> Thanks.
>
> - boon
>

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: info on form-property tag, dynaactionform...

2002-05-09 Thread Craig R. McClanahan



On Thu, 9 May 2002, Boon Chew wrote:

> Date: Thu, 9 May 2002 12:17:00 -0700
> From: Boon Chew <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: info on form-property tag, dynaactionform...
>
>
> I can't seem to find an exhaustive treatment that lists all the tags (and
> its attribute) that one can use in the struts configuration file (for
> example, the  tag) and also example on how the newer classes
> such as DynaActionForm work.  Any suggestion on where I can get the usage
> info on these config tags and the classes besides reading the source code?
>

The DTD for struts-config.xml files is the canonical list of all the valid
contents, and it has tons of documentation as well.  In your binary
distribution, it's at:

  lib/struts-config_1_1.dtd

> Thanks.
>
> - boon
>

Craig


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




Looking for jaxp 1.0.1

2002-05-09 Thread Hardee, Tony

The WebSphere - Steps for the Example Application
(http://jakarta.apache.org/struts/doc-1.0.2/installation-was352-x.html)
mention:

"Copy jaxp 1.0.1's (NOT 1.1.1's) jaxp.jar and parser.jar to the servlets
directory of the strut-example webapp"

I can't find a copy of the jaxp.jar and parser.jar files.  On the sun site I
was only able to downlowd jaxp as part of the Java XML Pack Spring 02.

Does anyone know where I can obtain a copy of jaxp 1.0.1 jaxp.jar and
parser.jar?

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




Re: Internationalization

2002-05-09 Thread Micael Padraig Og mac Grene

The page is static.  When you change the locale, it will have to refresh 
itself.  So, you have already succeeded.  If you are having a problem, this 
is not it.  What is the problem you are having?

At 01:41 PM 5/9/02 -0400, you wrote:
>I am trying to integrate internationalization in my struts application.  I
>have a french link on my jsp page.  When the link is clicked, I want to
>change the locale to french and refresh the page the user was on when he
>clicked on the link.  I know how to change the locale but don't know how to
>have my page refreshed.  Any help would be welcome.
>
>Thanks
>
>Johanne Demers
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




RE: jsp size limit?

2002-05-09 Thread James Mitchell

You think that's bad, you should see my procedure division.

JM

> -Original Message-
> From: Malcolm Dew-Jones [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 3:19 PM
> To: Struts Users Mailing List
> Subject: Re: jsp size limit?
>
>
>
>
>
> On Thu, 9 May 2002, Arron Bates wrote:
>
> > There's a limitation on the size of a compliled Java class. Java has
> > this arbitrary limit of 62k for a compiled class. Looks like you're
>
> In 1986 Macintosh computers had the same 64K code barrier.  Compiled units
> of code had to be split into chunks that were smaller than 64K, and linked
> together.
>
> I guess Java isn't really such a modern language after all.
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




Re: jsp size limit?

2002-05-09 Thread Malcolm Dew-Jones




On Thu, 9 May 2002, Arron Bates wrote:

> There's a limitation on the size of a compliled Java class. Java has 
> this arbitrary limit of 62k for a compiled class. Looks like you're 

In 1986 Macintosh computers had the same 64K code barrier.  Compiled units
of code had to be split into chunks that were smaller than 64K, and linked
together.

I guess Java isn't really such a modern language after all.



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




RE: Struts logic question

2002-05-09 Thread Chong Oh

Chris:

I implemented your suggestion and came across another question.  What if the
User has more than one role, or a particular action subclass needs to
accommodate more than one role?  For example say the application has four
roles: admin, paidUser, nonPaidUser, guest.  So how do we approach the issue
of a User has the roles of paidUser and guest, or the action subclass
(viewAccountAction) needs to accommodate the paidUser and nonPaidUser roles?
This is an problem because currently the action subclass can only implement
one perform method.

Thanks

Chong

-Original Message-
From: Bartley, Chris P [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 09, 2002 8:21 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts logic question


I've solved the role authorization problem with a hierarchy like this:

   Action
   |
   \---ActionSupport
   |
   \---AuthenticationVerifyingAction
   |
   \---RoleAwareAction
   |
   \---[your classes here]

Here's a brief description of what each class does:

Action: standard Struts action class

ActionSupport: provides some common constants and methods for all my action
classes

AuthenticationVerifyingAction: this class's perform() method verifies that a
user is logged in.  If so, it simply calls
performAfterAuthenticationVerification() which is typically overridden by
the subclass.  If not, it calls
performUponFailedAuthenticationVerification() which forwards the user to the
login page unless the subclass has overridden it to provide special
functionality.

RoleAwareAction: this class's performAfterAuthenticationVerification()
method determines the role (user or administrator) of the logged-in user,
and calls either performForAdministrators() or performForUsers()
accordingly.  These two methods simply forward to an Access Denied page, so
subclasses will simply override them accordingly.  This allows actions to
easily perform different tasks for the different role types without having
to rewrite the branching logic every time. A side benefit is that for
actions that may only be accessed by a particular role, the subclass need
only override the appropriate method--users that do not belong to that role
will be presented with the Access Denied page.  Actions that perform the
exact same logic regardless of role should instead just subclass
AuthenticationVerifyingAction.

Hope that helps.

chris

> -Original Message-
> From: Chong Oh [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 10:05 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts logic question
> 
> 
> Joseph:
> 
> I have a follow up question on this subject.  How would you approach 
> authorization?  For example, if different roles have different access 
> to different JSPs in the application, do we validate user access
> on each page
> (using custom tags) or should we add that as another function into the
> Action Class subclass (using the Action Class approach)?  
> Your help is much
> appreciated.
> 
> Chong
> 
> 
> 
> -Original Message-
> From: Joseph Barefoot [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 08, 2002 1:52 PM
> To: Struts Users Mailing List
> Subject: RE: Struts logic question
> 
> 
> Since every JSP that is hit by a user request should go
> through an Action
> class, it makes more sense to do your login check in an 
> Action class (or a
> Servlet Filter if you're using the 2.3 API).  If you go the 
> Action class
> route, the approach we use is as follows:
> 
> 1.  When a user logs in, put a "token" (a bean containing
> login information,
> perhaps) into the session.
> 
> 2.  Create a subclass of the Action class which all your
> Action classes will
> subclass, called AuthenticatedAction or whatever you like.  You should
> probably make this an abstract class with an abstract 
> "performAction" method
> (name your choice) for the sublclasses to implement.  This 
> method will have
> the same signature as the "perform" method except for its name.
> 
> 3.  In this AuthenticatedAction class, the perform method
> checks for the
> token's existence in the session.  If it's not there, the 
> user isn't logged
> in, so forward them to the login page.  If the token is there, call
> "performAction()" to execute the subclass's logic and 
> determine the forward
> to return.
> 
> There are myriad ways of accomplishing login authentication upon each 
> request; another way is through the use of a ServletFilter attached to 
> the Struts ActionServlet (and any other Servlets you may have and wish 
> to enforce authentication on).
> 
> You can also do the login check through the use of custom
> tags if you allow
> access to some JSPs directly, NOT through an Action class.  
> IMO it is best
> to be consistent though and stick with one or the other 
> according to your
> needs.
> 
> Also, if you authenticate at the JSP level (through a custom tag or
> scriplet) and not at the Action level, then your actions
> could be hit with

info on form-property tag, dynaactionform...

2002-05-09 Thread Boon Chew


I can't seem to find an exhaustive treatment that lists all the tags (and
its attribute) that one can use in the struts configuration file (for
example, the  tag) and also example on how the newer classes
such as DynaActionForm work.  Any suggestion on where I can get the usage
info on these config tags and the classes besides reading the source code?

Thanks.

- boon


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




Re: Taglib problems

2002-05-09 Thread Mark Nichols


Do you have the tag libraries properly described in the web.xml file?

/\/\ark

>From: "Abbas Valinejad" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Taglib problems
>Date: Thu, 09 May 2002 10:48:15 +0330
>
>hi dear freainds
>I want to use struts taglibs but none of taglibs didn't work. i think the
>problem is because of my XMLParser.
>I use struts custom tags in another machine which is configured properly.
>i do the following tasks to use custom tags while i am using JAXP but
>they didn't work.
>1. i set JAXP-HOME environment variable to the correct directory address
>of my XMLParser (JAXP)
>2. copy the jar files in JAVA_HOME/jre/lib/ext
>3. copy the jar files in my JSP container lib director TOMCAT_HOME/lib
>
>but the corret code didn't work.
>
>the code:
>
>
><%@ page language="java" %>
><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>
>
>
>the .properties file:
>hello.message=Hello Struts Users
>
>
>thanks alot
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Where (how) to translate data type to string for use in form-bean

2002-05-09 Thread Mark Nichols

I'm sure that this question has been asked and answered before, but I am not 
having any luck finding it in the archive.

My DAO has data types that match the column data types in the database. My 
form-bean wants to have everything be a string. Where do I put 
responsibility to convert the data?

In the form-bean? That would mean the form knows about the model...

In the DAO? Some place else?

Do I have two sets of attributes, one matching the database columns and the 
other strings so I can use the PropertyUtils.copyProperties()?

TIA
/\/\ark

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: Comparing Null using Logic:Equal

2002-05-09 Thread Mannem, Taati

Leo,
You were right but still no luck it still says
'I wont do whetver Taati wants'..[sigh]
It is just skipping the notPresent tag and not printing anything
Regards,
Taati
> From: Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 2:01 PM
> To:   'Mannem, Taati'; Struts Users Mailing List
> Cc:   Leonardo Maciel
> Subject:  RE: Comparing Null using Logic:Equal
> 
> You said  "if the subscriptions bean is null" 
> I am assuming subscriptions is property of user. 
> You should iterate only when  property="subscriptions">
> That's how I would do:
> 
> 
> Please do whatever Taati wants
> 
> 
> ...
> 
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
> ...
> ...
> ...
> ..
> 
> 
> 
> 
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:50 PM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Comparing Null using Logic:Equal
> 
> 
> Leo,
>   You were clear but still it doesn't work.
> I will paste the code here. This is from the registration.jsp of the
> struts-example
> 
> 
> 
> Please do whatever Taati wants
> 
> 
> 
> 
> 
>   
> 
>   
> 
> 
>   
> 
> 
>   
> 
> ...
> ...
> ...
> ..
> 
> 
> 
> but the result is I wont do whatever Taati wants!;)
> It is just the same..
> May I know where I am goofing up!
> 
> Regards,
> Taati
> > -Original Message-
> > From:   Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
> > Sent:   Thursday, May 09, 2002 1:38 PM
> > To: 'Struts Users Mailing List'
> > Subject:RE: Comparing Null using Logic:Equal
> > 
> > so use both
> > 
> > 
> >  display column
> > 
> > 
> >  display some other data
> > 
> > 
> > hope I am clear!!
> > 
> > 
> > 
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 09, 2002 1:37 PM
> > To: Struts Users Mailing List
> > Subject: RE: Comparing Null using Logic:Equal
> > 
> > 
> > Leo and Jim,
> > Thanks a lot it works but not exactly the way my requirement
> > demands.
> > I will explain to you the scenario.Take the struts-examples for
> instance.
> > When we click on the edit registration we get a table with the heading
> > host,autoconnect,etc.. Now if the subscriptions bean is null it will not
> > display the column, that is the results array in the bean user is
> returned
> > null for the first time and hence the table rows are not printed. When I
> > use
> > the logic:present tag it works only if I go to subscription and dont
> enter
> > anything and come back. Actually my requirement is to show some other
> data
> > when the user clicks on the reigistration and there is no data to be
> shown
> > in the table.Hope i am clear?
> > 
> > Regards,
> > Taati
> > > -Original Message-
> > > From: James Mitchell [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 1:31 PM
> > > To:   Struts Users Mailing List
> > > Subject:  RE: Comparing Null using Logic:Equal
> > > 
> > > See logic:present
> > > 
> > > JM 
> > > 
> > > > -Original Message-
> > > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, May 09, 2002 1:25 PM
> > > > To: Struts Users Mailing List
> > > > Subject: Comparing Null using Logic:Equal
> > > > 
> > > > 
> > > > Guys,
> > > > Thanks for the help on the previous post. Can anyone tell me
> how do
> > > > I compare a value "null" using logic equal or someother tag.
> > > > This is the requirement..
> > > > If the value returned by a getter method is null in iterator tag 
> > > > then I have
> > > > got to display something else something else..
> > > > 
> > > > Thanks a lot in advance!
> > > > Cheerio,
> > > > Taati
> > > > 
> > > > 
> > > > --
> > > > 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: Comparing Null using Logic:Equal

2002-05-09 Thread Leonardo Maciel

You said  "if the subscriptions bean is null" 
I am assuming subscriptions is property of user. 
You should iterate only when 
That's how I would do:


Please do whatever Taati wants


...



  


  


  


  

...
...
...
..





-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:50 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: Comparing Null using Logic:Equal


Leo,
You were clear but still it doesn't work.
I will paste the code here. This is from the registration.jsp of the
struts-example



Please do whatever Taati wants





  

  


  


  

...
...
...
..



but the result is I wont do whatever Taati wants!;)
It is just the same..
May I know where I am goofing up!

Regards,
Taati
> -Original Message-
> From: Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:38 PM
> To:   'Struts Users Mailing List'
> Subject:  RE: Comparing Null using Logic:Equal
> 
> so use both
> 
> 
>  display column
> 
> 
>  display some other data
> 
> 
> hope I am clear!!
> 
> 
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:37 PM
> To: Struts Users Mailing List
> Subject: RE: Comparing Null using Logic:Equal
> 
> 
> Leo and Jim,
>   Thanks a lot it works but not exactly the way my requirement
> demands.
> I will explain to you the scenario.Take the struts-examples for instance.
> When we click on the edit registration we get a table with the heading
> host,autoconnect,etc.. Now if the subscriptions bean is null it will not
> display the column, that is the results array in the bean user is returned
> null for the first time and hence the table rows are not printed. When I
> use
> the logic:present tag it works only if I go to subscription and dont enter
> anything and come back. Actually my requirement is to show some other data
> when the user clicks on the reigistration and there is no data to be shown
> in the table.Hope i am clear?
> 
> Regards,
> Taati
> > -Original Message-
> > From:   James Mitchell [SMTP:[EMAIL PROTECTED]]
> > Sent:   Thursday, May 09, 2002 1:31 PM
> > To: Struts Users Mailing List
> > Subject:RE: Comparing Null using Logic:Equal
> > 
> > See logic:present
> > 
> > JM 
> > 
> > > -Original Message-
> > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 1:25 PM
> > > To: Struts Users Mailing List
> > > Subject: Comparing Null using Logic:Equal
> > > 
> > > 
> > > Guys,
> > >   Thanks for the help on the previous post. Can anyone tell me how do
> > > I compare a value "null" using logic equal or someother tag.
> > > This is the requirement..
> > > If the value returned by a getter method is null in iterator tag 
> > > then I have
> > > got to display something else something else..
> > > 
> > > Thanks a lot in advance!
> > > Cheerio,
> > > Taati
> > > 
> > > 
> > > --
> > > 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: Comparing Null using Logic:Equal

2002-05-09 Thread Mannem, Taati

Jim,

I closed it properly in teh code but missed whenI was typing here!
Regards,
Taati
> -Original Message-
> From: James Mitchell [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 2:00 PM
> To:   Struts Users Mailing List
> Subject:  RE: Comparing Null using Logic:Equal
> 
> You forgot to close your tag...see below
> 
> JM
> 
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 09, 2002 1:50 PM
> > To: Struts Users Mailing List
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: Comparing Null using Logic:Equal
> >
> >
> > Leo,
> > You were clear but still it doesn't work.
> > I will paste the code here. This is from the registration.jsp of the
> > struts-example
> >
> > 
> > 
> > Please do whatever Taati wants
> > 
> > 
> >
> ><--here
> > 
> >   
> > 
> >   
> > 
> > 
> >filter="true"/>
> > 
> > 
> >   
> > 
> > ...
> > ...
> > ...
> > ..
> >
> > 
> >
> > but the result is I wont do whatever Taati wants!;)
> > It is just the same..
> > May I know where I am goofing up!
> >
> > Regards,
> > Taati
> > > -Original Message-
> > > From: Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 1:38 PM
> > > To:   'Struts Users Mailing List'
> > > Subject:  RE: Comparing Null using Logic:Equal
> > >
> > > so use both
> > >
> > > 
> > >  display column
> > > 
> > > 
> > >  display some other data
> > > 
> > >
> > > hope I am clear!!
> > >
> > >
> > >
> > > -Original Message-
> > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 1:37 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: Comparing Null using Logic:Equal
> > >
> > >
> > > Leo and Jim,
> > >   Thanks a lot it works but not exactly the way my requirement
> > > demands.
> > > I will explain to you the scenario.Take the struts-examples for
> > instance.
> > > When we click on the edit registration we get a table with the heading
> > > host,autoconnect,etc.. Now if the subscriptions bean is null it will
> not
> > > display the column, that is the results array in the bean user
> > is returned
> > > null for the first time and hence the table rows are not printed. When
> I
> > > use
> > > the logic:present tag it works only if I go to subscription and
> > dont enter
> > > anything and come back. Actually my requirement is to show some
> > other data
> > > when the user clicks on the reigistration and there is no data
> > to be shown
> > > in the table.Hope i am clear?
> > >
> > > Regards,
> > > Taati
> > > > -Original Message-
> > > > From:   James Mitchell [SMTP:[EMAIL PROTECTED]]
> > > > Sent:   Thursday, May 09, 2002 1:31 PM
> > > > To: Struts Users Mailing List
> > > > Subject:RE: Comparing Null using Logic:Equal
> > > >
> > > > See logic:present
> > > >
> > > > JM
> > > >
> > > > > -Original Message-
> > > > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, May 09, 2002 1:25 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Comparing Null using Logic:Equal
> > > > >
> > > > >
> > > > > Guys,
> > > > >   Thanks for the help on the previous post. Can
> > anyone tell me how do
> > > > > I compare a value "null" using logic equal or someother tag.
> > > > > This is the requirement..
> > > > > If the value returned by a getter method is null in iterator tag
> > > > > then I have
> > > > > got to display something else something else..
> > > > >
> > > > > Thanks a lot in advance!
> > > > > Cheerio,
> > > > > Taati
> > > > >
> > > > >
> > > > > --
> > > > > 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:
> > 
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




RE: Comparing Null using Logic:Equal

2002-05-09 Thread Mannem, Taati

Leo,
Sorry abt that I had closed it properly but forgot to type it
properly here.. 

Regards,
Taati
> -Original Message-
> From: Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:51 PM
> To:   Struts Users Mailing List
> Subject:  RE: Comparing Null using Logic:Equal
> 
> 
> The closing tag requires / 
> ...
> 
> ...
> 
> 
> 
> 

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




RE: Comparing Null using Logic:Equal

2002-05-09 Thread James Mitchell

Never minddidn't see the other post.

JM

> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 2:00 PM
> To: Struts Users Mailing List
> Subject: RE: Comparing Null using Logic:Equal
>
>
> You forgot to close your tag...see below
>
> JM
>
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 09, 2002 1:50 PM
> > To: Struts Users Mailing List
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: Comparing Null using Logic:Equal
> >
> >
> > Leo,
> > You were clear but still it doesn't work.
> > I will paste the code here. This is from the registration.jsp of the
> > struts-example
> >
> > 
> > 
> > Please do whatever Taati wants
> > 
> > 
> >
> ><--here
> > 
> >   
> > 
> >   
> > 
> > 
> >filter="true"/>
> > 
> > 
> >   
> > 
> > ...
> > ...
> > ...
> > ..
> >
> > 
> >
> > but the result is I wont do whatever Taati wants!;)
> > It is just the same..
> > May I know where I am goofing up!
> >
> > Regards,
> > Taati
> > > -Original Message-
> > > From: Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 1:38 PM
> > > To:   'Struts Users Mailing List'
> > > Subject:  RE: Comparing Null using Logic:Equal
> > >
> > > so use both
> > >
> > > 
> > >  display column
> > > 
> > > 
> > >  display some other data
> > > 
> > >
> > > hope I am clear!!
> > >
> > >
> > >
> > > -Original Message-
> > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 1:37 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: Comparing Null using Logic:Equal
> > >
> > >
> > > Leo and Jim,
> > >   Thanks a lot it works but not exactly the way my requirement
> > > demands.
> > > I will explain to you the scenario.Take the struts-examples for
> > instance.
> > > When we click on the edit registration we get a table with the heading
> > > host,autoconnect,etc.. Now if the subscriptions bean is null
> it will not
> > > display the column, that is the results array in the bean user
> > is returned
> > > null for the first time and hence the table rows are not
> printed. When I
> > > use
> > > the logic:present tag it works only if I go to subscription and
> > dont enter
> > > anything and come back. Actually my requirement is to show some
> > other data
> > > when the user clicks on the reigistration and there is no data
> > to be shown
> > > in the table.Hope i am clear?
> > >
> > > Regards,
> > > Taati
> > > > -Original Message-
> > > > From:   James Mitchell [SMTP:[EMAIL PROTECTED]]
> > > > Sent:   Thursday, May 09, 2002 1:31 PM
> > > > To: Struts Users Mailing List
> > > > Subject:RE: Comparing Null using Logic:Equal
> > > >
> > > > See logic:present
> > > >
> > > > JM
> > > >
> > > > > -Original Message-
> > > > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, May 09, 2002 1:25 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Comparing Null using Logic:Equal
> > > > >
> > > > >
> > > > > Guys,
> > > > >   Thanks for the help on the previous post. Can
> > anyone tell me how do
> > > > > I compare a value "null" using logic equal or someother tag.
> > > > > This is the requirement..
> > > > > If the value returned by a getter method is null in iterator tag
> > > > > then I have
> > > > > got to display something else something else..
> > > > >
> > > > > Thanks a lot in advance!
> > > > > Cheerio,
> > > > > Taati
> > > > >
> > > > >
> > > > > --
> > > > > 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:
> > 
> >
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Comparing Null using Logic:Equal

2002-05-09 Thread James Mitchell

You forgot to close your tag...see below

JM

> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:50 PM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Comparing Null using Logic:Equal
>
>
> Leo,
>   You were clear but still it doesn't work.
> I will paste the code here. This is from the registration.jsp of the
> struts-example
>
> 
> 
> Please do whatever Taati wants
> 
> 
>
><--here
> 
>   
> 
>   
> 
> 
>   
> 
> 
>   
> 
> ...
> ...
> ...
> ..
>
> 
>
> but the result is I wont do whatever Taati wants!;)
> It is just the same..
> May I know where I am goofing up!
>
> Regards,
> Taati
> > -Original Message-
> > From:   Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
> > Sent:   Thursday, May 09, 2002 1:38 PM
> > To: 'Struts Users Mailing List'
> > Subject:RE: Comparing Null using Logic:Equal
> >
> > so use both
> >
> > 
> >  display column
> > 
> > 
> >  display some other data
> > 
> >
> > hope I am clear!!
> >
> >
> >
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 09, 2002 1:37 PM
> > To: Struts Users Mailing List
> > Subject: RE: Comparing Null using Logic:Equal
> >
> >
> > Leo and Jim,
> > Thanks a lot it works but not exactly the way my requirement
> > demands.
> > I will explain to you the scenario.Take the struts-examples for
> instance.
> > When we click on the edit registration we get a table with the heading
> > host,autoconnect,etc.. Now if the subscriptions bean is null it will not
> > display the column, that is the results array in the bean user
> is returned
> > null for the first time and hence the table rows are not printed. When I
> > use
> > the logic:present tag it works only if I go to subscription and
> dont enter
> > anything and come back. Actually my requirement is to show some
> other data
> > when the user clicks on the reigistration and there is no data
> to be shown
> > in the table.Hope i am clear?
> >
> > Regards,
> > Taati
> > > -Original Message-
> > > From: James Mitchell [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 1:31 PM
> > > To:   Struts Users Mailing List
> > > Subject:  RE: Comparing Null using Logic:Equal
> > >
> > > See logic:present
> > >
> > > JM
> > >
> > > > -Original Message-
> > > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, May 09, 2002 1:25 PM
> > > > To: Struts Users Mailing List
> > > > Subject: Comparing Null using Logic:Equal
> > > >
> > > >
> > > > Guys,
> > > > Thanks for the help on the previous post. Can
> anyone tell me how do
> > > > I compare a value "null" using logic equal or someother tag.
> > > > This is the requirement..
> > > > If the value returned by a getter method is null in iterator tag
> > > > then I have
> > > > got to display something else something else..
> > > >
> > > > Thanks a lot in advance!
> > > > Cheerio,
> > > > Taati
> > > >
> > > >
> > > > --
> > > > 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:
> 
>
>


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




RE: Comparing Null using Logic:Equal

2002-05-09 Thread Leonardo Maciel


The closing tag requires / 
...

...



-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:50 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: Comparing Null using Logic:Equal


Leo,
You were clear but still it doesn't work.
I will paste the code here. This is from the registration.jsp of the
struts-example



Please do whatever Taati wants





  

  


  


  

...
...
...
..



but the result is I wont do whatever Taati wants!;)
It is just the same..
May I know where I am goofing up!

Regards,
Taati
> -Original Message-
> From: Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:38 PM
> To:   'Struts Users Mailing List'
> Subject:  RE: Comparing Null using Logic:Equal
> 
> so use both
> 
> 
>  display column
> 
> 
>  display some other data
> 
> 
> hope I am clear!!
> 
> 
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:37 PM
> To: Struts Users Mailing List
> Subject: RE: Comparing Null using Logic:Equal
> 
> 
> Leo and Jim,
>   Thanks a lot it works but not exactly the way my requirement
> demands.
> I will explain to you the scenario.Take the struts-examples for instance.
> When we click on the edit registration we get a table with the heading
> host,autoconnect,etc.. Now if the subscriptions bean is null it will not
> display the column, that is the results array in the bean user is returned
> null for the first time and hence the table rows are not printed. When I
> use
> the logic:present tag it works only if I go to subscription and dont enter
> anything and come back. Actually my requirement is to show some other data
> when the user clicks on the reigistration and there is no data to be shown
> in the table.Hope i am clear?
> 
> Regards,
> Taati
> > -Original Message-
> > From:   James Mitchell [SMTP:[EMAIL PROTECTED]]
> > Sent:   Thursday, May 09, 2002 1:31 PM
> > To: Struts Users Mailing List
> > Subject:RE: Comparing Null using Logic:Equal
> > 
> > See logic:present
> > 
> > JM 
> > 
> > > -Original Message-
> > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 1:25 PM
> > > To: Struts Users Mailing List
> > > Subject: Comparing Null using Logic:Equal
> > > 
> > > 
> > > Guys,
> > >   Thanks for the help on the previous post. Can anyone tell me how do
> > > I compare a value "null" using logic equal or someother tag.
> > > This is the requirement..
> > > If the value returned by a getter method is null in iterator tag 
> > > then I have
> > > got to display something else something else..
> > > 
> > > Thanks a lot in advance!
> > > Cheerio,
> > > Taati
> > > 
> > > 
> > > --
> > > 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: Comparing Null using Logic:Equal

2002-05-09 Thread Mannem, Taati

Leo,
You were clear but still it doesn't work.
I will paste the code here. This is from the registration.jsp of the
struts-example



Please do whatever Taati wants





  

  


  


  

...
...
...
..



but the result is I wont do whatever Taati wants!;)
It is just the same..
May I know where I am goofing up!

Regards,
Taati
> -Original Message-
> From: Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:38 PM
> To:   'Struts Users Mailing List'
> Subject:  RE: Comparing Null using Logic:Equal
> 
> so use both
> 
> 
>  display column
> 
> 
>  display some other data
> 
> 
> hope I am clear!!
> 
> 
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:37 PM
> To: Struts Users Mailing List
> Subject: RE: Comparing Null using Logic:Equal
> 
> 
> Leo and Jim,
>   Thanks a lot it works but not exactly the way my requirement
> demands.
> I will explain to you the scenario.Take the struts-examples for instance.
> When we click on the edit registration we get a table with the heading
> host,autoconnect,etc.. Now if the subscriptions bean is null it will not
> display the column, that is the results array in the bean user is returned
> null for the first time and hence the table rows are not printed. When I
> use
> the logic:present tag it works only if I go to subscription and dont enter
> anything and come back. Actually my requirement is to show some other data
> when the user clicks on the reigistration and there is no data to be shown
> in the table.Hope i am clear?
> 
> Regards,
> Taati
> > -Original Message-
> > From:   James Mitchell [SMTP:[EMAIL PROTECTED]]
> > Sent:   Thursday, May 09, 2002 1:31 PM
> > To: Struts Users Mailing List
> > Subject:RE: Comparing Null using Logic:Equal
> > 
> > See logic:present
> > 
> > JM 
> > 
> > > -Original Message-
> > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 1:25 PM
> > > To: Struts Users Mailing List
> > > Subject: Comparing Null using Logic:Equal
> > > 
> > > 
> > > Guys,
> > >   Thanks for the help on the previous post. Can anyone tell me how do
> > > I compare a value "null" using logic equal or someother tag.
> > > This is the requirement..
> > > If the value returned by a getter method is null in iterator tag 
> > > then I have
> > > got to display something else something else..
> > > 
> > > Thanks a lot in advance!
> > > Cheerio,
> > > Taati
> > > 
> > > 
> > > --
> > > 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: 




Internationalization

2002-05-09 Thread Demers . Johanne

I am trying to integrate internationalization in my struts application.  I
have a french link on my jsp page.  When the link is clicked, I want to
change the locale to french and refresh the page the user was on when he
clicked on the link.  I know how to change the locale but don't know how to
have my page refreshed.  Any help would be welcome.

Thanks

Johanne Demers



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




RE: Comparing Null using Logic:Equal

2002-05-09 Thread Leonardo Maciel

so use both


 display column


 display some other data


hope I am clear!!



-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:37 PM
To: Struts Users Mailing List
Subject: RE: Comparing Null using Logic:Equal


Leo and Jim,
Thanks a lot it works but not exactly the way my requirement
demands.
I will explain to you the scenario.Take the struts-examples for instance.
When we click on the edit registration we get a table with the heading
host,autoconnect,etc.. Now if the subscriptions bean is null it will not
display the column, that is the results array in the bean user is returned
null for the first time and hence the table rows are not printed. When I use
the logic:present tag it works only if I go to subscription and dont enter
anything and come back. Actually my requirement is to show some other data
when the user clicks on the reigistration and there is no data to be shown
in the table.Hope i am clear?

Regards,
Taati
> -Original Message-
> From: James Mitchell [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:31 PM
> To:   Struts Users Mailing List
> Subject:  RE: Comparing Null using Logic:Equal
> 
> See logic:present
> 
> JM 
> 
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 09, 2002 1:25 PM
> > To: Struts Users Mailing List
> > Subject: Comparing Null using Logic:Equal
> > 
> > 
> > Guys,
> > Thanks for the help on the previous post. Can anyone tell me how do
> > I compare a value "null" using logic equal or someother tag.
> > This is the requirement..
> > If the value returned by a getter method is null in iterator tag 
> > then I have
> > got to display something else something else..
> > 
> > Thanks a lot in advance!
> > Cheerio,
> > Taati
> > 
> > 
> > --
> > 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: Comparing Null using Logic:Equal

2002-05-09 Thread Mannem, Taati

Leo and Jim,
Thanks a lot it works but not exactly the way my requirement
demands.
I will explain to you the scenario.Take the struts-examples for instance.
When we click on the edit registration we get a table with the heading
host,autoconnect,etc.. Now if the subscriptions bean is null it will not
display the column, that is the results array in the bean user is returned
null for the first time and hence the table rows are not printed. When I use
the logic:present tag it works only if I go to subscription and dont enter
anything and come back. Actually my requirement is to show some other data
when the user clicks on the reigistration and there is no data to be shown
in the table.Hope i am clear?

Regards,
Taati
> -Original Message-
> From: James Mitchell [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:31 PM
> To:   Struts Users Mailing List
> Subject:  RE: Comparing Null using Logic:Equal
> 
> See logic:present
> 
> JM 
> 
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 09, 2002 1:25 PM
> > To: Struts Users Mailing List
> > Subject: Comparing Null using Logic:Equal
> > 
> > 
> > Guys,
> > Thanks for the help on the previous post. Can anyone tell me how do
> > I compare a value "null" using logic equal or someother tag.
> > This is the requirement..
> > If the value returned by a getter method is null in iterator tag 
> > then I have
> > got to display something else something else..
> > 
> > Thanks a lot in advance!
> > Cheerio,
> > Taati
> > 
> > 
> > --
> > 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: where should i keep al the jsp, html, gif .. files

2002-05-09 Thread James Mitchell

I guess what it boils down to is this:

Where you decide to put your jsp is really a personal preference.

One should be aware of the benefits and drawbacks of whatever they decide.

What web server are you using?
What servlet container are you using?
What app server (if any) are you using?  (or does it really
matterhm)

Current popular choices include:
1. At the root of the application
2. In subfolders of the root of the application
3. In the WEB-INF folder
4. In subfolders of WEB-INF

Some benefits include:
modularity (2 and 4)
inaccessible from direct http request (must go through an action mapping) (3
and 4)
maintain existing links to your sight (if the orig design was just jsp,
which I affectionately refer to the ABA approach to web solutions aka...
Model Ass-Backwards ) (1 and 2)
 *you can always over-come this with some clever servlet mapping

I could go on and I'm sure I would still miss many.so use your best
judgment, unless you are considered a mindless droid on a development team
guided by "The Architects from Hell", then I guess you wouldn't have a
choice...;)


aaI "almost" feel better now.



JM

> -Original Message-
> From: vivek shrivastava [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: RE: where should i keep al the jsp, html, gif .. files
>
>
> Hi James ,
>
> Thanks, I went through each and every discussion on the link you
> provided. I
> found one discussion but I am not very clear.
>
> I really need some detail tutorial or explanation. I know there
> are lots of
> Java & struts Guru, please do help me.  I am sorry if I am asking for too
> much.
>
> Thanks
>
>
> >From: "James Mitchell" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: where should i keep al the jsp, html, gif .. files
> >Date: Thu, 9 May 2002 12:29:50 -0400
> >
> >Here we go again.
> >
> >I would recommend searching the archives of about a week ago,
> but I think
> >it
> >may still be down.
> >
> >here is an alternative...
> >http://archive.covalent.net/jakarta/struts-user/2002/05/thread.xml
> >
> >
> >JM
> >
> > > -Original Message-
> > > From: vivek shrivastava [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 09, 2002 12:16 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: where should i keep al the jsp, html, gif .. files
> > >
> > >
> > > Hi,
> > >
> > > I have very simple question. could someone please help me or
> > > provide me some
> > > direction so that i can better understand the concept?
> > >
> > > Q.
> > > where should i keep all the web component (like jsp page, html
> > > page, etc..)?
> > > what is the best practice in real world?
> > >
> > > should i put them under the root directory of my web application
> > > ? or should
> > > i create a directory under root directory? or should i put then under
> >the
> > > "web-inf" directory?
> > >
> > > please do help me!
> > >
> > >
> > > Thanks
> > > Vivek
> > >
> > > _
> > > Join the world’s largest e-mail service with MSN Hotmail.
> > > http://www.hotmail.com
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
>
>
> _
> Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Comparing Null using Logic:Equal

2002-05-09 Thread Leonardo Maciel







if not Present it is null



-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:25 PM
To: Struts Users Mailing List
Subject: Comparing Null using Logic:Equal


Guys,
Thanks for the help on the previous post. Can anyone tell me how
do
I compare a value "null" using logic equal or someother tag.
This is the requirement..
If the value returned by a getter method is null in iterator tag then I
have
got to display something else something else..

Thanks a lot in advance!
Cheerio,
Taati


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Comparing Null using Logic:Equal

2002-05-09 Thread James Mitchell

See logic:present

JM 

> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 1:25 PM
> To: Struts Users Mailing List
> Subject: Comparing Null using Logic:Equal
> 
> 
> Guys,
>   Thanks for the help on the previous post. Can anyone tell me how do
> I compare a value "null" using logic equal or someother tag.
> This is the requirement..
> If the value returned by a getter method is null in iterator tag 
> then I have
> got to display something else something else..
> 
> Thanks a lot in advance!
> Cheerio,
> Taati
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Comparing Null using Logic:Equal

2002-05-09 Thread Mannem, Taati

Guys,
Thanks for the help on the previous post. Can anyone tell me how do
I compare a value "null" using logic equal or someother tag.
This is the requirement..
If the value returned by a getter method is null in iterator tag then I have
got to display something else something else..

Thanks a lot in advance!
Cheerio,
Taati


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