Re: Struts Workflow Extension Package V0.9 and Struts 1.1

2002-03-01 Thread Robson Miranda

Hi...

I also did some testings with this package in Struts 1.1, and got it
working. There was some modifications in that must be done in the example
application so it can work:
In web.xml, the init-parameter "mapping" is not used anymore. Instead, you
must add "className=com.livinglogic.struts.workflow.ApplicationMapping" in
every action in struts-config.xml.
Also, the other "*common.jar" needed in struts 1.1 must be present in the
.war deployed with the sample application.

Robson


- Original Message -
From: "Matthias Bauer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 7:54 AM
Subject: [ANNOUNCE| Struts Workflow Extension Package V0.9


> To all struts users!
>
> It has been quite some time since I first announced the Struts Workflow
> Extension Package. Since then, I have received several requests for an
example
> application and pretty good ideas for further enhancements. Here now is
the
> first official release that includes an example application and most of
the
> suggested enhancements.
>
> I know that there is a proposal and already some work going on in the
Jakarta
> Commons Project for a generic workflow package that is not directly based
on
> Struts, but should be easily integratable. Unfortunately this work is not
> progressing as quickly as some struts user would like to see. Thus, if you
have
> a need (and in each Web-Application you normally have) for workflow
control, try
> this extension and check whether it is appropriate for you.
>
> For more information, the general concepts, documentation and downloading
the
> sources, visit
>
> http://www.livinglogic.de/Struts/
>
> Of course, your feedback is very welcome.
>
> --- Matthias
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>


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




RE: newbie question: is it ok to use struts selectively?

2002-03-01 Thread Sampige, Srinivas

Also I am interested in the maintenance aspect. What if the HTML developer
sends the Web App developer a revised version of the screen with additional
input fields? 
-Srinivas

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:53 PM
To: [EMAIL PROTECTED]
Subject: RE: newbie question: is it ok to use struts selectively?


yeah i understand the part that you have to type less and its simpler, but I
want to know how is the performance hit?
suppose I have a huge form with lots of input type, just to put something
simple as

 and its brothers and
sisters, is it worth using the tags? will it slow down the page loading?

Regards,
Rumpa Giri
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: newbie question: is it ok to use struts selectively?


You certainly can pick and choose which pieces you want to use.  You can use
the tag library without a thought of using the controller servlet.  However,
which would you rather write?



or



The tag library (in many cases) isn't used because it provides functionalty
you can't write youself, but because it makes it so much easier to write the
same things you can write yourself.

... at least that's what I gather.  Don't let me be the final word - I'm
just a lazy developer that likes cutting what I have to type in half =)

Other opinions?

Regards,

Eddie
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 4:09 PM
Subject: newbie question: is it ok to use struts selectively?


> Suppose I have a login page, with username and password and submit button.
> Is it ok to have something like the following?
> is it ok to use struts html tags only for the input type form but not for
> the others?
> if the output of the tags is same as what I have here, why should I be
> inclined to use, or is it a convention to use? or is it a personal choice?
>  type="mypackage.struts.login.LoginForm" focus="username">
> 
> 
> 
> 
> 
> Username: 
>  value="<%=request.getParameter("username")%>" size="20"
maxlength="60">
> 
> 
> Password: 
>  value="<%=request.getParameter("pwd")%>" size="20" maxlength="12">
> 
> 
>  
> 
> 
> 
> 
> Regards,
> Rumpa Giri
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Methods In Action Class

2002-03-01 Thread subhendukumar mohanty

Hi 

I found the following methods in Action.java which I think may help to control the 
session ID. That means if the user submits the page and press the back button and 
submit the page again it will throw an error.

generateToken(HttpServletRequest request)
saveToken(HttpServletRequest request)
isTokenValid(HttpServletRequest request)

If anybody has used these methods let me know how to use these methods .

Thanks,
Subhendu

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




RE: newbie question: is it ok to use struts selectively?

2002-03-01 Thread rgiri

yeah i understand the part that you have to type less and its simpler, but I
want to know how is the performance hit?
suppose I have a huge form with lots of input type, just to put something
simple as

 and its brothers and
sisters, is it worth using the tags? will it slow down the page loading?

Regards,
Rumpa Giri
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: newbie question: is it ok to use struts selectively?


You certainly can pick and choose which pieces you want to use.  You can use
the tag library without a thought of using the controller servlet.  However,
which would you rather write?



or



The tag library (in many cases) isn't used because it provides functionalty
you can't write youself, but because it makes it so much easier to write the
same things you can write yourself.

... at least that's what I gather.  Don't let me be the final word - I'm
just a lazy developer that likes cutting what I have to type in half =)

Other opinions?

Regards,

Eddie
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 4:09 PM
Subject: newbie question: is it ok to use struts selectively?


> Suppose I have a login page, with username and password and submit button.
> Is it ok to have something like the following?
> is it ok to use struts html tags only for the input type form but not for
> the others?
> if the output of the tags is same as what I have here, why should I be
> inclined to use, or is it a convention to use? or is it a personal choice?
>  type="mypackage.struts.login.LoginForm" focus="username">
> 
> 
> 
> 
> 
> Username: 
>  value="<%=request.getParameter("username")%>" size="20"
maxlength="60">
> 
> 
> Password: 
>  value="<%=request.getParameter("pwd")%>" size="20" maxlength="12">
> 
> 
>  
> 
> 
> 
> 
> Regards,
> Rumpa Giri
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Struts Validator Questions

2002-03-01 Thread David Winterfeldt

Could I see your xml for the validator definition?  Do
you have the depends in the xml validator set to
something so it is never getting to this validation? 
If you put debug code in the method, you never see it
run either?

David

--- Ben Kafka <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
>   Was able to fix the first problem by going into
> the js and checking for
> "select-one" and value=0.
> 
>   Regarding the 2nd issue, I have specified the
> class where I put the method
> in the
> valiation-xml e.g. my
> clasname="com.mypackagename.ui.RegistrationForm" 
> and
> I have
> a method there called
> validateTwoFields(Object bean,ValidatorAction va,...
> just like yours.
> 
> The only difference is that in errors.add() I have
>
errors.add(field.getKey,StrutsValidatorUtil.getActionError(.)
> and you have
>
errors.add(field.getKey.ValidatorUtil.getActionError(.
> 
> I am compiling and running okay, but it never gets
> to this routine.
> (Thanks for your help by the way)
> 
> Ben
> 
> -Original Message-
> From: David Winterfeldt
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 11:57 AM
> To: Struts Users Mailing List
> Subject: Re: Struts Validator Questions
> 
> 
> 
> --- Ben Kafka <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >I started using the struts validator package
> > about a week ago and have
> > the following questions:
> >
> > 1 - How do I get the validator to validate a
> > required field for a selection
> > box?
> > My selection is on an integer property. I noticed
> > in the
> > validator-rules.xml file it is checking for type
> > "select-one". What "type"
> > is a ? I tried replacing "select-one"
> > with "select" but it
> > still doesn't find it.
> The "select-one" is the correct type in Javascript
> for
> an html:select tag.  I'm not sure what is in your
> select list, but if it is an integer how can you
> check
> that it is blank (zero length string) or null?  You
> could use the range method to see if it falls in a
> range or write your own.
> 
> >
> > 2 - Cannot get the two password comparison example
> > working. I put in the
> > code specified under ~dwinterfeldt. Was wondering
> if
> > anyone has gotten this
> > working. The only difference I can see in my code
> > and the example was that I
> > am using StrutsValidatorUtil.getActionError
> instead
> > of
> > ValidatorUtil.getActionError (the latter the
> > compiler complained about no
> > such method signature). Was wondering if there was
> a
> > javascript method also
> > that could be included.
> No error messages?  Everything works on the same
> principle.  Does the validator definition in the xml
> have the same method and class defined as where the
> validation method actually is (no types)?
> 
> You can make a Javascript method to match if you
> want
> to.  You can follow one of the examples to see how
> to
> make a generic Javascript method.  You have access
> to
> the error message and the variables you've defined
> in
> the Javascript.
> 
> David
> 
> >
> >
> > --
> > To unsubscribe, e-mail:
> >
> 
> > For additional commands, e-mail:
> > 
> >
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Greetings - Send FREE e-cards for every
> occasion!
> http://greetings.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




Re: newbie question: is it ok to use struts selectively?

2002-03-01 Thread Eddie Bush

You certainly can pick and choose which pieces you want to use.  You can use
the tag library without a thought of using the controller servlet.  However,
which would you rather write?



or



The tag library (in many cases) isn't used because it provides functionalty
you can't write youself, but because it makes it so much easier to write the
same things you can write yourself.

... at least that's what I gather.  Don't let me be the final word - I'm
just a lazy developer that likes cutting what I have to type in half =)

Other opinions?

Regards,

Eddie
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 4:09 PM
Subject: newbie question: is it ok to use struts selectively?


> Suppose I have a login page, with username and password and submit button.
> Is it ok to have something like the following?
> is it ok to use struts html tags only for the input type form but not for
> the others?
> if the output of the tags is same as what I have here, why should I be
> inclined to use, or is it a convention to use? or is it a personal choice?
>  type="mypackage.struts.login.LoginForm" focus="username">
> 
> 
> 
> 
> 
> Username: 
>  value="<%=request.getParameter("username")%>" size="20"
maxlength="60">
> 
> 
> Password: 
>  value="<%=request.getParameter("pwd")%>" size="20" maxlength="12">
> 
> 
>  
> 
> 
> 
> 
> Regards,
> Rumpa Giri
>


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




Re: JNDI Lookup, Websphere Vs Tomcat

2002-03-01 Thread Eddie Bush

I'm not sure how to do it, but I bet you could find the answer on the tomcat
site.

http://jakarta.apache.org/tomcat/index.html

I believe they have a users' mailing list too =)

- Original Message -
From: "hemant" <[EMAIL PROTECTED]>
To: "struts" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 4:50 PM
Subject: JNDI Lookup, Websphere Vs Tomcat


Here is how we proceed for a DataSource JNDI Lookup with WebSphere

//-
...
java.util.Properties parms = new java.util.Properties();

parms.setProperty(Context.INITIAL_CONTEXT_FACTORY,

"com.ibm.ejs.ns.jndi.CNInitialContextFactory");

// Create the Initial Naming Context

javax.naming.Context ctx = new javax.naming.InitialContext(parms);

// Lookup through the naming service to retrieve a DataSource object

javax.sql.DataSource ds =

(javax.sql.DataSource)ctx.lookup("jdbc/SampleDB");

// Obtain a Connection from the DataSource

java.sql.Connection conn = ds.getConnection();


//-

Datasources could thus be parked on WebSphere and accessed by clients
remotely.

1>> Now, Can we park Datasources on Tomcat in a similar manner? Does Tomcat
provide DataSources  to WebApps only?.
2>> If we can create DataSources on Tomcat to be remotely available (clients
could be EJB's on another server ) How do we go about doing that?



Thank You for your time


Regards
hemant



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




JNDI Lookup, Websphere Vs Tomcat

2002-03-01 Thread hemant

Here is how we proceed for a DataSource JNDI Lookup with WebSphere

//-
...
java.util.Properties parms = new java.util.Properties();

parms.setProperty(Context.INITIAL_CONTEXT_FACTORY,

"com.ibm.ejs.ns.jndi.CNInitialContextFactory");

// Create the Initial Naming Context

javax.naming.Context ctx = new javax.naming.InitialContext(parms);

// Lookup through the naming service to retrieve a DataSource object

javax.sql.DataSource ds =

(javax.sql.DataSource)ctx.lookup("jdbc/SampleDB");

// Obtain a Connection from the DataSource

java.sql.Connection conn = ds.getConnection();


//-

Datasources could thus be parked on WebSphere and accessed by clients remotely.

1>> Now, Can we park Datasources on Tomcat in a similar manner? Does Tomcat provide 
DataSources  to WebApps only?. 
2>> If we can create DataSources on Tomcat to be remotely available (clients could be 
EJB's on another server ) How do we go about doing that?



Thank You for your time


Regards
hemant



newbie question: is it ok to use struts selectively?

2002-03-01 Thread rgiri

Suppose I have a login page, with username and password and submit button. 
Is it ok to have something like the following? 
is it ok to use struts html tags only for the input type form but not for
the others? 
if the output of the tags is same as what I have here, why should I be
inclined to use, or is it a convention to use? or is it a personal choice? 
 





Username: 
" size="20" maxlength="60">


Password: 
" size="20" maxlength="12">


 



 
Regards, 
Rumpa Giri



RE: Problem with Struts, Tiles, getAString, and bean:write

2002-03-01 Thread Molitor, Stephen

Correction:  I'm setting the 'title' value via the bean:message tag (not the
write tag, obviously.)

-Original Message-
From: Molitor, Stephen 
Sent: Friday, March 01, 2002 1:42 PM
To: 'Struts Users Mailing List'
Subject: Problem with Struts, Tiles, getAString, and bean:write


I'm using Tiles with Struts.  In my tiles layout page, I'm setting the title
for the page using 'getAsString'.  The instantiating page sets the 'title'
property using Struts' bean:write tag, to get the internationalized title
string.  Usually this works.  However, sometimes it blows up, with the error
message and stack trace below.  The same page will work for a while, and
then blow up.  Once you get the error, that page is hosed up, you have to
reboot the servlet server to get back to it.  Has anyone seen this error?
Any help would be appreciated.  

Thanks in advance,

Steve Molitor
[EMAIL PROTECTED]

Here's the stack trace:

javax.servlet.ServletException: runtime failure in custom tag 'getAsString'
at jsp_servlet._jsp._applayout._jspService(_applayout.java:129)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:253)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:172)
at
weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:113)
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja
va:730)
at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:365)
at
jsp_servlet._jsp._otherbonusesforrevision._jspService(_otherbonusesforrevisi
on.java:232)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:124)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:154)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
com.erac.fleetsystems.strutsx.FleetSystemsServlet.process(FleetSystemsServle
t.java:166)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:907)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:851)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Digester and inheritance

2002-03-01 Thread Stacy Weng

But these helper classes all have the same methods and attributes, I would have to 
define all the methods in all the helper classes like the example code from the 
previous email.  And you are suggesting I do that?

