RE: Out of Office Response: RE: Can I read internationalized messages in Action classes ?

2002-07-22 Thread Barry Glasco


Kind of strong language for a self proclaimed evangelist... what 
would jesus Say?

-- Original Message --
From: James Mitchell [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Mon, 22 Jul 2002 11:57:35 -0400

Would someone mind removing this idiot?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 22, 2002 10:59 AM
 To: [EMAIL PROTECTED]
 Subject: Out of Office Response: RE: Can I read internationalized
 messages in Action classes ?
 
 
 Giles Hinchliff will be away on Monday July 22, 2002
 
 
 
 

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



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




Validator Problem

2002-03-17 Thread Barry Glasco



Environment: Weblogic 6.1. sp2 

Jsp tag: 

%@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html % 
%@ taglib uri=/WEB-INF/tlds/struts-validator.tld prefix=validator % 
validator:errorsExist 
   bean:message key=errors.header/ 
   ul 
   validator:errors id=error 
  libean:write name=error//li 
   /validator:errors 
   /ulhr 
/validator:errorsExist 



ERROR MESSAGE: 

Mar 16, 2004 11:55:09 PM EST Error HTTP [WebAppServletContext(6657758,veh 
-web,/veh-web)] Root cause of ServletException 
javax.servlet.jsp.JspException: (line 19): no handler for tagname='errorsExist' 
at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1 
49) 
at jsp_servlet.__department._jspService(__department.java:274) 
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm 
pl.java:265) 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm 
pl.java:304) 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm 
pl.java:200) 
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe 
rvletContext.java:2495) 
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm 
pl.java:2204) 
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) 


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




Re: Are there any patters for pager design with EntityBeansproviding access to the database?

2002-03-05 Thread Barry Glasco

Fast Lane reader and page iterator pattern's using JDBC 2.0 and
a tag that you can find by searching the archives.


- Original Message -
From: Bryan Field-Elliot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: 'Struts Users' [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 11:18 PM
Subject: Re: Are there any patters for pager design with
EntityBeansproviding access to the database?


 The best approach is to use a database-specific extension (since paging
 is not part of SQL standard syntax).

 I use PostgreSQL which has very nice and easy paging support (using
 LIMIT and OFFSET keywords).

 I've tried to do it once before using Oracle but had some trouble (as I
 recall the rownum didn't work as intuitively as you would hope or
 expect).

 The fallback position is to load the whole resultset into memory and
 store it as a session variable. This is a bad practice if the resultset
 can be large (a thousand rows or more for example).

 Bryan

 On Tue, 2002-03-05 at 21:12, Alex Paransky wrote:

 I was wondering how people are implementing paging capability in
struts.  In
 other words, if the result set comes back with 2000 rows, how do you
display
 page 4 of 100 with 20 results per page?

 Is writing custom SQL commands to depend on ROWNUM or something of
that sort
 always required?  Are there any easy mechanism to do paging?  Would
this be
 a good place to use a Statefull Session Bean and store it in to the
session?

 Thanks.

 -AP_
 http://www.alexparansky.com


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





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




Re: Wondering About Struts...

2002-01-22 Thread Barry Glasco

.  for instance, one of
my components creates a table.  another component builds on that and
creates a table of checkboxes.  doing this in a taglib is impossible ( tomy
knowledge ), 


Sounds like you need to expand your knowledge. Coming from a WebObjects
(Apple) background is the main problem... you aint in Kansas anymore. You
really need to spend some time studying taglibs and JSP's and forget about
WebObjects!

