Re: [THURSDAY] struts questions

2003-03-14 Thread Jeff Caddel
Bueno Carlos M wrote:

just had to stick the zip file inside my tom cat. I do have a cat, 
but she's
female. Will that make a difference, or does struts only run on male 
cats?
Does it matter if they are neutered? Does each client need to have a male
cat or just the server?

Ever since they came out with the Struts RC1, Craig has been 
recommending all pets in the house be spayed or neutered prior to 
running the example app.  Not really sure why.  Might be a good question 
for the struts-dev mailing list.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[THURSDAY] struts questions

2003-03-13 Thread Bueno Carlos M
Hi, all -- I'm new to struts and I have a few questions. Since you are the
experts I'm sure you will be able to help me.

My boss wants to know how many people are using struts and how long it will
take to build our application using struts as opposed to our current
development process. We currently have a thousand monkeys sitting at a
thousand emacs editors. The application isn't completely designed yet, and
of course I can't release confidential information about our application but
if you could give me an estimate of monkey-hours saved, that would be great.

I was able to download the struts-blank.war file but I am having trouble
setting it up. The first stumbling block was that it is misnamed. It should
be called 'struts-blank.zip' because it is in zip format. I had to open the
file in hexedit to figure that one out. Hopefully the next version will have
the right name???

The other problem I have is that I can't get my application to behave
properly. If the user types in their email address I want to be able to
check that it is a correct one and show the field red while they are typing
if it is not. I have a javascript that checks for the '@' sign but many
people are typing in '[EMAIL PROTECTED]'. Since I don't think so many people would have
the same email address we are losing valuable data. How can struts help me
with this? Will it take many monkey-hours to implement?

Once I unzipped the file I could not find any README or INSTALL file. I
tried the usual 'make; make install' but that did not work. I went out on
the net to find some install instructions and I read one place that said I
just had to stick the zip file inside my tom cat. I do have a cat, but she's
female. Will that make a difference, or does struts only run on male cats?
Does it matter if they are neutered? Does each client need to have a male
cat or just the server?

Thank you for your time,
  Carlos


Re: [THURSDAY] struts questions

2003-03-13 Thread Robert McIntosh


Bueno Carlos M wrote:

Hi, all -- I'm new to struts and I have a few questions. Since you are the
experts I'm sure you will be able to help me.
My boss wants to know how many people are using struts and how long it will
take to build our application using struts as opposed to our current
development process. We currently have a thousand monkeys sitting at a
thousand emacs editors. The application isn't completely designed yet, and
of course I can't release confidential information about our application but
if you could give me an estimate of monkey-hours saved, that would be great.
This is hard to determine, as we always use the chimp-hours factor. I do 
not at this time have a conversion from chimp hours to monkey hours. Sorry.

I was able to download the struts-blank.war file but I am having trouble
setting it up. The first stumbling block was that it is misnamed. It should
be called 'struts-blank.zip' because it is in zip format. I had to open the
file in hexedit to figure that one out. Hopefully the next version will have
the right name???
Actually it is a binary file and should have been a .bin

The other problem I have is that I can't get my application to behave
properly. If the user types in their email address I want to be able to
check that it is a correct one and show the field red while they are typing
if it is not. I have a javascript that checks for the '@' sign but many
people are typing in '[EMAIL PROTECTED]'. Since I don't think so many people would have
the same email address we are losing valuable data. How can struts help me
with this? Will it take many monkey-hours to implement?
It would take approximately .1 chimp-hours.

Once I unzipped the file I could not find any README or INSTALL file. I
tried the usual 'make; make install' but that did not work. I went out on
the net to find some install instructions and I read one place that said I
just had to stick the zip file inside my tom cat. I do have a cat, but she's
female. Will that make a difference, or does struts only run on male cats?
Does it matter if they are neutered? Does each client need to have a male
cat or just the server?
It should run on female cats. I have heard told that it runs on 
websphere, sometimes, and if it can run on that it can run on just about 
anything.

Thank you for your time,
 Carlos
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [THURSDAY] struts questions

2003-03-13 Thread Phil Steitz
Bueno Carlos M wrote:
Hi, all -- I'm new to struts and I have a few questions. Since you are the
experts I'm sure you will be able to help me.
My boss wants to know how many people are using struts and how long it will
take to build our application using struts as opposed to our current
development process. We currently have a thousand monkeys sitting at a
thousand emacs editors. The application isn't completely designed yet, and
of course I can't release confidential information about our application but
if you could give me an estimate of monkey-hours saved, that would be great.
Time saving will depend on the nature of the application and its 
expected lifetime.  Obvioulsly, it also depends on what your current 
development process is.