--Stacy
  - Original Message - 
  From: Galbreath, Mark 
  To: 'Struts Users Mailing List' 
  Sent: Friday, March 01, 2002 12:45 PM
  Subject: RE: Digester and inheritance


  It appears from your listings and descriptions that Component is basically a
  JavaBean and your helper classes should have "has a" relationships with it,
  not "is a."  Essentially, what I am suggestion is that you wrap Component in
  the helper classes.  Wrappers are far more functional than subclasses (also
  known as the "decorator" pattern) and ensure that adding methods to
  Component will never affect the helpers (loose coupling), making ongoing
  maintenance easier.

  IMHO, implementation (class) inheritance is way overused in Java (even
  within the Java API).

  As for Digester, it is indifferent to the relationships between your
  classes; I am merely suggesting a refactoring of your code.

  Mark

  -Original Message-
  From: Stacy Weng [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 01, 2002 3:13 PM
  To: Struts Users Mailing List
  Subject: Re: Digester and inheritance


  Wouldn't that be a "has-a" relationship?  If I do that, than I would end up
  with this (since originally I have many child classes extending from
  Component):

  public class Component {
  public String name = null;
  public String getName() {
  return this.name;
  }
  public void setName(String name) {
  this.name=name;
  }
  }

  public class HelperClass1 {
  private final Component c;
  public String getName() {
  return c.getName;
  }
  public void setName(String name) {
  c.setName(name);
  }
  }

  public class HelperClass2 {
  private final Component c;
  public String getName() {
  return c.getName;
  }
  public void setName(String name) {
  c.setName(name);
  }
  }

  public class HelperClass3 {
  private final Component c;
  public String getName() {
  return c.getName;
  }
  public void setName(String name) {
  c.setName(name);
  }
  }

  The reason I'm extending from Component is because these helper classes "is
  - a" Component.  They only have slight variations.  Does digester not handle
  "is-a" relationships?

  --Stacy
  ps - Thanks again for taking the time to respond.  I can't stress how much I
  appreciate it.

- Original Message - 
From: Galbreath, Mark 
To: 'Struts Users Mailing List' 
Sent: Friday, March 01, 2002 2:40 PM
Subject: RE: Digester and inheritance


You are misusing inheritance.  Instead of extending Component, give
HelperClass (was ChildClass) a private field that references an instance
  of
Component (a design pattern known as "composition").Each instance method
  in
HelperClass invokes the corresponding method on the contained instance of
Component and returns the results (a design pattern known as
  "forwarding"):

public class HelperClass {
private final Component c;
public void setName( String name) {
c.setName( name);
}
public String getName() {
return c.getName();
}
}

Cheers!
Mark

-Original Message-
From: Stacy Weng [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:12 PM

I have a parent class called Component, and several child classes
  extending
from it.   All the common get/set methods are defined in Component.  So,
after each child is getting created from addObjectCreate() method, I call
addSetProperties() method to initialize their values (values are from the
xml file), however, digester can't find the set methods from the child
class, cause they're defined in the parent class (Component).  The
  temporary
solution I had was defining those set methods in the child classes, and
  have
them call the super methods.  But that seems to defeat the whole purpose
  of
inheritance.  Here's an example with the problem:

public class Component {
public String name = null;
public void setName(String name) {
this.name=name;
}
public void getname() {
return this.name;
}
}

public class ChildClass extend Component {
//Other methods that differ from parent class
}

for the digester rules:

digester.addObjectCreate("ChildClassPattern", "some.package.ChildClass");
digester.addSetProperties("ChildClassPattern");

so, as it gets to addSetProperties(), it doesn't see any of the get/set
methods in ChildClass, and yet, it doesn't know to look its parent class,
Component.

I hope I'm able to get my problem across.  Thanks again for taking the
  time

Re: Can't get ActionError back from Action class

2002-03-01 Thread Eddie Bush

you called saveErrors, right? =)  ... snipped that part out, maybe?

If not, that's probably the reason they're not being displayed!

HTH,

Eddie

- Original Message -
From: "MARK NICHOLS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 3:07 PM
Subject: Can't get ActionError back from Action class




I know it must be late on Friday or I would be able to see what is wrong
with the following code. I am trying to display the exception error message
via  with no luck so far.

== Action code snippet =


public final class TestFinishReasonAction extends Action {

// - Public Methods

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

// Extract attributes we will need
Locale locale = getLocale(request);
MessageResources messages = getResources();
HttpSession session = request.getSession();

<< snipped >>

// instantiate an ActionError collection to hold any messages
ActionErrors errors = new ActionErrors();

try {
   << snipped >>
   }

}catch(Exception ex) {
if (servlet.getDebug() >= 1)
   servlet.log(" Database Exception : " + ex.getMessage()) ;

  errors.add("dberror",
new ActionError("error.database"));

errors.add("dbException", new ActionError(ex.getMessage())) ;
 return (mapping.findForward("failure"));

}

// Forward control to the specified success URI
return (mapping.findForward("success"));

}

}


= JSP snippet 
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>





















What dumb stfw-rtfm mistake am I making?

=)

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us

"Ooo. They've got the Internet on computers now." - Homer Simpson


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Can't get ActionError back from Action class

2002-03-01 Thread MARK NICHOLS

Doh!

thanks

/\/\


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

"Ooo. They've got the Internet on computers now." - Homer Simpson 

>>> [EMAIL PROTECTED] 03/01/02 03:15PM >>>
Insert this: 
saveErrors(request, errors);
before your return statement.

-Original Message-
From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 4:07 PM
To: [EMAIL PROTECTED] 
Subject: Can't get ActionError back from Action class



I know it must be late on Friday or I would be able to see what is wrong
with the following code. I am trying to display the exception error message
via  with no luck so far.

== Action code snippet =


public final class TestFinishReasonAction extends Action {

// - Public
Methods

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

// Extract attributes we will need
Locale locale = getLocale(request);
MessageResources messages = getResources();
HttpSession session = request.getSession();

<< snipped >>

// instantiate an ActionError collection to hold any
messages
ActionErrors errors = new ActionErrors();

try {
<< snipped >>
}

}catch(Exception ex) {
if (servlet.getDebug() >= 1) 
servlet.log(" Database Exception : " +
ex.getMessage()) ;

  errors.add("dberror",
new ActionError("error.database"));
 
errors.add("dbException", new ActionError(ex.getMessage())) ;
  return
(mapping.findForward("failure"));

}

// Forward control to the specified success URI
return (mapping.findForward("success"));

}

}


= JSP snippet 
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>





















What dumb stfw-rtfm mistake am I making?

=)

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

"Ooo. They've got the Internet on computers now." - Homer Simpson 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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



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




How to use the value attribute in html:text

2002-03-01 Thread Alex Colic

Hi,

I am trying to get the value attribute to work in the text tag. I have an
'ITEM' bean with two properties. One is set up when the user selects an
item. When they go to a page I want the page to display the existing value
in 'item.primeLocation' and I want the text box to be prefilled with the
value from 'item.primeLocation' but have the text user input go into
'newPrimeLocation. Both parameters are within the ITEM bean.

I think the value attribute is supposed to get the from the 'primeLocation'
but I actually get "primeLocation" passed into the text box. I must be doing
something wrong.


  Primary Location
  
  



Thanks for any help.

Alex


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




RE: Can't get ActionError back from Action class

2002-03-01 Thread Kanoza, Douglas (NCI)

Insert this: 
saveErrors(request, errors);
before your return statement.

-Original Message-
From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 4:07 PM
To: [EMAIL PROTECTED]
Subject: Can't get ActionError back from Action class



I know it must be late on Friday or I would be able to see what is wrong
with the following code. I am trying to display the exception error message
via  with no luck so far.

== Action code snippet =


public final class TestFinishReasonAction extends Action {

// - Public
Methods

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

// Extract attributes we will need
Locale locale = getLocale(request);
MessageResources messages = getResources();
HttpSession session = request.getSession();

<< snipped >>

// instantiate an ActionError collection to hold any
messages
ActionErrors errors = new ActionErrors();

try {
<< snipped >>
}

}catch(Exception ex) {
if (servlet.getDebug() >= 1) 
servlet.log(" Database Exception : " +
ex.getMessage()) ;

  errors.add("dberror",
new ActionError("error.database"));
 
errors.add("dbException", new ActionError(ex.getMessage())) ;
  return
(mapping.findForward("failure"));

}

// Forward control to the specified success URI
return (mapping.findForward("success"));

}

}


= JSP snippet 
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>





















What dumb stfw-rtfm mistake am I making?

=)

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

"Ooo. They've got the Internet on computers now." - Homer Simpson 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Can't get ActionError back from Action class

2002-03-01 Thread MARK NICHOLS



I know it must be late on Friday or I would be able to see what is wrong with the 
following code. I am trying to display the exception error message via  
with no luck so far.

== Action code snippet =


public final class TestFinishReasonAction extends Action {

// - Public Methods

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

// Extract attributes we will need
Locale locale = getLocale(request);
MessageResources messages = getResources();
HttpSession session = request.getSession();

<< snipped >>

// instantiate an ActionError collection to hold any messages
ActionErrors errors = new ActionErrors();

try {
<< snipped >>
}

}catch(Exception ex) {
if (servlet.getDebug() >= 1) 
servlet.log(" Database Exception : " + 
ex.getMessage()) ;

  errors.add("dberror", new 
ActionError("error.database"));
  errors.add("dbException", new 
ActionError(ex.getMessage())) ;
  return (mapping.findForward("failure"));

}

// Forward control to the specified success URI
return (mapping.findForward("success"));

}

}


= JSP snippet 
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>





















What dumb stfw-rtfm mistake am I making?

=)

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

"Ooo. They've got the Internet on computers now." - Homer Simpson 


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




RE: Struts Validator Questions

2002-03-01 Thread Ben Kafka


Hi,

  Was able to fix the first problem by going into the js and checking for
"select-one" and value=0.

  Regarding the 2nd issue, I have specified the class where I put the method
in the
valiation-xml e.g. my clasname="com.mypackagename.ui.RegistrationForm"  and
I have
a method there called
validateTwoFields(Object bean,ValidatorAction va,... just like yours.

The only difference is that in errors.add() I have
errors.add(field.getKey,StrutsValidatorUtil.getActionError(.)
and you have
errors.add(field.getKey.ValidatorUtil.getActionError(.

I am compiling and running okay, but it never gets to this routine.
(Thanks for your help by the way)

Ben

-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 11:57 AM
To: Struts Users Mailing List
Subject: Re: Struts Validator Questions



--- Ben Kafka <[EMAIL PROTECTED]> wrote:
> Hi,
>
>I started using the struts validator package
> about a week ago and have
> the following questions:
>
> 1 - How do I get the validator to validate a
> required field for a selection
> box?
>   My selection is on an integer property. I noticed
> in the
> validator-rules.xml file it is checking for type
> "select-one". What "type"
> is a ? I tried replacing "select-one"
> with "select" but it
> still doesn't find it.
The "select-one" is the correct type in Javascript for
an html:select tag.  I'm not sure what is in your
select list, but if it is an integer how can you check
that it is blank (zero length string) or null?  You
could use the range method to see if it falls in a
range or write your own.

>
> 2 - Cannot get the two password comparison example
> working. I put in the
> code specified under ~dwinterfeldt. Was wondering if
> anyone has gotten this
> working. The only difference I can see in my code
> and the example was that I
> am using StrutsValidatorUtil.getActionError instead
> of
> ValidatorUtil.getActionError (the latter the
> compiler complained about no
> such method signature). Was wondering if there was a
> javascript method also
> that could be included.
No error messages?  Everything works on the same
principle.  Does the validator definition in the xml
have the same method and class defined as where the
validation method actually is (no types)?

You can make a Javascript method to match if you want
to.  You can follow one of the examples to see how to
make a generic Javascript method.  You have access to
the error message and the variables you've defined in
the Javascript.

David

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


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Digester and inheritance

2002-03-01 Thread Galbreath, Mark

It appears from your listings and descriptions that Component is basically a
JavaBean and your helper classes should have "has a" relationships with it,
not "is a."  Essentially, what I am suggestion is that you wrap Component in
the helper classes.  Wrappers are far more functional than subclasses (also
known as the "decorator" pattern) and ensure that adding methods to
Component will never affect the helpers (loose coupling), making ongoing
maintenance easier.

IMHO, implementation (class) inheritance is way overused in Java (even
within the Java API).

As for Digester, it is indifferent to the relationships between your
classes; I am merely suggesting a refactoring of your code.

Mark

-Original Message-
From: Stacy Weng [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:13 PM
To: Struts Users Mailing List
Subject: Re: Digester and inheritance


Wouldn't that be a "has-a" relationship?  If I do that, than I would end up
with this (since originally I have many child classes extending from
Component):

public class Component {
public String name = null;
public String getName() {
return this.name;
}
public void setName(String name) {
this.name=name;
}
}

public class HelperClass1 {
private final Component c;
public String getName() {
return c.getName;
}
public void setName(String name) {
c.setName(name);
}
}

public class HelperClass2 {
private final Component c;
public String getName() {
return c.getName;
}
public void setName(String name) {
c.setName(name);
}
}

public class HelperClass3 {
private final Component c;
public String getName() {
return c.getName;
}
public void setName(String name) {
c.setName(name);
}
}

The reason I'm extending from Component is because these helper classes "is
- a" Component.  They only have slight variations.  Does digester not handle
"is-a" relationships?

--Stacy
ps - Thanks again for taking the time to respond.  I can't stress how much I
appreciate it.

  - Original Message - 
  From: Galbreath, Mark 
  To: 'Struts Users Mailing List' 
  Sent: Friday, March 01, 2002 2:40 PM
  Subject: RE: Digester and inheritance


  You are misusing inheritance.  Instead of extending Component, give
  HelperClass (was ChildClass) a private field that references an instance
of
  Component (a design pattern known as "composition").Each instance method
in
  HelperClass invokes the corresponding method on the contained instance of
  Component and returns the results (a design pattern known as
"forwarding"):

  public class HelperClass {
  private final Component c;
  public void setName( String name) {
  c.setName( name);
  }
  public String getName() {
  return c.getName();
  }
  }

  Cheers!
  Mark

  -Original Message-
  From: Stacy Weng [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 01, 2002 2:12 PM

  I have a parent class called Component, and several child classes
extending
  from it.   All the common get/set methods are defined in Component.  So,
  after each child is getting created from addObjectCreate() method, I call
  addSetProperties() method to initialize their values (values are from the
  xml file), however, digester can't find the set methods from the child
  class, cause they're defined in the parent class (Component).  The
temporary
  solution I had was defining those set methods in the child classes, and
have
  them call the super methods.  But that seems to defeat the whole purpose
of
  inheritance.  Here's an example with the problem:

  public class Component {
  public String name = null;
  public void setName(String name) {
  this.name=name;
  }
  public void getname() {
  return this.name;
  }
  }

  public class ChildClass extend Component {
  //Other methods that differ from parent class
  }

  for the digester rules:

  digester.addObjectCreate("ChildClassPattern", "some.package.ChildClass");
  digester.addSetProperties("ChildClassPattern");

  so, as it gets to addSetProperties(), it doesn't see any of the get/set
  methods in ChildClass, and yet, it doesn't know to look its parent class,
  Component.

  I hope I'm able to get my problem across.  Thanks again for taking the
time
  to respond.

  --Stacy



  - Original Message - 
From: Fernando Esteban Barril Otero 
To: Struts Users Mailing List 
Sent: Friday, March 01, 2002 1:48 PM
Subject: Re: Digester and inheritance


I'm using digester and inheritance without problems. What kind
of exception are you getting?

Fernando

- Original Message -
From: "Stacy Weng" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 1:20 PM
Subject: Digester and inheritance


Has anyone encountered problems with inheritance using Digester?  It
seems
to me tha

Re: Digester and inheritance

2002-03-01 Thread Fernando Esteban Barril Otero

Try writting a small class to list the properties
of your classes (using the JavaBeans API - PropertyDescriptor, etc.).
Then, you can figure out what could be wrong.

Digester doesn't has limitations of this kind. I have the same
hierarchy and it works fine.

Fernando

- Original Message -
From: "Stacy Weng" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 5:12 PM
Subject: Re: Digester and inheritance


Wouldn't that be a "has-a" relationship?  If I do that, than I would end up
with this (since originally I have many child classes extending from
Component):

public class Component {
public String name = null;
public String getName() {
return this.name;
}
public void setName(String name) {
this.name=name;
}
}

public class HelperClass1 {
private final Component C;
public String getName() {
return c.getName;
}
public void setName(String name) {
c.setName(name);
}
}

public class HelperClass2 {
private final Component C;
public String getName() {
return c.getName;
}
public void setName(String name) {
c.setName(name);
}
}

public class HelperClass2 {
private final Component C;
public String getName() {
return c.getName;
}
public void setName(String name) {
c.setName(name);
}
}

The reason I'm extending from Component is because these helper classes
"is - a" Component.  They only have slight variations.  Does digester not
handle "is-a" relationships?

--Stacy
ps - Thanks again for taking the time to respond.  I can't stress how much I
appreciate it.



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




RE: Struts & MySQL Hosting

2002-03-01 Thread Robert

I knew I could count on you Mark to have a quick answer on a Friday...

Robert

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 8:51 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts & MySQL Hosting

See "How To Interpret Answers" at
http://www.tuxedo.org/~esr/faqs/smart-questions.html

Mark

-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:42 AM
To: Struts Users Mailing List
Subject: RE: Struts & MySQL Hosting


What does STFW mean???

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:41 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts & MySQL Hosting


STFW

Mark

-Original Message-
From: Matt Koidin [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:39 AM
To: Struts Users Mailing List
Subject: Struts & MySQL Hosting


I have a small web site built using Struts with a simple JDBC connection
to a MySQL database - can anyone recommend a good site hosting company
that can support my configuration?

Thanks,
Matt

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Digester and inheritance

2002-03-01 Thread Stacy Weng

Wouldn't that be a "has-a" relationship?  If I do that, than I would end up with this 
(since originally I have many child classes extending from Component):

public class Component {
public String name = null;
public String getName() {
return this.name;
}
public void setName(String name) {
this.name=name;
}
}

public class HelperClass1 {
private final Component C;
public String getName() {
return c.getName;
}
public void setName(String name) {
c.setName(name);
}
}

public class HelperClass2 {
private final Component C;
public String getName() {
return c.getName;
}
public void setName(String name) {
c.setName(name);
}
}

public class HelperClass2 {
private final Component C;
public String getName() {
return c.getName;
}
public void setName(String name) {
c.setName(name);
}
}

The reason I'm extending from Component is because these helper classes "is - a" 
Component.  They only have slight variations.  Does digester not handle "is-a" 
relationships?

--Stacy
ps - Thanks again for taking the time to respond.  I can't stress how much I 
appreciate it.

  - Original Message - 
  From: Galbreath, Mark 
  To: 'Struts Users Mailing List' 
  Sent: Friday, March 01, 2002 2:40 PM
  Subject: RE: Digester and inheritance


  You are misusing inheritance.  Instead of extending Component, give
  HelperClass (was ChildClass) a private field that references an instance of
  Component (a design pattern known as "composition").Each instance method in
  HelperClass invokes the corresponding method on the contained instance of
  Component and returns the results (a design pattern known as "forwarding"):

  public class HelperClass {
  private final Component c;
  public void setName( String name) {
  c.setName( name);
  }
  public String getName() {
  return c.getName();
  }
  }

  Cheers!
  Mark

  -Original Message-
  From: Stacy Weng [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 01, 2002 2:12 PM

  I have a parent class called Component, and several child classes extending
  from it.   All the common get/set methods are defined in Component.  So,
  after each child is getting created from addObjectCreate() method, I call
  addSetProperties() method to initialize their values (values are from the
  xml file), however, digester can't find the set methods from the child
  class, cause they're defined in the parent class (Component).  The temporary
  solution I had was defining those set methods in the child classes, and have
  them call the super methods.  But that seems to defeat the whole purpose of
  inheritance.  Here's an example with the problem:

  public class Component {
  public String name = null;
  public void setName(String name) {
  this.name=name;
  }
  public void getname() {
  return this.name;
  }
  }

  public class ChildClass extend Component {
  //Other methods that differ from parent class
  }

  for the digester rules:

  digester.addObjectCreate("ChildClassPattern", "some.package.ChildClass");
  digester.addSetProperties("ChildClassPattern");

  so, as it gets to addSetProperties(), it doesn't see any of the get/set
  methods in ChildClass, and yet, it doesn't know to look its parent class,
  Component.

  I hope I'm able to get my problem across.  Thanks again for taking the time
  to respond.

  --Stacy



  - Original Message - 
From: Fernando Esteban Barril Otero 
To: Struts Users Mailing List 
Sent: Friday, March 01, 2002 1:48 PM
Subject: Re: Digester and inheritance


I'm using digester and inheritance without problems. What kind
of exception are you getting?

Fernando

- Original Message -
From: "Stacy Weng" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 1:20 PM
Subject: Digester and inheritance


Has anyone encountered problems with inheritance using Digester?  It seems
to me that the addSetProperties() does not when its object is inherited
  from
a parent class...hence it assumes the get/set methods aren't defined, when
they are actually defined in its parent class.  I've looked into the
  source,
and it seems that the getMethod call that digester uses does not handle
parent methods.  Is there a patch out there for inheritance with digester?

Once again, thanks again in advance for any input.  It is greatly
appreciated.  =)

--Stacy



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


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




Re: logic:iterate String.

2002-03-01 Thread Mikael Eriksson

Hi

Use

  

Inside your iterate
As I understand you you just want to display things... Bean:write does a 
toString
(or something like that) of the bean if not property is mentioned.

  Regards
  Mikael


At 14:50 2002-03-01 +0100, you wrote:
>Hi!
>I use a Vector object which contains String Object.
>This Vector is in a JavaBeans, so I've got a getter method, which returns
>the Vector.
>When I want to iterate the list by:
>property="infoDB">
> 
>
>How replace the "?" by a good code?!
>I haven't idea! If my Vector contains some other complex object (others
>beans for examples), this works well.
>How do I to diplay my String(s)?
>
>Thx for your answers



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




Problem with Struts, Tiles, getAString, and bean:write

2002-03-01 Thread Molitor, Stephen

I'm using Tiles with Struts.  In my tiles layout page, I'm setting the title
for the page using 'getAsString'.  The instantiating page sets the 'title'
property using Struts' bean:write tag, to get the internationalized title
string.  Usually this works.  However, sometimes it blows up, with the error
message and stack trace below.  The same page will work for a while, and
then blow up.  Once you get the error, that page is hosed up, you have to
reboot the servlet server to get back to it.  Has anyone seen this error?
Any help would be appreciated.  

Thanks in advance,

Steve Molitor
[EMAIL PROTECTED]

Here's the stack trace:

javax.servlet.ServletException: runtime failure in custom tag 'getAsString'
at jsp_servlet._jsp._applayout._jspService(_applayout.java:129)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:253)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:172)
at
weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:113)
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja
va:730)
at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:365)
at
jsp_servlet._jsp._otherbonusesforrevision._jspService(_otherbonusesforrevisi
on.java:232)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:124)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:154)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
com.erac.fleetsystems.strutsx.FleetSystemsServlet.process(FleetSystemsServle
t.java:166)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:907)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:851)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

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




