Re: Shopping Cart Project

2001-05-01 Thread Oussama Ktiri

 --can we have a jsp page that deals with more than one "action" ?
--then if one action forwards to another action, what happens to the form
bean from the first action , does it disapper ?
I am someehat confused
any help welcome



RE: Shopping Cart Project

2001-05-01 Thread Karl Basel

Hi there,

Count me in.. I'm currently busy with just that.

karl

-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: 01 May 2001 04:35
To: [EMAIL PROTECTED]
Subject: Re: Shopping Cart Project


Good idea!  My thoughts are:

1.  Custom tag to be able to loop through and display
the contents of the shopping cart
2.  Standard Java Bean that represents the shopping
cart with methods such as emptyCart(), addItem(),
remoteItem(), updateItem(), calcTotal(), saveCart(),
retrieveCart()
3.  Independent from a persistent storage device, with
a default implementation of a SQL database included.


scott.





--- [EMAIL PROTECTED] wrote:
> 
> Hi guys !
> 
> Well. Ok. So there's no Shopping Cart example
> utilising struts out there.
> And although it's been done so many times using
> other languages and
> frameworks, it's time to put one together for the
> struts community. After
> all, the 'shopping cart' is really the 'hello world'
> for web apps !! It will
> make a great foundation for struts newbies and
> hopefully decrease the
> learning curve a little. It may also allow the
> struts veterans to show off
> some of the advanced concepts. Who knows, it may
> even be added to the struts
> distribution as an advanced example!
> 
> Is anyone interested in contributing to this ? What
> are some thoughts ?
> 
> If I get enough people on board, then I'll set up a
> CVS (source control)
> server and get the project underway !
> 
> Cheers,
> 
> Joe.
> 
> 
>
_
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
> 


=
~~~
Scott

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




Re: using value of bean in my tag.

2001-05-01 Thread Martin Cooper

First, specify the type of the objects you are iterating over by adding the
'type' attribute to your  tag like this:



Obviously, you'll need to specify the appropriate fully qualified class
name. :-) This will cause the  tag to expose the iteration
object ('category' in this case, as identified by the 'id' attribute) with
the correct type.

Then you use your custom tag like this:



Hope this helps.

--
Martin Cooper


- Original Message -
From: "Alex Colic" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 11:00 AM
Subject: using value of bean in my tag.


> Hi, I have a tag setup as follows:
>
>  scope="application">
>   
>   
> 
>   
> 
> 
>
> I have an object in the servlet context that holds a vector of numbers
> corresponding to categories. I then have a custom tag that needs a number
> passed to it. The  the collection but how do I pass the value of the number to my own custom
> tag attribute as I have above with the number'1'? Any help is appreciated.
>
> Regards
>
> Alex
>





RE: Override the presentation of html:errors

2001-05-01 Thread Natra, Uday



When U 
add Ur errors to the ActionErrors Collection in the perform() method of the 
Action class, An object of type ActionErrors is saved in the request with a key 
name "ERROR_KEY". There is a method on the ActionErrors class called "get()" 
that returns a Iterator for a collection of ActionError objects. You can 
use the Struts iterator tag to display the errors in Ur own manner. Hope 
this helps.
 
Thanks,
Uday. 

  -Original Message-From: Jason Chaffee 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 5:43 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Override the presentation of html:errors
  The 
  best way to handle errors is to name them separatly and then access each one 
  indiviually in your jsp.  See the Java docs for more info on error 
  handling.  It covers this approach quite well.
  
-Original Message-From: Jeff Trent 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 1:36 
PMTo: [EMAIL PROTECTED]Subject: Override 
the presentation of html:errors
Short of writing my own taglib (which I'd 
like to avoid if I can), how does one iterate over the errors collection to 
present them in a different way.  Any examples would be 
helpful...
 
Thanks,
Jeff
 


RE: Override the presentation of html:errors

2001-05-01 Thread Graeme Miller

You have some control over the format of the font and background etc by
setting the errors.header and errors.footer properties in your
ApplicationResources.properties file

You can put html tags in these headers and footers

eg.

errors.header=
errors.footer=

where errorMessage is configured via a stylesheet

Regards,

Graeme.

-Original Message-
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 2 May 2001 8:36 a.m.
To: [EMAIL PROTECTED]
Subject: Override the presentation of html:errors


Short of writing my own taglib (which I'd like to avoid if I can), how does
one iterate over the errors collection to present them in a different way.
Any examples would be helpful...

Thanks,
Jeff



Re: Shopping Cart Project

2001-05-01 Thread Jason Robertson

Count me in too Joe. 

On Tuesday 01 May 2001 11:46, you wrote:
> Sounds great - count me in too!
>
> > -Original Message-
> > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:   Tuesday, May 01, 2001 1:36 AM
> > To: [EMAIL PROTECTED]
> > Subject:Shopping Cart Project
> >
> >
> > Hi guys !
> >
> > Well. Ok. So there's no Shopping Cart example utilising struts out there.
> > And although it's been done so many times using other languages and
> > frameworks, it's time to put one together for the struts community. After
> > all, the 'shopping cart' is really the 'hello world' for web apps !! It
> > will
> > make a great foundation for struts newbies and hopefully decrease the
> > learning curve a little. It may also allow the struts veterans to show
> > off some of the advanced concepts. Who knows, it may even be added to the
> > struts
> > distribution as an advanced example!
> >
> > Is anyone interested in contributing to this ? What are some thoughts ?
> >
> > If I get enough people on board, then I'll set up a CVS (source control)
> > server and get the project underway !
> >
> > Cheers,
> >
> > Joe.
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com



RE: GenericDataSource Reconnection

2001-05-01 Thread Anthony Martin

I am facing the same problem.  I use Interbase, and the connection goes down
from time to time for maintenance.  I was trying to build a test case to
present because I was worried I was the only one seeing this problem, in
case it was just my JDBC Driver not reporting it.

Restarting Tomcat is the only workaround I have right now.  This is not my
favorite way to handle it, obviously.  I too would be interested in any
other methods.


Anthony

-Original Message-
From: Vivek Bhaskaran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 4:18 PM
To: [EMAIL PROTECTED]
Subject: GenericDataSource Reconnection


Hi People
I was looking through the implementation of the javax.sql.DataSource
(inside the org.apache.struts.util) package. One think I am facing with that
mysql disconnects after a specified period of timeout. So the DB Pool gets
corrupted.

I was about to go ahead and add some code to the GenericDataSource to check
for the conneciton before giving it to a consumer.

Now my question is has this already been done? I did take a look at the
WebCVS and could not find anything to that repect Is this something that
needs to be done ?

-vivek



GenericDataSource Reconnection

2001-05-01 Thread Vivek Bhaskaran

Hi People
I was looking through the implementation of the javax.sql.DataSource
(inside the org.apache.struts.util) package. One think I am facing with that
mysql disconnects after a specified period of timeout. So the DB Pool gets
corrupted.

I was about to go ahead and add some code to the GenericDataSource to check
for the conneciton before giving it to a consumer.

Now my question is has this already been done? I did take a look at the
WebCVS and could not find anything to that repect Is this something that
needs to be done ?

-vivek




RE: "html:message" tag

2001-05-01 Thread Jason Chaffee



It is 
optional, but if you are using Struts and are not strickly adhering to the 
MVC/Model approach and having all requests go through the ActionServlet you have 
better use it.  
 
Most app servers won't load the servlet until it 
is requested, if you don't use load-on-startup.
 
I am 
assuming that she directly accessed the jsp.  Therefore, the ActionServlet 
was never requested and never instantiated.  The bean:message tag gets the 
page context for the current jsp and looks for the ResourceBundle.  This is 
"context" is being maintained by the container and since the ActionServlet was 
never instantiated the bean:message tag couldn't find it.

  -Original Message-From: Gogineni, Pratima 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 3:55 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  "html:message" tag
  Jason - I assumed that load-on-startup is an optional 
  element and only required to specify the order. i.e. if this is not specified 
  the appserver loads teh servlet in any order it likes???
   
  if 
  this is the case then the actionservlet shoudl have been loaded before the jsp 
  page was compiled unless - the jsp page was also specified in teh deployment 
  descriptor to be precompiled?
   
  
-Original Message-From: Jason Chaffee 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 3:41 
PMTo: '[EMAIL PROTECTED]'Subject: RE: 
"html:message" tag
Your ActionServlet needs to be loaded to create an 
instance of the ResourceBundle.  Therefore, if you were requesting a 
jsp page without going through the ActionServlet, there will not be a 
ResourceBundle in the servlet context because this happens when the 
ActionServlet is initialized.

  -Original Message-From: Sue Deng 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 1:47 
  PMTo: [EMAIL PROTECTED]Subject: Re: 
  "html:message" tagI would like to share what I did 
  wrong before:  I forgot to put the line 
  "2" in web.xml file.  
  After I add this line, my jsp works.  So, why is this line so 
  important for using bean:message lag? 
  Thanks, 
  -Sue 
  Jason Chaffee wrote: 
    
I find the following configuration easier: 
Simply put the the resouce file in /WEB-INF/classes 
directory. 
Then change the deployment descriptor as 
follows: 
     
action  
org.apache.struts.action.ActionServlet 
  
   
application    
ApplicationResources 
Also, make sure there isn't a typo in your resource 
file or your jsp page. 
-Original Message- From: Sue Deng [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 01, 2001 11:51 AM To: [EMAIL PROTECTED] Subject: Re: "html:message" tag 
I put my ApplicationResources.properties file in 
/usr/local/tomcat/classes/net/covalent directory 
before.  Now i moved it to my applications 
/WEB-INF/classes/net/covalent directory.  And I got "Missing 
message for key logon.title" error, but the 
logon.title key is in the file. 
Thanks, 
-Sue Ratnadeep Bhattacharjee 
wrote: 
> Chances are the location of your 
ApplicationResource file is not where > 
ActionServlet is looking for it. For example, if your web.xml looks as 
follows: > >    > 
action > 
org.apache.struts.action.ActionServlet 
>  
>   
application >   
net.covalent.ApplicationResources 
>    
>    
> > then the 
ApplicationResources.properties file should be in the > WEB-INF/classes/net/covalent/ directory. > > Hope this helps. 
> > -Deep. 
> > > 
> > I did not make any changes on the 
code.  What do you mean the "app > > 
server"?  I am using jakarta-struts-1.0-b1 under Tomcat.  What 
should I > > do now? > > > > Thanks, 
> > > > 
-Sue > > > 
> Jason Chaffee wrote: > > 
> > >  Have you made any changes to the 
code?  The ActionServlet should be > 
> > creating the resource bundle and storing in the servlet 
context using > > > this key. What app 
server are you using?  There could be a bug in how > > > it stores objects in the servlet context, thus 
the ActionServlet can't > > > find 
anything that has previously been stored there. > > > > > 
>  -Original Message- 
> > >  From: Sue 
Deng [mailto:[EMAIL PROTECTED]] 
> > >  Sent: 
Tuesday, May 01, 2001 9:39 AM > > 
>  To: 
[EMAIL PROTECTED] > > 
>  Subject: Re: "html:message" 
tag > > > > > >  Thanks, 
Jason.  But  when I use bean:message, I got "Cannot 
> > >  find 
  

Re: "html:message" tag

2001-05-01 Thread shunhui zhu

My guess: A reference to the message property file is
obtained in the ActionServlet.initApp() method. If
ActionServlet is not loaded at startup, then this
method is not called. So when you call ,
it's probably still not called (unless the
ActionServlet is instantiated before displaying the
page).

Shunhui

--- Sue Deng <[EMAIL PROTECTED]> wrote:
> I would like to share what I did wrong before:  I
> forgot to put the line
> "2" in web.xml
> file.  After I add
> this line, my jsp works.  So, why is this line so
> important for using
> bean:message lag?
> 
> Thanks,
> 
> -Sue
> 
> Jason Chaffee wrote:
> 
> >
> >
> > I find the following configuration easier:
> >
> > Simply put the the resouce file in
> /WEB-INF/classes directory.
> >
> > Then change the deployment descriptor as follows:
> >
> >
> >  action
> >
> >
>
org.apache.struts.action.ActionServlet
> >  
> >application
> >   
> ApplicationResources
> >
> > Also, make sure there isn't a typo in your
> resource file or your jsp
> > page.
> >
> > -Original Message-
> > From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 01, 2001 11:51 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: "html:message" tag
> >
> > I put my ApplicationResources.properties file in
> > /usr/local/tomcat/classes/net/covalent directory
> before.  Now i moved
> > it to my
> > applications /WEB-INF/classes/net/covalent
> directory.  And I got
> > "Missing message
> > for key logon.title" error, but the logon.title
> key is in the file.
> >
> > Thanks,
> >
> > -Sue
> > Ratnadeep Bhattacharjee wrote:
> >
> > > Chances are the location of your
> ApplicationResource file is not
> > where
> > > ActionServlet is looking for it. For example, if
> your web.xml looks
> > as follows:
> > >
> > >   
> > > action
> > >
> >
>
org.apache.struts.action.ActionServlet
> > > 
> > >   application
> > >  
>
net.covalent.ApplicationResources
> > >   
> > >   
> > >
> > > then the ApplicationResources.properties file
> should be in the
> > > WEB-INF/classes/net/covalent/ directory.
> > >
> > > Hope this helps.
> > >
> > > -Deep.
> > >
> > > >
> > > > I did not make any changes on the code.  What
> do you mean the "app
> >
> > > > server"?  I am using jakarta-struts-1.0-b1
> under Tomcat.  What
> > should I
> > > > do now?
> > > >
> > > > Thanks,
> > > >
> > > > -Sue
> > > >
> > > > Jason Chaffee wrote:
> > > >
> > > > >  Have you made any changes to the code?  The
> ActionServlet
> > should be
> > > > > creating the resource bundle and storing in
> the servlet context
> > using
> > > > > this key. What app server are you using? 
> There could be a bug
> > in how
> > > > > it stores objects in the servlet context,
> thus the ActionServlet
> > can't
> > > > > find anything that has previously been
> stored there.
> > > > >
> > > > >  -Original Message-
> > > > >  From: Sue Deng
> [mailto:[EMAIL PROTECTED]]
> > > > >  Sent: Tuesday, May 01, 2001 9:39 AM
> > > > >  To: [EMAIL PROTECTED]
> > > > >  Subject: Re: "html:message" tag
> > > > >
> > > > >  Thanks, Jason.  But  when I use
> bean:message, I got "Cannot
> >
> > > > >  find message resources under key
> > > > >  org.apache.struts.action.MESSAGE"
> error.
> > > > >
> > > > >  Thanks,
> > > > >
> > > > >  -Sue
> > > > >
> > > > >  Jason Chaffee wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > > it should be bean:message
> > > > > >
> > > > > > -Original Message-
> > > > > > From: Sue Deng
> [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Monday, April 30, 2001 5:26 PM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: "html:message" tag
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am trying to build form using struts
> taglib.  But I get
> > > > > > "no such tag
> > > > > > message  ..."error when I use
> "html:message" tag.  I found
> >
> > > > > > that
> > > > > > struts-html.tld and struts-bean.tld
> files do not have a
> > > > > > tag named
> > > > > > "message", but the struts example uses
> that tag.  Why?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > -Sue
> > > > >
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: "html:message" tag

2001-05-01 Thread Gogineni, Pratima



Jason 
- I assumed that load-on-startup is an optional element and only required to 
specify the order.  i.e. if this is not specified the appserver loads teh 
servlet in any order it likes???
 
if 
this is the case then the actionservlet shoudl have been loaded before the jsp 
page was compiled unless - the jsp page was also specified in teh deployment 
descriptor to be precompiled?
 

  -Original Message-From: Jason Chaffee 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 3:41 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  "html:message" tag
  Your 
  ActionServlet needs to be loaded to create an instance of the 
  ResourceBundle.  Therefore, if you were requesting a jsp page without 
  going through the ActionServlet, there will not be a ResourceBundle in the 
  servlet context because this happens when the ActionServlet is 
  initialized.
  
-Original Message-From: Sue Deng 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 1:47 
PMTo: [EMAIL PROTECTED]Subject: Re: 
"html:message" tagI would like to share what I did 
wrong before:  I forgot to put the line 
"2" in web.xml file.  
After I add this line, my jsp works.  So, why is this line so important 
for using bean:message lag? 
Thanks, 
-Sue 
Jason Chaffee wrote: 
  
  I find the following configuration easier: 
  Simply put the the resouce file in /WEB-INF/classes 
  directory. 
  Then change the deployment descriptor as follows: 
       
  action  
  org.apache.struts.action.ActionServlet 
    
     
  application    
  ApplicationResources 
  Also, make sure there isn't a typo in your resource file 
  or your jsp page. 
  -Original Message- From: 
  Sue Deng [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, May 01, 2001 11:51 AM To: [EMAIL PROTECTED] Subject: Re: "html:message" tag 
  I put my ApplicationResources.properties file in 
  /usr/local/tomcat/classes/net/covalent directory 
  before.  Now i moved it to my applications 
  /WEB-INF/classes/net/covalent directory.  And I got "Missing 
  message for key logon.title" error, but the 
  logon.title key is in the file. 
  Thanks, 
  -Sue Ratnadeep Bhattacharjee 
  wrote: 
  > Chances are the location of your ApplicationResource 
  file is not where > ActionServlet is looking 
  for it. For example, if your web.xml looks as follows: > >   
   > 
  action > 
  org.apache.struts.action.ActionServlet 
  >  
  >   
  application >   
  net.covalent.ApplicationResources 
  >    
  >    
  > > then the 
  ApplicationResources.properties file should be in the > WEB-INF/classes/net/covalent/ directory. > > Hope this helps. 
  > > -Deep. 
  > > > > > I did not make any changes on the code.  What do 
  you mean the "app > > server"?  I am 
  using jakarta-struts-1.0-b1 under Tomcat.  What should I 
  > > do now? > 
  > > > Thanks, > > > > -Sue > > > > Jason Chaffee 
  wrote: > > > 
  > >  Have you made any changes to the code?  The 
  ActionServlet should be > > > creating 
  the resource bundle and storing in the servlet context using 
  > > > this key. What app server are you 
  using?  There could be a bug in how > 
  > > it stores objects in the servlet context, thus the ActionServlet 
  can't > > > find anything that has 
  previously been stored there. > > 
  > > > >  
  -Original Message- > > 
  >  From: Sue Deng [mailto:[EMAIL PROTECTED]] 
  > > >  Sent: 
  Tuesday, May 01, 2001 9:39 AM > > 
  >  To: 
  [EMAIL PROTECTED] > > 
  >  Subject: Re: "html:message" tag 
  > > > > > 
  >  Thanks, Jason.  But  when I 
  use bean:message, I got "Cannot > > 
  >  find message resources under key 
  > > >  
  org.apache.struts.action.MESSAGE" error. > 
  > > > > 
  >  Thanks, > 
  > > > > 
  >  -Sue > > 
  > > > >  
  Jason Chaffee wrote: > > > 
  > > > > 
  > > > > 
  > > > > it should be 
  bean:message > > 
  > > > > 
  > > -Original Message- 
  > > > > From: Sue 
  Deng [mailto:[EMAIL PROTECTED]] 
  > > > > Sent: 
  Monday, April 30, 2001 5:26 PM > > 
  > > To: 
  [EMAIL PROTECTED] > > 
  > > Subject: "html:message" tag 
  > > > > 
  > > > > Hi, 
  > > > > 
  > > > > I am trying 
  to build form using struts taglib.  But I get > > > > "no such tag 
  > > > > 
  message  ..."error when I use "html:message" tag.  I 
  found > > > > 
  that > > > > 
  struts-html.tld and struts-bean.tld files do not have a > > > > tag named 
  > > > > "message", 
  but t

Re: Help on struts on Unix.

2001-05-01 Thread shunhui zhu

It seems you have another copy of Tomcat running, you
may want to type "ps" to see the processes, and kill
the old one. Or type "shutdown.sh" to shutdown the old
Tomcat.

Shunhui

--- Michael Wang <[EMAIL PROTECTED]> wrote:
> 
> On Unix, when I started tomcat by typing startup.sh,
> I got following errors:
> What I did were 
> 1. install tomcat
> 2. start tomcat, test tomcat example, work fine.
> 3. install struts. 
> 4. export struts-example.war, start tomcat, got
> error.
> 
> The same procedure is working fine with WinNT.  I do
> not know whether I need
> to set up something else on UNIX.
> Thanks for any help.
> 
> -Michael
> 
> Pop org.apache.struts.action.ActionMapping
> register('-//Apache Software Foundation//DTD Struts
> Configuration 1.0//EN',
>
'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/
> resources/struts-config_1_0.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web
> Application 2.2//EN',
>
'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/
> resources/web-app_2_2.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN',
>
'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/
> resources/web-app_2_3.dtd'
> resolveEntity('-//Sun Microsystems, Inc.//DTD Web
> Application 2.2//EN',
> 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd')
>  Resolving to alternate DTD
>
'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/
> resources/web-app_2_2.dtd'
> Call
>
org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.St
> ring,*.do/java.lang.String)
> FATAL:java.net.BindException: Address already in use
> java.net.BindException: Address already in use
> at
> java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.PlainSocketImpl.bind(Unknown
> Source)
> at java.net.ServerSocket.(Unknown
> Source)
> at java.net.ServerSocket.(Unknown
> Source)
> at
>
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
> ocketFactory.java:97)
> at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
> :239)
> at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
> at
>
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> at
>
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> at
>
org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> 
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: Struts::WAP ... sorta

2001-05-01 Thread Anthony Martin

That's the way to go, though.  My little kludge was just pretty much just to
test the reusability of my ActionForm and Action classes.  It has been
incredibly easy, but then I'm not doing anything too impressive.  I'm sure
that if I actually wrote some custom tags, I'd use  a whole lot less.

I agree, the real beauty here is the reusability of the ActionForm and
Action classes, which is what the Struts framework was designed to do.  It's
neat to see that adhering to the standards actually pays off.


Anthony
Another satisfied customer.

-Original Message-
From: Richard Backhouse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 11:03 AM
To: [EMAIL PROTECTED]
Subject: Re: Struts::WAP ... sorta


Anthony,

I have just completed an hdml interface to my already existing j2ee/struts
based
application. It turned out to be very successful in how it works with the
struts
controller architecture. It ended up being an additional webapp that I added
to 
provide an interface to my ejb backend. The action classes that I wrote for
the 
hdml jsps worked with the same data strutures that I had in place for my
html 
front end.

The majority of the work was writing hdml ui tags to wrapper most of the
hdml 
tags (choice, entry, ce etc.) I had to use these when they were dependent on

dynamic content. They generally pulled values out of beans stored in the 
request/session. These tags complimented the logic and bean tags that struts

provides. You could see them as being hdml equivalent of the struts html
tags. 

Right now I am putting together an example hdml/struts app that demonstrates

what I have put together with the goal of producing a white paper. The tags
I 
have need more work to make them more reusable. 

Richard Backhouse
Oak Grove Software

Quoting Anthony Martin <[EMAIL PROTECTED]>:

> I got WAP to work using Struts.  I couldn't find any WML taglibs, so I
> just
> use HTML comments so I could still benefited from the standard tags like
>  and .  Example:
> 
> <%@ page language="java" contentType="text/vnd.wap.wml"
> %><%@ 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="logic"
> %>
>"http://www.phone.com/dtd/wml11.dtd";>
> 
> 
>  
>  
>  
>   
>   Matched: 
>   .
>   . other cool stuff here
>   .
>   
>  
>  
>  
> 
> 
> Hope this is helpful to someone, and maybe someone else has a tip/gotcha
> for
> me.
> 
> 
> Anthony
> 
> It is by caffeine alone I set my mind in motion.
> It is by the Beans of Java that thoughts acquire speed,
> the hands acquire shaking, the shaking becomes a warning.
> It is by caffeine alone I set my mind in motion.
> 



Re: Help on struts on Unix.

2001-05-01 Thread Paul Tindall
Title: Help on struts on Unix.



Michael,
 
You probably didn't shut down the first instance of 
tomcat after step 2.  I'm not familiar with the specifics of tomcat, but 
there should be a shutdown script.  If not, you will need to manually 
kill the tomcat process.
 
Regards,
 
Paul

  - Original Message - 
  From: 
  Michael 
  Wang 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Tuesday, May 01, 2001 5:33 PM
  Subject: Help on struts on Unix.
  
  On Unix, when I started tomcat by typing 
  startup.sh, I got following errors: What I did were 1. install 
  tomcat 2. start tomcat, test tomcat 
  example, work fine. 3. install struts. 
  4. export struts-example.war, start tomcat, 
  got error. 
  The same procedure is working fine with 
  WinNT.  I do not know whether I need to set up something else on 
  UNIX. Thanks for any help. 
  -Michael 
  Pop 
  org.apache.struts.action.ActionMapping register('-//Apache Software Foundation//DTD Struts 
  Configuration 1.0//EN', 'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
  register('-//Sun Microsystems, 
  Inc.//DTD Web Application 2.2//EN', 'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
  register('-//Sun Microsystems, 
  Inc.//DTD Web Application 2.3//EN', 'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
  resolveEntity('-//Sun Microsystems, 
  Inc.//DTD Web Application 2.2//EN', 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd')
   Resolving to alternate DTD 
  'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
  Call 
  org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,*.do/java.lang.String) 
  FATAL:java.net.BindException: 
  Address already in use java.net.BindException: Address already in use     at 
  java.net.PlainSocketImpl.socketBind(Native Method)     at 
  java.net.PlainSocketImpl.bind(Unknown Source)     at 
  java.net.ServerSocket.(Unknown Source)     at 
  java.net.ServerSocket.(Unknown Source)     at 
  org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97) 
      at 
  org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239) 
      at 
  org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) 
      at 
  org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) 
      at 
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)     at 
  org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) 



