Re: Struts Examples

2002-07-01 Thread Chuck Cavaness

Glen,
Thanks for mentioning my example in chapter 3. In the chapter on packaging, 
I mention the different ways that you might want to package your classes 
and the pros and cons of each way. That chapter is finished, just not 
posted yet. I wanted to provide an example of each way. As you said, the 
example in chapter 3 illustrates one approach. The Storefront application 
that runs from chapter 4 to the end of the book, is packaged by 
functionality (e.g. catalog, order, security, framework...).

Just wanted to point that out.

Chuck

At 06:48 AM 7/1/2002 -0500, you wrote:
>The Struts book being reviewed at the ServerSide
>(http://www.theserverside.com/resources/strutsreview.jsp)
>has a good example using Struts V1.1 in Chapter 3.
>Sample code is given to work with.  I'm looking at it
>now.
>
>Only issue is that they've divided the Java packages
>not by functionality (login, search, transaction,
>etc.), etc., but by class of behavior (form, action,
>view, etc.)  Earlier postings on this ML have
>indicated that this is not the best design, as it
>limits class reuse.
>
>Glen
>
> > -Original Message-
> > From: Manish_Purang
>[mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, June 30, 2002 5:24 AM
> > To: [EMAIL PROTECTED]
> > Subject: Struts Examples
> >
> >
> > Hi,
> >
> > Where can i find examples or sample codes for Struts
>framework. I
> > basically
> > new to Struts and want to get more info through such
>examples.
> > Any suggestions..?
> >
> > Regards,
> >
>**
>
>
>_
>Do You Yahoo!?
>Información de Estados Unidos y América Latina, en Yahoo! Noticias.
>Visítanos en http://noticias.espanol.yahoo.com
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


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




Re: Struts Examples

2002-07-01 Thread Glen Mazza

The Struts book being reviewed at the ServerSide
(http://www.theserverside.com/resources/strutsreview.jsp)
has a good example using Struts V1.1 in Chapter 3. 
Sample code is given to work with.  I'm looking at it
now.

Only issue is that they've divided the Java packages
not by functionality (login, search, transaction,
etc.), etc., but by class of behavior (form, action,
view, etc.)  Earlier postings on this ML have
indicated that this is not the best design, as it
limits class reuse.

Glen

> -Original Message-
> From: Manish_Purang
[mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 30, 2002 5:24 AM
> To: [EMAIL PROTECTED]
> Subject: Struts Examples
>
>
> Hi,
>
> Where can i find examples or sample codes for Struts
framework. I
> basically
> new to Struts and want to get more info through such
examples.
> Any suggestions..?
>
> Regards,
>
**


_
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

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




RE: Struts Examples

2002-06-30 Thread Robert Taylor

Download the Struts binary distribution and look at the examples that come
with it.
After you download it, point your servlet container to one of the example
web apps
(in .war format) and you have some pretty good examples.

robert

> -Original Message-
> From: Manish_Purang [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 30, 2002 5:24 AM
> To: [EMAIL PROTECTED]
> Subject: Struts Examples
>
>
> Hi,
>
> Where can i find examples or sample codes for Struts framework. I
> basically
> new to Struts and want to get more info through such examples.
> Any suggestions..?
>
> Regards,
> **
> 
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or
> copying or
> distribution or forwarding of any or all of the contents in this
> message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
> **
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




Re: struts examples don't run in JBuilder

2002-04-16 Thread Jay sissom

Are you using JBuilder 6 enterprise?  I've found that some things work if
you use Tomcat 4, but nothing works if you use Tomcat 3.  It seems that
jbuilder has it's own classloader so the problems I've been having in
JBuilder 6/tomcat 4 have to do with not finding classes.  For example, if
I have a simple project that uses a form bean that I have created, it
works fine.  When I change the project to use a dynamic form bean, it
doesn't work because it can't find the DynaBean class (a class in the
struts.jar file).  If I take the war file it generated and put it into
stand alone tomcat 4, the project works fine.

I haven't tried Struts 1.1b in JBuilder 5 or below.

I'm trying to figure out how to solve the "missing" object problem, but I
haven't yet.  If someone else knows the solution, I would appreciate
hearing about it.

Another "whimp" developer that uses an IDE.
Jay

On Mon, 15 Apr 2002, Kele Tibor wrote:

> Hi!
> 
> When I try to run the example web applications of Struts in JBuilder the
> next error message appears:
> 
> Error: 500 Location: /WebApp/logon.jspInternal Servlet
> Error:javax.servlet.ServletException
>  at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:459)
>  at
> _0002flogon_0002ejsplogon_jsp_0._jspService(_0002flogon_0002ejsplogon_jsp_0.
> java:208)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:177)
>  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>  at org.apache.tomcat.core.Handler.service(Handler.java:286)
>  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>  at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>  at java.lang.Thread.run(Thread.java:484)
>  Root cause: javax.servlet.jsp.JspException
>  at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:784)
>  at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
>  at
> _0002flogon_0002ejsplogon_jsp_0._jspService(_0002flogon_0002ejsplogon_jsp_0.
> java:72)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:177)
>  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>  at org.apache.tomcat.core.Handler.service(Handler.java:286)
>  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>  at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>  at java.lang.Thread.run(Thread.java:484)  
> 
> When running under Tomcat servlet engine independent everything is ok. Is
> anybody know what to do? 
> 
> Thank in advance:
>   kt
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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




RE: Struts (Examples) Compilation Requirements

2002-01-25 Thread Brad Rhoads

I tried compiling under Window and got similar results. I'm not sure what I
was compiling when I got the javax problem, but here's (the beginning) of
what I get when compiling User.java from the struts-example:

>From with in this directory:

c:\jakara-tomcat-3.2.1\webapps\struats-example\web-inf\src\apache\struts\web
app\example

I type:

javac User.java

and get:

User.java:234: cannot resolve symbol
symbol : class Subscription
location: class org.apache.struts.webapps.example.User
public Subscription findSubscription(String host)

. . .

I assume the root problem is the compiler isn't finding struts.jar, but I
put it the classpath environment var & I've also tried javac -classpath
c:\jakara-tomcat-3.2.1\webapps\struats-example\web-inf\lib\struts.jar
User.java.



> -Original Message-
> From: Jeff Oberlander [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 25, 2002 3:44 PM
> To: 'Brad Rhoads'
> Subject: FW: Struts (Examples) Compilation Requirements
>
>
> I'm using Tomcat (but on windows).  It should just nicely work.  The
> classpath is all self contained in the war.  Which javax
> classes can't it
> find?  There might be a problem with your Tomcat
> installation.  Give me more
> specifics and I'll try to help.
>
> -Original Message-
> From: Brad Rhoads [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 25, 2002 1:17 PM
> To: [EMAIL PROTECTED]
> Subject: Struts (Examples) Compilation Requirements
>
>
> I'm trying to compile the Struts examples, but I'm getting
> all kinds of
> errors. (The provided classes are running OK, so I've done
> something right
> :). I just put all the .war files in the webapps dir &
> restarted tomcat.)
>
> I'm looking for as detailed instructions on what I need to do/have
> installed, etc. as possible.
>
> I'm fairly new to Linux, Java, & Struts so I'm looking for as
> close to a
> cookbook as I can find.
>
> I do have 2 specific questions though: First: what needs to be in the
> CLASSPATH?
>
> Second: There are some javax libs being used. I can't figure
> where to find
> them. Apparently they're not installed as part of the standard SDK
>
> Thanks for the help.
>


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




Re: Struts examples,docs for 1.0

2000-12-07 Thread Craig R. McClanahan


"Pearce, Bill" wrote:
 
Hi All,
Great job on Struts!
We have been playing with 0.5 but now that we are going
to start development we are going to download the latest 1.0 beta, and
we are aware of some deprecations, changes etc etc.  Are there any
real traps to look out for? Will the current example code work or has it
been updated in the latest build.
 
Hi Bill.  The example has indeed been changed to keep up with changes
in the underlying APIs.  The best single-page summary of the changes
is the "Release Notes" document that is part of the Strruts Documentation
application, and also on the web site (current as of a couple days ago)
at .
In my judgement, all the changes that might break user code have already
been made -- but no guarantees until 1.0 is actually complete :-).
 
cheers,
Bill Pearce
 
Craig