Re: ActionForward question

2002-03-01 Thread Eddie Bush

I may be wrong, but I believe the suggested work-around is to use a refresh
of the 'status page'.

Anyone?  Other suggestions welcome =)

- Original Message -
From: "Kanoza, Douglas (NCI)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 12:59 PM
Subject: RE: ActionForward question


> I'm interested in the answer to this one myself.  I was wondering if you
> could use the Response object to stream status messages out to the user.
> Has anybody done anything like that?
>
> -Original Message-
> From: Thomas Bednarz [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 11:58 AM
> To: struts user list
> Subject: ActionForward question
>
> Hi,
>
> Is it possible to send pages to a browser depending on the processing
status
> of an action? Lets say you have to process a long operation in the
> background such as a credit card validation or the like, is it possible to
> show the user an intermediate page telling him that some work is in
progress
> and then show the result page when it is generated?
>
> In the Action class it looks like this:
>
> // test if session is valid
> af = super.validateForm(form, mapping, request);
> if (af != null) return af;
> // test if a form has already been delivered
> if ((ContainerName == null) || (ContainerName.length() < 1))
//show
> form
> {
> saveToken(request);
> return (new
> ActionForward("/Templates/Forms/ShowEnumNTGGForm.vm"));
> }
>
> if (this.isTokenValid(request))
> {
> resetToken(request);
> //
>

> ***
> //   START PROCESSING HERE THIS COULD LAST 30 SECONDS OR
> MORE
> //   IF I ADD SOMETHING LIKE A new ActionForward("some status
> message URL"); THE
>//FOLLOWING CODE WILL EXECUTE BUT THE FORWARD AT THE BOTTOM
> WILL NEVER
>// REACH THE BROWSER !
>//
>

> ***
> try
> {
> container = getNTContainer("Domain", ContainerName,
> request);
> request.setAttribute("NTContainer", container);
> } catch (SmartSolException e)
> {
> errors.add(ActionErrors.GLOBAL_ERROR,
>new ActionError("error.exception.smartsol", new
> Integer(e.ErrorCode).toString(), e.File ,e.ErrorMsg));
> }
> } else
> {
> errors.add(ActionErrors.GLOBAL_ERROR, new
> ActionError("error.BePatient"));
> }
> // Report any errors we have discovered back to the original form
> af = super.processErrors(errors, mapping, request);
> if (af != null)
> {
> log.debug("finished perform with errors.");
> return (af);
> }
> // Forward control to the specified success URI
> log.debug("finished perform with success");
> return (new ActionForward("/Templates/NTAccounts/EnumNTGG.vm"));
> ---   end quote --
>
> How can this problem be solved?
>
> Many thanks!
>
> Thomas
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Digester and inheritance

2002-03-01 Thread Galbreath, Mark

You are misusing inheritance.  Instead of extending Component, give
HelperClass (was ChildClass) a private field that references an instance of
Component (a design pattern known as "composition").Each instance method in
HelperClass invokes the corresponding method on the contained instance of
Component and returns the results (a design pattern known as "forwarding"):

public class HelperClass {
private final Component c;
public void setName( String name) {
c.setName( name);
}
public String getName() {
return c.getName();
}
}

Cheers!
Mark

-Original Message-
From: Stacy Weng [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:12 PM

I have a parent class called Component, and several child classes extending
from it.   All the common get/set methods are defined in Component.  So,
after each child is getting created from addObjectCreate() method, I call
addSetProperties() method to initialize their values (values are from the
xml file), however, digester can't find the set methods from the child
class, cause they're defined in the parent class (Component).  The temporary
solution I had was defining those set methods in the child classes, and have
them call the super methods.  But that seems to defeat the whole purpose of
inheritance.  Here's an example with the problem:

public class Component {
public String name = null;
public void setName(String name) {
this.name=name;
}
public void getname() {
return this.name;
}
}

public class ChildClass extend Component {
//Other methods that differ from parent class
}

for the digester rules:

digester.addObjectCreate("ChildClassPattern", "some.package.ChildClass");
digester.addSetProperties("ChildClassPattern");

so, as it gets to addSetProperties(), it doesn't see any of the get/set
methods in ChildClass, and yet, it doesn't know to look its parent class,
Component.

I hope I'm able to get my problem across.  Thanks again for taking the time
to respond.

--Stacy



- Original Message - 
  From: Fernando Esteban Barril Otero 
  To: Struts Users Mailing List 
  Sent: Friday, March 01, 2002 1:48 PM
  Subject: Re: Digester and inheritance


  I'm using digester and inheritance without problems. What kind
  of exception are you getting?

  Fernando

  - Original Message -
  From: "Stacy Weng" <[EMAIL PROTECTED]>
  To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
  Sent: Friday, March 01, 2002 1:20 PM
  Subject: Digester and inheritance


  Has anyone encountered problems with inheritance using Digester?  It seems
  to me that the addSetProperties() does not when its object is inherited
from
  a parent class...hence it assumes the get/set methods aren't defined, when
  they are actually defined in its parent class.  I've looked into the
source,
  and it seems that the getMethod call that digester uses does not handle
  parent methods.  Is there a patch out there for inheritance with digester?

  Once again, thanks again in advance for any input.  It is greatly
  appreciated.  =)

  --Stacy



  --
  To unsubscribe, e-mail:

  For additional commands, e-mail:



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




RE: ActionForward question

2002-03-01 Thread Robert Nocera

Your best bet is to set up an intermediate page that uses Javascript to
do automatic refreshes. 

There were a couple other suggestions on this list a little while ago.
One was to set up a page that lists the transactions in progress and
their status and have the user refresh the page themselves.

You can't use http to push stuff out to a browser, only respond to
requests, and once you respond, you're stuck waiting for the user to
make another request.

Robert Nocera
New England Open Solutions
www.neosllc.com
"You supply the vision, we'll do the rest."
 

-Original Message-
From: Thomas Bednarz [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 11:58 AM
To: struts user list
Subject: ActionForward question

Hi,

Is it possible to send pages to a browser depending on the processing
status
of an action? Lets say you have to process a long operation in the
background such as a credit card validation or the like, is it possible
to
show the user an intermediate page telling him that some work is in
progress
and then show the result page when it is generated?

In the Action class it looks like this:

// test if session is valid
af = super.validateForm(form, mapping, request);
if (af != null) return af;
// test if a form has already been delivered
if ((ContainerName == null) || (ContainerName.length() < 1))
//show
form
{
saveToken(request);
return (new
ActionForward("/Templates/Forms/ShowEnumNTGGForm.vm"));
}

if (this.isTokenValid(request))
{
resetToken(request);
//


***
//   START PROCESSING HERE THIS COULD LAST 30 SECONDS OR
MORE
//   IF I ADD SOMETHING LIKE A new ActionForward("some
status
message URL"); THE
   //FOLLOWING CODE WILL EXECUTE BUT THE FORWARD AT THE
BOTTOM
WILL NEVER
   // REACH THE BROWSER !
   //


***
try
{
container = getNTContainer("Domain", ContainerName,
request);
request.setAttribute("NTContainer", container);
} catch (SmartSolException e)
{
errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError("error.exception.smartsol",
new
Integer(e.ErrorCode).toString(), e.File ,e.ErrorMsg));
}
} else
{
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("error.BePatient"));
}
// Report any errors we have discovered back to the original
form
af = super.processErrors(errors, mapping, request);
if (af != null)
{
log.debug("finished perform with errors.");
return (af);
}
// Forward control to the specified success URI
log.debug("finished perform with success");
return (new ActionForward("/Templates/NTAccounts/EnumNTGG.vm"));
---   end quote --

How can this problem be solved?

Many thanks!

Thomas


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Digester and inheritance

2002-03-01 Thread Stacy Weng

I have a parent class called Component, and several child classes extending from it.   
All the common get/set methods are defined in Component.  So, after each child is 
getting created from addObjectCreate() method, I call addSetProperties() method to 
initialize their values (values are from the xml file), however, digester can't find 
the set methods from the child class, cause they're defined in the parent class 
(Component).  The temporary solution I had was defining those set methods in the child 
classes, and have them call the super methods.  But that seems to defeat the whole 
purpose of inheritance.  Here's an example with the problem:

public class Component {
public String name = null;
public void setName(String name) {
this.name=name;
}
public void getname() {
return this.name;
}
}

public class ChildClass extend Component {
//Other methods that differ from parent class
}

for the digester rules:

digester.addObjectCreate("ChildClassPattern", "some.package.ChildClass");
digester.addSetProperties("ChildClassPattern");

so, as it gets to addSetProperties(), it doesn't see any of the get/set methods in 
ChildClass, and yet, it doesn't know to look its parent class, Component.

I hope I'm able to get my problem across.  Thanks again for taking the time to respond.

--Stacy