- Original Message -
From: Howie [EMAIL PROTECTED]
To: Jack Frosch [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 22, 2002 1:42 PM
Subject: Re: Wondering About Struts...


 On Tue, 22 Jan 2002, Jack Frosch wrote:

  Having only worked with Struts for a couple of months, I'm beginning to
  wonder about the costs and benefits of using Struts, or any other JSP
tag
  library, for that matter.
  [SNIP]

 the big problem ive been having, coming from a WebObjects environment, is
 that its not so easy to set up reusable components.  for instance, one of
 my components creates a table.  another component builds on that and
 creates a table of checkboxes.  doing this in a taglib is impossible ( to
 my knowledge ), so one has to do it ina JSP.  icky.

 taglibs seem to be kind of one-shot deals: they render a font tag, an
 image tag, a table tag, print out the value of a bean, etc.  and thats it.
 in one of the current projects im working on, we need to display search
 results in a specific manner.  however, there are at least 7 different
 ways to generate search results, each of which has their own action (
 with some common search classes shared in between them all ).  i wasnt
 able to just say ok, this component will display an item the way we want
 it.  as you're looping through, just use this one component.  that irked
 me greatly.  its partially due to Tomcat 3.x not supporting jsp:include's
 inside of custom tags, so i am taking that into consideration... but for
 the most part, im unimpressed with taglibs.

 ---
 Howie [EMAIL PROTECTED]   URL: http://www.toodarkpark.org


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




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




Re: Things that use Struts

2002-01-21 Thread Barry Glasco

I don't know about JRun but I am about to make a
beer run any orders?

Why JRun? Do you just want to cause your self pain? Ah
thats why you need the beer!

Later
- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, January 21, 2002 4:16 PM
Subject: Re: Things that use Struts


 I am attempting to, if I can ever get JRun to work properly with Struts...
 :-(

 Mark

 - Original Message -
 From: Olivier Dinocourt [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, January 21, 2002 8:21 AM
 Subject: Re: Things that use Struts


  is it me or do all web developers drink beer ?
 
  has anyone made a beer-related web site using Struts ? (which would
bring
 us
  back to the subject of this thread...)



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




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




Re: Struts design advice requested please.

2002-01-10 Thread Barry Glasco

Not enough detail for a full opinon, but this type
of app is what EJB's are designed to handle at the EIS layer
of the J2EE architecture.

HTH
- Original Message -
From: Alex Colic [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Sent: Thursday, January 10, 2002 9:20 AM
Subject: Struts design advice requested please.


 Hi,

 I have been using Struts now for about a year and I really like it. It has
 saved me a lot of time and made my apps quite stable. I have just been
 placed on another large struts project. It will be pushing struts to the
 limit. A quick question on design. What I am going to do is a bit
difficult
 to explain. This app is going to be used by users to input inventory data
 into two different databases, an AS400 and an Oracle/SQL database. The
user
 will enter essentially the same type of inventory data into each system,
 but, there are differences between the two. Part of the project plan is
that
 through a config switch, parameter etc, I will be telling struts if we are
 working with an AS400 system or an Oracle/SQL system and then the guy will
 slightly change, just the addition or deletion of a gui element.

 Example of required elements entered by the users in a form.

 AS400 ORACLE/SQL
 employeeID employeeID
 storeroom storeroom
 location location
 location type
 bin Number

 My question revolves around the form bean.

 I though about making a form bean that includes all the properties that
are
 required by the Inventory object for the AS400 and the ORACLE/SQL system.
 This would make one large generic form bean.

 Then I thought about making an abstract class that includes all the common
 elements amongst the object and from there I would extend and create an
 AS400 inventory form or an Oracle/SQL inventory form. If I go this way
then
 how do I set up the Struts.xml file to use the specific inventory form, if
 it could be one of two?

 I hope what I am trying to convey is making sense. Depending on a config
 setting I think I should be using  one of two form beans, not known until
 run time.

 Any help in setting up the above is appreciated.

 Alex



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




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




Re: struts.net?

2001-12-13 Thread Barry Glasco

f@#* ASP.NET!


Just say no!






Could'nt resist. THAnks:)
- Original Message -
From: Peter Bismuti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 14, 2001 4:26 AM
Subject: struts.net?


 Has anyone ported or considered porting struts to asp.net?  Before you
 respond with something like f@#* ASP.NET!, just consider that some have
no
 choice in the matter.

 THAnks

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




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




Re: Misunderstood newbie

2001-11-28 Thread Barry Glasco


To implement a screen of the particular Use Case, the following artifacts
should be created:

1.Action class handles logic of that particular screen, errors and,
probably, validation.

2.ActionForm class stores and validates the data presented on the
screen.

3.BusinessDelegate class is responsible for finding and performing
inter-tier method call of the Stateless Session EJB façade object that
resides on the business tier. The value objects facilitate the interaction
between BusinessDelegate and UseCase Façade. See the description of Business
Delegate pattern at
http://developer.java.sun.com/developer/restricted/patterns/BusinessDelegate
.html. See the description of ValueObject pattern at
http://developer.java.sun.com/developer/restricted/patterns/ValueObject.html
.

4.Use Case Façade is Stateless Session EJB, which sits on the
business tier and implements system-wise business methods that perform the
logic of Use Case. See the Session Façade pattern at
http://developer.java.sun.com/developer/restricted/patterns/SessionFacade.ht
ml

5.JSP Page represents view in the MVC pattern. It should contain
only HTML code and all the logic should be encapsulated into the Struts JSP
Tags.



HTH

- Original Message -
From: David Lauta [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 8:10 PM
Subject: Misunderstood newbie


 Hello,

 Can someone help me get started?

 Where/when is the proper place/time to create an ejb (Entity bean)?
 Should I create access methods in the mapping class,
 the form class or both or should I just create the objects
 in the action class?

 I want to create a complex entry form that may create/update
 three different tables in the database

 Say my JSP looks like:

 H1
 .
 /H1
 HR
 H2
 .
 /H2
 HR
 H3
 .
 /H3

 The entry fields associated with H2 are directly related to H1 and
 The entry fields associated with H3 are independant of H1 and H2

 Is there a document that would outline the logic flows and database
 interactions?
 I first want to initialize H1 area stuff.
 Based on user activity in H1 I want to then redisplay H1 and display H2
 The user is then expected to complete H3
 This would create/update an H1 entity bean
 This would create/update an H2 entity bean
 and create an H3 entity bean

 probably using three round trips to the JSP server.

 Any thoughts?

 --
 Thank you,
 David Lauta
 [EMAIL PROTECTED]



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




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




Re: Torque problem

2001-11-27 Thread Barry Glasco

WebLogic framework? or WebLogic Server? If you are using WebLogic server why
do you need this framework?
- Original Message -
From: Jinsong Hu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, November 27, 2001 3:31 PM
Subject: Torque problem


 Hi, There,
   I am an novice and extend class

 public class FmaUsersPeer
 extends com.onerev.fma.components.BaseFmaUsersPeer
 {
   public static void main(String [] args)
   {
 System.out.println(testing...) ;

   }
 }


 I tried to run this class but jvm tells me that:

 Hit uncaught exception org.apache.turbine.services.InstantiationException
 java.lang.ExceptionInInitializerError:
 org.apache.turbine.services.InstantiationException: ServiceBroker: unknown
 service LoggingService requested at

org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseService
 Broker.java:356) at

org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.j
 ava:298) at org.apache.turbine.util.Log.error(Log.java:449) at
 org.apache.turbine.om.peer.BasePeer.getMapBuilder(BasePeer.java:1863) at

com.onerev.fma.components.BaseFmaUsersPeer.clinit(BaseFmaUsersPeer.java:34
 )

 Isn't torque decoupled from turbine ? I want to only use torque to do
 database access to save me some time. I am using structs
 and weblogic frame work. I am thinking of using turbine to help me to do
 bean managed persistence. I wonder if that is a valid choice. structs are
 already chosen. Can I get some help from somewhere ?

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




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




Re: jsp compile error when using onFocus attribute in strutshtml:text tag

2001-11-21 Thread Barry Glasco

Your jsp should look like:
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %

the tag would be:

html:text ...
Not
strutshtml:text

unless you did:

%@ taglib uri=/WEB-INF/struts-html.tld prefix=strutshtml %

then you need to check the attributes for case, they are case sensitive.
- Original Message -
From: Melanie Harris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 11:39 AM
Subject: jsp compile error when using onFocus attribute in strutshtml:text
tag



 What I want to do is display a string in the
 window.status bar when a text input field gets focus.
 Anyone have a working example?

 This does not work:

 strutshtml:text maxlength=8 property=username
 onFocus = window.status='Enter your name'
   onBlur  =
 window.status=window.defaultStatus /

 NOTE though that the same thing works with a regular
 html INPUT tag.

 INPUT
   NAME=realname
   onFocus = window.status='Enter your name'
   onBlur  =
 window.status=window.defaultStatus
   BR


 When I try this in the strutshtml:text above I get a
 jsp compile error:

 __
 Do You Yahoo!?
 Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
 http://geocities.yahoo.com/ps/info1

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




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




RE: Formatting a float for display

2001-11-14 Thread Barry Glasco

http://www.rpsenterprises.com/struts/index.html

-Original Message-
From: Krueger, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 11:04 AM
To: '[EMAIL PROTECTED]'
Subject: Formatting a float for display


All,
My guess is there is some easy way to do this.  I have a formBean that
has a get and a set for a value that is a float.  I want to display this
float in a format of #,###.##.  I am using java.text.DecimalFormat and that
works pretty good except it returns a String.  So if I change my get and set
to return a String then I will have to convert that back in my action class
to a float and Float.parse(#,###.##) will throw a format exception.  So I
am wondering if there is any utils or good practices to have your formBean
display a float with formatting and then get that value back in the action
class in a float data type.

Thanks

Jeff Krueger



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



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




Re: SilverStream 3.5.2

2001-10-24 Thread Barry Glasco

NO


-- Original Message --
From: Tim [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Wed, 24 Oct 2001 13:41:13 +0800

Hi, I'd like to inquire on whether it is possible to deploy a struts app to 
SilverStream 3.5.2? Thanks.


-- 
Tim

- Web : http://mailhost.net/~ttimothy/ -
E-mail : [EMAIL PROTECTED]

   Madness takes its toll.  Please have exact change.





RE: prob. with collections

2001-10-19 Thread Barry Glasco

Highlight it and hit the delete key. If that does not work
try this:

bean:write name=list property=name/

-Original Message-
From: Dua, Amit [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 1:43 PM
To: '[EMAIL PROTECTED]'
Subject: prob. with collections



Hi

I have a collection of string which I am displaying through

 logic:iterate id=list name=filelist property=file
   tr
   td 
 %=list% 
  /td
tr


Is there anyway  of getting rid of %=list% in above code




RE: Thanks ....... AgStream Struts

2001-10-02 Thread Barry Glasco

This would lead me to believe that your struts-config.xml is not configured
properly.
Deploy the example application and see how it works. Also 373 fixed allot of
bugs
related to j2ee in ss3 so that is not the problem.

-Original Message-
From: Wolfgang Frank [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 11:00 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Thanks ... AgStream  Struts


Hello joey,

thanks for your fast reply in the struts-user group.

I made a very minimal example  maybe you can figure out with
you knowledge where I went wrong .
I just have to jsps and one Action  the link on the first jsp
fires the action, which simply forwards to the second jsp.

I deploy with the command:

silvercmd deploywar localhost eTest TestWar.war -f deployWAR.xml
-o

Deployment looks good and there are no exceptions. :-)
Afterwards i go to:

http://localhost/eTest/testapp/index.jsp

So far so good .. i can see the Link and if i move my mouse over
the link i see in the statusbar that:
http://localhost/eTest/testapp/testAction.do
is to be fired  ok  i do it and then ..
1. IExplorer : Error 400 Bad Request
2. Netscape: Invalid path /testAction was requested

Maybe it´s a bug in the Ag373 version?

ok . Thanks in advance if you find the time to look at my problem
or if you can help me further ...

Greets from germany
Wolfgang


The Deploymentplan deployWAR.xml ...

?xml version=1.0 encoding=UTF-8?
!DOCTYPE warJarOptions PUBLIC -//SilverStream Software,
Inc.//DTD J2EE WAR Deployment Plan//EN deploy_war.dtd
  ?AgMetaXML 1.0?
  warJarOptions isObject=true
 warJar isObject=true
   isEnabled type=BooleanTrue/isEnabled
   warJarNameexamples.war/warJarName
   deployToFilesystem
type=Booleanfalse/deployToFilesystem
   sessionTimeout type=String25/sessionTimeout
   urls type=StringArray
eltestapp/el
   /urls
   deployedObject
type=StringTestAppDeployed/deployedObject
 /warJar
  /warJarOptions


index.jsp
---
HTML
a href=testAction.doDo Test!/a
/HTML

perform.jsp
---
HTML
Action was performed ...
/HTML

web.xml . looks about
-
...
servlet
  servlet-nameaction/servlet-name

servlet-classorg.apache.struts.action.ActionServlet/servlet-class

  init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
  /init-param
  load-on-startup1/load-on-startup
 /servlet

 !-- Struts Action Servlet Mapping --
 servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern*.do/url-pattern
 /servlet-mapping
... etc ...

struts-config ...
-
action-mappings
 actionpath=testAction
actionClass=de.test.actions.TestAction
forward name=successpath=/performed.jsp/
  /action
/action-mappings

classes: de.test.actions.TestAction.java

package de.test.actions;

import java.io.IOException;
import org.apache.struts.action.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.*;

import org.apache.struts.util.PropertyUtils;

public class TestAction extends Action {

  public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response) throws IOException,
ServletException
  {
   System.out.println(TestAction ...);

return mapping.findForward(success);
  }
}








RE: Thanks ....... AgStream Struts

2001-10-02 Thread Barry Glasco

I was referring to the struts example application, the one that comes with
struts. Not your
test application! If you cannot get it to work, you are deploying it
improperly or you have a DTD access problem as Jeff mentioned. Once you have
take the small step of getting the example app the one with struts to work
you should be able to see by comparison why your test app does not work.
The struts example app does work and deploy on both SS371 and SS373 if you
do it properly.

HTH

-Original Message-
From: Wolfgang Frank [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 11:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Thanks ... AgStream  Struts


Hello Barry,

i tried different webengines and the same example runs with no problems on
tomcat323 ...
I tried also differend types of struts-config.xml . styles .

also that version ...:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.0//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
struts-config
 action-mappings
  action path=/testAction type=de.test.actions.TestAction/
 /action-mappings
/struts-config

but nothing worked on AgStream  :-(

And there shouldn't be changes in mappings depending on the server ?

Someone from the silverstream support told me right know that he also
couldn't  get the struts-examples of silverstream
(devcenter.silverstream.com,
e.g. dataview.zip)
to work with an other version than 371  he get´s the same strange errors
...

  AgStream not J2EE compliant??? ;-)

peace
Wolfgang

Barry Glasco wrote:

 This would lead me to believe that your struts-config.xml is not
configured
 properly.
 Deploy the example application and see how it works. Also 373 fixed allot
of
 bugs
 related to j2ee in ss3 so that is not the problem.

 -Original Message-
 From: Wolfgang Frank [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 02, 2001 11:00 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Thanks ... AgStream  Struts

 Hello joey,

 thanks for your fast reply in the struts-user group.

 I made a very minimal example  maybe you can figure out with
 you knowledge where I went wrong .
 I just have to jsps and one Action  the link on the first jsp
 fires the action, which simply forwards to the second jsp.

 I deploy with the command:

 silvercmd deploywar localhost eTest TestWar.war -f deployWAR.xml
 -o

 Deployment looks good and there are no exceptions. :-)
 Afterwards i go to:

 http://localhost/eTest/testapp/index.jsp

 So far so good .. i can see the Link and if i move my mouse over
 the link i see in the statusbar that:
 http://localhost/eTest/testapp/testAction.do
 is to be fired  ok  i do it and then ..
 1. IExplorer : Error 400 Bad Request
 2. Netscape: Invalid path /testAction was requested

 Maybe it´s a bug in the Ag373 version?

 ok . Thanks in advance if you find the time to look at my problem
 or if you can help me further ...

 Greets from germany
 Wolfgang

 The Deploymentplan deployWAR.xml ...
 
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE warJarOptions PUBLIC -//SilverStream Software,
 Inc.//DTD J2EE WAR Deployment Plan//EN deploy_war.dtd
   ?AgMetaXML 1.0?
   warJarOptions isObject=true
  warJar isObject=true
isEnabled type=BooleanTrue/isEnabled
warJarNameexamples.war/warJarName
deployToFilesystem
 type=Booleanfalse/deployToFilesystem
sessionTimeout type=String25/sessionTimeout
urls type=StringArray
 eltestapp/el
/urls
deployedObject
 type=StringTestAppDeployed/deployedObject
  /warJar
   /warJarOptions
 

 index.jsp
 ---
 HTML
 a href=testAction.doDo Test!/a
 /HTML

 perform.jsp
 ---
 HTML
 Action was performed ...
 /HTML

 web.xml . looks about
 -
 ...
 servlet
   servlet-nameaction/servlet-name

 servlet-classorg.apache.struts.action.ActionServlet/servlet-class

   init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
   /init-param
   load-on-startup1/load-on-startup
  /servlet

  !-- Struts Action Servlet Mapping --
  servlet-mapping
   servlet-nameaction/servlet-name
   url-pattern*.do/url-pattern
  /servlet-mapping
 ... etc ...

 struts-config ...
 -
 action-mappings
  actionpath=testAction
 actionClass=de.test.actions.TestAction
 forward name=successpath=/performed.jsp/
   /action
 /action-mappings

 classes: de.test.actions.TestAction.java
 
 package de.test.actions;

 import java.io.IOException;
 import org.apache.struts.action.*;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import java.util.*;

 import

Re: Help with structs example application..

2001-10-02 Thread Barry Glasco

First use version 6.1 of wl, I have no Idea what 6.0 was capable of. Just
drop the struts-example.war  into the applicaitons directory and it
should deploy with no problem.

HTH
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 02, 2001 5:43 PM
Subject: Help with structs example application..



 Hi,
Iam new to structs and iam trying to run structs on weblogic
 6.0,unix platform.
 when i startup weblogic i am getting following these errors:
 Any suggestions ,which can be helpful to me:
 What am i doing wrong here.I followed all the steps giving for running
 sample structs application.


 
 javax.servlet.ServletException: Servlet class:
'org.apache.struts.webapp.example.DatabaseServlet' could not be handled by
the ClassLoader
 at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:560)
 javax.servlet.ServletException: Servlet class:
'org.apache.struts.action.ActionServlet' could not be handled by the
ClassLoader
 at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:560)
 at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
ontext.java:1078)
 at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
Context.java:1022)
 at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:468)
 at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
 at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
 at weblogic.j2ee.Application.addComponent(Application.java:133)
 at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
 at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
 at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
 at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
 at java.lang.reflect.Method.invoke(Native Method)

 Oct 3, 2001 5:15:09 PM EDT Error HTTP
[WebAppServletContext(578329,CIDB)] Error loading servlet: 'action'
 java.lang.NoSuchMethodError
 at org.apache.commons.digester.Digester.parse(Digester.java:859)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1273)
 at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:460)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:638)
 at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:581)
 at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:526)
 at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