RE: Override the presentation of html:errors

2001-05-01 Thread Jason Chaffee



The 
best way to handle errors is to name them separatly and then access each one 
indiviually in your jsp.  See the Java docs for more info on error 
handling.  It covers this approach quite well.

  -Original Message-From: Jeff Trent 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 1:36 
  PMTo: [EMAIL PROTECTED]Subject: Override 
  the presentation of html:errors
  Short of writing my own taglib (which I'd 
  like to avoid if I can), how does one iterate over the errors collection to 
  present them in a different way.  Any examples would be 
  helpful...
   
  Thanks,
  Jeff
   


RE: "html:message" tag

2001-05-01 Thread Jason Chaffee



Your 
ActionServlet needs to be loaded to create an instance of the 
ResourceBundle.  Therefore, if you were requesting a jsp page without going 
through the ActionServlet, there will not be a ResourceBundle in the servlet 
context because this happens when the ActionServlet is 
initialized.

  -Original Message-From: Sue Deng 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 1:47 
  PMTo: [EMAIL PROTECTED]Subject: Re: 
  "html:message" tagI would like to share what I did wrong 
  before:  I forgot to put the line 
  "2" in web.xml file.  
  After I add this line, my jsp works.  So, why is this line so important 
  for using bean:message lag? 
  Thanks, 
  -Sue 
  Jason Chaffee wrote: 
    
I find the following configuration easier: 
Simply put the the resouce file in /WEB-INF/classes 
directory. 
Then change the deployment descriptor as follows: 
     
action  
org.apache.struts.action.ActionServlet 
  
   
application    
ApplicationResources 
Also, make sure there isn't a typo in your resource file or 
your jsp page. 
-Original Message- From: 
Sue Deng [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 01, 2001 11:51 AM To: [EMAIL PROTECTED] Subject: 
Re: "html:message" tag 
I put my ApplicationResources.properties file in 
/usr/local/tomcat/classes/net/covalent directory 
before.  Now i moved it to my applications 
/WEB-INF/classes/net/covalent directory.  And I got "Missing 
message for key logon.title" error, but the 
logon.title key is in the file. 
Thanks, 
-Sue Ratnadeep Bhattacharjee 
wrote: 
> Chances are the location of your ApplicationResource 
file is not where > ActionServlet is looking for 
it. For example, if your web.xml looks as follows: > >   
 > 
action > 
org.apache.struts.action.ActionServlet 
>  
>   
application >   
net.covalent.ApplicationResources 
>    
>    
> > then the 
ApplicationResources.properties file should be in the > WEB-INF/classes/net/covalent/ directory. > > Hope this helps. > > -Deep. > > > > > I did not make any changes on the code.  What do you 
mean the "app > > server"?  I am using 
jakarta-struts-1.0-b1 under Tomcat.  What should I > > do now? > > 
> > Thanks, > 
> > > -Sue > 
> > > Jason Chaffee wrote: 
> > > > >  
Have you made any changes to the code?  The ActionServlet should 
be > > > creating the resource bundle and 
storing in the servlet context using > > > 
this key. What app server are you using?  There could be a bug in 
how > > > it stores objects in the servlet 
context, thus the ActionServlet can't > > 
> find anything that has previously been stored there. > > > > > 
>  -Original Message- 
> > >  From: Sue 
Deng [mailto:[EMAIL PROTECTED]] 
> > >  Sent: 
Tuesday, May 01, 2001 9:39 AM > > 
>  To: [EMAIL PROTECTED] 
> > >  Subject: Re: 
"html:message" tag > > > > > >  Thanks, Jason.  
But  when I use bean:message, I got "Cannot > > >  find message resources 
under key > > 
>  org.apache.struts.action.MESSAGE" 
error. > > > > 
> >  Thanks, > > > > > 
>  -Sue > > 
> > > >  
Jason Chaffee wrote: > > > 
> > > > 
> > > > 
> > > > it should be 
bean:message > > > 
> > > > > 
-Original Message- > > 
> > From: Sue Deng [mailto:[EMAIL PROTECTED]] 
> > > > Sent: Monday, 
April 30, 2001 5:26 PM > > 
> > To: [EMAIL PROTECTED] 
> > > > Subject: 
"html:message" tag > > 
> > > > 
> > Hi, > > 
> > > > 
> > I am trying to build form using struts 
taglib.  But I get > > 
> > "no such tag > 
> > > message  ..."error when I use 
"html:message" tag.  I found > > 
> > that > > 
> > struts-html.tld and struts-bean.tld files 
do not have a > > 
> > tag named > 
> > > "message", but the struts example 
uses that tag.  Why? > > 
> > > > 
> > Thanks, > > 
> > > > 
> > -Sue > > 
>


Override the presentation of html:errors

2001-05-01 Thread Jeff Trent



Short of writing my own taglib (which I'd like 
to avoid if I can), how does one iterate over the errors collection to present 
them in a different way.  Any examples would be helpful...
 
Thanks,
Jeff
 


Help on struts on Unix.

2001-05-01 Thread Michael Wang
Title: Help on struts on Unix.






On Unix, when I started tomcat by typing startup.sh, I got following errors:
What I did were 
1. install tomcat
2. start tomcat, test tomcat example, work fine.
3. install struts. 
4. export struts-example.war, start tomcat, got error.


The same procedure is working fine with WinNT.  I do not know whether I need to set up something else on UNIX.
Thanks for any help.


-Michael


Pop org.apache.struts.action.ActionMapping
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'

register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'

register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'

resolveEntity('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd')

 Resolving to alternate DTD 'jar:file:/devel/slinky/mwang/java/tomcat/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'

Call org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,*.do/java.lang.String)
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.(Unknown Source)
    at java.net.ServerSocket.(Unknown Source)
    at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97)
    at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239)
    at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
    at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
    at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
    at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)





Re: "html:message" tag

2001-05-01 Thread Sue Deng


I would like to share what I did wrong before:  I forgot to put the
line "2" in web.xml file. 
After I add this line, my jsp works.  So, why is this line so important
for using bean:message lag?
Thanks,
-Sue
Jason Chaffee wrote:
 