- Original Message - 
  From: Fernando Esteban Barril Otero 
  To: Struts Users Mailing List 
  Sent: Friday, March 01, 2002 1:48 PM
  Subject: Re: Digester and inheritance


  I'm using digester and inheritance without problems. What kind
  of exception are you getting?

  Fernando

  - Original Message -
  From: "Stacy Weng" <[EMAIL PROTECTED]>
  To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
  Sent: Friday, March 01, 2002 1:20 PM
  Subject: Digester and inheritance


  Has anyone encountered problems with inheritance using Digester?  It seems
  to me that the addSetProperties() does not when its object is inherited from
  a parent class...hence it assumes the get/set methods aren't defined, when
  they are actually defined in its parent class.  I've looked into the source,
  and it seems that the getMethod call that digester uses does not handle
  parent methods.  Is there a patch out there for inheritance with digester?

  Once again, thanks again in advance for any input.  It is greatly
  appreciated.  =)

  --Stacy



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




RE: ActionForward question

2002-03-01 Thread Kanoza, Douglas (NCI)

I'm interested in the answer to this one myself.  I was wondering if you
could use the Response object to stream status messages out to the user.
Has anybody done anything like that?

-Original Message-
From: Thomas Bednarz [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 11:58 AM
To: struts user list
Subject: ActionForward question

Hi,

Is it possible to send pages to a browser depending on the processing status
of an action? Lets say you have to process a long operation in the
background such as a credit card validation or the like, is it possible to
show the user an intermediate page telling him that some work is in progress
and then show the result page when it is generated?

In the Action class it looks like this:

// test if session is valid
af = super.validateForm(form, mapping, request);
if (af != null) return af;
// test if a form has already been delivered
if ((ContainerName == null) || (ContainerName.length() < 1))  //show
form
{
saveToken(request);
return (new
ActionForward("/Templates/Forms/ShowEnumNTGGForm.vm"));
}

if (this.isTokenValid(request))
{
resetToken(request);
//

***
//   START PROCESSING HERE THIS COULD LAST 30 SECONDS OR
MORE
//   IF I ADD SOMETHING LIKE A new ActionForward("some status
message URL"); THE
   //FOLLOWING CODE WILL EXECUTE BUT THE FORWARD AT THE BOTTOM
WILL NEVER
   // REACH THE BROWSER !
   //

***
try
{
container = getNTContainer("Domain", ContainerName,
request);
request.setAttribute("NTContainer", container);
} catch (SmartSolException e)
{
errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError("error.exception.smartsol", new
Integer(e.ErrorCode).toString(), e.File ,e.ErrorMsg));
}
} else
{
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("error.BePatient"));
}
// Report any errors we have discovered back to the original form
af = super.processErrors(errors, mapping, request);
if (af != null)
{
log.debug("finished perform with errors.");
return (af);
}
// Forward control to the specified success URI
log.debug("finished perform with success");
return (new ActionForward("/Templates/NTAccounts/EnumNTGG.vm"));
---   end quote --

How can this problem be solved?

Many thanks!

Thomas


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Struts Validator Questions

2002-03-01 Thread David Winterfeldt


--- Ben Kafka <[EMAIL PROTECTED]> wrote:
> Hi,
> 
>I started using the struts validator package
> about a week ago and have
> the following questions:
> 
> 1 - How do I get the validator to validate a
> required field for a selection
> box?
>   My selection is on an integer property. I noticed
> in the
> validator-rules.xml file it is checking for type
> "select-one". What "type"
> is a ? I tried replacing "select-one"
> with "select" but it
> still doesn't find it.
The "select-one" is the correct type in Javascript for
an html:select tag.  I'm not sure what is in your
select list, but if it is an integer how can you check
that it is blank (zero length string) or null?  You
could use the range method to see if it falls in a
range or write your own.

> 
> 2 - Cannot get the two password comparison example
> working. I put in the
> code specified under ~dwinterfeldt. Was wondering if
> anyone has gotten this
> working. The only difference I can see in my code
> and the example was that I
> am using StrutsValidatorUtil.getActionError instead
> of
> ValidatorUtil.getActionError (the latter the
> compiler complained about no
> such method signature). Was wondering if there was a
> javascript method also
> that could be included.
No error messages?  Everything works on the same
principle.  Does the validator definition in the xml
have the same method and class defined as where the
validation method actually is (no types)?

You can make a Javascript method to match if you want
to.  You can follow one of the examples to see how to
make a generic Javascript method.  You have access to
the error message and the variables you've defined in
the Javascript.

David

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


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




ActionForward question

2002-03-01 Thread Thomas Bednarz

Hi,

Is it possible to send pages to a browser depending on the processing status
of an action? Lets say you have to process a long operation in the
background such as a credit card validation or the like, is it possible to
show the user an intermediate page telling him that some work is in progress
and then show the result page when it is generated?

In the Action class it looks like this:

// test if session is valid
af = super.validateForm(form, mapping, request);
if (af != null) return af;
// test if a form has already been delivered
if ((ContainerName == null) || (ContainerName.length() < 1))  //show
form
{
saveToken(request);
return (new
ActionForward("/Templates/Forms/ShowEnumNTGGForm.vm"));
}

if (this.isTokenValid(request))
{
resetToken(request);
//

***
//   START PROCESSING HERE THIS COULD LAST 30 SECONDS OR
MORE
//   IF I ADD SOMETHING LIKE A new ActionForward("some status
message URL"); THE
   //FOLLOWING CODE WILL EXECUTE BUT THE FORWARD AT THE BOTTOM
WILL NEVER
   // REACH THE BROWSER !
   //

***
try
{
container = getNTContainer("Domain", ContainerName,
request);
request.setAttribute("NTContainer", container);
} catch (SmartSolException e)
{
errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError("error.exception.smartsol", new
Integer(e.ErrorCode).toString(), e.File ,e.ErrorMsg));
}
} else
{
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("error.BePatient"));
}
// Report any errors we have discovered back to the original form
af = super.processErrors(errors, mapping, request);
if (af != null)
{
log.debug("finished perform with errors.");
return (af);
}
// Forward control to the specified success URI
log.debug("finished perform with success");
return (new ActionForward("/Templates/NTAccounts/EnumNTGG.vm"));
---   end quote --

How can this problem be solved?

Many thanks!

Thomas


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




Re: Digester and inheritance

2002-03-01 Thread Fernando Esteban Barril Otero

I'm using digester and inheritance without problems. What kind
of exception are you getting?

Fernando

- Original Message -
From: "Stacy Weng" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 1:20 PM
Subject: Digester and inheritance


Has anyone encountered problems with inheritance using Digester?  It seems
to me that the addSetProperties() does not when its object is inherited from
a parent class...hence it assumes the get/set methods aren't defined, when
they are actually defined in its parent class.  I've looked into the source,
and it seems that the getMethod call that digester uses does not handle
parent methods.  Is there a patch out there for inheritance with digester?

Once again, thanks again in advance for any input.  It is greatly
appreciated.  =)

--Stacy



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




Re: OT: Struts & MySQL Hosting

2002-03-01 Thread Matt Raible

http://www.wantjava.com - worth the money - they host big names like
servlets.com and jboss.org

Matt

--- Dan Trevino <[EMAIL PROTECTED]> wrote:
> AOIndustries (http://www.aoindustries.com) has been very good for me.
> 
> 
> On Fri, 2002-03-01 at 14:57, Oliver Kiessler wrote:
> > hey you guys, come on, does anybody know a good java hosting company?
> > 
> > 
> > Am Fre, 2002-03-01 um 15.57 schrieb dderry:
> > > Not really a very good recommendation. Such a search could only turn up a
> > > list of hosting companies; with no information as to wheather they are a
> > > GOOD company, or just a bunch of opportunistic blood-sucking leaches. It
> is
> > > much more likely that subscribers to this list would be able to provide
> > > useful information.
> > > 
> > > Although I WILL agree that the request is OT and should have probably
> stated
> > > so in the subject line, while requesting private responses.
> > > 
> > > Dave D
> > > 
> > > 
> > > - Original Message -
> > > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > > Sent: Friday, March 01, 2002 9:40 AM
> > > Subject: RE: Struts & MySQL Hosting
> > > 
> > > 
> > > > STFW
> > > >
> > > > Mark
> > > >
> > > > -Original Message-
> > > > From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, March 01, 2002 9:39 AM
> > > > To: Struts Users Mailing List
> > > > Subject: Struts & MySQL Hosting
> > > >
> > > >
> > > > I have a small web site built using Struts with a simple JDBC
> connection
> > > > to a MySQL database - can anyone recommend a good site hosting company
> > > > that can support my configuration?
> > > >
> > > > Thanks,
> > > > Matt
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > 
> > > > For additional commands, e-mail:
> > > > 
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > 
> > > > For additional commands, e-mail:
> > > 
> > > >
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> 
> > > For additional commands, e-mail:
> 
> > > 
> > > 
> > -- 
> > mailto: [EMAIL PROTECTED]
> > web: http://www.linustar.de
> > gnupg key: http://www.linustar.de/pgp/kiessler.gpg
> > icq: 136832122
> > ---
> > The more I question the origin and meaning of our existence, the
> > less I care. And the less I care, the more I question myself.
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> 
> > For additional commands, e-mail:
> 
> -- 
> Dan Trevino
> bluemagnet, llc
> http://bluemagnet.com/
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




Struts Validator Questions

2002-03-01 Thread Ben Kafka

Hi,

   I started using the struts validator package about a week ago and have
the following questions:

1 - How do I get the validator to validate a required field for a selection
box?
My selection is on an integer property. I noticed in the
validator-rules.xml file it is checking for type "select-one". What "type"
is a ? I tried replacing "select-one" with "select" but it
still doesn't find it.

2 - Cannot get the two password comparison example working. I put in the
code specified under ~dwinterfeldt. Was wondering if anyone has gotten this
working. The only difference I can see in my code and the example was that I
am using StrutsValidatorUtil.getActionError instead of
ValidatorUtil.getActionError (the latter the compiler complained about no
such method signature). Was wondering if there was a javascript method also
that could be included.


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




Digester and inheritance

2002-03-01 Thread Stacy Weng

Has anyone encountered problems with inheritance using Digester?  It seems to me that 
the addSetProperties() does not when its object is inherited from a parent 
class...hence it assumes the get/set methods aren't defined, when they are actually 
defined in its parent class.  I've looked into the source, and it seems that the 
getMethod call that digester uses does not handle parent methods.  Is there a patch 
out there for inheritance with digester?

Once again, thanks again in advance for any input.  It is greatly appreciated.  =)

--Stacy



RE: Is html:html locale attribute needed for internationalisation?

2002-03-01 Thread Rustad, Aaron

You don't absolutely need it, but it may help in some instances of
internationalizationread the synopsis at:

http://www.w3.org/TR/html4/struct/dirlang.html#adef-lang

It list where you might need to use something like that.

Aaron.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: March 1, 2002 10:29 AM
To: Struts Users Mailing List
Subject: Is html:html locale attribute needed for internationalisation?



Have a struts app that is going to be internationalised this year.

In a quick spike, I added an application resources file for a new
country/language, deployed the app, and accessed it with several different
browsers.  I'd set these browsesr so their preferred country/language was
the new non-english one.  Worked like a champ - data came out of the
appropriate file from the bean:message tags.

The thing that confuses me is, I'm not using the html:html struts tag.  The
templates all have a straight vanilla non-struts  at the top.  So
what is the struts  needed for?  What is the
potential difference in behavior I will get if I use that tag?


Jim Weaver
Software Developer - ThoughtWorks


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Struts & MySQL Hosting

2002-03-01 Thread Chris Birch

It already is under "Ask Smart Questions" at
http://jakarta.apache.org/site/mail.html

-Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]]
Sent: 01 March 2002 16:40
To: 'Struts Users Mailing List'
Subject: RE: Struts & MySQL Hosting


Anyone notice that the quality of the questions has gone up since Mark's
post? Maybe a link to this article should be provided on the Jakarta site
about the right way to ask questions.

-JC


-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 8:51 AM
To: Struts Users Mailing List
Subject: Re: Struts & MySQL Hosting


LOL - Excellent, Mark!