ontext.java:1078)
 at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
Context.java:1022)
 at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:468)
 at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
 at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
 at weblogic.j2ee.Application.addComponent(Application.java:133)
 at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
 at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
 at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
 at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
 at java.lang.reflect.Method.invoke(Native Method)
 at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
 at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
 at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
 at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
 at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
 at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
 at $Proxy32.addWebDeployment(Unknown Source)
 at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1012)
 at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:313)
 at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
 at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
 at

RE: Two questions concerning html:options

2001-09-25 Thread Barry Glasco

Collection

-Original Message-
From: Christoph Conrad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 8:04 AM
To: [EMAIL PROTECTED]
Subject: Two questions concerning html:options


Hello,

i am new in this group, hello all! I am also a beginner in JSPs, Java,
HTML and nearly all techniques used around struts, so forgive me, when
the following question is too stupid. I tried to resolve it via
reading the docs and studying the examples, but didn't found the
solution.

I have a JSP which tries to access a String[] in the Formbean in
html:options, but it doesn't work at all.

I get the following exception:

,
| javax.servlet.ServletException: Cannot create iterator for
| ext.stub.samples.Form@1bd427
|
| at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
| at
WEB_0002dINF.pages.stub._0002fWEB_0002dINF_0002fpages_0002fstub_0002fForm_00
02ejspForm_jsp_58._jspService(_0002fWEB_0002dINF_0002fpages_0002fstub_0002fF
orm_0002ejspForm_jsp_58.java:427)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
| at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
`

with

,
|   html:select property=multipleSelect size=10 multiple=true
|   html:options labelName=multipleValues/
|   /html:select
`