I find the following configuration easier:
Simply put the the resouce file in /WEB-INF/classes directory.
Then change the deployment descriptor as follows:
   
 action
 org.apache.struts.action.ActionServlet
 
   application
   ApplicationResources
Also, make sure there isn't a typo in your resource file
or your jsp page.
-Original Message-
From: Sue Deng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 11:51 AM
To: [EMAIL PROTECTED]
Subject: Re: "html:message" tag
I put my ApplicationResources.properties file in
/usr/local/tomcat/classes/net/covalent directory before. 
Now i moved it to my
applications /WEB-INF/classes/net/covalent directory. 
And I got "Missing message
for key logon.title" error, but the logon.title key is
in the file.
Thanks,
-Sue
Ratnadeep Bhattacharjee wrote:
> Chances are the location of your ApplicationResource
file is not where
> ActionServlet is looking for it. For example, if your
web.xml looks as follows:
>
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   application
>   net.covalent.ApplicationResources
>   
>   
>
> then the ApplicationResources.properties file should
be in the
> WEB-INF/classes/net/covalent/ directory.
>
> Hope this helps.
>
> -Deep.
>
> >
> > I did not make any changes on the code.  What
do you mean the "app
> > server"?  I am using jakarta-struts-1.0-b1 under
Tomcat.  What should I
> > do now?
> >
> > Thanks,
> >
> > -Sue
> >
> > Jason Chaffee wrote:
> >
> > >  Have you made any changes to the code? 
The ActionServlet should be
> > > creating the resource bundle and storing in the
servlet context using
> > > this key. What app server are you using? 
There could be a bug in how
> > > it stores objects in the servlet context, thus
the ActionServlet can't
> > > find anything that has previously been stored there.
> > >
> > >  -Original Message-
> > >  From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > >  Sent: Tuesday, May
01, 2001 9:39 AM
> > >  To: [EMAIL PROTECTED]
> > >  Subject: Re: "html:message"
tag
> > >
> > >  Thanks, Jason. 
But  when I use bean:message, I got "Cannot
> > >  find message resources
under key
> > >  org.apache.struts.action.MESSAGE"
error.
> > >
> > >  Thanks,
> > >
> > >  -Sue
> > >
> > >  Jason Chaffee wrote:
> > >
> > > >
> > > >
> > > > it should be bean:message
> > > >
> > > > -Original Message-
> > > > From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, April 30,
2001 5:26 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: "html:message"
tag
> > > >
> > > > Hi,
> > > >
> > > > I am trying to build
form using struts taglib.  But I get
> > > > "no such tag
> > > > message  ..."error
when I use "html:message" tag.  I found
> > > > that
> > > > struts-html.tld and struts-bean.tld
files do not have a
> > > > tag named
> > > > "message", but the struts
example uses that tag.  Why?
> > > >
> > > > Thanks,
> > > >
> > > > -Sue
> > >



Passing Parameters to a custom tag...

2001-05-01 Thread Dallas_Browning


Hi all, let me see if I can explain this.  I have a custom tag that
displays a list of information from a database.  The database will allow me
to apply an XSLT on the XML that it returns, and thus I can get the data
formatted how I want it.  Essentially my tag calls a method get
XMLDataList(int numOfRows, String XSLStyleSheetURI, String SortBy,
JSPWriter out).  This method belongs to a class that takes the information
passed to it, queries the DB and gives out (the JSPWriter) the html.  Then,
of course, html appears magically on the page.
However, I want the user to be able to determine how the list should sort
and how many rows should be shown.
There are many ways to accomplish this, using the struts framework, but I
am guessing that there are few ways that would be honest to the framework.
I would like your opinions on the matter.  How best would I solve this?
One idea, I could cheat and write the tag out like this
"... But I
would like to avoid any scriptlets on the page.
Or I could still allow the tag to accept a "hard coded" number (for
instance, a "rows="someNumber"" could be an option, and if so, user input
would be ignored).  And if those elements did not exist, ie the tag was
empty () then the tag itself could do a
request.getParameter("rows")...  I kind of like that idea.  That way the
page designer has power, but they don't need to worry about knowing jsp in
order to give the user's the option to decide what the list should look
like.
But maybe I'm missing something.

One other (somewhat related) question.  I know that posts are generally an
elegant manner to pass data in struts.  But is it frowned upon to use gets
often, for instance I have many text buttons that are links to various *.do
pages.  Is there something preferred to passing data in a link like this
(We'll use the dataList idea again) 

RE: jsp include exception when using struts on weblogic 6

2001-05-01 Thread Nanduri, Amarnath



Pratima,
 
  Thanks for the info. I will research more 
on this...
 
Amar..

  -Original Message-From: Gogineni, Pratima 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 4:34 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: jsp 
  include exception when using struts on weblogic 6
  Amarnath,
   
  I 
  can do include within an include - though I am using struts with tomcat. Maybe 
  weblogic doesnt support this?
   
  Pratima
  
-Original Message-From: Nanduri, Amarnath 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 
2001 12:38 PMTo: 
'[EMAIL PROTECTED]'Subject: RE: jsp include 
exception when using struts on weblogic 6
Been There . Done That. Still crashes with some other exception.. I 
was wondering if i am stepping outside the bounds of the jsp specifications. 
Thanks.
 
cheers,
Amar..

  -Original Message-From: Chen, Yong 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 
  3:14 PMTo: '[EMAIL PROTECTED]'Subject: 
  RE: jsp include exception when using struts on weblogic 
  6
  JSP spec says:
  <%@ include is a directive, it is effective in 
  the translation-time, it is static
  
   
  Your code is trying to do some dynamic including, 
  so use jsp:include instead.
   
  Yong 
  Chen 
  
-Original Message-From: Nanduri, Amarnath 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 
2001 12:51 PMTo: 
'[EMAIL PROTECTED]'Subject: jsp include 
exception when using struts on weblogic 6
Hi 
Guys,
 
   This 
question is irrelevant to struts and more to do with jsp's. My sincerest 
apologies if i have offended 
anyone
 
I am getting a 
nasty exception when i try to do the 
following...
 
I am basically 
including an 'include' in an 'include'.  Basically page1.jsp 
includes a page2.jsp. In page2.jsp i make a decision as to whether to 
include page3.jsp (or) page4.jsp 
...
 
Basically the 
syntax is...
 
page1.jsp
--
 if some 
condition satisfied 
<%@ include file="page2.jsp" %> 

 

page2.jsp
--
 if some 
condition satisfied 
<%@ include file="page3.jsp" %> 

 else  <%@ include file="page4.jsp" %> 

 
 
I am using struts1.0 on weblogic 6. The 
exception i get is below... I tried changing the include to a 
. If so i get an other nasty exception. Any help by 
the gurus is highly 
appreciated.
 
 
  
<[WebAppServletContext(7292498,onboard.presentation)] Servlet failed 
with Exceptionjava.lang.RuntimeException: Could not parse embedded 
JSP code: weblogic.utils.ParsingException: nested 
TokenStreamException: antlr.TokenStreamException: Could not include 
include/Mobile_menu.jsp    at 
weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1090)    
at 
weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1065)    
at 
weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1058)    
at 
weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:855)    
at 
weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:3733)    
at 
weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3506)    
at 
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1807)    
at 
weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1648)    
at 
weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1530)


More File upload problems

2001-05-01 Thread Azariah Jeyakumar

Hi,

I have found three more problems with file upload using the nightly build
(20010430):

1. File upload does not work (see exception stack trace below) with IE 5.0
but works with IE 5.5, Netscape 4.76, Netscape 6.
2. Cleanup of temp files on empty upload
If I submit the form without choosing the file to upload, the tmp
file does not get cleaned up. I have checked that I am calling
FormFile.destroy()
3. temp dir is not taken from javax.servlet.context.tempDir
I am using resin and it correctly sets the attribute
javax.servlet.context.tempDir to the directory ...\WEB-INF\tmp. But the
ActionServlet continues to have the tempDir property as null. When I
explicitly create the directory (whose path is returned in the File object
in the javax.servlet.context.tempDir attribute) and then set its path in
ActionServlet, then the upload correctly happens in this directory.

Thanks
Azariah

500 Servlet Exception
javax.servlet.ServletException: MultipartIterator: no multipart request data
sent
at
org.apache.struts.upload.MultipartIterator.parseRequest(MultipartIterator.ja
va:337)
at
org.apache.struts.upload.MultipartIterator.(MultipartIterator.java:152
)
at
org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMulti
partRequestHandler.java:59)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:454)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
20)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1535)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:489)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:83)
at com.caucho.server.http.Invocation.service(Invocation.java:291)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:121)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:238)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:157)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)






RE: jsp include exception when using struts on weblogic 6

2001-05-01 Thread Gogineni, Pratima



Amarnath,
 
I can 
do include within an include - though I am using struts with tomcat. Maybe 
weblogic doesnt support this?
 
Pratima

  -Original Message-From: Nanduri, Amarnath 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 
  12:38 PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  jsp include exception when using struts on weblogic 6
  Been 
  There . Done That. Still crashes with some other exception.. I was wondering 
  if i am stepping outside the bounds of the jsp specifications. 
  Thanks.
   
  cheers,
  Amar..
  
-Original Message-From: Chen, Yong 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 
3:14 PMTo: '[EMAIL PROTECTED]'Subject: 
RE: jsp include exception when using struts on weblogic 
6
JSP spec says:
<%@ include is a directive, it is effective in 
the translation-time, it is static

 
Your code is trying to do some dynamic including, 
so use jsp:include instead.
 
Yong 
Chen 

  -Original Message-From: Nanduri, Amarnath 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 
  2001 12:51 PMTo: 
  '[EMAIL PROTECTED]'Subject: jsp include exception 
  when using struts on weblogic 6
  Hi 
  Guys,
   
     This 
  question is irrelevant to struts and more to do with jsp's. My sincerest 
  apologies if i have offended 
  anyone
   
  I am getting a 
  nasty exception when i try to do the 
  following...
   
  I am basically 
  including an 'include' in an 'include'.  Basically page1.jsp includes 
  a page2.jsp. In page2.jsp i make a decision as to whether to include 
  page3.jsp (or) page4.jsp ...
   
  Basically the 
  syntax is...
   
  page1.jsp
  --
   if some 
  condition satisfied 
  <%@ include file="page2.jsp" %> 
  
   
  
  page2.jsp
  --
   if some 
  condition satisfied 
  <%@ include file="page3.jsp" %> 
  
   else  <%@ include file="page4.jsp" %> 
  
   
   
  I am using struts1.0 on weblogic 6. The 
  exception i get is below... I tried changing the include to a 
  . If so i get an other nasty exception. Any help by 
  the gurus is highly 
  appreciated.
   

   <[WebAppServletContext(7292498,onboard.presentation)] 
  Servlet failed with Exceptionjava.lang.RuntimeException: Could not 
  parse embedded JSP code: weblogic.utils.ParsingException: nested 
  TokenStreamException: antlr.TokenStreamException: Could not include 
  include/Mobile_menu.jsp    at 
  weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1090)    
  at 
  weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1065)    
  at 
  weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1058)    
  at 
  weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:855)    
  at 
  weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:3733)    
  at 
  weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3506)    
  at 
  weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1807)    
  at 
  weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1648)    
  at 
  weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1530)


Re: EJB reference caching in actions

2001-05-01 Thread Clarance_Howatt



How about using a factory method.  You put a reference to the factory in the
session and then use it to retrieve any specific beans that you might require.

Just a  thought
C.





[EMAIL PROTECTED] on 05/01/2001 01:58:09 PM

Please respond to [EMAIL PROTECTED]
  
  
  
 To:  [EMAIL PROTECTED]  
  
 cc:  (bcc: Clarance Howatt/Net)  
  
  
  
 Subject: EJB reference caching in actions
  







Hello,

for maintainability reasons I would like to refacture my action classes'
perform()-methods. Since I use stateless session beans for the complete
business logic the code in the perform()-methods looks pretty much the same:

// lookup for the ssb home interface
// create a ssb
// call some business function

The first step and possibly the second one could be eliminated by caching
the home interface and eventually caching the stateless session bean.

So my questions are:
1) Caching the home interfaces should not be a problem. But where should I
put these ? As attributes in the current session ? In a singleton object
that caches them ? Or even in the controller servlet (very bad idea) or the
action class (bad too) ? What about multithreading ?

2) Caching the stateless session beans is even more complicated. If I put
them in session scope then it is likely that the client will keep a
reference to a heavyweight server object throughout its lifecycle. The ejb
container normally has a pool of these but I don't think that the session
scope approach will scale well. So I put them in application scope ? Or make
a singleton object that caches these. Multithreading ?

I think that these are standard problems that have already been solved by
someone. So if anyone has an idea I would much appreciate any answer.

Regards

Nikolaus Rumm







EJB reference caching in actions

2001-05-01 Thread Nikolaus Rumm

Hello,

for maintainability reasons I would like to refacture my action classes'
perform()-methods. Since I use stateless session beans for the complete
business logic the code in the perform()-methods looks pretty much the same:

// lookup for the ssb home interface
// create a ssb
// call some business function

The first step and possibly the second one could be eliminated by caching
the home interface and eventually caching the stateless session bean.

So my questions are:
1) Caching the home interfaces should not be a problem. But where should I
put these ? As attributes in the current session ? In a singleton object
that caches them ? Or even in the controller servlet (very bad idea) or the
action class (bad too) ? What about multithreading ?

2) Caching the stateless session beans is even more complicated. If I put
them in session scope then it is likely that the client will keep a
reference to a heavyweight server object throughout its lifecycle. The ejb
container normally has a pool of these but I don't think that the session
scope approach will scale well. So I put them in application scope ? Or make
a singleton object that caches these. Multithreading ?

I think that these are standard problems that have already been solved by
someone. So if anyone has an idea I would much appreciate any answer.

Regards

Nikolaus Rumm




RE: jsp include exception when using struts on weblogic 6

2001-05-01 Thread Nanduri, Amarnath



Been 
There . Done That. Still crashes with some other exception.. I was wondering if 
i am stepping outside the bounds of the jsp specifications. 
Thanks.
 
cheers,
Amar..

  -Original Message-From: Chen, Yong 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 3:14 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: jsp 
  include exception when using struts on weblogic 6
  JSP 
  spec says:
  <%@ include is a directive, it is effective in the 
  translation-time, it is static
  
   
  Your 
  code is trying to do some dynamic including, so use jsp:include 
  instead.
   
  Yong 
  Chen 
  
-Original Message-From: Nanduri, Amarnath 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 
2001 12:51 PMTo: 
'[EMAIL PROTECTED]'Subject: jsp include exception 
when using struts on weblogic 6
Hi 
Guys,
 
   This question 
is irrelevant to struts and more to do with jsp's. My sincerest apologies if 
i have offended anyone
 
I am getting a 
nasty exception when i try to do the 
following...
 
I am basically 
including an 'include' in an 'include'.  Basically page1.jsp includes a 
page2.jsp. In page2.jsp i make a decision as to whether to include page3.jsp 
(or) page4.jsp ...
 
Basically the 
syntax is...
 
page1.jsp
--
 if some 
condition satisfied 
<%@ include file="page2.jsp" %> 

 

page2.jsp
--
 if some 
condition satisfied 
<%@ include file="page3.jsp" %> 

 else  <%@ include file="page4.jsp" 
%> 
 
 
I am using struts1.0 on weblogic 6. The 
exception i get is below... I tried changing the include to a 
. If so i get an other nasty exception. Any help by the 
gurus is highly 
appreciated.
 
  
 <[WebAppServletContext(7292498,onboard.presentation)] 
Servlet failed with Exceptionjava.lang.RuntimeException: Could not parse 
embedded JSP code: weblogic.utils.ParsingException: nested 
TokenStreamException: antlr.TokenStreamException: Could not include 
include/Mobile_menu.jsp    at 
weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1090)    
at 
weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1065)    
at 
weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1058)    
at 
weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:855)    
at 
weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:3733)    
at 
weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3506)    
at 
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1807)    
at 
weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1648)    
at 
weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1530)