(I've seen this before - gotta love it!)

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:50 AM
Subject: RE: Struts & MySQL Hosting


> See "How To Interpret Answers" at
> http://www.tuxedo.org/~esr/faqs/smart-questions.html
>
> Mark
>
> -Original Message-
> From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:42 AM
> To: Struts Users Mailing List
> Subject: RE: Struts & MySQL Hosting
>
>
> What does STFW mean???
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:41 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts & MySQL Hosting
>
>
> STFW
>
> Mark
>
> -Original Message-
> From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:39 AM
> To: Struts Users Mailing List
> Subject: Struts & MySQL Hosting
>
>
> I have a small web site built using Struts with a simple JDBC connection
> to a MySQL database - can anyone recommend a good site hosting company
> that can support my configuration?
>
> Thanks,
> Matt
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Is html:html locale attribute needed for internationalisation?

2002-03-01 Thread JEWeaver


Have a struts app that is going to be internationalised this year.

In a quick spike, I added an application resources file for a new
country/language, deployed the app, and accessed it with several different
browsers.  I'd set these browsesr so their preferred country/language was
the new non-english one.  Worked like a champ - data came out of the
appropriate file from the bean:message tags.

The thing that confuses me is, I'm not using the html:html struts tag.  The
templates all have a straight vanilla non-struts  at the top.  So
what is the struts  needed for?  What is the
potential difference in behavior I will get if I use that tag?


Jim Weaver
Software Developer - ThoughtWorks


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




Re: connection pooling

2002-03-01 Thread Matt Raible

Most appservers have their own connection pooling built-in and automatic
registration with JNDI.

For instance, Tomcat 4.x uses Exolab's Tyrex (tyrex.exolab.org).  This is
probably your best solution, then you can just register your datasource as a
resource entry in your web.xml and grab it using JNDI.

This is probably the easiest way, rather than trying to couple one with your
application.

Matt

--- [EMAIL PROTECTED] wrote:
> Does anyone know of a decent (recommended for production) open source
> implementation of JDBC DataSource or so other connection pooling mechanism.  
> 
> thanks.
> 
> bilal
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




RE: connection pooling

2002-03-01 Thread Chappell, Simon P

I was completely unable to get PoolMan working, but I found that 

http://www.bitmechanic.com/projects/jdbcpool

worked quite well on a few other things (non-struts) that I've worked on.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Oliver Kiessler [mailto:[EMAIL PROTECTED]]
>Sent: Friday, March 01, 2002 10:42 AM
>To: Struts Users Mailing List
>Subject: Re: connection pooling
>
>
>poolman
>
>Am Fre, 2002-03-01 um 17.33 schrieb [EMAIL PROTECTED]:
>> Does anyone know of a decent (recommended for production) 
>open source implementation of JDBC DataSource or so other 
>connection pooling mechanism.  
>> 
>> thanks.
>> 
>> bilal
>> 
>> --
>> To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>> For 
>additional commands, 
>e-mail: 
>> 
>> 
>-- 
>mailto: [EMAIL PROTECTED]
>web: http://www.linustar.de
>gnupg key: http://www.linustar.de/pgp/kiessler.gpg
>icq: 136832122
>---
>The more I question the origin and meaning of our existence, the
>less I care. And the less I care, the more I question myself.
>
>
>--
>To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: 
>
>

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




RE: Holding form values from the begining page to the final page in wizard approach

2002-03-01 Thread Galbreath, Mark

You need a separate form class for every step - you are resetting the
instance variables everytime you invoke the class at each step.

Mark

-Original Message-
From: Park, Dongwon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 1:41 PM
To: [EMAIL PROTECTED]
Subject: Holding form values from the begining page to the final page in
wizard approach


Hello,

I have 1 form class, 1 action class and 5 JSP to support 5 steps in my
wizard. Form class has all member I have from step 1 to step 5. The scope is
request and it could navigate from step 1 to step 5 with validation but
could not hold all values to the final step in wizard. So, the problem is
that I can not hold the value for Form until the end of wizard. 

Do you have any idea what I need to check ?


Thanks in advance


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Struts and the UML modeling approach

2002-03-01 Thread Galbreath, Mark

Me too!

-Original Message-
From: Jean-Guillaume LALANNE [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 10:37 AM

I haven't got any answer...
But I'd like to get some !!!

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




Re: connection pooling

2002-03-01 Thread Oliver Kiessler

poolman

Am Fre, 2002-03-01 um 17.33 schrieb [EMAIL PROTECTED]:
> Does anyone know of a decent (recommended for production) open source implementation 
>of JDBC DataSource or so other connection pooling mechanism.  
> 
> thanks.
> 
> bilal
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
-- 
mailto: [EMAIL PROTECTED]
web: http://www.linustar.de
gnupg key: http://www.linustar.de/pgp/kiessler.gpg
icq: 136832122
---
The more I question the origin and meaning of our existence, the
less I care. And the less I care, the more I question myself.


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




RE: Struts & MySQL Hosting

2002-03-01 Thread Jakkampudi, ChandraseKhar

Anyone notice that the quality of the questions has gone up since Mark's
post? Maybe a link to this article should be provided on the Jakarta site
about the right way to ask questions.

-JC


-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 8:51 AM
To: Struts Users Mailing List
Subject: Re: Struts & MySQL Hosting


LOL - Excellent, Mark!

(I've seen this before - gotta love it!)

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:50 AM
Subject: RE: Struts & MySQL Hosting


> See "How To Interpret Answers" at
> http://www.tuxedo.org/~esr/faqs/smart-questions.html
>
> Mark
>
> -Original Message-
> From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:42 AM
> To: Struts Users Mailing List
> Subject: RE: Struts & MySQL Hosting
>
>
> What does STFW mean???
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:41 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts & MySQL Hosting
>
>
> STFW
>
> Mark
>
> -Original Message-
> From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:39 AM
> To: Struts Users Mailing List
> Subject: Struts & MySQL Hosting
>
>
> I have a small web site built using Struts with a simple JDBC connection
> to a MySQL database - can anyone recommend a good site hosting company
> that can support my configuration?
>
> Thanks,
> Matt
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Memory and Struts Tags/ActionForms

2002-03-01 Thread John M. Corro

I'm running into a situation where I've added a number of extra form fields (as Struts 
tags) to a page that was working before.  Now that I've added them, the page will 
still display, but when I try to submit the form I get an exception saying 

java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError
(see Stack trace below for reference)

I was initially wondering if this was caused by an excessive amount of tags, but now 
am dismissing that based on the page showing (if there were too many tags, wouldn't 
the page fail to compile?).  I'm now wondering if the ActionForm is too big.  

Was wondering if anyone has run into a situation like this before.


Stack Trace:
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
at 
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2061)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)





RE: JavaDocs

2002-03-01 Thread Galbreath, Mark

Good points.

-Original Message-
From: David Corbin [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 10:46 AM
To: Struts Users Mailing List
Subject: Re: JavaDocs


Galbreath, Mark wrote:

>The question of the location of the latest JavaDocs keeps recurring here.
>If you have the source code, run the JavaDoc utility yourself and voila!
>The latest documentation.  If you don't know how to do this, look it up in
>any basic Java book (or type "javadoc" at a command prompt without any
>arguments).
> 
>Mark
>
1) If it keeps recurring, maybe it should be in the FAQ.
2) If it keeps recurring, maybe the project should consider the 
customers and just package it up like most projects do

Thanks
David



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




connection pooling

2002-03-01 Thread bilal

Does anyone know of a decent (recommended for production) open source implementation 
of JDBC DataSource or so other connection pooling mechanism.  

thanks.

bilal

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




[Announce] Simper 0.2

2002-03-01 Thread Bryan Field-Elliot

Simper is a simple JDBC persistence mechanism for Java web apps. It
features many of the interesting features of EJB, such as automatic
transaction demarcation (by way of Servlet Filters), and automatic
change detection of database rows (by way of DynaBeans). Lastly, the
notation by which you reference rows, as well as relations between
tables, is extremely JSP friendly.

http://www.netmeme.org/simper/

0.2 is not a new release (it's been out for about a month), but, a
SourceForge project has been set up, with mailing lists, CVS, etc., so
that others can discuss and contribute (as I am getting quite busy
lately).

Bryan






Tomcat is "Marking servlet action as unavailable"

2002-03-01 Thread Dick Starr

Tomcat is "Marking servlet action as unavailable" when I try a test using
the "struts-blank" sample app with struts-config modified for a data-source.

I am using Tomcat 4.0.2, SDK 1.4.0, and Netbeans 3.3.1. I did recently
upgrade from Caldera OpenLinux Server 3.1 to 3.1.1 and upgraded from Java
1.3 to 1.4.

For this test I am using today's 3/1/2002 version of Struts and the
"struts-blank" sample app.

I tried un-commenting the data sources section of struts-config as follows:

  

  

I tried it, because it corresponds to the struts-documentation, although
different than many posts in the archives. After stopping/starting Tomcat I
got an error in Tomcat's log in the same way as the mysql test below. By the
way, my IDE's XML "Validate XML" gave an error message for each data source
parameter.

So I tried this (it's "Validate XML" was OK).

 
  

  
  
  
  
  
  
  
  

  

But after stopping/starting Tomcat I get this in Tomcat's log:

2002-03-01 08:53:01 StandardHost[localhost]: Installing web application at
context path /struts-blank from URL
file:/opt/jakarta-tomcat-4.0.2/webapps/struts-blank
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploying class
repositories to work directory
/opt/jakarta-tomcat-4.0.2/work/localhost/struts-blank
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-beanutils.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/commons-beanutils
.jar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-collections.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/commons-collectio
ns.jar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-dbcp.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/commons-dbcp.jar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-digester.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/commons-digester.
jar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-logging.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/commons-logging.j
ar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-pool.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/commons-pool.jar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-services.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/commons-services.
jar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-validator.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/commons-validator
.jar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/jdbc2_0-stdext.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/jdbc2_0-stdext.ja
r
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/mm.mysql-2.0.6.1.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/mm.mysql-2.0.6.1.
jar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/postgresql.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/postgresql.jar
2002-03-01 08:53:01 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/struts.jar to
/opt/jakarta-tomcat-4.0.2/webapps/struts-blank/WEB-INF/lib/struts.jar
2002-03-01 08:53:01 StandardManager[/struts-blank]: Seeding random number
generator class java.security.SecureRandom
2002-03-01 08:53:01 StandardManager[/struts-blank]: Seeding of random number
generator has been completed
2002-03-01 08:53:02 ContextConfig[/struts-blank]: Added certificates ->
request attribute Valve
2002-03-01 08:53:02 StandardWrapper[/struts-blank:default]: Loading
container servlet default
2002-03-01 08:53:02 default: init
2002-03-01 08:53:02 StandardWrapper[/struts-blank:invoker]: Loading
container servlet invoker
2002-03-01 08:53:02 invoker: init
2002-03-01 08:53:02 action: init
2002-03-01 08:53:02 StandardWrapper[/struts-blank:action]: Marking servlet
action as unavailable
2002-03-01 08:53:02 StandardContext[/struts-blank]: Servlet /struts-blank
threw load() exception
javax.servlet.UnavailableException: Initializing application data source
org.apache.struts.action.DATA_SOURCE
 at
org.apache.struts.action.ActionServlet.initApplicationDataSources(ActionServ
let.java:841)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3266)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at org.apache.catalina.core.StandardHost.addChild(Standard

Re: Struts & MySQL Hosting

2002-03-01 Thread Stephen Welds

Hi Matt,

I have been using MMA since September 2001 to host a struts based
application (ad-hoc Survey and poll system). MMA supports servlets using
apache, tomcat and if required jboss. They provide access to mysql or
postgresql databases. Their web site is http://www.mmaweb.net/index.html. So
far I have not had any problems with their service and I am very pleased
with their technical response.

Servlets.com maintains a list of servlet hosting sites
http://www.servlets.com/isps/servlet/ISPViewAll. This list includes reviews.

Let me know if you have any questions.

Stephen Welds
- Original Message -
From: "Luis M. Rosso" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 10:04 AM
Subject: Re: Struts & MySQL Hosting


> Hi, Matt
>
> Take a look at www.webappcabaret.com
>
> They support a wide range of open source tools for java web apps, have
very
> good prices, and let you try their service for free for 30 days.
>
> Hope this helps
>
> Cheers
>
> Luis
>
> - Original Message -
> From: "Matt Koidin" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 11:39 AM
> Subject: Struts & MySQL Hosting
>
>
> I have a small web site built using Struts with a simple JDBC connection
> to a MySQL database - can anyone recommend a good site hosting company
> that can support my configuration?
>
> Thanks,
> Matt
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>



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




RE: Get MessageResource in ActionForm

2002-03-01 Thread Juan Alvarado \(Struts List\)

I do the following in the perform method of my action classes:

//Load our message resources
MessageResources messages= getResources();
String message = messages.getMessage("messageString");

This works for me. I hope it helps!!!

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 11:08 AM
To: Struts Users Mailing List
Subject: Re: Get MessageResource in ActionForm


"Struts Newsgroup (@Basebeans.com)" wrote:

> can someone give me a hint, how i can access MessageResources (From
> ApplicationResources.properties) within a Subclass of ActionForm???
>
> My prpoblem is, the ActionForm does not know anything about the
> ActionServlet, and so I have no Chance to get the Messages within
> ActionForm.
>
> I tried this:
> servlet.getMessageResources().getMessage("STRING_TO_LOOK_UP");
>
> But "servlet" and "getServlet" returns null.

Are you using the nightly build?  One used to be able to use
getServlet().getResources() from an ActionForm, but
ActionServlet.getResources
has been deprecated.  Last time I tried it, it didn't seem to be working any
longer either.

Currently I'm getting the resources by calling
"request.getAttribute(Action.MESSAGES_KEY)".

Bruce


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Persisting values from a form

2002-03-01 Thread Bruce Geerdes

David Hoots wrote:

> I have a form that is a set of criteria used for performing a search.  I don't need 
>to persist the search criteria across Web sessions, but would like to persist them 
>within a session.  Every time I go to the page that has the search criteria a new 
>form instance gets created.  Could anybody tell me a way to get struts to reuse a 
>form that was previously saved (in the session for example)?

Have you tried setting the scope of the form to "session" in your struts-config?




Bruce


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




Re: Get MessageResource in ActionForm

2002-03-01 Thread Bruce Geerdes

"Struts Newsgroup (@Basebeans.com)" wrote:

> can someone give me a hint, how i can access MessageResources (From
> ApplicationResources.properties) within a Subclass of ActionForm???
>
> My prpoblem is, the ActionForm does not know anything about the
> ActionServlet, and so I have no Chance to get the Messages within
> ActionForm.
>
> I tried this:
> servlet.getMessageResources().getMessage("STRING_TO_LOOK_UP");
>
> But "servlet" and "getServlet" returns null.

Are you using the nightly build?  One used to be able to use
getServlet().getResources() from an ActionForm, but ActionServlet.getResources
has been deprecated.  Last time I tried it, it didn't seem to be working any
longer either.

Currently I'm getting the resources by calling
"request.getAttribute(Action.MESSAGES_KEY)".

Bruce


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




Re: JavaDocs

2002-03-01 Thread David Corbin

Galbreath, Mark wrote:

>The question of the location of the latest JavaDocs keeps recurring here.
>If you have the source code, run the JavaDoc utility yourself and voila!
>The latest documentation.  If you don't know how to do this, look it up in
>any basic Java book (or type "javadoc" at a command prompt without any
>arguments).
> 
>Mark
>
1) If it keeps recurring, maybe it should be in the FAQ.
2) If it keeps recurring, maybe the project should consider the 
customers and just package it up like most projects do

Thanks
David



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




RE: Getting a ServletContext

2002-03-01 Thread David Cypers

hey, those things can happen, don't worry :-)

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 1 maart 2002 16:23
To: Struts Users Mailing List
Subject: Re: Getting a ServletContext


Ok now I feel stupid.  Is it Friday yet?

I'm sorry I had it so pinned in my mind the method was getContext that I
never even thought to consult the docs.

Thank You!

- Original Message -
From: "David Cypers" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 9:20 AM
Subject: RE: Getting a ServletContext


> httpservlet documentation ==>
>
> HttpServlet.getServletContext()
>
>
>
> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 1 maart 2002 15:57
> To: Struts Users Mailing List
> Subject: Getting a ServletContext
>
>
> Hey guys/gals =)
>
> I'm trying to get a ServletContext object in one of my actions... but I
> don't seem to be having any luck.
>
> Here is what I've tried:
>
> servlet.getContext();
> getServlet().getContext();
>
> .. neither of which seem to work, in spite of the fact that ActionServlet
> extends HttpServlet.
>
> Thanks so much!
>
> Eddie
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: OT: Struts & MySQL Hosting

2002-03-01 Thread Vogel, Kent

http://www.servlets.com/isps/servlet/ISPViewAll