It's the options statement failing.

Could you give me a hint what's going wrong? Thank you!

Best regards,
Christoph Conrad
--
TTi Entwicklungszentrum GmbH,  Elisabethstr. 16, D-52062 Aachen
Fon: +49 241 47051-0  Fax: +49 241 47051-89 Web: http://www.ttisystems.com
Look Ma, this man can twist his fingers as if they were made of rubber,
isn't that amazing? -- Not really, he's been using emacs for years...!





RE: Help with Struts and EJBS..

2001-09-24 Thread Barry Glasco

1) No, but it will work. Look at previous posts on how to properly
implement.
2) Your form should have get and set methods?
3) Collection
4) None that I am aware of.

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: Help with Struts and EJBS..


Hi,
I need some serious help.
I am a novice Java and Struts developer.
I am trying to develope a prototype that will work with backend EJBS..

I have an CustomerSearchForm, Form bean and  action bean
my Action class is below.

Questions?
1) Is this the appropriate way to call EJBS (in an action class)??
2) How do I get what is returned from the EJB back into my actionform bean?
3) If I want a list of matching customers retruned...what is the best format
for these to be returned from the EJB so that I can
forward to another jsp and show them..  Currently the EJB is returning a
string.
4) Is there any sample applications out there that I can look at that use
EJBs?