Can each Img be a separate action.

2001-05-01 Thread Alex Colic

Hi,

Lets say you have three images for buttons labelled cancel, modify, create.
Each one of these buttons points to a separate action, e.g.. cancel the
current action, modify the current action and create the record.

Would you use the image or img struts tag? And, how would you specify the
action that each one of these buttons would lead to?

As usual, any help is appreciated.

Regards

Alex




RE: jsp include exception when using struts on weblogic 6

2001-05-01 Thread Chen, Yong



JSP 
spec says:
<%@ 
include is a directive, it is effective in the translation-time, it is 
static

 
Your 
code is trying to do some dynamic including, so use jsp:include 
instead.
 
Yong Chen 


  -Original Message-From: Nanduri, Amarnath 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 
  12:51 PMTo: '[EMAIL PROTECTED]'Subject: jsp 
  include exception when using struts on weblogic 6
  Hi 
  Guys,
   
     
  This question is irrelevant to struts and more to do with jsp's. My sincerest 
  apologies if i have offended anyone
   
  I am getting a nasty exception when i 
  try to do the following...
   
  I am basically including an 'include' in 
  an 'include'.  Basically page1.jsp includes a page2.jsp. In page2.jsp i 
  make a decision as to whether to include page3.jsp (or) page4.jsp 
  ...
   
  Basically the syntax 
  is...
   
  page1.jsp
  --
   if some condition 
  satisfied <%@ include file="page2.jsp" %> 
  
   
  
  page2.jsp
  --
   if some condition 
  satisfied <%@ include file="page3.jsp" %> 
  
   else  <%@ include file="page4.jsp" %> 
  
   
   
  I am using struts1.0 on weblogic 6. The 
  exception i get is below... I tried changing the include to a 
  . If so i get an other nasty exception. Any help by the 
  gurus is highly 
  appreciated.
   

   <[WebAppServletContext(7292498,onboard.presentation)] Servlet 
  failed with Exceptionjava.lang.RuntimeException: Could not parse embedded 
  JSP code: weblogic.utils.ParsingException: nested TokenStreamException: 
  antlr.TokenStreamException: Could not include 
  include/Mobile_menu.jsp    at 
  weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1090)    
  at 
  weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1065)    
  at 
  weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1058)    
  at 
  weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:855)    
  at 
  weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:3733)    
  at 
  weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3506)    
  at 
  weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1807)    
  at 
  weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1648)    
  at 
  weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1530)


Re: "html:message" tag

2001-05-01 Thread Sue Deng

By the way, struts-example gave me the similar error message also, but it worked
before.

Thanks,

-Sue

Sue Deng wrote:

> I put my ApplicationResources.properties file in
> /usr/local/tomcat/classes/net/covalent directory before.  Now i moved it to my
> applications /WEB-INF/classes/net/covalent directory.  And I got "Missing message
> for key logon.title" error, but the logon.title key is in the file.
>
> Thanks,
>
> -Sue
> Ratnadeep Bhattacharjee wrote:
>
> > Chances are the location of your ApplicationResource file is not where
> > ActionServlet is looking for it. For example, if your web.xml looks as follows:
> >
> >   
> > action
> > org.apache.struts.action.ActionServlet
> > 
> >   application
> >   net.covalent.ApplicationResources
> >   
> >   
> >
> > then the ApplicationResources.properties file should be in the
> > WEB-INF/classes/net/covalent/ directory.
> >
> > Hope this helps.
> >
> > -Deep.
> >
> > >
> > > I did not make any changes on the code.  What do you mean the "app
> > > server"?  I am using jakarta-struts-1.0-b1 under Tomcat.  What should I
> > > do now?
> > >
> > > Thanks,
> > >
> > > -Sue
> > >
> > > Jason Chaffee wrote:
> > >
> > > >  Have you made any changes to the code?  The ActionServlet should be
> > > > creating the resource bundle and storing in the servlet context using
> > > > this key. What app server are you using?  There could be a bug in how
> > > > it stores objects in the servlet context, thus the ActionServlet can't
> > > > find anything that has previously been stored there.
> > > >
> > > >  -Original Message-
> > > >  From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > > >  Sent: Tuesday, May 01, 2001 9:39 AM
> > > >  To: [EMAIL PROTECTED]
> > > >  Subject: Re: "html:message" tag
> > > >
> > > >  Thanks, Jason.  But  when I use bean:message, I got "Cannot
> > > >  find message resources under key
> > > >  org.apache.struts.action.MESSAGE" error.
> > > >
> > > >  Thanks,
> > > >
> > > >  -Sue
> > > >
> > > >  Jason Chaffee wrote:
> > > >
> > > > >
> > > > >
> > > > > it should be bean:message
> > > > >
> > > > > -Original Message-
> > > > > From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, April 30, 2001 5:26 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: "html:message" tag
> > > > >
> > > > > Hi,
> > > > >
> > > > > I am trying to build form using struts taglib.  But I get
> > > > > "no such tag
> > > > > message  ..."error when I use "html:message" tag.  I found
> > > > > that
> > > > > struts-html.tld and struts-bean.tld files do not have a
> > > > > tag named
> > > > > "message", but the struts example uses that tag.  Why?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > -Sue
> > > >




RE: "html:message" tag

2001-05-01 Thread Jason Chaffee
Title: RE: "html:message" tag





I find the following configuration easier:


Simply put the the resouce file in /WEB-INF/classes directory.


Then change the deployment descriptor as follows:


   
 action
 org.apache.struts.action.ActionServlet
 
   application
   ApplicationResources


Also, make sure there isn't a typo in your resource file or your jsp page.


-Original Message-
From: Sue Deng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 11:51 AM
To: [EMAIL PROTECTED]
Subject: Re: "html:message" tag



I put my ApplicationResources.properties file in
/usr/local/tomcat/classes/net/covalent directory before.  Now i moved it to my
applications /WEB-INF/classes/net/covalent directory.  And I got "Missing message
for key logon.title" error, but the logon.title key is in the file.


Thanks,


-Sue
Ratnadeep Bhattacharjee wrote:


> Chances are the location of your ApplicationResource file is not where
> ActionServlet is looking for it. For example, if your web.xml looks as follows:
>
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   application
>   net.covalent.ApplicationResources
>   
>   
>
> then the ApplicationResources.properties file should be in the
> WEB-INF/classes/net/covalent/ directory.
>
> Hope this helps.
>
> -Deep.
>
> >
> > I did not make any changes on the code.  What do you mean the "app
> > server"?  I am using jakarta-struts-1.0-b1 under Tomcat.  What should I
> > do now?
> >
> > Thanks,
> >
> > -Sue
> >
> > Jason Chaffee wrote:
> >
> > >  Have you made any changes to the code?  The ActionServlet should be
> > > creating the resource bundle and storing in the servlet context using
> > > this key. What app server are you using?  There could be a bug in how
> > > it stores objects in the servlet context, thus the ActionServlet can't
> > > find anything that has previously been stored there.
> > >
> > >  -Original Message-
> > >  From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > >  Sent: Tuesday, May 01, 2001 9:39 AM
> > >  To: [EMAIL PROTECTED]
> > >  Subject: Re: "html:message" tag
> > >
> > >  Thanks, Jason.  But  when I use bean:message, I got "Cannot
> > >  find message resources under key
> > >  org.apache.struts.action.MESSAGE" error.
> > >
> > >  Thanks,
> > >
> > >  -Sue
> > >
> > >  Jason Chaffee wrote:
> > >
> > > >
> > > >
> > > > it should be bean:message
> > > >
> > > > -Original Message-
> > > > From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, April 30, 2001 5:26 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: "html:message" tag
> > > >
> > > > Hi,
> > > >
> > > > I am trying to build form using struts taglib.  But I get
> > > > "no such tag
> > > > message  ..."error when I use "html:message" tag.  I found
> > > > that
> > > > struts-html.tld and struts-bean.tld files do not have a
> > > > tag named
> > > > "message", but the struts example uses that tag.  Why?
> > > >
> > > > Thanks,
> > > >
> > > > -Sue
> > >





Re: "html:message" tag

2001-05-01 Thread Sue Deng

I put my ApplicationResources.properties file in
/usr/local/tomcat/classes/net/covalent directory before.  Now i moved it to my
applications /WEB-INF/classes/net/covalent directory.  And I got "Missing message
for key logon.title" error, but the logon.title key is in the file.

Thanks,

-Sue
Ratnadeep Bhattacharjee wrote:

> Chances are the location of your ApplicationResource file is not where
> ActionServlet is looking for it. For example, if your web.xml looks as follows:
>
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   application
>   net.covalent.ApplicationResources
>   
>   
>
> then the ApplicationResources.properties file should be in the
> WEB-INF/classes/net/covalent/ directory.
>
> Hope this helps.
>
> -Deep.
>
> >
> > I did not make any changes on the code.  What do you mean the "app
> > server"?  I am using jakarta-struts-1.0-b1 under Tomcat.  What should I
> > do now?
> >
> > Thanks,
> >
> > -Sue
> >
> > Jason Chaffee wrote:
> >
> > >  Have you made any changes to the code?  The ActionServlet should be
> > > creating the resource bundle and storing in the servlet context using
> > > this key. What app server are you using?  There could be a bug in how
> > > it stores objects in the servlet context, thus the ActionServlet can't
> > > find anything that has previously been stored there.
> > >
> > >  -Original Message-
> > >  From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > >  Sent: Tuesday, May 01, 2001 9:39 AM
> > >  To: [EMAIL PROTECTED]
> > >  Subject: Re: "html:message" tag
> > >
> > >  Thanks, Jason.  But  when I use bean:message, I got "Cannot
> > >  find message resources under key
> > >  org.apache.struts.action.MESSAGE" error.
> > >
> > >  Thanks,
> > >
> > >  -Sue
> > >
> > >  Jason Chaffee wrote:
> > >
> > > >
> > > >
> > > > it should be bean:message
> > > >
> > > > -Original Message-
> > > > From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, April 30, 2001 5:26 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: "html:message" tag
> > > >
> > > > Hi,
> > > >
> > > > I am trying to build form using struts taglib.  But I get
> > > > "no such tag
> > > > message  ..."error when I use "html:message" tag.  I found
> > > > that
> > > > struts-html.tld and struts-bean.tld files do not have a
> > > > tag named
> > > > "message", but the struts example uses that tag.  Why?
> > > >
> > > > Thanks,
> > > >
> > > > -Sue
> > >




RE: Can not read i18n properties file

2001-05-01 Thread Sean Pau
Title: RE: Can not read i18n properties file



It works when I set the 
html meta Content-Type charset to 
UTF-8. thanks

  -Original Message-From: Jason Chaffee 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 02 May, 2001 2:18 
  AMTo: '[EMAIL PROTECTED]'Subject: RE: Can 
  not read i18n properties file
  That would be my guess as well.  Take a look at the html 
  source that is being produced and see if there is a charset header, if there 
  isn't copy the source to a static file and add a charset header and try to 
  load it in IE, this should give you your answer.
  -Original Message- From: 
  shunhui zhu [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, May 01, 2001 11:18 AM To: [EMAIL PROTECTED] Subject: Re: 
  Can not read i18n properties file 
  Pau, I did a similar test for a chinese version with 
  resource_zh.properties. If I change my browser 
  language preferences (in IE), I do get the chinese 
  version, although to display it correctly, I needed to 
  select chinese encoding in IE's view menu. My guess is 
  that the response header is not setting the "Content-language" header or the charset header, but I haven't looked into it. 
  Shunhui --- Sean Pau 
  <[EMAIL PROTECTED]> wrote: > I test creating 
  resource properties file for > Japanese language. I 
  use > Windows Notepad and edit 
  resources_ja.properties and > save it under UTF-8 
  and > Unicode format. Struts could display when the 
  file > is in UTF-8 format but > the text came out rubbish. When the file is in > Unicode format, Struts is not > reading 
  it, instead it reads the default > 
  resources.properties file. Both > UTF-8 and Unicode 
  format resources_ja.properties > files display the 
  Japanese > text OK when I drag it into IE and also 
  WordPad. Pls > help. Thanks > > > 
  _ 
  > Do You Yahoo!? > Get your 
  free @yahoo.com address at > http://mail.yahoo.com > 
  __ 
  Do You Yahoo!? Yahoo! Auctions - buy 
  the things you want at great prices http://auctions.yahoo.com/ 



Re: Can not read i18n properties file

2001-05-01 Thread Greg Murray


Hi all,
I have encountered this behavior in the past .properties files
must be converted to ascii using the java sdk native to ascii
before the display. Once converted your characters should be viewable.
Also remember to set the Content-Type as specified.

 
Jason Chaffee wrote:
 
That would be my guess as well.  Take a look at the
html source that is being produced and see if there is a charset header,
if there isn't copy the source to a static file and add a charset header
and try to load it in IE, this should give you your answer.
-Original Message-
From: shunhui zhu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 11:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Can not read i18n properties file
Pau, I did a similar test for a chinese version with
resource_zh.properties. If I change my browser
language preferences (in IE), I do get the chinese
version, although to display it correctly, I needed to
select chinese encoding in IE's view menu. My guess is
that the response header is not setting the
"Content-language" header or the charset header, but
I
haven't looked into it.
Shunhui
--- Sean Pau <[EMAIL PROTECTED]> wrote:
> I test creating resource properties file for
> Japanese language. I use
> Windows Notepad and edit resources_ja.properties and
> save it under UTF-8 and
> Unicode format. Struts could display when the file
> is in UTF-8 format but
> the text came out rubbish. When the file is in
> Unicode format, Struts is not
> reading it, instead it reads the default
> resources.properties file. Both
> UTF-8 and Unicode format resources_ja.properties
> files display the Japanese
> text OK when I drag it into IE and also WordPad. Pls
> help. Thanks
>
>
>
_
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
>
__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: "html:message" tag

2001-05-01 Thread Gogineni, Pratima

 Just checking ... you do have an ApplicationResources.properties file and a
message for the key you are using in the tag in that file?

-Original Message-
From: Sue Deng
To: [EMAIL PROTECTED]
Sent: 5/1/01 11:10 AM
Subject: Re: "html:message" tag

I did not make any changes on the code.  What do you mean the "app
server"?  I am using jakarta-struts-1.0-b1 under Tomcat.  What should I
do now? 

Thanks, 


-Sue 


Jason Chaffee wrote: 


 Have you made any changes to the code?  The ActionServlet should be
creating the resource bundle and storing in the servlet context using
this key. What app server are you using?  There could be a bug in how it
stores objects in the servlet context, thus the ActionServlet can't find
anything that has previously been stored there. 

-Original Message- 
From: Sue Deng [ mailto:[EMAIL PROTECTED]  ]

Sent: Tuesday, May 01, 2001 9:39 AM 
To: [EMAIL PROTECTED] 
Subject: Re: "html:message" tag 
 
Thanks, Jason.  But  when I use bean:message, I got "Cannot find message
resources under key org.apache.struts.action.MESSAGE" error. 

Thanks, 


-Sue 


Jason Chaffee wrote: 


  

it should be bean:message 


-Original Message- 
From: Sue Deng [ mailto:[EMAIL PROTECTED]  ]

Sent: Monday, April 30, 2001 5:26 PM 
To: [EMAIL PROTECTED] 
Subject: "html:message" tag 


Hi, 


I am trying to build form using struts taglib.  But I get "no such tag 
message  ..."error when I use "html:message" tag.  I found that 
struts-html.tld and struts-bean.tld files do not have a tag named 
"message", but the struts example uses that tag.  Why? 


Thanks, 


-Sue





RE: 2 Problems

2001-05-01 Thread Abraham Kang



Hi 
Yogesh,
 
    It looks like you need the TOKEN functionality.  
I don't know if the token functionality is available in 0.5.  You will need 
to look at the source code for the saveToken( request ) method.  You 
might be able to mimic the functionality in 0.5 by rebuilding the code.  

 
You 
will need an action object to call saveToken( ) before displaying the 
form.  The in the Action object that does the actual insert you will need 
to
call 
isTokenValid( request ) to see if you should perform the update.  If the 
token is valid call resetToken(request) and do you insert.  If the user 
tries to submit again the isTokenValid(request) will return 
false.
 
Hope 
This Helps,
Abraham

  -Original Message-From: yogesh kapoor 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 9:39 
  AMTo: [EMAIL PROTECTED]Subject: 2 
  Problems
  
  Hi All,
     
  I am using struts framework(release 0.5) for developing my web 
  application(with Jrun-3.0 and Netscape Enterprise Server-3.6). I am facing 2 
  problems and hape that some one out there would definetly have answers to 
  them.here are they.
  1)Just like we use actionbase and actionform beans in struts , i am also 
  using one 'Open Actionbase Bean' and one 'Save Actionbase Bean' to open and 
  save my forms. While saving the form using 'Save Actionbase Bean' i call 'Open 
  Actionbase Bean' from within the 'Save Actionbase Bean' to show the 
  inserted/updated  form back to the user. But now after saving the form 
  and displaying it back, if i do a reload of the page, the insert and update 
  operation get performed again(which should not happen). So i have inserted a 
  new record and do the reload then a duplicate record gets inserted into 
  my table.How can i avoid this to happen?
  2)I am using a customized jdbc api, which allows only one resultset and one 
  statement object per connection object.I have a page(with two frames) where i 
  accept some search criteria from the user(on the top frame) , do the search in 
  the database and display the list of records found in bottom frame.But the 
  problerm occurs when the user hits the search button multiple times , as in 
  that case i receive an exception because my api allows only one resultset 
  object open .I am making the database call in an Actionbase Bean. But i am not 
  able to figure out that when a user hits the search(submit) button 
  multiple times(say twice) how much my first request had progressed before 
  getting terminated. Can i find this in any way , so that i can close my JDBC 
  objetcs before the next request starts executing.
  Thanks in advance,
  Regards,
  Yogesh
  
  Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
  