> -Original Message-
> From: Oliver Kiessler [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:58 AM
> To: Struts Users Mailing List
> Subject: Re: OT: Struts & MySQL Hosting
> 
> 
> hey you guys, come on, does anybody know a good java hosting company?
> 
> 
> Am Fre, 2002-03-01 um 15.57 schrieb dderry:
> > Not really a very good recommendation. Such a search could 
> only turn up a
> > list of hosting companies; with no information as to 
> wheather they are a
> > GOOD company, or just a bunch of opportunistic 
> blood-sucking leaches. It is
> > much more likely that subscribers to this list would be 
> able to provide
> > useful information.
> > 
> > Although I WILL agree that the request is OT and should 
> have probably stated
> > so in the subject line, while requesting private responses.
> > 
> > Dave D
> > 
> > 
> > - Original Message -
> > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Friday, March 01, 2002 9:40 AM
> > Subject: RE: Struts & MySQL Hosting
> > 
> > 
> > > STFW
> > >
> > > Mark
> > >
> > > -Original Message-
> > > From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 01, 2002 9:39 AM
> > > To: Struts Users Mailing List
> > > Subject: Struts & MySQL Hosting
> > >
> > >
> > > I have a small web site built using Struts with a simple 
> JDBC connection
> > > to a MySQL database - can anyone recommend a good site 
> hosting company
> > > that can support my configuration?
> > >
> > > Thanks,
> > > Matt
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail: 
> 
> > 
> > 
> -- 
> mailto: [EMAIL PROTECTED]
> web: http://www.linustar.de
> gnupg key: http://www.linustar.de/pgp/kiessler.gpg
> icq: 136832122
> ---
> The more I question the origin and meaning of our existence, the
> less I care. And the less I care, the more I question myself.
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Re: OT: Struts & MySQL Hosting

2002-03-01 Thread Dan Trevino

AOIndustries (http://www.aoindustries.com) has been very good for me.


On Fri, 2002-03-01 at 14:57, Oliver Kiessler wrote:
> hey you guys, come on, does anybody know a good java hosting company?
> 
> 
> Am Fre, 2002-03-01 um 15.57 schrieb dderry:
> > Not really a very good recommendation. Such a search could only turn up a
> > list of hosting companies; with no information as to wheather they are a
> > GOOD company, or just a bunch of opportunistic blood-sucking leaches. It is
> > much more likely that subscribers to this list would be able to provide
> > useful information.
> > 
> > Although I WILL agree that the request is OT and should have probably stated
> > so in the subject line, while requesting private responses.
> > 
> > Dave D
> > 
> > 
> > - Original Message -
> > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Friday, March 01, 2002 9:40 AM
> > Subject: RE: Struts & MySQL Hosting
> > 
> > 
> > > STFW
> > >
> > > Mark
> > >
> > > -Original Message-
> > > From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 01, 2002 9:39 AM
> > > To: Struts Users Mailing List
> > > Subject: Struts & MySQL Hosting
> > >
> > >
> > > I have a small web site built using Struts with a simple JDBC connection
> > > to a MySQL database - can anyone recommend a good site hosting company
> > > that can support my configuration?
> > >
> > > Thanks,
> > > Matt
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> > 
> > 
> -- 
> mailto: [EMAIL PROTECTED]
> web: http://www.linustar.de
> gnupg key: http://www.linustar.de/pgp/kiessler.gpg
> icq: 136832122
> ---
> The more I question the origin and meaning of our existence, the
> less I care. And the less I care, the more I question myself.
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
Dan Trevino
bluemagnet, llc
http://bluemagnet.com/

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




nasty prob with action forwards, formbeans, http requests and submit() methods

2002-03-01 Thread Paul Devalier

I've got a nice little STRUTS app working by sticking to the path set by the 
community examples and keeping my views gray and skeleton-like. I'm digging 
STRUTS, my form beans are not volatile through various wizard-style screens, 
so now I move on to fleshing things out by prettyfacing the JSPs and 
retrieving data from session beans for presentation by the view.

Assumption 1: Now that I need onChange and onClick events in the JSP tags, I 
need to rely on calling the submit() method of the form. This means I need 
to remove all of my  because of the problem mentioned by others 
on this list with name="submit" and "submit method not supported by this 
object".

Result: Good: the submit() method works and I can pass an action token 
either as a parameter of the request or as a hidden field via form bean 
property. Bad: My browser will not call the submit() method unless the URL 
of the request is *identical* to the URL of the source. So smile.jsp to 
smile.jsp works and I dispatch. faceSmile.do to smile.jsp or smile.jsp# 
fails because URLs differ and faceSmile.do or smile.jsp to faceFrown.do or 
frown.jsp fail. By *fail* I mean the submit() method *does not* call the 
perform() method of the smile action class (as verified through debugging 
console println).

Assumption 2: I need to call the action class of every JSP page and always 
forward to the action class instead of linking (href) to the JSP. This is 
necessary to properly populate collections, retrieve data from the business 
tier, etc. without resorting to scriptlets in the JSP. For example, every 
JSP forwards to a global forward like forward="face.Smile" my face.Smile 
forward paths to faceSmile.do and my faceSmile.do maps to face.jsp which 
contains an  whose action="faceSmile" and which uses the 
faceFormBean. This also solves my first problem because every link forwards 
to its own action class (smile.jsp links forward to faceSmile.do which 
matches the source URL).

Result: Good: Dispatching works, uses never see a jsp in the URL, my 
collections are populated in the action class and presented via the 
smile.jsp view. *Very Bad*: Every time I forward or call faceSmile.do, a new 
faceFormBean is instantiated, all properties are null (or default) and the 
methods in the action class attempting to get values from the faceFormBean 
get null. How do I control form bean recycling? What's going on? Does every 
call to a logical forward/action servlet generate a new request? I confirmed 
that the session id is constant.

Someone developing 4 or 5 tier apps must with STRUTS in the view and 
controller must have run into this problem! Can you help?

CONFIGURATIONS:
Tomcat 4.0/Struts 1.0/JDK1.3.1_02/JAXP1.01
Tomcat 4.0/Struts 1.0.2/JDK1.3.1_02/JAXP1.01
IBM Visual Age for Java 4.0 Enterprise with JTE and JAXP 1.0.1 nicely 
configured per help provided by many in this community (took a while 
though!)
Our target production environment is WebSphere 4 + Oracle 9i

Respectfully,
Paul Devalier


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: Getting a ServletContext

2002-03-01 Thread Eddie Bush

Ok now I feel stupid.  Is it Friday yet?

I'm sorry I had it so pinned in my mind the method was getContext that I
never even thought to consult the docs.

Thank You!

- Original Message -
From: "David Cypers" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 9:20 AM
Subject: RE: Getting a ServletContext


> httpservlet documentation ==>
>
> HttpServlet.getServletContext()
>
>
>
> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 1 maart 2002 15:57
> To: Struts Users Mailing List
> Subject: Getting a ServletContext
>
>
> Hey guys/gals =)
>
> I'm trying to get a ServletContext object in one of my actions... but I
> don't seem to be having any luck.
>
> Here is what I've tried:
>
> servlet.getContext();
> getServlet().getContext();
>
> .. neither of which seem to work, in spite of the fact that ActionServlet
> extends HttpServlet.
>
> Thanks so much!
>
> Eddie
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Getting a ServletContext

2002-03-01 Thread David Cypers

httpservlet documentation ==>

HttpServlet.getServletContext()



-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 1 maart 2002 15:57
To: Struts Users Mailing List
Subject: Getting a ServletContext


Hey guys/gals =)

I'm trying to get a ServletContext object in one of my actions... but I
don't seem to be having any luck.

Here is what I've tried:

servlet.getContext();
getServlet().getContext();

.. neither of which seem to work, in spite of the fact that ActionServlet
extends HttpServlet.

Thanks so much!

Eddie



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




logic:iterate String.

2002-03-01 Thread FARINE Arnaud - SOP ( [EMAIL PROTECTED] )

Hi!
I use a Vector object which contains String Object.
This Vector is in a JavaBeans, so I've got a getter method, which returns
the Vector.
When I want to iterate the list by:



How replace the "?" by a good code?!
I haven't idea! If my Vector contains some other complex object (others
beans for examples), this works well.
How do I to diplay my String(s)?

Thx for your answers

* 
SchlumbergerSema
Arnaud FARINE 
Ingénieur chargé d'études
Tel: 04.97.15.79.18 
[EMAIL PROTECTED]
 
150, Allée Pierre Ziller
Les Bouillides - BP279
06905 Sophia-Antipolis Cedex
Fax: 04.94.15.89.01 
 * 



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




Re: Struts and the UML modeling approach

2002-03-01 Thread Jean-Guillaume LALANNE

RE: Struts and the UML modeling approachHi, 

Thanks a lot for the tips.
I am getting to the same type of conclusion.
Too often, the use cases generated by the business analysts are compelling the 
architect and the developpers to
mix up processes related to the presentation tier with the processes related to the 
company own business. 
When we want afterwards to untight both types of processes to open the global 
architecture towards standalone application
or webservices, it is very tough actuallly.
This is why I'd like to find out a UML methodology to access the Struts framework for 
non-java developper.
I would like to protect the developpers and avoid them to reinvent the wheel about web 
java MVC2 framework and command pattern 
The use of the machine state diagram seems to be obvious for such a goal. 
We can easily feel the gateway in between the machine state diagram and the struts 
framework. It is almost like a natural move. 
But when we talk about state, shall we consider the page (view) or the ViewBean 
(model) (the controller do not have any state ...) ?
or both ?

formbean <---> event
jsp <> state
ViewBean <---> state
Action <---> action !!!
transition <---> forward
logic condition (or rule) <---> ??? (doesn't exist yet and would be maybe the future 
struts workflow project).

Anyway, the idea to generate XMI files from the machine state diagram and to generate 
struts code from these XMI files is pretty atractive.
I've done so with entity beans code generation from database METADATA XML 
representation and it would extremely nice to find such a tool
for struts for example (the CAMINO approach is good but doesn't refer to any UML 
approach...).
Something like EJBGen but instead going from the XMI representation of the database 
schema, going from the XMI representation of the Web tier 
presentation layer : struts for example.

Your feedbacks would really be appreciated.
Thanks a lot

Best Regards
Jean-Guillaume LALANNE
(sorry for the bad translation of this off-line discussion)   


Merci pour le conseil. J'arrive au même type de conclusion.
Trop souvent les use cases générées par les fonctionnels emmènent les architectes 
à mélanger les 
processus liés à la présentation et ceux liés aux fonctionnalités métier de 
l'entreprise. Et si après on veut faire 
de l'applicatif standalone ou du webservice et bien, tous les processus métiers 
sont couplés au web tier ...et il devient difficile
de tout découpler. c'est bien dans cet esprit que j'essaie de voir comment on peut 
accéder à un framework du style de struts en
passant par UML. Les mhachines d'état sont une étape évidente.
Mais les états concernent-t-ils la vue ou le modèle (le controlleur n'a pas 
vraiment d'état) ? les 2 ?

En tout cas, j'aime beaucoup l'idée du template xsl pour générer le code (j'ai 
déjà fait un truc comme ca pour les entity beans CMP).
XMI ...je ne maitrise pas trop encore...
Mais bon je vais peut-être m'y pencher de plus près.

Merci encore pour les conseils

Cordialement
Jean-Guillaume LALANNE

  - Original Message - 
  From: Pierre-Yves Chauveau 
  To: 'Jean-Guillaume LALANNE ' 
  Sent: Friday, March 01, 2002 8:57 AM
  Subject: RE: Struts and the UML modeling approach


Salut, 
  Use-case and use-case realizations are nice for the business-tier but not the 
presentation-tier, because you need to describe the navigation beetween your pages.

  The best way would be to describe your navigation with a state machine : 
basically the states are the JSP and the events, the actions. Then you can generate 
the struts-config.xml. Use other possiblities of xml to describe the 
FormBeans,Datasource etc... Then export the model in xmi, and do some Xslt 
transformation.

  So far, I'm looking for something that would do that... 

Pierre-Yves chauveau 

  -Message d'origine- 
  De: Jean-Guillaume LALANNE 
  A: Arnaud Buisine 
  Cc: [EMAIL PROTECTED] 
  Date: 28/02/02 16:37 
  Objet: Re: Struts and the UML modeling approach 

  Hi or Salut, 

  I haven't got any answer... 
  But I'd like to get some !!! 
  I look at your site www.sysdeo.com and I was surprised to find out that 
  we 
  are dealing with the 
  same kind of stuff : UML,WSAD,J2EE,EJB,XML/XSL,Struts  

  To come back to our ships (just kidding ...), I am working for a client 
  that 
  doesn't know so much about 
  UML,java,J2EE,websphere and other interesting stuff like these ones, and 
  that has decided to run a project 
  on all these features right away. Pretty ambitious. 
  I have to help them on this project. 
  I like the idea of going slowly from UML to the code. I like also the 
  idea 
  to use a simple framework to guide them 
  on a good track. I think Struts is a good framework to start. 
  But the point is : how to link the fra

Fw: Struts and the UML modeling approach

2002-03-01 Thread Jean-Guillaume LALANNE

RE: Struts and the UML modeling approach
- Original Message - 
From: Pierre-Yves Chauveau 
To: 'Jean-Guillaume LALANNE ' 
Sent: Friday, March 01, 2002 8:57 AM
Subject: RE: Struts and the UML modeling approach


  Salut, 
Use-case and use-case realizations are nice for the business-tier but not the 
presentation-tier, because you need to describe the navigation beetween your pages.

The best way would be to describe your navigation with a state machine : basically the 
states are the JSP and the events, the actions. Then you can generate the 
struts-config.xml. Use other possiblities of xml to describe the FormBeans,Datasource 
etc... Then export the model in xmi, and do some Xslt transformation.

So far, I'm looking for something that would do that... 

  Pierre-Yves chauveau 

-Message d'origine- 
De: Jean-Guillaume LALANNE 
A: Arnaud Buisine 
Cc: [EMAIL PROTECTED] 
Date: 28/02/02 16:37 
Objet: Re: Struts and the UML modeling approach 

Hi or Salut, 

I haven't got any answer... 
But I'd like to get some !!! 
I look at your site www.sysdeo.com and I was surprised to find out that 
we 
are dealing with the 
same kind of stuff : UML,WSAD,J2EE,EJB,XML/XSL,Struts  

To come back to our ships (just kidding ...), I am working for a client 
that 
doesn't know so much about 
UML,java,J2EE,websphere and other interesting stuff like these ones, and 
that has decided to run a project 
on all these features right away. Pretty ambitious. 
I have to help them on this project. 
I like the idea of going slowly from UML to the code. I like also the 
idea 
to use a simple framework to guide them 
on a good track. I think Struts is a good framework to start. 
But the point is : how to link the framework to the modelling, I mean 
how to 
represent struts in the global UML approach ? 
Use cases are really interesting to get the client requirements but 
doesn't 
help so much in the web GUI modelling (MVC + display workflow). 

I have heard about rational and together approach but I don't know so 
much 
about it. 

If you have some inputs or some urls, they would really be appreciated. 

Thanks in advance 

Best Regards 
Jean-Guillaume LALANNE 




- Original Message - 
From: "Arnaud Buisine" <[EMAIL PROTECTED]> 
To: <[EMAIL PROTECTED]> 
Sent: Thursday, February 28, 2002 4:10 PM 
Subject: RE: Struts and the UML modeling approach 



> Did u get an answer ? 
> Any way I can help ? 
> 
> > -Message d'origine- 
> > De : Jean-Guillaume LALANNE [mailto:[EMAIL PROTECTED]] 
> > Envoyé : jeudi 28 février 2002 10:49 
> > À : Struts Users Mailing List 
> > Objet : Struts and the UML modeling approach 
> > 
> > 
> > Hi, 
> > 
> > Has anyone of you managed to integrate a Struts framework in a 
> > complete UML 
> > approach or methodology ? 
> > I am trying to do so but I am getting difficulties to find out the 
way I 
> > should go from my use cases, my 
> > state diagrams and my activity diagrams to the Form Beans, the 
Actions 
and 
> > the navigation (mapping). 
> > 
> > Any help or feedback would really be appreciated. 
> > 
> > Thanks in advance. 
> > 
> > Jean-Guillaume LALANNE 
> > 
> > - Original Message - 
> > From: "MICHEL Stéphane" <[EMAIL PROTECTED]> 
> > To: <[EMAIL PROTECTED]> 
> > Sent: Thursday, February 28, 2002 10:21 AM 
> > Subject: How to use Struts with HTML forms generated dynamicly 
> > 
> > 
> > > Hi, 
> > > 
> > > I have HTML forms generated dynamicly (with XSL and XML) from a 
SGDB 
> > > structure. 
> > > So i think, i can't use strust HTML taglibs (i don't know how !) 
> > > 
> > > So my question is : How can I use the struts framework with this 
kind 
of 
> > > forms ? Is it adapted to my needs ? 
> > > 
> > > SM 
> > > 
> > > 
> > > -- 
> > > To unsubscribe, e-mail: 
> >  
> > > For additional commands, e-mail: 
> >  
> > 
> > 
> > _ 
> > Do You Yahoo!? 
> > Get your free @yahoo.com address at http://mail.yahoo.com 
> > 
> > 
> > -- 
> > To unsubscribe, e-mail: 
>  
> For additional commands, e-mail: 
>  
> 



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



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



= 
Ce message et toutes les pièces jointes sont propriété de VALTECH et 
susceptibles de contenir des informations confidentielles à l'intention 
exclusive de ses destinataires. Si vous avez reçu ce message par erreur 
ou si celui ci vous est parvenu incomplet ou altéré, merci d'en avertir 
l'expéditeur par retour.Toute utilisation, diffusion ou publication non 
expressément autorisée par nous par écrit est strictement interdite. 
 -