Thanks in advance for ANY help.
Beth.


public ActionForward perform
(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
{
ActionForward fwdAction = null;
CustomerSearchForm searchForm = (CustomerSearchForm) form;
try {

// Get an InitialContext
Properties initProps = new Properties();
initProps.put (Context.INITIAL_CONTEXT_FACTORY,
weblogic.jndi.WLInitialContextFactory);
initProps.put(Context.PROVIDER_URL,
t3://yshen:7001);
Context ctx =  new InitialContext(initProps);

Object home = (CustomerFacadeHome)
ctx.lookup(sov/CustomerFacade);
CustomerFacadeHome customerFacadeHome = (CustomerFacadeHome)
PortableRemoteObject.narrow
(home, CustomerFacadeHome.class);

CustomerFacade facade = (CustomerFacade)
PortableRemoteObject.narrow
(customerFacadeHome.create(), CustomerFacade.class);

String[] found  = facade.findCustomer
(searchForm.getCustomerName (),
searchForm.getSsn (), searchForm.getAlphaKey (),
searchForm.getBank ());

for (int i=0; ifound.length; i++) {
System.out.println (\t[ + i + ]\t + found[i]);
}
fwdAction = mapping.findForward (success);
} catch (Exception e) {

e.printStackTrace ();
fwdAction = mapping.findForward (failed);
}

return fwdAction;
}




This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message.

Thank you.





RE: STRUTS and EJB

2001-09-06 Thread Barry Glasco

http://developer.java.sun.com/developer/restricted/patterns/BusinessDelegate
.html
http://developer.java.sun.com/developer/restricted/patterns/ValueObject.html
http://developer.java.sun.com/developer/restricted/patterns/SessionFacade.ht
ml

EJB and Struts!

-Original Message-
From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
R. McClanahan
Sent: None
To: [EMAIL PROTECTED]
Subject: RE: STRUTS and EJB




On Thu, 23 Aug 2001, Juha Paananen wrote:


 I also agree on that stuff that has references to STRUTS should not be
 transmitted to the EJB level. The problem here is simply that I would
 not want to make another, exactly similar (except extends ActionForm),
 class for transporting the information to the EJB. Of course, I can do
 that, but I don't like the idea. My question is, is this inheritance of
 ActionForm really necessary in Struts design?


Yes, it is ... and it is designed precisely to keep you from doing what
you're trying to do :-).

More seriously, an ActionForm exists primarily to save the server-side
state of an HTML input form, in a fashion that it can be reproduced
*exactly* the way the user entered it even if they make mistakes.  For
that reason, you will typically use String properties in an ActionForm,
even for integer and date properties in the underlying EJBs.

Further, the properties that exist on an ActionForm should match what is
on the HTML form, which is *not* always (or even often, in my experience)
exactly the same as the contents of a particular value object from a
particular EJB.

Think of an ActionForm as part of the view layer (in MVC terms), while a
value object is part of the model layer, and it will make a lot more
sense.

Craig McClanahan





RE: java.io.NotSerializableException: java.util.HashMap

2001-08-29 Thread Barry Glasco

Don't you have work to do:)

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 1:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: java.io.NotSerializableException: java.util.HashMap


Are the values in your arraylist Serializable?

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 2:31 PM
To: [EMAIL PROTECTED]
Subject: java.io.NotSerializableException: java.util.HashMap


I am getting the following error on a JSP page that I am using struts
taglibs.
However, I am using Sets and ArrayLists for my selects - not a hashmap??

Any ideas?

Thanks,

Matt

[28/Aug/2001 12:29:20:9] error: Exception: SERVLET-IO_exception: IOException
occurred
Exception Stack Trace:
java.io.NotSerializableException: java.util.HashMap$1
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at
com.netscape.server.servlet.platformhttp.PlatformNASSession.putMemberValue(U
nknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformNASSession.saveSession(Unkn
own
Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletRequest.saveSess
ion(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/