RE: Can not read i18n properties file

2001-05-01 Thread Jason Chaffee
Title: RE: Can not read i18n properties file





That would be my guess as well.  Take a look at the html source that is being produced and see if there is a charset header, if there isn't copy the source to a static file and add a charset header and try to load it in IE, this should give you your answer.

-Original Message-
From: shunhui zhu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 11:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Can not read i18n properties file



Pau, I did a similar test for a chinese version with
resource_zh.properties. If I change my browser
language preferences (in IE), I do get the chinese
version, although to display it correctly, I needed to
select chinese encoding in IE's view menu. My guess is
that the response header is not setting the
"Content-language" header or the charset header, but I
haven't looked into it. 


Shunhui
--- Sean Pau <[EMAIL PROTECTED]> wrote:
> I test creating resource properties file for
> Japanese language. I use
> Windows Notepad and edit resources_ja.properties and
> save it under UTF-8 and
> Unicode format. Struts could display when the file
> is in UTF-8 format but
> the text came out rubbish. When the file is in
> Unicode format, Struts is not
> reading it, instead it reads the default
> resources.properties file. Both
> UTF-8 and Unicode format resources_ja.properties
> files display the Japanese
> text OK when I drag it into IE and also WordPad. Pls
> help. Thanks
> 
> 
>
_
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
> 



__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/





Re: "html:message" tag

2001-05-01 Thread Ratnadeep Bhattacharjee


Chances are the location of your ApplicationResource file is not where 
ActionServlet is looking for it. For example, if your web.xml looks as follows:


  
action
org.apache.struts.action.ActionServlet

  application
  net.covalent.ApplicationResources
  
  
  
then the ApplicationResources.properties file should be in the 
WEB-INF/classes/net/covalent/ directory.

Hope this helps.

-Deep.

> 
> I did not make any changes on the code.  What do you mean the "app
> server"?  I am using jakarta-struts-1.0-b1 under Tomcat.  What should I
> do now?
> 
> Thanks,
> 
> -Sue
> 
> Jason Chaffee wrote:
> 
> >  Have you made any changes to the code?  The ActionServlet should be
> > creating the resource bundle and storing in the servlet context using
> > this key. What app server are you using?  There could be a bug in how
> > it stores objects in the servlet context, thus the ActionServlet can't
> > find anything that has previously been stored there.
> >
> >  -Original Message-
> >  From: Sue Deng [mailto:[EMAIL PROTECTED]]
> >  Sent: Tuesday, May 01, 2001 9:39 AM
> >  To: [EMAIL PROTECTED]
> >  Subject: Re: "html:message" tag
> >
> >  Thanks, Jason.  But  when I use bean:message, I got "Cannot
> >  find message resources under key
> >  org.apache.struts.action.MESSAGE" error.
> >
> >  Thanks,
> >
> >  -Sue
> >
> >  Jason Chaffee wrote:
> >
> > >
> > >
> > > it should be bean:message
> > >
> > > -Original Message-
> > > From: Sue Deng [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, April 30, 2001 5:26 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: "html:message" tag
> > >
> > > Hi,
> > >
> > > I am trying to build form using struts taglib.  But I get
> > > "no such tag
> > > message  ..."error when I use "html:message" tag.  I found
> > > that
> > > struts-html.tld and struts-bean.tld files do not have a
> > > tag named
> > > "message", but the struts example uses that tag.  Why?
> > >
> > > Thanks,
> > >
> > > -Sue
> >





RE: "html:message" tag

2001-05-01 Thread Jason Chaffee



I 
haven't used Tomcat, but I believe quite a few people are using it with Struts 
without any problems.  Can you give me more precise details?  What 
does your deployment descriptor look like?  Is your action class do 
anything with the servlet, etc.  Also, what appears on the console when 
this errors occurs?

  -Original Message-From: Sue Deng 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 11:11 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
  "html:message" tagI did not make any changes on the 
  code.  What do you mean the "app server"?  I am using 
  jakarta-struts-1.0-b1 under Tomcat.  What should I do now? 
  Thanks, 
  -Sue 
  Jason Chaffee wrote: 
   Have you made any changes to 
the code?  The ActionServlet should be creating the resource bundle and 
storing in the servlet context using this 
key. What app server are you 
using?  There could be a bug in how it stores objects in the servlet 
context, thus the ActionServlet can't find anything that has previously been 
stored there. 

  -Original Message- From: Sue Deng [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, May 01, 2001 
  9:39 AM To: 
  [EMAIL PROTECTED] Subject: Re: "html:message" tag 
   Thanks, Jason.  But  when I use bean:message, I 
  got "Cannot find message resources under key 
  org.apache.struts.action.MESSAGE" error. 
  Thanks, 
  -Sue 
  Jason Chaffee wrote: 
    
it should be bean:message 
-Original Message- From: Sue Deng [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 30, 2001 5:26 PM To: [EMAIL PROTECTED] Subject: "html:message" tag 
Hi, 
I am trying to build form using struts taglib.  
But I get "no such tag message  ..."error 
when I use "html:message" tag.  I found that struts-html.tld and struts-bean.tld files do not have a tag 
named "message", but the struts example uses 
that tag.  Why? 
Thanks, 
-Sue


Re: Can not read i18n properties file

2001-05-01 Thread shunhui zhu

Pau, I did a similar test for a chinese version with
resource_zh.properties. If I change my browser
language preferences (in IE), I do get the chinese
version, although to display it correctly, I needed to
select chinese encoding in IE's view menu. My guess is
that the response header is not setting the
"Content-language" header or the charset header, but I
haven't looked into it. 

Shunhui
--- Sean Pau <[EMAIL PROTECTED]> wrote:
> I test creating resource properties file for
> Japanese language. I use
> Windows Notepad and edit resources_ja.properties and
> save it under UTF-8 and
> Unicode format. Struts could display when the file
> is in UTF-8 format but
> the text came out rubbish. When the file is in
> Unicode format, Struts is not
> reading it, instead it reads the default
> resources.properties file. Both
> UTF-8 and Unicode format resources_ja.properties
> files display the Japanese
> text OK when I drag it into IE and also WordPad. Pls
> help. Thanks
> 
> 
>
_
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: "html:message" tag

2001-05-01 Thread Sue Deng


I did not make any changes on the code.  What do you mean the "app
server"?  I am using jakarta-struts-1.0-b1 under Tomcat.  What
should I do now?
Thanks,
-Sue
Jason Chaffee wrote:
 Have
you made any changes to the code?  The ActionServlet should be creating
the resource bundle and storing in the servlet context using this key. What
app server are you using?  There could be a bug in how it stores objects
in the servlet context, thus the ActionServlet can't find anything that
has previously been stored there.

-Original
Message-
From: Sue Deng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001
9:39 AM
To: [EMAIL PROTECTED]
Subject: Re: "html:message"
tag
 
Thanks, Jason.  But  when I use bean:message, I got "Cannot find
message resources under key org.apache.struts.action.MESSAGE" error.
Thanks,
-Sue
Jason Chaffee wrote:
 
it should be bean:message
-Original Message-
From: Sue Deng [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 5:26 PM
To: [EMAIL PROTECTED]
Subject: "html:message" tag
Hi,
I am trying to build form using struts taglib.  But
I get "no such tag
message  ..."error when I use "html:message" tag. 
I found that
struts-html.tld and struts-bean.tld files do not have
a tag named
"message", but the struts example uses that tag. 
Why?
Thanks,
-Sue





Can not read i18n properties file

2001-05-01 Thread Sean Pau

I test creating resource properties file for Japanese language. I use
Windows Notepad and edit resources_ja.properties and save it under UTF-8 and
Unicode format. Struts could display when the file is in UTF-8 format but
the text came out rubbish. When the file is in Unicode format, Struts is not
reading it, instead it reads the default resources.properties file. Both
UTF-8 and Unicode format resources_ja.properties files display the Japanese
text OK when I drag it into IE and also WordPad. Pls help. Thanks


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: Struts::WAP ... sorta

2001-05-01 Thread Richard Backhouse

Anthony,

I have just completed an hdml interface to my already existing j2ee/struts based
application. It turned out to be very successful in how it works with the struts
controller architecture. It ended up being an additional webapp that I added to 
provide an interface to my ejb backend. The action classes that I wrote for the 
hdml jsps worked with the same data strutures that I had in place for my html 
front end.

The majority of the work was writing hdml ui tags to wrapper most of the hdml 
tags (choice, entry, ce etc.) I had to use these when they were dependent on 
dynamic content. They generally pulled values out of beans stored in the 
request/session. These tags complimented the logic and bean tags that struts 
provides. You could see them as being hdml equivalent of the struts html tags. 

Right now I am putting together an example hdml/struts app that demonstrates 
what I have put together with the goal of producing a white paper. The tags I 
have need more work to make them more reusable. 

Richard Backhouse
Oak Grove Software

Quoting Anthony Martin <[EMAIL PROTECTED]>:

> I got WAP to work using Struts.  I couldn't find any WML taglibs, so I
> just
> use HTML comments so I could still benefited from the standard tags like
>  and .  Example:
> 
> <%@ page language="java" contentType="text/vnd.wap.wml"
> %><%@ 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="logic"
> %>
>"http://www.phone.com/dtd/wml11.dtd";>
> 
> 
>  
>  
>  
>   
>   Matched: 
>   .
>   . other cool stuff here
>   .
>   
>  
>  
>  
> 
> 
> Hope this is helpful to someone, and maybe someone else has a tip/gotcha
> for
> me.
> 
> 
> Anthony
> 
> It is by caffeine alone I set my mind in motion.
> It is by the Beans of Java that thoughts acquire speed,
> the hands acquire shaking, the shaking becomes a warning.
> It is by caffeine alone I set my mind in motion.
> 



using value of bean in my tag.

2001-05-01 Thread Alex Colic

Hi, I have a tag setup as follows:


  
  

  



I have an object in the servlet context that holds a vector of numbers
corresponding to categories. I then have a custom tag that needs a number
passed to it. The 


What is the suggested style for including maxlength & size parameters in a form

2001-05-01 Thread Jeff Trent



For example,
    

 
I find this style to be somewhat 
objectionable.  Is there a better way?
 


RE: Struts::WAP ... sorta

2001-05-01 Thread Nanduri, Amarnath

Excellent Anthony. Please keep me updated on any developments that you might
have done in the future. In my current project (we are using struts 1.0) we
might be wap-enabling them and i am really interested in minimizing the
headache associated with development for WAP. Thanks a lot.

My email address :  [EMAIL PROTECTED]

-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 1:33 PM
To: '[EMAIL PROTECTED]'
Subject: Struts::WAP ... sorta


I got WAP to work using Struts.  I couldn't find any WML taglibs, so I just
use HTML comments so I could still benefited from the standard tags like
 and .  Example:

<%@ page language="java" contentType="text/vnd.wap.wml"
%><%@ 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="logic"
%>
http://www.phone.com/dtd/wml11.dtd";>


 
 
 
  
  Matched: 
  .
  . other cool stuff here
  .
  
 
 
 


Hope this is helpful to someone, and maybe someone else has a tip/gotcha for
me.


Anthony

It is by caffeine alone I set my mind in motion.
It is by the Beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.



jsp include exception when using struts on weblogic 6

2001-05-01 Thread Nanduri, Amarnath



Hi 
Guys,
 
   This 
question is irrelevant to struts and more to do with jsp's. My sincerest 
apologies if i have offended anyone
 
I am getting a nasty exception when i try 
to do the following...
 
I am basically including an 'include' in 
an 'include'.  Basically page1.jsp includes a page2.jsp. In page2.jsp i 
make a decision as to whether to include page3.jsp (or) page4.jsp 
...
 
Basically the syntax 
is...
 
page1.jsp
--
 if some condition 
satisfied <%@ include file="page2.jsp" %> 

 

page2.jsp
--
 if some condition 
satisfied <%@ include file="page3.jsp" %> 

 else  <%@ include file="page4.jsp" %> 

 
 
I am using struts1.0 on weblogic 6. The 
exception i get is below... I tried changing the include to a 
. If so i get an other nasty exception. Any help by the 
gurus is highly 
appreciated.
 
   
<[WebAppServletContext(7292498,onboard.presentation)] Servlet failed with 
Exceptionjava.lang.RuntimeException: Could not parse embedded JSP code: 
weblogic.utils.ParsingException: nested TokenStreamException: 
antlr.TokenStreamException: Could not include 
include/Mobile_menu.jsp    at 
weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1090)    
at 
weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1065)    
at 
weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1058)    
at 
weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:855)    
at 
weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:3733)    
at 
weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3506)    
at 
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1807)    
at 
weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1648)    
at 
weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1530)


Struts::WAP ... sorta

2001-05-01 Thread Anthony Martin

I got WAP to work using Struts.  I couldn't find any WML taglibs, so I just
use HTML comments so I could still benefited from the standard tags like
 and .  Example:

<%@ page language="java" contentType="text/vnd.wap.wml"
%><%@ 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="logic"
%>
http://www.phone.com/dtd/wml11.dtd";>


 
 
 
  
  Matched: 
  .
  . other cool stuff here
  .
  
 
 
 


Hope this is helpful to someone, and maybe someone else has a tip/gotcha for
me.


Anthony

It is by caffeine alone I set my mind in motion.
It is by the Beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.



RE: "html:message" tag

2001-05-01 Thread Jason Chaffee



Have 
you made any changes to the code?  The ActionServlet should be creating the 
resource bundle and storing in the servlet context using this 
key.
 
What 
app server are you using?  There could be a bug in how it stores objects in 
the servlet context, thus the ActionServlet can't find anything that has 
previously been stored there.

  -Original Message-From: Sue Deng 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 9:39 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
  "html:message" tagThanks, Jason.  But  when I 
  use bean:message, I got "Cannot find message resources under key 
  org.apache.struts.action.MESSAGE" error. 
  Thanks, 
  -Sue 
  Jason Chaffee wrote: 
    