Re: tiles-config.dtd - 403 Forbidden Error

2002-03-01 Thread Fernando Esteban Barril Otero

Tiles digester uses the public id specified in tiles-def.xml
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
to link the dtd that should be used for validation. The
dtd is retrieved from the jar.

Using digester, you can register a DTD URL for the specified
public id, so you can pass a URL that point to the dtd in the jar.

Fernando

- Original Message - 
From: "c tang" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 11:12 AM
Subject: Re: tiles-config.dtd - 403 Forbidden Error


> In tile-def.xml, there is no SYSTEM resource
> specified.  What is the machanism used to located
> tiles-config.dtd?
> 
> Thanks!
> 
> --- Cedric Dumoulin <[EMAIL PROTECTED]> wrote:
> > 
> >   The dtd is not available at this address, but this
> > doesn't affect Tiles
> > validation process. When Tiles digester want to
> > validate an xml file, it uses a
> > version of the dtd located in tiles.jar (this dtd is
> > linked to the specified
> > URL). There is no need to connect to the specified
> > URL. The same process apply to
> > Struts's dtds.
> > 
> >  Cedric
> > 
> > "Struts Newsgroup (@Basebeans.com)" wrote:
> > 
> > > Subject: tiles-config.dtd - 403 Forbidden Error
> > > From: "Don Miller" <[EMAIL PROTECTED]>
> > >  ===
> > > I'm getting a 403 Forbidden error when accessing
> > the tiles-config.dtd in the
> > > following location for validation:
> > >
> > >
> >
> http://jakarta.apache.org/struts/dtds/tiles-config.dtd
> > >
> > > Is there another location to which I can refer in
> > my doctype?
> > >
> > > Thanks,
> > > Don


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




Re: Newbie problem

2002-03-01 Thread Stelian Iancu

well, it is 1.4 rc. I think it's a tomcat problem because it seems to give
me the same error no matter what .jsp I try to run.

Regards,
Stelian Iancu
--
Eclipse. Probably the best IDE. Ever. (www.eclipse.org)



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




Getting a ServletContext

2002-03-01 Thread Eddie Bush

Hey guys/gals =)

I'm trying to get a ServletContext object in one of my actions... but I don't seem to 
be having any luck.

Here is what I've tried:

servlet.getContext();
getServlet().getContext();

... neither of which seem to work, in spite of the fact that ActionServlet extends 
HttpServlet.

Thanks so much!

Eddie




Re: Struts & MySQL Hosting

2002-03-01 Thread Luis M. Rosso

Hi, Matt

Take a look at www.webappcabaret.com

They support a wide range of open source tools for java web apps, have very
good prices, and let you try their service for free for 30 days.

Hope this helps

Cheers

Luis

- Original Message -
From: "Matt Koidin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 11:39 AM
Subject: Struts & MySQL Hosting


I have a small web site built using Struts with a simple JDBC connection
to a MySQL database - can anyone recommend a good site hosting company
that can support my configuration?

Thanks,
Matt

--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Struts & MySQL Hosting

2002-03-01 Thread Galbreath, Mark

It's Friday  ;-)

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:51 AM
To: Struts Users Mailing List
Subject: Re: Struts & MySQL Hosting


LOL - Excellent, Mark!

(I've seen this before - gotta love it!)

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:50 AM
Subject: RE: Struts & MySQL Hosting


> See "How To Interpret Answers" at
> http://www.tuxedo.org/~esr/faqs/smart-questions.html
>
> Mark
>
> -Original Message-
> From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:42 AM
> To: Struts Users Mailing List
> Subject: RE: Struts & MySQL Hosting
>
>
> What does STFW mean???
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:41 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts & MySQL Hosting
>
>
> STFW
>
> Mark
>
> -Original Message-
> From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:39 AM
> To: Struts Users Mailing List
> Subject: Struts & MySQL Hosting
>
>
> I have a small web site built using Struts with a simple JDBC connection
> to a MySQL database - can anyone recommend a good site hosting company
> that can support my configuration?
>
> Thanks,
> Matt
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: OT: Struts & MySQL Hosting

2002-03-01 Thread Oliver Kiessler

hey you guys, come on, does anybody know a good java hosting company?


Am Fre, 2002-03-01 um 15.57 schrieb dderry:
> Not really a very good recommendation. Such a search could only turn up a
> list of hosting companies; with no information as to wheather they are a
> GOOD company, or just a bunch of opportunistic blood-sucking leaches. It is
> much more likely that subscribers to this list would be able to provide
> useful information.
> 
> Although I WILL agree that the request is OT and should have probably stated
> so in the subject line, while requesting private responses.
> 
> Dave D
> 
> 
> - Original Message -
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 9:40 AM
> Subject: RE: Struts & MySQL Hosting
> 
> 
> > STFW
> >
> > Mark
> >
> > -Original Message-
> > From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 01, 2002 9:39 AM
> > To: Struts Users Mailing List
> > Subject: Struts & MySQL Hosting
> >
> >
> > I have a small web site built using Struts with a simple JDBC connection
> > to a MySQL database - can anyone recommend a good site hosting company
> > that can support my configuration?
> >
> > Thanks,
> > Matt
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
-- 
mailto: [EMAIL PROTECTED]
web: http://www.linustar.de
gnupg key: http://www.linustar.de/pgp/kiessler.gpg
icq: 136832122
---
The more I question the origin and meaning of our existence, the
less I care. And the less I care, the more I question myself.


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




Re: Newbie problem

2002-03-01 Thread Adam Fields


"Stelian Iancu" says:
> I've just downloaded and installed Struts for the first time. I have Tomcat
> 4.0.1 on a win2k box. I have a problem with struts-example. When I try to
> access it, it gives me the following exception:
> 
> javax.servlet.ServletException: sun/tools/javac/Main (Unsupported
> major.minor version 48.0)
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compil
ed
> Code)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> 
> Do you know why? Any help is appreciated! Thanks!

Possibly your jdk is out of date?

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




Re: OT: Struts & MySQL Hosting

2002-03-01 Thread dderry

Not really a very good recommendation. Such a search could only turn up a
list of hosting companies; with no information as to wheather they are a
GOOD company, or just a bunch of opportunistic blood-sucking leaches. It is
much more likely that subscribers to this list would be able to provide
useful information.

Although I WILL agree that the request is OT and should have probably stated
so in the subject line, while requesting private responses.

Dave D


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 9:40 AM
Subject: RE: Struts & MySQL Hosting


> STFW
>
> Mark
>
> -Original Message-
> From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:39 AM
> To: Struts Users Mailing List
> Subject: Struts & MySQL Hosting
>
>
> I have a small web site built using Struts with a simple JDBC connection
> to a MySQL database - can anyone recommend a good site hosting company
> that can support my configuration?
>
> Thanks,
> Matt
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: Struts & MySQL Hosting

2002-03-01 Thread Eddie Bush

LOL - Excellent, Mark!

(I've seen this before - gotta love it!)

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:50 AM
Subject: RE: Struts & MySQL Hosting


> See "How To Interpret Answers" at
> http://www.tuxedo.org/~esr/faqs/smart-questions.html
>
> Mark
>
> -Original Message-
> From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:42 AM
> To: Struts Users Mailing List
> Subject: RE: Struts & MySQL Hosting
>
>
> What does STFW mean???
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:41 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts & MySQL Hosting
>
>
> STFW
>
> Mark
>
> -Original Message-
> From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:39 AM
> To: Struts Users Mailing List
> Subject: Struts & MySQL Hosting
>
>
> I have a small web site built using Struts with a simple JDBC connection
> to a MySQL database - can anyone recommend a good site hosting company
> that can support my configuration?
>
> Thanks,
> Matt
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: Struts & MySQL Hosting

2002-03-01 Thread Eddie Bush

It means you might like to do a web search =)

HTH,

EDDIE

- Original Message -
From: "Juan Alvarado (Struts List)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:42 AM
Subject: RE: Struts & MySQL Hosting


> What does STFW mean???
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:41 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts & MySQL Hosting
>
>
> STFW
>
> Mark
>
> -Original Message-
> From: Matt Koidin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:39 AM
> To: Struts Users Mailing List
> Subject: Struts & MySQL Hosting
>
>
> I have a small web site built using Struts with a simple JDBC connection
> to a MySQL database - can anyone recommend a good site hosting company
> that can support my configuration?
>
> Thanks,
> Matt
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Struts & MySQL Hosting

2002-03-01 Thread Galbreath, Mark

See "How To Interpret Answers" at
http://www.tuxedo.org/~esr/faqs/smart-questions.html

Mark

-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:42 AM
To: Struts Users Mailing List
Subject: RE: Struts & MySQL Hosting


What does STFW mean???

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:41 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts & MySQL Hosting


STFW

Mark

-Original Message-
From: Matt Koidin [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:39 AM
To: Struts Users Mailing List
Subject: Struts & MySQL Hosting


I have a small web site built using Struts with a simple JDBC connection
to a MySQL database - can anyone recommend a good site hosting company
that can support my configuration?

Thanks,
Matt

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: EJB and Struts?

2002-03-01 Thread Jon.Ridgway

Hi Dirk,

Struts is just a web app framework. EJB support is provided by your
container; nothing what so ever to do with Struts. If your container
supports it crab an InitialContext and lookup your ejb in a Struts Action
class. See previous email in this thread for details.

Jon.

-Original Message-
From: Dirk Breitenbach [mailto:[EMAIL PROTECTED]] 
Sent: 01 March 2002 10:47
To: [EMAIL PROTECTED]
Subject: Re: EJB and Struts?

And do you know, if EJBs are supported by Struts??

Can I Access EJBs like a Database in Struts, but only with JNDI instead
of JDBC??

Dirk


"Jon.Ridgway" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:<[EMAIL PROTECTED]>...
> Hi Dirk,
> 
> If you want to talk from tomcat to iAS you will need to create
IIOP/RMI
> aware EJB in iPlanet. This will give you some remote stubs. Add these
to
> your web app in tomcat. Add a CXS process to iAS. Your web app will
need to
> create an InitialContext using com.sun.jndi.cosnaming.CNCtxFactory.
> 
> Have a look under ias6/ias-samples/j2eeguide/converter for an example
of a
> remote client talking to iAS. You should also check out the iAS Java
> Developers guide for details on creating a remote client
>
(http://docs.iplanet.com/docs/manuals/ias/60/sp3/JavaProgGuide/jpgrichc.
htm#
> 11284)
> 
> You live would be a lot simpler if you used iAS/iWS for development.
iWS
> performs differently to Tomcat in some areas, so code that works under
> Tomcat won't necessarily work when deployed to iAS/iWS.
> 
> 
> Jon.
> 
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] 
> Sent: 01 March 2002 10:10
> To: [EMAIL PROTECTED]
> Subject: EJB and Struts?
> 
> Subject: EJB and Struts?
> From: "Dirk Breitenbach" <[EMAIL PROTECTED]>
>  ===
> Hi,
> does anybody know, how i can bind EJBs to my Struts-Application?
> Is it possible to make a connection over the data-Sources-Entries in
> struts-config.xml? What driver to use? JNDI??
> 
> The EJBs are deployed on an IPlanet Application Server, where my
> Webapplikation is also deployed. But I use a local Tomcat-Installation
for
> developping.
> 
> Anyone who can help?
> 
> Dirk
> 
> PS: Sorry for my bad english.
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Struts & MySQL Hosting

2002-03-01 Thread Juan Alvarado \(Struts List\)

What does STFW mean???

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:41 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts & MySQL Hosting


STFW

Mark