I was able to download the struts-blank.war file but I am having trouble
setting it up. The first stumbling block was that it is misnamed. It should
be called 'struts-blank.zip' because it is in zip format. I had to open the
file in hexedit to figure that one out. Hopefully the next version will have
the right name???
It is a war file, which is a compressed archive used to package J2EE web 
applications for deployment.  To understand better how to use war files 
(and to answer your feline questions below) and more generally how to 
deploy J2EE web applications, see 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html. If 
you have not already done so, you should also read the Servlet spec:
http://java.sun.com/products/servlet/download.html


The other problem I have is that I can't get my application to behave
properly. If the user types in their email address I want to be able to
check that it is a correct one and show the field red while they are typing
if it is not. I have a javascript that checks for the '@' sign but many
people are typing in '[EMAIL PROTECTED]'. Since I don't think so many people would have
the same email address we are losing valuable data. How can struts help me
with this? Will it take many monkey-hours to implement?
The Struts Validator can help here:
http://jakarta.apache.org/struts/userGuide/dev_validator.html

Once I unzipped the file I could not find any README or INSTALL file. I
tried the usual 'make; make install' but that did not work. I went out on
the net to find some install instructions and I read one place that said I
just had to stick the zip file inside my tom cat. I do have a cat, but she's
female. Will that make a difference, or does struts only run on male cats?
Does it matter if they are neutered? Does each client need to have a male
cat or just the server?
See above comment. If you use a standard web container (e.g Tomcat) and 
conform to the directory structure described in the links above, you can 
just put the .war file in the /webapps directory and the container will 
automatically expand it when it (the container) starts.

You should also read
http://jakarta.apache.org/struts/faqs/kickstart.html
http://jakarta.apache.org/struts/userGuide/index.html
http://jakarta.apache.org/struts/installation.html#Containers


Thank you for your time,
  Carlos






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [THURSDAY] struts questions

2003-03-13 Thread Robert Leland
Generally, for --simple-- applications getting a struts application 
running will take longer than a straight JSP application, for beginners. 
However, for most projects lasting more than a few weeks
you'll start seeing the payback in how well struts helps you organize
your code. What do I mean by that ?
Follow the MVC model, avoiding the temptation to use scriptlets
to control program flow. This actually simplifies the code, and code 
maintance. At my work we --don't-- have the ideal work shop that is
normally described when touting MVC.
 Html designers create the JSP.
 Java Developers create the Actions, and ActionForms.
Every one here is essentially a developer,monkeys, slinging JSP around.

So another question your boss might ask assuming you are using just 
straight JSP + Servlets+ java is:
Will struts help you design an easier to debug, maintain, and expand 
system ? YES.
Will that lead to a quicker to develop system ? YES.
Will that make your boss or his boss happy. Who know ?!? ;-) !

But do read the web site material and pick up one of the many books,
on struts in the end it will save you alot of time and frustration.
-Rob



Bueno Carlos M wrote:
Hi, all -- I'm new to struts and I have a few questions. Since you are the
experts I'm sure you will be able to help me.
My boss wants to know how many people are using struts and how long it will
take to build our application using struts as opposed to our current
development process. We currently have a thousand monkeys sitting at a
thousand emacs editors. The application isn't completely designed yet, and
of course I can't release confidential information about our application but
if you could give me an estimate of monkey-hours saved, that would be great.
I was able to download the struts-blank.war file but I am having trouble
setting it up. The first stumbling block was that it is misnamed. It should
be called 'struts-blank.zip' because it is in zip format. I had to open the
file in hexedit to figure that one out. Hopefully the next version will have
the right name???
The other problem I have is that I can't get my application to behave
properly. If the user types in their email address I want to be able to
check that it is a correct one and show the field red while they are typing
if it is not. I have a javascript that checks for the '@' sign but many
people are typing in '[EMAIL PROTECTED]'. Since I don't think so many people would have
the same email address we are losing valuable data. How can struts help me
with this? Will it take many monkey-hours to implement?
Once I unzipped the file I could not find any README or INSTALL file. I
tried the usual 'make; make install' but that did not work. I went out on
the net to find some install instructions and I read one place that said I
just had to stick the zip file inside my tom cat. I do have a cat, but she's
female. Will that make a difference, or does struts only run on male cats?
Does it matter if they are neutered? Does each client need to have a male
cat or just the server?
Thank you for your time,
  Carlos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [THURSDAY] struts questions

2003-03-13 Thread Kwok Peng Tuck
Bueno Carlos M wrote:

I was able to download the struts-blank.war file but I am having trouble
setting it up. The first stumbling block was that it is misnamed. It should
be called 'struts-blank.zip' because it is in zip format. I had to open the
file in hexedit to figure that one out. Hopefully the next version will have
the right name???
 

It's not incorrectly named. It is correct. Yes war files are identical 
to zip files. Just put it under the webapps directory of tomcat.
Restart tomcat and the war file should auto deploy it self.  You don't 
need to use make to get the war file to work. You can access the app
through the url http://localhost:[port]/struts-blank/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]