it should be bean:message 
-Original Message- From: 
Sue Deng [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 30, 2001 5:26 PM To: [EMAIL PROTECTED] Subject: 
"html:message" tag 
Hi, 
I am trying to build form using struts taglib.  But I 
get "no such tag message  ..."error when I use 
"html:message" tag.  I found that struts-html.tld and struts-bean.tld files do not have a tag 
named "message", but the struts example uses that 
tag.  Why? 
Thanks, 
-Sue


RE: Iterate certain number of times?

2001-05-01 Thread shunhui zhu

Hi, I have a similar problem. I'd like to use the
iterate tag to present a list of objects in a tabular
form, but I'd like to specify how many per row. Is
there an easy way to do that using only the tags?

Thanks.

Shunhui
--- [EMAIL PROTECTED] wrote:
> 
> 
> Does anyone know if any of the other taglibs
> provides a for loop?
> 
> Dave
> 
> 
> 
> 
> 
> [EMAIL PROTECTED] on
> 04/30/2001 01:27:07 PM
> 
> Please respond to
> [EMAIL PROTECTED]
> 
> To:  
> [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: Iterate certain number of times?
> 
> 
> 
> 
> 
> Hey that's pretty cool.  I got it working in about
> 10 minutes.  One question
> though.  I had to move my iterate bean from Request
> to Session scope.  Is there
> any way to keep it at the request level?
> 
> Thanks,
> Donnie Hall
> 
> 
> 
> |+-->
> ||  kbasel@freemail.|
> ||  absa.co.za  |
> ||  |
> ||  04/27/2001 03:21|
> ||  PM  |
> ||  Please respond  |
> ||  to struts-user  |
> ||  |
> |+-->
>  
>
>|
>   | 
>   |
>   |   To: [EMAIL PROTECTED]
>   |
>   |   cc: (bcc: Donnie Hall/Enron
> Communications)  |
>   |   Subject: RE: Iterate certain number of
> times?|
>  
>
>|
> 
> 
> 
> Hi,
> 
> There's a good pager taglib at jsptags.com. I've
> used it in a struts app and
> does the job quite well when embedded in the iterate
> tags.
> 
> 
>
>Item Details
>
> 
> 
> Hope it helps,
> karl
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 27 April 2001 09:29
> To: [EMAIL PROTECTED]
> Subject: Iterate certain number of times?
> 
> 
> 
> 
> Hi.
> 
> Am wanting to iterate a certain number of times,
> based on a value in my form
> bean, to create a set of page links for the number
> of pages the user can
> view
> (similar to at the bottom of most search engine
> results).
> 
> How do I do this with Struts?  Obviously I am not
> iterating over a
> collection.
> But surely it is possible - what am I missing?
> 
> Many thanks,
> 
> Dave
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: wizard style example, anywhere?

2001-05-01 Thread Jason Chaffee



The 
form bean will call it's reset() method for each page.  Therefore, change 
your implementation of the reset() method to not remove your 
data.

  -Original Message-From: Jeff Trent 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 9:11 
  AMTo: [EMAIL PROTECTED]Cc: 
  [EMAIL PROTECTED]Subject: Re: wizard style example, 
  anywhere?
  I followed the wizard example source code (see 
  below) but I have a problem in that my Form data gets recycled between pages 
  of the wizard.  In another words, if I click next on page 1, then click 
  prev on page 2, my form data disappears from page 1.  Why is this 
  happening?
   
  Also, it appears that the Form object always 
  exists in the Action class.  The example that comes with Struts shows 
  conditional logic that populates either the request or session attribute in 
  the case where the form is null.  
  - Jeff I use something like the following in my struts-config.xml file:


  
  
  
  
  


In page1.jsp I declare the following buttons:

  
  

  

Page2.jsp:

  
  

  

  

  


Page3.jsp

  
  

  

  

  

Page4.jsp

  
  

  

  

  


In my SignupForm.java I define all fields for each page. Then I have a
switch statement in the validate method to validate the data for each page:

public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request)
{

ActionErrors errors = new ActionErrors();
switch (page)
{
case 1:
// Validate fields on page 1
case 2:
   ///
}
   return errors;
}


Finally in the SignupAction.java I check for which button was pressed and
return the next or previous page:

public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException
{

HttpSession session = request.getSession();
SignupForm signupform = (SignupForm) form;
int page = signupform.getPage();

String label = request.getParameter("submit");
if (label != null)
{
if ("<< Prev".equals(label))// Previous was
pressed
{
return mapping.findForward("page"+(page-1));
}
else if ("Next >>".equals(label))// Next was pressed
{
return mapping.findForward("page"+(page+1));//
Finished was pressed
}
else if ("Finish".equals(label))
{
// Do finish work, add data to database, whatever
}
. return(mapping.findForward("success"));


I'm new to struts (about 2 weeks now). I tried to find examples but couldn't
find any. So I hacked out this. Perhaps if someone has a better way we can
all learn something new.

I hope this helps.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 9:51 AM
Subject: wizard style example, anywhere?


> Hello struts-users,
>
> I am very new to Struts (or JSP for that matter), and in need of
> some examples that I can get my hands on.
>
> Specifically, an application that uses "wizard" style, multiple-page
> input forms would be very nice. Couple of Struts documents I looked
> mention that Struts works well with wizard style application, but I get
> confused when it comes to writing struts-config.xml, JSPs that share
> the same ActionForm or Action, etc.. I gotta see it working before I
> start building mine.
>
> Good examples, anywhere, anyone?
>
> thanks,
>
> - kazumi
>



RE: Reducing the burden on ActionServlet.

2001-05-01 Thread Jason Chaffee



Yes, 
you can, but you will need to extend the ActionServlet to load each config 
file. 

  -Original Message-From: Tewathia, Atul 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 
  6:51 AMTo: [EMAIL PROTECTED]Subject: RE: 
  Reducing the burden on ActionServlet.
  As 
  far as I can recall the struts-config.xml file is loaded and parsed in the 
  initMappings() method of ActionServlet. Can we really have more than 
  one configuration file in our application.
  
-Original Message-From: Jason Chaffee 
[mailto:[EMAIL PROTECTED]]Sent: Saturday, April 28, 2001 
10:35 AMTo: [EMAIL PROTECTED]Subject: Re: 
Reducing the burden on ActionServlet.One of the 
benefits of using servlets is their ability to spawn threads instead of 
creating a process each time.  I don't think you are going to have to 
worry about the load on the servlet, the problem would be with the load on 
the server and you can do some type of load balancing and clustering for 
that.  As for the managing of one config file, I would suggest 
extending the ActionServlet to load multiple files, that is if you have some 
way to logically group the different files, this is a technique that I use 
and it works quite well.  We have multiple "projects" in our web app 
and each project has its own config file.  I hope this helps. 
"Tewathia, Atul" wrote: 
  
  In our project we have more than one 
  hundred jsp (each having an average of 2 or 3 forms )and we have already 
  decided to use struts as our framework. Now the dilema :- We found that 
  managing such a large number of jsp from a single stuts-config.xml file 
  will be a huge  burden. Plus, it seems the ActionServlet will be hard 
  pressed always, as a controller. Considering both these facts we realize 
  that there should be a mechanism to share the load of servlet through some 
  way. Though this can be achieved by using more than one servlet , we don't 
  want to use this solution because it is highlt complex considering the 
  projects interwoven functional requirements. Is there some way by which we can accomplish an 
  efficient way to manage a large number of jsp files and to increase the 
  performance by reducing load on the servlet. 
  Thanking in 
advance.
-- Jason Chaffee Software Engineer MetaTV Inc. 
Phone:(415) 289-8516   


RE: Iterate certain number of times?

2001-05-01 Thread dhay



Does anyone know if any of the other taglibs provides a for loop?

Dave





[EMAIL PROTECTED] on 04/30/2001 01:27:07 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: Iterate certain number of times?





Hey that's pretty cool.  I got it working in about 10 minutes.  One question
though.  I had to move my iterate bean from Request to Session scope.  Is there
any way to keep it at the request level?

Thanks,
Donnie Hall



|+-->
||  kbasel@freemail.|
||  absa.co.za  |
||  |
||  04/27/2001 03:21|
||  PM  |
||  Please respond  |
||  to struts-user  |
||  |
|+-->
  >|
  ||
  |   To: [EMAIL PROTECTED]   |
  |   cc: (bcc: Donnie Hall/Enron Communications)  |
  |   Subject: RE: Iterate certain number of times?|
  >|



Hi,

There's a good pager taglib at jsptags.com. I've used it in a struts app and
does the job quite well when embedded in the iterate tags.


   
   Item Details
   


Hope it helps,
karl

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 27 April 2001 09:29
To: [EMAIL PROTECTED]
Subject: Iterate certain number of times?




Hi.

Am wanting to iterate a certain number of times, based on a value in my form
bean, to create a set of page links for the number of pages the user can
view
(similar to at the bottom of most search engine results).

How do I do this with Struts?  Obviously I am not iterating over a
collection.
But surely it is possible - what am I missing?

Many thanks,

Dave
















2 Problems

2001-05-01 Thread yogesh kapoor

Hi All,
   I am using struts framework(release 0.5) for developing my web application(with Jrun-3.0 and Netscape Enterprise Server-3.6). I am facing 2 problems and hape that some one out there would definetly have answers to them.here are they.
1)Just like we use actionbase and actionform beans in struts , i am also using one 'Open Actionbase Bean' and one 'Save Actionbase Bean' to open and save my forms. While saving the form using 'Save Actionbase Bean' i call 'Open Actionbase Bean' from within the 'Save Actionbase Bean' to show the inserted/updated  form back to the user. But now after saving the form and displaying it back, if i do a reload of the page, the insert and update operation get performed again(which should not happen). So i have inserted a new record and do the reload then a duplicate record gets inserted into my table.How can i avoid this to happen?
2)I am using a customized jdbc api, which allows only one resultset and one statement object per connection object.I have a page(with two frames) where i accept some search criteria from the user(on the top frame) , do the search in the database and display the list of records found in bottom frame.But the problerm occurs when the user hits the search button multiple times , as in that case i receive an exception because my api allows only one resultset object open  .I am making the database call in an Actionbase Bean. But i am not able to figure out that when a user hits the search(submit) button multiple times(say twice) how much my first request had progressed before getting terminated. Can i find this in any way , so that i can close my JDBC objetcs before the next request starts executing.
Thanks in advance,
Regards,
YogeshGet Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


RE: Struts and VisualAge 3.5.3 with WTE

2001-05-01 Thread Nick Chalko

When I try to start my struts application (which works under VAJ 3.5 and
TomCat 3.1) I get
avax.servlet.ServletException: java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.SAXParserFactoryImpl
which is strange because I have jaxp in a projects and both WTE and the
webapp classpath point to it.

any ideas?

R,
Nick

log output ->


[01.05.01 09:34:24:977 PDT] 5919 ServletInstan A SRVE0048I: Loading servlet:
"action"
[01.05.01 09:34:25:528 PDT] 5919 WebGroup  A SRVE0091I: [Servlet LOG]:
"action: init"
[01.05.01 09:34:25:648 PDT] 5919 WebGroup  A SRVE0091I: [Servlet LOG]:
"action: Initializing configuration from resource path
/WEB-INF/struts-config.xml"
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'valoader:/C:/IBM/VAJ/ide/project_resources/struts/org/apache/struts/resourc
es/struts-config_1_0.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
'valoader:/C:/IBM/VAJ/ide/project_resources/struts/org/apache/struts/resourc
es/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'valoader:/C:/IBM/VAJ/ide/project_resources/struts/org/apache/struts/resourc
es/web-app_2_3.dtd'
[01.05.01 09:34:25:818 PDT] 5919 ServletInstan X Uncaught init() exception
thrown by servlet {0}: {1}
 "action"
 javax.servlet.ServletException:
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.SAXParserFactoryImpl
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.Throwable)
void com.ibm.servlet.engine.webapp.StrictServletInstance.doInit()
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(javax.servlet.Ser
vletConfig)
void
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(com.ibm.servle
t.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletConfig)
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(javax.servlet.Serv
letConfig)
void com.ibm.servlet.engine.webapp.ServletInstance.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void
com.ibm.servlet.engine.webapp.ServletManager.addServlet(java.lang.String,
javax.servlet.Servlet, java.util.Properties)
void
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(java.lang.Str
ing)
void
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets()
void com.ibm.servlet.engine.webapp.WebApp.loadServletManager()
void
com.ibm.servlet.engine.webapp.WebApp.init(com.ibm.servlet.engine.config.WebA
ppInfo, com.ibm.servlet.engine.webapp.WebAppContext)
void com.ibm.servlet.engine.srt.WebGroup.loadWebApp()
void
com.ibm.servlet.engine.srt.WebGroup.init(com.ibm.servlet.engine.ServletHost,
com.ibm.servlet.engine.config.WebGroupInfo)
void com.ibm.servlet.engine.ServletHost.loadWebGroups()
void
com.ibm.servlet.engine.ServletHost.init(com.ibm.servlet.engine.ServletEngine
, com.ibm.servlet.engine.config.ServletHostInfo)
void com.ibm.servlet.engine.ServletEngine.loadServletHosts()
void
com.ibm.servlet.engine.ServletEngine.init(com.ibm.servlet.engine.config.Serv
letEngineInfo)
com.ibm.servlet.engine.ServletEngine
com.ibm.servlet.engine.ServletEngine.getEngine()
void
com.ibm.ivj.control.node.ServletEngineRunner.startServletEngine(boolean)
boolean com.ibm.ivj.control.node.ServletEngineRunner.startServer()
void
com.ibm.ivj.control.node.ServletEngineRunner.main(java.lang.String [])
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object,
java.lang.Object [])




Re: "html:message" tag

2001-05-01 Thread Sue Deng


Thanks, Jason.  But  when I use bean:message, I got "Cannot find
message resources under key org.apache.struts.action.MESSAGE" error.
Thanks,
-Sue
Jason Chaffee wrote:
 