-Original Message-
From: Matt Koidin [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:39 AM
To: Struts Users Mailing List
Subject: Struts & MySQL Hosting


I have a small web site built using Struts with a simple JDBC connection
to a MySQL database - can anyone recommend a good site hosting company
that can support my configuration?

Thanks,
Matt

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: sorting a collection obtained through iterate tag

2002-03-01 Thread Adam Hardy

It doesn't say anything about such functionality in the docs, and the way I do it is 
by filling the collection (I use an ArrayList) with the results of a query which I 
specified an Order By clause in. 

If you use a hashtable, it loses the ordering.

Adam




On Fri, 01 March 2002, "Dua, Amit" wrote:

> 
> 
> Is there a way in struts to sort the collection based on one of the
> properties during iteration.
> 
> Amit
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com

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




RE: internationalization

2002-03-01 Thread Galbreath, Mark

Read Chapter 13 of Jason Hunter's "Java Servlet Programming, 2d. ed."

Mark

-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 4:10 AM

After read URL http://www.anassina.com/struts/i18n/i18n.html, i have
a question to internationalized an application with struts :
How to change dynamicaly the language of my application, without the default
language of my browser. By clicking on a flag per example.

Thank
Damien





--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Struts & MySQL Hosting

2002-03-01 Thread Galbreath, Mark

STFW

Mark

-Original Message-
From: Matt Koidin [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:39 AM
To: Struts Users Mailing List
Subject: Struts & MySQL Hosting


I have a small web site built using Struts with a simple JDBC connection
to a MySQL database - can anyone recommend a good site hosting company
that can support my configuration?

Thanks,
Matt

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Struts & MySQL Hosting

2002-03-01 Thread Matt Koidin

I have a small web site built using Struts with a simple JDBC connection
to a MySQL database - can anyone recommend a good site hosting company
that can support my configuration?

Thanks,
Matt

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




sorting a collection obtained through iterate tag

2002-03-01 Thread Dua, Amit


Is there a way in struts to sort the collection based on one of the
properties during iteration.

Amit

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




JavaDocs

2002-03-01 Thread Galbreath, Mark

The question of the location of the latest JavaDocs keeps recurring here.
If you have the source code, run the JavaDoc utility yourself and voila!
The latest documentation.  If you don't know how to do this, look it up in
any basic Java book (or type "javadoc" at a command prompt without any
arguments).
 
Mark



Re: tiles-config.dtd - 403 Forbidden Error

2002-03-01 Thread c tang

In tile-def.xml, there is no SYSTEM resource
specified.  What is the machanism used to located
tiles-config.dtd?

Thanks!

--- Cedric Dumoulin <[EMAIL PROTECTED]> wrote:
> 
>   The dtd is not available at this address, but this
> doesn't affect Tiles
> validation process. When Tiles digester want to
> validate an xml file, it uses a
> version of the dtd located in tiles.jar (this dtd is
> linked to the specified
> URL). There is no need to connect to the specified
> URL. The same process apply to
> Struts's dtds.
> 
>  Cedric
> 
> "Struts Newsgroup (@Basebeans.com)" wrote:
> 
> > Subject: tiles-config.dtd - 403 Forbidden Error
> > From: "Don Miller" <[EMAIL PROTECTED]>
> >  ===
> > I'm getting a 403 Forbidden error when accessing
> the tiles-config.dtd in the
> > following location for validation:
> >
> >
>
http://jakarta.apache.org/struts/dtds/tiles-config.dtd
> >
> > Is there another location to which I can refer in
> my doctype?
> >
> > Thanks,
> > Don
> >
> > --
> > To unsubscribe, e-mail:  
> 
> > For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




Re: Digester Link Question

2002-03-01 Thread Fernando Esteban Barril Otero

Take a look at Jakarta-Commons
(http://jakarta.apache.org/commons/index.html).

Fernando

- Original Message -
From: "Stacy Weng" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 2:02 PM
Subject: Digester Link Question


Does anyone have any idea where the link for digester on apache.org has
gone?  Does anyone know if maybe the digester project is getting merged into
another xml project?  If so, is a better alternative for using xml parsing
in struts?  Thanks in advance for any input.

--Stacy



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




Digester Link Question

2002-03-01 Thread Stacy Weng

Does anyone have any idea where the link for digester on apache.org has gone?  Does 
anyone know if maybe the digester project is getting merged into another xml project?  
If so, is a better alternative for using xml parsing in struts?  Thanks in advance for 
any input.

--Stacy



RE: Memory consumption of tags

2002-03-01 Thread MARK NICHOLS

Maybe posting it under a subject that matches the topic would help

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

"Ooo. They've got the Internet on computers now." - Homer Simpson 

>>> [EMAIL PROTECTED] 02/28/02 03:20PM >>>
This is posted a couple of times, hope someone can help me out:


> What I need to do is this:  I would like to display an error message to
the
> user in a little more customized way, such as, if some special characters
> are not allowed in a field, if they entered any of this special character
> set, (say @#$), I would like to display that "@#$ is not allowed in this
> field".  Also I would like to change the fields where erroneous data exist
> into red, possbly change the font of the erroneous data into a different
> font color.  When the user correct the error,  I want the background of
that
> field to be original color and font back to original color too.  I would
> also like to focus my cursor in the first erroneous field, if erroneous
data
> exists, I would like to select that erroneous data.   Can I do that?  How
do
> I do that?  It seems like Javascript is not welcomed here, so I am looking
> for a solution in Struts.  Hopefully there is a nice way to do this.
> 
> Really appreciate all your time and help,

Yanhui



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



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




Get MessageResource in ActionForm

2002-03-01 Thread @Basebeans.com

Subject: Get MessageResource in ActionForm
From: "Dirk Breitenbach" <[EMAIL PROTECTED]>
 ===
Hi,

can someone give me a hint, how i can access MessageResources (From
ApplicationResources.properties) within a Subclass of ActionForm???

My prpoblem is, the ActionForm does not know anything about the
ActionServlet, and so I have no Chance to get the Messages within
ActionForm.

I tried this:
servlet.getMessageResources().getMessage("STRING_TO_LOOK_UP");

But "servlet" and "getServlet" returns null.

How can I solve this Problem???

Dirk



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




Newbie problem

2002-03-01 Thread Stelian Iancu

Hello all !

I've just downloaded and installed Struts for the first time. I have Tomcat
4.0.1 on a win2k box. I have a problem with struts-example. When I try to
access it, it gives me the following exception:

javax.servlet.ServletException: sun/tools/javac/Main (Unsupported
major.minor version 48.0)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)

Do you know why? Any help is appreciated! Thanks!

Regards,
Stelian Iancu
--
Eclipse. Probably the best IDE. Ever. (www.eclipse.org)




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




RE: JavaDoc

2002-03-01 Thread jmcabello

Download the source.

-Mensaje original-
De: David Corbin [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 01 de marzo de 2002 13:58
Para: [EMAIL PROTECTED]
Asunto: JavaDoc


Is the struts javadoc available as a download, or as part of the binary
package?  I can't find it.  (I know it's available on the web-site, but
that's a) online, and b) the 1.1 stuff.

Thanks.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




JavaDoc

2002-03-01 Thread David Corbin

Is the struts javadoc available as a download, or as part of the binary 
package?  I can't find it.  (I know it's available on the web-site, but 
that's a) online, and b) the 1.1 stuff.

Thanks.


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




RE: Templates!

2002-03-01 Thread Ian Hunter

Sorry Folks,

Just found the bit about useing flush - did the job!

Perhaps this is an FAQ? It certainly stumped for a while.

Ian


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




RE: User Registration with Struts query

2002-03-01 Thread Jesse Alexander (KADA 12)

I'd suggest writing a helper to solve this. The helper would be built with plug-in
realm-specific classes. To make it easier to get access it from a model-class you 
could 
design it as a singleton, if you want to access it only form an action, store it in 
the servlet-context (== application-wide). To set it up I'd use a a startup-servlet 
with 
init-parm's that instantiates the helper and its plug-in.

I do not think there is really a standard-mechanism to add to the realm...

hth
Alexander Jesse

-Original Message-
From: Emaho, Ghoot [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 27. Februar 2002 14:43
To: [EMAIL PROTECTED]
Subject: User Registration with Struts query


I have a question regarding registering new users of a struts web app.
 
If the web app is using container managed security, and say form-based authentication, 
and a registration action is available for new users, is there a way to implement the 
registration process that is portable ?
 
For instance, if user info is stored in a 'database', the container manages the 
authentication checks during login. However when a new user completes the 
registration, the registraion action then needs to 'add' this user, but I dont really 
want to put the specifics of the user database etc into the registering action, as it 
may be deployed using LDAP somewhere else.
 
All the other security stuff seems to be portable across implementations, and i know 
the spec doesnt deal with maintaining users, but does this really mean that I need to 
implement specific registration for each different user 'database' that may be used ?
 
Ideally I want to do something like:
 
realm.addUser(...)
 
where 'realm' is the user database (LDAP, RDBMS whatever) which would keep the 
registration action portable.
 
(Note: when I talk about the registration action being portable, i know in real terms 
this stuff would be in a helper bean/business delegate, so I could have different 
delegates deal with different databases - i just wanted to keep the question simple, 
so I say the registration action.)
 
How have you dealt with this ? Is there a portable solution ?
 
Thanks for any feedback
 
Ghoot Emaho
Development Team Leader
Petrotechnics   Ltd

 

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




RE: Help: Internationalization:I can't see Arabic or Chinese script?

2002-03-01 Thread Chris Birch

Hi,

BEA Weblogic 6.0 fails to set the charset properly because it gets the
writer before the content-type is set.

Refer to http://tagunov.newmail.ru/i18n/i18n.html for details.

Chris.

-Original Message-
From: Aroui, Dr. Djelloul [mailto:[EMAIL PROTECTED]]
Sent: 01 March 2002 10:28
To: 'Struts Users Mailing List'
Subject: Help: Internationalization:I can't see Arabic or Chinese
script?


My application is based on jsp, struts and weblogic. I read my text from the
properties files (Resources.properties). My application is running for
weasten European languages (English, german, French). In the same way, I
have create Arabic (Resources_ar.properties) and Chinese
(Resources_zh.properties) Properties files  and I have use Unicode (e.g.
\u0633) in the files. I use IE5.5 and the fonts is already installed (I can
see Arabic and Chinese scripts for another site on my browser).

I use in the jsp this tags:

   

or the equivalent  <%@ page contentType="text/html; charset=UTF-8" %>

I have proof in the generated html file and charset is = "UTF-8".

I have also try with another code for arabic "windows-1256" for Arabic, but
without any success.

Problem: I can't see Arabic or Chinese. Can anybody help me to solve this
problem.

Thanks.

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Templates!

2002-03-01 Thread Ian Hunter

Hi Folks,

I've got a problem with strut templates. The included HTML file appears
*before* the template  tag! An included text appears fine.

I'm using Jetty-3.1.3 (combined with JBoss 2.4.4)

Many thanks for any help

Ian

Heres my simple example

TEMPLATE
--
<%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>


  

  


  


TEMPLATE
--


PAGE
-
<%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>


  
  

PAGE
-


FRAGMENT

Sidebar
FRAGMENT



OUTPUT
SRC-
-
Sidebar


  Title

  
Title
  

OUTPUT--
---






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




Re: Usage of Action Tokens - preventing application 'damage' by impatient users

2002-03-01 Thread Tom Bednarz

Brad,

> You can prevent multiple submits in the client side using JavaScript.
Below
> is some code that you can see in action at
>
I do NOT want do it in JavaScript on the client side. JavaScript may be
turned off or not supported by a browser. So anything written in JavaScript
is very browser dependent and therfore unreliable for my system.

It must be possible to do it on the server side with action tokens. I simply
do not understand when to use:

generateToken() or saveToken().

Somehow I am missing a method like String getToken() to retrieve it from the
session and compare it with what I have stored in the request.

Can anybody help please?

Many thanks

Thomas


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




Re: EJB and Struts?

2002-03-01 Thread Dirk Breitenbach

And do you know, if EJBs are supported by Struts??

Can I Access EJBs like a Database in Struts, but only with JNDI instead
of JDBC??

Dirk


"Jon.Ridgway" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:<[EMAIL PROTECTED]>...
> Hi Dirk,
> 
> If you want to talk from tomcat to iAS you will need to create
IIOP/RMI
> aware EJB in iPlanet. This will give you some remote stubs. Add these
to
> your web app in tomcat. Add a CXS process to iAS. Your web app will
need to
> create an InitialContext using com.sun.jndi.cosnaming.CNCtxFactory.
> 
> Have a look under ias6/ias-samples/j2eeguide/converter for an example
of a
> remote client talking to iAS. You should also check out the iAS Java
> Developers guide for details on creating a remote client
>
(http://docs.iplanet.com/docs/manuals/ias/60/sp3/JavaProgGuide/jpgrichc.
htm#
> 11284)
> 
> You live would be a lot simpler if you used iAS/iWS for development.
iWS
> performs differently to Tomcat in some areas, so code that works under
> Tomcat won't necessarily work when deployed to iAS/iWS.
> 
> 
> Jon.
> 
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] 
> Sent: 01 March 2002 10:10
> To: [EMAIL PROTECTED]
> Subject: EJB and Struts?
> 
> Subject: EJB and Struts?
> From: "Dirk Breitenbach" <[EMAIL PROTECTED]>
>  ===
> Hi,
> does anybody know, how i can bind EJBs to my Struts-Application?
> Is it possible to make a connection over the data-Sources-Entries in
> struts-config.xml? What driver to use? JNDI??
> 
> The EJBs are deployed on an IPlanet Application Server, where my
> Webapplikation is also deployed. But I use a local Tomcat-Installation
for
> developping.
> 
> Anyone who can help?
> 
> Dirk
> 
> PS: Sorry for my bad english.
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 

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




Re: Struts and the UML modeling approach

2002-03-01 Thread Jon Ferguson

Greetings,

I'm currently using Visio with UML templates.  One reason I like it is that it
is not pedantic like Rose..  Doesn't try to do too much - allows you to
use license to say what you mean and leave out unimportant detail.  IMHO trying
to be to detailed in UML forces design decisions that are best left
until later.  I believe architecture rarely should specify all the details - and
coding is part of design.

I'm currently adopting a lightweight methodology - a bit like XP.   However, I
do significant analysis up-front then use XPs user story card, small releases
and automated unit-testing.  From a steering point-of-view small releases really
focuses your mind on what's important and gets stuff in front of the
customer asap to create a feedback loop.  I'm using static class and
object-interaction diagrams as needed to keep people (and myself) in the
picture.

Cheers,
Jon

Mark Johnson wrote:

> UML diagram:  http://husted.com/struts/resources/uml-jps.pdf
>
> free UML modelling software: http://gentleware.de
> (poseidon community edition based on open source argouml, but more
> user-friendly, good doc, etc; generates java class stubs from class
> diagrams, and claims to 'reverse-engineer' class diagrams from source)
>
> --
>
> Mark Johnson
> [EMAIL PROTECTED]
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



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


Re: tiles-config.dtd - 403 Forbidden Error

2002-03-01 Thread Cedric Dumoulin


  The dtd is not available at this address, but this doesn't affect Tiles
validation process. When Tiles digester want to validate an xml file, it uses a
version of the dtd located in tiles.jar (this dtd is linked to the specified
URL). There is no need to connect to the specified URL. The same process apply to
Struts's dtds.

 Cedric

"Struts Newsgroup (@Basebeans.com)" wrote:

> Subject: tiles-config.dtd - 403 Forbidden Error
> From: "Don Miller" <[EMAIL PROTECTED]>
>  ===
> I'm getting a 403 Forbidden error when accessing the tiles-config.dtd in the
> following location for validation:
>
> http://jakarta.apache.org/struts/dtds/tiles-config.dtd
>
> Is there another location to which I can refer in my doctype?
>
> Thanks,
> Don
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: Tiles not working, I'm using a recent nightly build.

2002-03-01 Thread Cedric Dumoulin


  Have you try the struts-tiles.war or tiles-doc.war example ? Does it run for
you ?

  To use Tiles with the latest nightly builds, you should specify appropriate
RequestController in the struts-config.xml file. Check the syntax in the
struts-config.xml file coming with the example.

  Also, you can start with the tiles-blank-struts1.1.war file coming with the
Tiles distribution from Tiles main site. Sources of this war file are also
available if you download Struts sources.

Cedric

Eric Boudreau wrote:

> I'm starting to integrate Tiles into an application that has been built with
> Struts. I built a simple test page but it won't display in the browser. I'm
> not getting any exceptions or useful diagnostic info.
>
> I've tried the following nightly builds:
> 20020205
> 20020228
>
> Running on Weblogic 6.1
>
> Browser error message:
>
> There is a problem with the page you are trying to reach and it cannot be
> displayed.
>
> Weblogic output:
>
> 28 Feb 2002 12:50:49,899
> INFO   on
>  Delegating via forward to 'task.current.page'
> [ExecuteThread: '13' for queue: 'default'](Log4JCategoryLog.java:148)
>
> struts config snippet:
>
> 
>  forward="task.current.page">
> 
>
> Tiles config:
>
> 
> 
>
>   
>
>   
>   
> 
> 
> 
> 
> 
>   
>
>   
>   
> 
>   
>
>   
>
>   
>   
> 
>   
>
> 
>
> Any clues?
>
> Should I be using a different nightly build?
>
> Thanks.
> -Eric
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: internationalization

2002-03-01 Thread @Basebeans.com

Subject: Re: internationalization
From: "Damien Wavrant" <[EMAIL PROTECTED]>
 ===
It works fine !!

Thank

"LI, Chung-Yuen" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> It's in the FAQ.
>
> http://www.husted.com/struts/FAQ/view-i18n.htm
>
>
> - Original Message -
> From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, 1 March 2002 5:10 PM
> Subject: internationalization
>
>
> > Subject: internationalization
> > From: "Damien Wavrant" <[EMAIL PROTECTED]>
> >  ===
> > Hi,
> >
> > After read URL http://www.anassina.com/struts/i18n/i18n.html, i have
> > a question to internationalized an application with struts :
> > How to change dynamicaly the language of my application, without the
> default
> > language of my browser. By clicking on a flag per example.
> >
> > Thank
> > Damien
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




html:select and html:options tags

2002-03-01 Thread Viet Kevin


Hello all

My question is about the struts html:select and html:options tags

public class xxxForm extends ActionForm 
{
private Person choosed;
private Collection persons;


public get...
// accessors for this attributes are defined but I do not display
// them
}

When creating the form I set the choosed properties to firs instance in the persons 
list
xxxForm.setChoosed(xxxForm.getPersons.iterator.next());

Then I want to display that list in a html page for selecting a person in that list.
The html select must list all the persons AND the chooseen one must be displayed first 
(setting the html-attibute selected="selected" for the choosen one)

The other problem is that I want to use an index (an int that index the instances in 
the list) as the value
of the html option tag (not the name of the person)

so the html produced must be something like : 

 John  
 Henri 
 Max 


I play a lot of time trying to obtain this result with the struts tags 
but never figured out how to do it

Please tell me if it is possible to do or propose me an other solution
but I must have an index in my list so the value in the option tag must 
be an int


And the last question is I can't see what the attribute named tabindex in the 
html:select
tag is used for?

Thx in advance

=
-- KeV -- 
=

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




  1   2   >