it should be bean:message
-Original Message-
From: Sue Deng [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 5:26 PM
To: [EMAIL PROTECTED]
Subject: "html:message" tag
Hi,
I am trying to build form using struts taglib.  But
I get "no such tag
message  ..."error when I use "html:message" tag. 
I found that
struts-html.tld and struts-bean.tld files do not have
a tag named
"message", but the struts example uses that tag. 
Why?
Thanks,
-Sue



Re: wizard style example, anywhere?

2001-05-01 Thread struts

one of the first things the ActionServlet does after
identifying/creating a FormBean instance is calling FormBean.reset()
on it. you'll need to add a similar switch() or conditional in your
reset() method so all your fields aren't initialized.

not sure about 2. i think they were just checking whether it was in
the request or session scopes, but it was always defined in at least
one of those two not exactly sure about your context.

jae

Jeff Trent writes:
 > I followed the wizard example source code (see below) but I have a
 > problem in that my Form data gets recycled between pages of the
 > wizard.  In another words, if I click next on page 1, then click
 > prev on page 2, my form data disappears from page 1.  Why is this
 > happening?
 >
 > Also, it appears that the Form object always exists in the Action class.  The 
 >example that comes with Struts shows conditional logic that populates either the 
 >request or session attribute in the case where the form is null.  
 > - Jeff



RE: Returning from a form page

2001-05-01 Thread James Howe

Thanks for the tip.  I had considered doing something like that but somehow 
convinced myself that it probably wouldn't work before even giving it a try.

At 02:42 PM 4/30/2001 -0700, you wrote:
>If you hard code a parameter into the href or page attribute of 
>, it is smart enough to know how to append the other
>parameters contained in your parameter map.  For example if your page 
>value is "/myForm.do?ref=1", and your parameter map contains
>the pairs param1=abc and param2=def,  will correctly form the URL:
>
>http://www.mycompany.com/myApp/myForm.do?ref=1¶m1=abc¶m2=def
>
>
>-Original Message-
>From: James Howe [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 30, 2001 11:44 AM
>To: [EMAIL PROTECTED]
>Subject: Returning from a form apge
>
>
>In our web application, we have two pages from which a user can access a
>third page.  From the third page (which is form to fill out and save), the
>user either saves or cancels their action, and the user is returned to the
>page from which they originally started.  However, the third page has no
>knowledge about where it came from so it doesn't no who to forward to when
>its action is complete. [...]

James W. Howe   mailto:[EMAIL PROTECTED]
Allen Creek Software, Inc.  pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103




Re: wizard style example, anywhere?

2001-05-01 Thread Jeff Trent



I followed the wizard example source code (see 
below) but I have a problem in that my Form data gets recycled between pages of 
the wizard.  In another words, if I click next on page 1, then click prev 
on page 2, my form data disappears from page 1.  Why is this 
happening?
 
Also, it appears that the Form object always exists 
in the Action class.  The example that comes with Struts shows conditional 
logic that populates either the request or session attribute in the case where 
the form is null.  
- Jeff I use something like the following in my struts-config.xml file:


  
  
  
  
  


In page1.jsp I declare the following buttons:

  
  

  

Page2.jsp:

  
  

  

  

  


Page3.jsp

  
  

  

  

  

Page4.jsp

  
  

  

  

  


In my SignupForm.java I define all fields for each page. Then I have a
switch statement in the validate method to validate the data for each page:

public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request)
{

ActionErrors errors = new ActionErrors();
switch (page)
{
case 1:
// Validate fields on page 1
case 2:
   ///
}
   return errors;
}


Finally in the SignupAction.java I check for which button was pressed and
return the next or previous page:

public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException
{

HttpSession session = request.getSession();
SignupForm signupform = (SignupForm) form;
int page = signupform.getPage();

String label = request.getParameter("submit");
if (label != null)
{
if ("<< Prev".equals(label))// Previous was
pressed
{
return mapping.findForward("page"+(page-1));
}
else if ("Next >>".equals(label))// Next was pressed
{
return mapping.findForward("page"+(page+1));//
Finished was pressed
}
else if ("Finish".equals(label))
{
// Do finish work, add data to database, whatever
}
. return(mapping.findForward("success"));


I'm new to struts (about 2 weeks now). I tried to find examples but couldn't
find any. So I hacked out this. Perhaps if someone has a better way we can
all learn something new.

I hope this helps.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 9:51 AM
Subject: wizard style example, anywhere?


> Hello struts-users,
>
> I am very new to Struts (or JSP for that matter), and in need of
> some examples that I can get my hands on.
>
> Specifically, an application that uses "wizard" style, multiple-page
> input forms would be very nice. Couple of Struts documents I looked
> mention that Struts works well with wizard style application, but I get
> confused when it comes to writing struts-config.xml, JSPs that share
> the same ActionForm or Action, etc.. I gotta see it working before I
> start building mine.
>
> Good examples, anywhere, anyone?
>
> thanks,
>
> - kazumi
>



RE: Shopping Cart Project

2001-05-01 Thread Matthew Fowkes

Sounds great - count me in too!

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 1:36 AM
> To:   [EMAIL PROTECTED]
> Subject:  Shopping Cart Project
> 
> 
> Hi guys !
> 
> Well. Ok. So there's no Shopping Cart example utilising struts out there.
> And although it's been done so many times using other languages and
> frameworks, it's time to put one together for the struts community. After
> all, the 'shopping cart' is really the 'hello world' for web apps !! It
> will
> make a great foundation for struts newbies and hopefully decrease the
> learning curve a little. It may also allow the struts veterans to show off
> some of the advanced concepts. Who knows, it may even be added to the
> struts
> distribution as an advanced example!
> 
> Is anyone interested in contributing to this ? What are some thoughts ?
> 
> If I get enough people on board, then I'll set up a CVS (source control)
> server and get the project underway !
> 
> Cheers,
> 
> Joe.
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com



Managing invalid connections in Database Connection Pool

2001-05-01 Thread Donnie_Hall



I'm using the data connection pool provided in the Struts Utils package and I'm
looking for some way to remove a connection when it is invalid.  Has anyone
dealt with this?

I'm using Oracle 8.1.6 ,tomcat 3.2.1 and the nightly build 4/10/2001

Example Problem:


1. Startup tomcat, my max connections is set to 4, my min connections is set to
0.

2. Open browser and click a selection that uses the database.

3. Go to the database and kill the connection.

4. Use browser to make another database hit, this time I'll get a SQLException
for ORA-00028 your session has been killed.

5. In my code, I use a finally block to "Close" the connection.

6. If I try to get a connection again, I get the same "invalid" connection.


I can set the connection to null and not return it to the pool, therefore
guaranteeing a new connection next time I request one. Unfortunately, that lost
connection still counts against me in my max connections.

Any ideas?

Donnie Hall





Re: Velocity forum demo (blab) port to Struts

2001-05-01 Thread Geir Magnusson Jr.

boB Rudis wrote:
> 
> Thx, geir (that was quick!)
> 
> > Struts and Velocity aren't comparable this way, because Velocity is
> > simply a template engine that can be used to provide the view layer for
> > a web app.  Struts is a framework that uses JSP for the view layer.
> >
> > I just want to make the distinction clear - I am not trying to
> > discourage (quite the contrary!), but the most approprate comparison
> > would be Struts and Turbine.
> 
> That makes an excellent starting point for my potential barrage of
> questions *:^) I dug through a good portion of the Velocity web site,
> including the "YMTD" document. I found the "poking" at Struts slightly
> humouous (which is where I got the notion of "competition"), but a bit in
> error, or at least deliberately misleading *:^). The YMTD doc seemed to
> indicate that taken on their own, one should choose between Struts and
> Velocity (in other places on the web site, it discussed the relationshp to
> Turbine).

That's good feedback.  That should be cleaned up.  I still believe that
they aren't comparable (even if people try...).  My motivation in doing
the struts-velocity example was to make it easier to compare JSP vs
Velocity w/o the framework issues getting in the way.  Turbine supports
JSP but most activity is with Velocity/WebMacro, and Struts is focused
on JSP, but you can do Velocity if you want to. 

> 
> So, I took a look at the forum demo (a fairly complete example) and
> noticed that the controller was trying to do a good portion of what Struts
> does "out of the box" (without the need to even write the
> controller). Even though I haven't decided the route to go yet, I got a
> bit defensive (in support of the Struts folks *:^) and ported it to
> Struts.

Well, remember, since Velocity is framework neutral, the demo had to
provide a controller servlet that would do the things otherwise handled
by a framework infrastructure.  I don't quite know if Velocity survived
your port :), but I would love to see it if so.  If you moved the form
demo to JSP, it's still interesting to me to see...

What would be fascinating would be :

1) A forum demo that used Struts and Velocity - would drop right into
Struts
2) A forum demo that used Turbine and Velocity - would drop right into
Turbine


> So my first question is, are Struts and Turbine competing
> projects? Apologies if this is answered in the Turbine site, but I didn't
> get to go through it yet.

I am not a part of the Struts or Turbine project, but in my personal
opinion, yes.  Both are frameworks that offer a set of services to build
web sites.

I can not speak about the relative merits of either, other than Turbine
supports both Velocity and JSP explicitly, and I believe that with a
little work, you could get implicit support of Velocity with all the
Struts trimmings.

> 
> Second: (not related to the first) - what would be the thoughts on
> extending the various struts-config.xml tags to have an attribute that can
> designate various forwards and actions as Velocity macros. Or,
> potentially extend it even further to make it more general? On the flip
> side, the Velocity API can be used to help support the
> "form-bean" concept.

That's not a question for me - I am not really part of the Struts
community - just an agent provocateur of sorts.  I would be interested
in helping work on that though.

I think that the Velocimacros offer great potential here - the problem
will be in how to specify the explicit arguments.  That's really all
theat the VMs offer over just forwarding to templates.Velocity
offers a mechanism in the org.apache.velocity.app.Velocity class that
allows you to invoke the Velocimacros directly from code, so it's an
easy thing to do.

> 
> > You can use both Struts and Velocity, although there is no 'offical'
> > support for Velocity in Struts. I recently put together a little
> > demonstration package which can be found over in the Velocity CVS (under
> > contrib), but if you have already moved the forum demo, you probably
> > won't need to look at my cheesy example :)
> 
> Your example makes quite a bit of sense in terms of getting the various
> elements into the context so Velocity can use them. I'm thinking this can
> be done a bit more "under the covers" by the Struts framework itself,
> provided it had the necessary configuration info from the XML file.

Sure - the difference is that the Velocity context is at the simplest
use, flat, and the 'context' in Struts/JSP is three tiered - it was
solved via the context chaining, but as you can see, it was a bit kludgy
- the plan, if there was interest, was to extend with config XML,
analgous to how the bean mappings are performed, or similar.  I'd love
to hear your ideas.
 
> > I am willing to help you in any way you need.  If you want to give it a
> > home, we can put it in the velocity contrib CVS for now to make it easy
> > for others to access.
> 
> That would be great! Having it in available for comparison on both sides

RE: Shopping Cart Project

2001-05-01 Thread Fei Xie

Hi Joe,

I am interested in working on this project.  I am fairly new to Struts, and 
I am currently working on a mini Struts project.  It would be a great 
opportunity for me to get more hand-on experience.

-Fei Xie


>From: "Galon, Mary-Jay" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Shopping Cart Project
>Date: Tue, 1 May 2001 09:53:14 -0500
>
>JOE: Please include me on all correspondence regarding this project.
>
>-Original Message-
>From: Sridhar H C [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, May 01, 2001 6:01 AM
>To: '[EMAIL PROTECTED]'
>Subject: RE: Shopping Cart Project
>
>
>Hi Joe,
>
>Yes I am interested to work on this. All these days I am working with MVC
>model, now I want to do some thing where I can get the maximum benefit of
>struts, I think this will be a good opportunity for me.
>
>Rgds,
>Sridhar
>
>
>
>
> > Hi guys !
> >
> > Well. Ok. So there's no Shopping Cart example utilising struts out
> > there.
> > And although it's been done so many times using other languages and
> > frameworks, it's time to put one together for the struts community.
> > After
> > all, the 'shopping cart' is really the 'hello world' for web apps !! It
> > will
> > make a great foundation for struts newbies and hopefully decrease the
> > learning curve a little. It may also allow the struts veterans to show
> > off
> > some of the advanced concepts. Who knows, it may even be added to the
> > struts
> > distribution as an advanced example!
> >
> > Is anyone interested in contributing to this ? What are some thoughts ?
> >
> > If I get enough people on board, then I'll set up a CVS (source control)
> > server and get the project underway !
> >
> > Cheers,
> >
> > Joe.
> >
> >
> >
> > _
> >
> > Do You Yahoo!?
> >
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >

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




Re: Velocity forum demo (blab) port to Struts

2001-05-01 Thread boB Rudis

Thx, geir (that was quick!)

> Struts and Velocity aren't comparable this way, because Velocity is
> simply a template engine that can be used to provide the view layer for
> a web app.  Struts is a framework that uses JSP for the view layer.
> 
> I just want to make the distinction clear - I am not trying to
> discourage (quite the contrary!), but the most approprate comparison
> would be Struts and Turbine. 

That makes an excellent starting point for my potential barrage of
questions *:^) I dug through a good portion of the Velocity web site,
including the "YMTD" document. I found the "poking" at Struts slightly
humouous (which is where I got the notion of "competition"), but a bit in
error, or at least deliberately misleading *:^). The YMTD doc seemed to
indicate that taken on their own, one should choose between Struts and
Velocity (in other places on the web site, it discussed the relationshp to
Turbine).

So, I took a look at the forum demo (a fairly complete example) and
noticed that the controller was trying to do a good portion of what Struts
does "out of the box" (without the need to even write the
controller). Even though I haven't decided the route to go yet, I got a
bit defensive (in support of the Struts folks *:^) and ported it to
Struts.

So my first question is, are Struts and Turbine competing
projects? Apologies if this is answered in the Turbine site, but I didn't
get to go through it yet.

Second: (not related to the first) - what would be the thoughts on
extending the various struts-config.xml tags to have an attribute that can
designate various forwards and actions as Velocity macros. Or,
potentially extend it even further to make it more general? On the flip
side, the Velocity API can be used to help support the
"form-bean" concept.

> You can use both Struts and Velocity, although there is no 'offical'
> support for Velocity in Struts. I recently put together a little
> demonstration package which can be found over in the Velocity CVS (under
> contrib), but if you have already moved the forum demo, you probably
> won't need to look at my cheesy example :)

Your example makes quite a bit of sense in terms of getting the various
elements into the context so Velocity can use them. I'm thinking this can
be done a bit more "under the covers" by the Struts framework itself,
provided it had the necessary configuration info from the XML file.

> I am willing to help you in any way you need.  If you want to give it a
> home, we can put it in the velocity contrib CVS for now to make it easy
> for others to access.

That would be great! Having it in available for comparison on both sides
would potentially help others like me. I kinda need pointers on what
license info needs to go where (Apache can have the example, especially
since most of it is scraped from the Velocity forum demo *:^). I'll read
up on the CVS docs at the web site.

One change I want to make is a conversion to using Struts templates (and I
also need to fix an "error" in the  tags).

thx again,

boB Rudis
[EMAIL PROTECTED]

++
| "Mind the gap" |
++




Valid XML from struts form taglib?

2001-05-01 Thread Jon Brisbin

How hard would it be to maybe subclass the struts form taglib to output
valid xml blocks, with tagnames coming from the application resources
properties file?

I would like to use some kind of taglib helper to generate form fields and
the optional input box attributes in XML.  I have an XSLT template already
that transforms a block of XML into an HTML form, so I'm trying to find
something that's close to what I need in struts, without having to write
from scratch...

jb




RE: Shopping Cart Project

2001-05-01 Thread Galon, Mary-Jay

JOE: Please include me on all correspondence regarding this project.

-Original Message-
From: Sridhar H C [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 6:01 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Shopping Cart Project


Hi Joe,

Yes I am interested to work on this. All these days I am working with MVC
model, now I want to do some thing where I can get the maximum benefit of
struts, I think this will be a good opportunity for me.

Rgds,
Sridhar




> Hi guys !
> 
> Well. Ok. So there's no Shopping Cart example utilising struts out
> there.
> And although it's been done so many times using other languages and
> frameworks, it's time to put one together for the struts community.
> After
> all, the 'shopping cart' is really the 'hello world' for web apps !! It
> will
> make a great foundation for struts newbies and hopefully decrease the
> learning curve a little. It may also allow the struts veterans to show
> off
> some of the advanced concepts. Who knows, it may even be added to the
> struts
> distribution as an advanced example!
> 
> Is anyone interested in contributing to this ? What are some thoughts ?
> 
> If I get enough people on board, then I'll set up a CVS (source control)
> server and get the project underway !
> 
> Cheers,
> 
> Joe.
> 
> 
> 
> _
> 
> Do You Yahoo!?
> 
> Get your free @yahoo.com address at http://mail.yahoo.com
> 



Re: Shopping Cart Project

2001-05-01 Thread Scott Walter

Good idea!  My thoughts are:

1.  Custom tag to be able to loop through and display
the contents of the shopping cart
2.  Standard Java Bean that represents the shopping
cart with methods such as emptyCart(), addItem(),
remoteItem(), updateItem(), calcTotal(), saveCart(),
retrieveCart()
3.  Independent from a persistent storage device, with
a default implementation of a SQL database included.


scott.





--- [EMAIL PROTECTED] wrote:
> 
> Hi guys !
> 
> Well. Ok. So there's no Shopping Cart example
> utilising struts out there.
> And although it's been done so many times using
> other languages and
> frameworks, it's time to put one together for the
> struts community. After
> all, the 'shopping cart' is really the 'hello world'
> for web apps !! It will
> make a great foundation for struts newbies and
> hopefully decrease the
> learning curve a little. It may also allow the
> struts veterans to show off
> some of the advanced concepts. Who knows, it may
> even be added to the struts
> distribution as an advanced example!
> 
> Is anyone interested in contributing to this ? What
> are some thoughts ?
> 
> If I get enough people on board, then I'll set up a
> CVS (source control)
> server and get the project underway !
> 
> Cheers,
> 
> Joe.
> 
> 
>
_
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
> 


=
~~~
Scott

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Velocity forum demo (blab) port to Struts

2001-05-01 Thread Geir Magnusson Jr.

boB Rudis wrote:
> 
> Greetings,
> 
> Coming from a straight JSP/Servlet environment, I've been "debating"
> whether to start using Struts or Velocity (they seem to "compete") as a
> foundation for true MVC+ development. I'm not keen on re-writing the wheel
> and would rather spend the limited time I have on back-end foundational
> coding contributing to one of these projects rather than creating
> yet-another-framework.

Struts and Velocity aren't comparable this way, because Velocity is
simply a template engine that can be used to provide the view layer for
a web app.  Struts is a framework that uses JSP for the view layer.

I just want to make the distinction clear - I am not trying to
discourage (quite the contrary!), but the most approprate comparison
would be Struts and Turbine. 

You can use both Struts and Velocity, although there is no 'offical'
support for Velocity in Struts. I recently put together a little
demonstration package which can be found over in the Velocity CVS (under
contrib), but if you have already moved the forum demo, you probably
won't need to look at my cheesy example :)

> 
> As part of the evaluation exercise, I ported the Velocity "blab" forum
> demo to Struts and (a) wanted to get some feedback on whether I've
> successfully managed to incorporate the strengths of Struts to the fullest
> extent, (b) offer it up for inclusion with the rest of the examples, and
> (c) gauge whether or not it proves to be a useful comparison tool for
> others in the midst of the same decision making process. I've also got
> some questions, but they won't make much sense without pointing to code
> examples.

I am willing to help you in any way you need.  If you want to give it a
home, we can put it in the velocity contrib CVS for now to make it easy
for others to access.
 
> 
> ++
> | "Mind the gap" |
> ++

mind the gap indeed :)

geir

-- 
Geir Magnusson Jr.   [EMAIL PROTECTED]
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/



html:select formatting off in Netscape

2001-05-01 Thread Firmin David

Hi all,
Has anyone else had trouble applying the styleClass attribute to tags like
?
On trying  using this attribute, I found it worked fine in IE,
but failed to show me a select box at all through Netscape 4.7. Instead I
got what looked like a text input field and it displayed all possible option
values concurrently!
I think this is a Netscape problem even though Netscape allegedly supports
the  construct that is generated by .
 
Can anyone comment on this?
 
Thanks in advance
Dave


The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com
***




Velocity forum demo (blab) port to Struts

2001-05-01 Thread boB Rudis

Greetings,

Coming from a straight JSP/Servlet environment, I've been "debating"
whether to start using Struts or Velocity (they seem to "compete") as a
foundation for true MVC+ development. I'm not keen on re-writing the wheel
and would rather spend the limited time I have on back-end foundational
coding contributing to one of these projects rather than creating
yet-another-framework.

As part of the evaluation exercise, I ported the Velocity "blab" forum
demo to Struts and (a) wanted to get some feedback on whether I've
successfully managed to incorporate the strengths of Struts to the fullest
extent, (b) offer it up for inclusion with the rest of the examples, and
(c) gauge whether or not it proves to be a useful comparison tool for
others in the midst of the same decision making process. I've also got
some questions, but they won't make much sense without pointing to code
examples.

The jar file (which can be extracted directly to a tomcat
"webapps" directory) is at http://www.rudis.net/strutsforum.jar

All comments are welcome. I'll toss out questions on specifics in another
post.

(If this should have gone to the struts-dev list, please let me know).

thx,

boB Rudis
[EMAIL PROTECTED]

++
| "Mind the gap" |
++




RE: Reducing the burden on ActionServlet.

2001-05-01 Thread Tewathia, Atul



As far 
as I can recall the struts-config.xml file is loaded and parsed in the 
initMappings() method of ActionServlet. Can we really have more than 
one configuration file in our application.

  -Original Message-From: Jason Chaffee 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, April 28, 2001 
  10:35 AMTo: [EMAIL PROTECTED]Subject: Re: 
  Reducing the burden on ActionServlet.One of the benefits 
  of using servlets is their ability to spawn threads instead of creating a 
  process each time.  I don't think you are going to have to worry about 
  the load on the servlet, the problem would be with the load on the server and 
  you can do some type of load balancing and clustering for that.  As for 
  the managing of one config file, I would suggest extending the ActionServlet 
  to load multiple files, that is if you have some way to logically group the 
  different files, this is a technique that I use and it works quite well.  
  We have multiple "projects" in our web app and each project has its own config 
  file.  I hope this helps. 
  "Tewathia, Atul" wrote: 
    
In our project we have more than one 
hundred jsp (each having an average of 2 or 3 forms )and we have already 
decided to use struts as our framework. Now the dilema :- We found that 
managing such a large number of jsp from a single stuts-config.xml file will 
be a huge  burden. Plus, it seems the ActionServlet will be hard 
pressed always, as a controller. Considering both these facts we realize 
that there should be a mechanism to share the load of servlet through some 
way. Though this can be achieved by using more than one servlet , we don't 
want to use this solution because it is highlt complex considering the 
projects interwoven functional requirements. Is there some way by which we can accomplish an 
efficient way to manage a large number of jsp files and to increase the 
performance by reducing load on the servlet. 
Thanking in 
  advance.
  -- Jason Chaffee Software Engineer MetaTV Inc. Phone:(415) 
  289-8516   


jsp:include and actions

2001-05-01 Thread Nikolaus Rumm

Hello,

I am including several jsp-pages and an action (resulting in a forward)
using jsp:include. Everything works fine for the jsps, but the inclusion of
the action-url does not work.





If I call the action url (/html/meeting/showMeetingList.do) directly,
everything works. I've tried all thinkable path combinations without any
positive result.

What I get is:

Location: /scivent/html/index/index.jsp
Error Location: /scivent/html/meeting/showMeetingList.do
Internal Servlet Error:

javax.servlet.ServletException: Servlet Exception
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.Throwable)
void
org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Exce
ption)
void
html.index._0002fhtml_0002findex_0002findex_0002ejspindex_jsp_0._jspService(
javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
...snip

Root cause:
javax.servlet.jsp.JspException: Servlet Exception
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.jsp.JspException(java.lang.String)
int org.apache.struts.taglib.template.InsertTag.doEndTag()
void
html.index._0002fhtml_0002findex_0002findex_0002ejspindex_jsp_0._jspService(
javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
...snip

Any suggestions ?

Nikolaus




Re: Struts and VisualAge 3.5.3 with WTE

2001-05-01 Thread Kyle Brown

Yes, I've managed to do it.  Getting Struts to work under VAJ 3.5.3 was a
bit of a challenge to say the least.

 You have to be sure that you change the default.servlet_engine file to
point to your new web app and that you create a new directory under the
"default_host" subdirectory and put your new .webapp file there.  This is
what the documentation is trying to tell you to do.

 Other things you have to do to make this work:

 (1) You have to change the Digester to work with the older (pre JAXP)
SAXParser classes.  This turns out to amount to changing only four or five
methods in the class in fairly simple ways.  You have to do this because
you can't replace the IBM parser classes with Xerces since the WTE servlet
engine depends on the IBM parser API.

 (2) You have to add your Struts project to the Servlet Engine
classpath (from the WTE Control panel).

 (3) Your .webapp file has to have the document root and servlet path
point to the same directory to match the directory structure for Struts
(e.g. the standard J2EE webapp structure).

 (4) (I don't know why this is true -- can anyone help here?) You have
to edit the struts-config.dtd file and host it locally to remove the last
couple of lines that define the large icon and small icon elements.  There
is something in the way that they are configured that will screw up the IBM
parser.  Simply commenting out those lines from the DTD makes it work.
BTW -- does anyone know of someone actually using the icon definitions in
Struts?

 I'm still working on that article for the IBM VisualAge Developer's
Domain on how to make Struts work in VAJ 3.5.2 and VAJ 3.5.3

Kyle Brown




[EMAIL PROTECTED] on 04/30/2001 05:12:46 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Struts and VisualAge 3.5.3 with WTE




Has anybody configured the struts example application
with VisualAge 3.5.3 and the included WTE?
Any problems?

I found the documetation for WTE within VisualAge to be
less than robust.  I can access the default app created by
WTE, but no luck creating a new one.

- Darren.





RE: Shopping Cart Project

2001-05-01 Thread Sridhar H C

Hi Joe,

Yes I am interested to work on this. All these days I am working with MVC
model, now I want to do some thing where I can get the maximum benefit of
struts, I think this will be a good opportunity for me.

Rgds,
Sridhar




> Hi guys !
> 
> Well. Ok. So there's no Shopping Cart example utilising struts out
> there.
> And although it's been done so many times using other languages and
> frameworks, it's time to put one together for the struts community.
> After
> all, the 'shopping cart' is really the 'hello world' for web apps !! It
> will
> make a great foundation for struts newbies and hopefully decrease the
> learning curve a little. It may also allow the struts veterans to show
> off
> some of the advanced concepts. Who knows, it may even be added to the
> struts
> distribution as an advanced example!
> 
> Is anyone interested in contributing to this ? What are some thoughts ?
> 
> If I get enough people on board, then I'll set up a CVS (source control)
> server and get the project underway !
> 
> Cheers,
> 
> Joe.
> 
> 
> 
> _
> 
> Do You Yahoo!?
> 
> Get your free @yahoo.com address at http://mail.yahoo.com
> 



RE: Shopping Cart Project

2001-05-01 Thread Sankha Das

Hi Joseph,

I do agree with you. I am interested to do the project. 
rgds
Sankah

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 11:06 AM
To: [EMAIL PROTECTED]
Subject: Shopping Cart Project



Hi guys !

Well. Ok. So there's no Shopping Cart example utilising struts out
there.
And although it's been done so many times using other languages and
frameworks, it's time to put one together for the struts community.
After
all, the 'shopping cart' is really the 'hello world' for web apps !! It
will
make a great foundation for struts newbies and hopefully decrease the
learning curve a little. It may also allow the struts veterans to show
off
some of the advanced concepts. Who knows, it may even be added to the
struts
distribution as an advanced example!

Is anyone interested in contributing to this ? What are some thoughts ?

If I get enough people on board, then I'll set up a CVS (source control)
server and get the project underway !

Cheers,

Joe.



_

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com





Re: Antwort: RE: Visual Age 3.5.3 & Tomcat with Struts

2001-05-01 Thread Johan Compagner

Here you have 2 versions of Tomcat 3.2.2b3 Test Environments
one one stripped version: www.techfo.nl/jcom/tomcatstripped.zip
and full src version: www.techfo.nl/jcom/tomcatfullsrc.zip
(for the full src you need JAXP/Parser also in the workspace)

Johan Compagner

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 5:14 AM
Subject: Re: Antwort: RE: Visual Age 3.5.3 & Tomcat with Struts



> 1.) Install Tomcat 3.1 Test Environment & look into
/path/to/vaj35/ide/features/com.ibm.ivj.tomcat/... to
> find IVJJavaCompiler.java

Tomcat Test Environment won't install on top of VA 3.5.3.  It says that the
correct version
of VisualAge is not installed, and exits the installer application.  Any
ideas on how to
trick the Tomcat Test Environment installer?  It says it expects VisualAge
3.5, but
apparently doesn't recognize 3.5.3 :<

- Darren

P.S.
Thanks for the very detailed message on how to get things going with VA and
Tomcat.




Juergen.Walter
@hrmcon.deTo:
[EMAIL PROTECTED]
  cc:
04/27/01 04:49Subject: Antwort: RE: Visual
Age 3.5.3 & Tomcat with Struts
AM
Please respond
to struts-user









Hi Darren,

we're using VAJ 3.5.2 Enterprise with Tomcat and Struts. First we tried to
run Struts 1.0b1 with Tomcat Test Env 3.1 but unfortunately Struts does not
work with Tomcat 3.1's XML-Parser. If you want you can make a XML
(javax.xml.*) & SQL (javax.sql.*) package and put it into Tomcats ./lib
directory and add it to VAJ's classpath. But if you use Tomcat 3.2.1,
struts works out of the box - but not that comfortable as the Tomcat Test
Env does, e.g. you can't debug JSP and Servlet Code anymore :(((
I did a hack (in Tomcats WebReaderXML.java to enable "jspPageCompiler"
again) and added "com.ibm.ivj.tomcat.IJVJavaCompiler" again to re-enable
in-workspace JSP and Servlet Debugging.

Running Tomcat 3.2.1 in VAJ 3.5.x
~~~
In short:
0.) Prerequisites:
  * latest jakarta-servlet-api _source_
  * tomcat 3.2.1 binary distribution (includes ./src already)
  * Tomcat 3.1 Test Environment from www.ibm.com/vadd (to get
"com.ibm.ivj.tomcat.IVJJavaCompiler.java")
  * struts 1.0b1 source distribution
1.) Install Tomcat 3.1 Test Environment & look into
/path/to/vaj35/ide/features/com.ibm.ivj.tomcat/... to find
IVJJavaCompiler.java
2.) Start VAJ, do _not_ "Add feature Apache Test Env 3.1"!!!
3.) Create new Package, e.g. Apache_Tomcat_321
4.) Import all source from jakarta-servlet-api (do _not_ use servlet-api
from VAJ or other precompiled javax.servlet.* - classes; they _must_ be
compiled within VAJ Workspace to enable debugging of your own servlets and
JSPs) into your Project
5.) import following --> compiled classes (not source!) <- from jasper.jar
and webserver.jar  (both in tomcat-3.2.1/lib/)
jasper: all .class
webserver: org.apache.tomcat.logging.Logger,
org.apache.tomcat.logging.LogHelper, org.apache.tomcat.util.SimplePool
If VAJ still complains about missing classes (you see this in "All
Problems" - Tab) import compiled .class files from ./lib/*.jar until VAJ is
happy.
6.) create two classes: StartTomcat & StopTomcat (code is the same for
both!)

public class StartTomcat {
/**
 * StartTomcat constructor comment.
 */
public StartTomcat() {
 super();
}
/**
 * Starts the application.
 * @param args an array of command-line arguments
 */
public static void main(java.lang.String[] args) {
 // Insert code to start the application here.
 try {
  Class aClass = Class.forName("org.apache.tomcat.startup.Tomcat");
  java.lang.reflect.Method method = null;
  Class[] argsClass = new Class[] { String[].class };
  method = aClass.getMethod("main", argsClass);
  Object object = null;
  Object[] arguments = new Object[] { args };
  method.invoke(object, arguments);
 } catch (Exception e) {
  System.out.println("Exception occured: " + e.getMessage());
  e.printStackTrace();

 }
}
}

Right click StartTomcat in VAJ and goto "Properties-Classpath": have
follwing files and dirs in classpath:

.;
..\Apache_Struts;
..\IBM IDE Utility class libraries;
..\JSP Page Compile Generated Code;
.\;
.\conf\;
.\src\;
.\lib\jaxp.jar;
.\lib\parser.jar;
.\lib\webserver.jar;
.\lib\jasper.jar;
.\webapps\;
.\webapps\admin\;
.\webapps\admin\WEB-INF\classes\;
.\webapps\examples\;
.\webapps\examples\WEB-INF\classes\;
..\IBM IDE Utility local implementation\;

And in Properties-Programm have no arguments for StartTomcat and "-stop"
for StopTomcat. Also have "tomcat.home=." in "(java)Properties window"

7.) make new package and import all struts sources (org.apache.struts.*)
into new package. Struts complains about missing javax.sql (get Binary
distribution of jdbc-optional package from sun.com and import mis