Import MessageResources to JavaScript

2001-10-26 Thread Anthony Martin

In order to make my JavaScript use text found in MessageResources, I have
this line in the source of all of my .jsp files:

---

---

The contents of jsMessages.jsp is as follows:

--- 
<%@ page language="java" contentType="text/javascript" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

var appMsgs = new Object() ;

appMsgs["general.title"] = "" ;
.
.
.
.
appMsgs["general.confirm.close"] = "" ;
---

This works great when I specify each message explicitly.  But is there a way
to iterate through all of the messages so that I can expose all of the
messages all of the time?


Anthony

Command, n.:
Statement presented by a human and accepted by a computer in such a
manner as to make the human feel as if he is in control.



Re: Design consideration: Client side validation

2001-10-26 Thread Matt Raible

Why not use the Validation framework (in nightly builds) to do it?  It can do
both client-side validation and server-side, it already contains the javascript
methods and everything.  Pretty slick stuff.


--- John Yu <[EMAIL PROTECTED]> wrote:
> If client-side validation is preferred, one paradigm is:
> 
>- use js to do client-side validation,
>- don't do validation in Struts, and
>- let your business logic do the final safe-guard to
>  throw exception if the values are invalid.
> 
> The main consideration is the maintenance of the js code.
> 
> 
> At 05:44 pm 25-10-2001 -0700, you wrote:
> >Hi:
> >
> >Struts puts emaphasis on server-side validations.
> >However, lotsa times it makes sense to do some
> >validations before we hit the server.
> >
> >How the client side validations should be done while
> >keeping the sanctity of the design principles for
> >struts? Is it a good practice to use use JavaScript to
> >do this? What are the possible ways to do this?
> >
> >TIA,
> >
> >Hitesh.
> >
> >__
> >Do You Yahoo!?
> >Make a great connection at Yahoo! Personals.
> >http://personals.yahoo.com
> 
> -- 
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for Struts"
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: Struts and Silverstream

2001-10-26 Thread Brian Holzer

This is a resolution for anyone using struts with Silverstream and not having session 
persistence.

>>> "Krueger, Jeff" <[EMAIL PROTECTED]> 10/26/01 08:49am >>>
Brian,

Thanks for letting me know that the web.xml matter and the
deployment plans seems to not.  I have been meaning to look into that, but
haven't had much time to play around with it.  I'm glad that solved your
problem.  One side note, you mentioned that you are using the workbench to
do your development.  I would except that when it build the default web.xml
it should put some default for the session value.  I'm not bashing the
workbench, it is actually a great tool to start with.  Myself I enjoy using
JBuilder and ant to do my development.  If you ever want to switch over to
that as your development environment let me know and I can get you set up
with the ant files that are needed.

Your design looks ok with the one form bean, I was just reading it
wrong.  Sorry.  Also the reason why I was asking about the iterate is
because in the struts documentation the example that looks like yours is for
a hashmap, not a collection.  Since you are returning a collection I wasn't
sure if you were having problems there.  Often when I use a iterate I have
to specify a lot more parameters.  I will have to try it out with out them
and see how it goes.  

Glad your up and going, let me know if you have any other problems
or design questions.

Jeff Krueger



-Original Message-
From: Brian Holzer [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 25, 2001 3:41 PM
To: [EMAIL PROTECTED] 
Subject: RE: Struts and Silverstream


Jeff,
   Only one form?  This app is going to expand to insert/update/delete on
several tables related to our user and data/page level security.  I am just
trying to get one good thread going for the user table and then use this
thread as a template for the rest of the app.  The UserForm relates to the
fields in the user table and since the search criteria in userQuery.jsp are
fields from that table, I thought that I would use the same form for
entering the search criteria and for entering a new user or editing an
existing one.  Is this wrong or bad design in your opinion?

>userQuery.jsp -->> userquery.do on success -->> userQueryResult.jsp.  
>How do you get to the userAction.do.  Is that from a different link.

>Also in the userQueryResult.jsp page you are iterating through the
>collection.  Does that work?

Yes, the iterating through the collection works to produce
userQueryResult.jsp and I create a link in the interation 

which then gets me to the userAction class.  When I get to the userAction
class, my plan is to get the key from the link (APP_USER_ID)  and then get
the collection of userForms from the session and iterate through that until
I find the one that matches the key and the setAttribute that to the session
and then the user.jsp will come up with the data for the user.

HEY JEFF,  as I was putting together this reply, I got your other message.
I gave it a try first by increasing the time in the SMEARDeplPlan.xml but
that didn't work, but then I added the 

300

into the web.xml and voila it worked.  Thanks a million, I spent way too
much time on this one.  Any comments on the rest of my repy would be
appreciated.  I owe you one, thanks again.

Brian



>>> "Krueger, Jeff" <[EMAIL PROTECTED]> 10/25/01 02:12pm >>>
Brian,

Well...  It all looks good to me.  You are doing some things a
little different than I do, but it shouldn't matter.  Question for you.  I
realize this is kind of a first pass at a struts app, but I am curious why
only one form bean.  I haven't deployed the app and looked at it.  Also I
was trying to follow the page flow.  I see that you can start at 

userQuery.jsp -->> userquery.do on success -->> userQueryResult.jsp.  How do
you get to the userAction.do.  Is that from a different link.

Also in the userQueryResult.jsp page you are iterating through the
collection.  Does that work?

Jeff

-Original Message-
From: Brian Holzer [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 25, 2001 1:28 PM
To: [EMAIL PROTECTED] 
Subject: RE: Struts and Silverstream


Hi Jeff,
Thanks for the reply.  I have also included a zip file of my project
incase there is anything else you want to look at.  I am saving a Collection
to the session in UserQueryAction and then try to extract it in UserAction.

thanks for your time.
Brian

>>> "Krueger, Jeff" <[EMAIL PROTECTED]> 10/25/01 12:28pm >>>
Brian,

If you can send me your config.xml, and the two action classes that
you use to try and put the object into session and the one that you are
trying to get the object back out of session I will take a look at it.  None
of the apps that I have built have run on solaris, but I would be surprised
if that was the problem.  All the apps that I have built do exactly what you
are talking about with login information.

Jeff


-Original Message-
From:

Re: Placing JSP's below the WEB-INF directory

2001-10-26 Thread Troy Hart

I do exactly this, and it works great! 

Rahim Lalani writes: 

> Hi, 
> 
> I would like to hide all of my jsp pages under the WEB-INF directory so that
> I can place all of my security in my actions.  However, I would also like to
> use the Struts Template taglib such that my ActionForwards return jsp pages
> that use templates.  Will I be able to use "put" to include jsp pages that
> are located under the WEB-INF directory into a template?  If not, do you
> have any alternative suggestions? 
> 
> 
> Thanks, 
> 
> Rahim 
> 
 



Re: java IDEs

2001-10-26 Thread Vic Cekvenich

I like Netbeans.org.

- Original Message -
From: "Matt Raible" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 5:08 AM
Subject: RE: java IDEs


> I believe in VIM (www.vim.org) - not a memory hog like all the rest of the
> IDE's.  JBuilder seems to get a lot of good reviews too.
>
> Matt
>
> --- Jossevel Daniel <[EMAIL PROTECTED]> wrote:
> > Hello essayez Forte Community Edition 3.0 (chez sun) !!
> >
> > -Message d'origine-
> > De : peter [mailto:[EMAIL PROTECTED]]
> > Envoyé : jeudi, 25. octobre 2001 22:13
> > À : [EMAIL PROTECTED]
> > Objet : java IDEs
> >
> >
> > Hi
> >
> > I know this is off topic (apologies), but I think there several people
> > within this group who use Java IDEs.  I've never used an IDE (always
used an
> > editor like Ultra Edit), but would like to use one to perform mundane
tasks
> > like creating beans, etc.  My question is:  are there any free Java IDEs
> > available, which are relatively easy to use?  Nothing too flash, just
> > something to make all the boring monotonous developing tasks simpler and
> > quicker.
> >
> >
> > Thanks
> >
> >
> > Peter
> >
>
>
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>




[ANNOUNCE] Struts Console v1.1 beta 1

2001-10-26 Thread James Holmes

Struts Console version 1.1 beta 1 is now available.

http://www.ejcenter.com/struts/
http://www.ejcenter.com/struts/struts-console-1.1b1.zip

This release has some very cool new features.  I have
added support for NetBeans and Sun Forte for Java so
that you can "plug" the Struts Console into these IDEs
for seemless development of Struts applications from
one development tool.  I have also added a "Tools"
menu with one tool, the "JSP Converter".  The JSP
converter converts ordinary JSPs into JSPs that use
the Struts HTML tag library.  This should speed up the
development of new Struts applications.  There's more
too...


Changes with Struts Console v1.0b2

  *) Struts Console is now able to be plugged into
 both Sun's Forte and the NetBeans IDEs as a
 module.  This allows users to seemlessy manage
 Struts config files with Struts Console from
 within their IDE.

  *) Added JSP converter tool for converting JSPs to
 use Struts' HTML tag library.

  *) Added ability to add new form beans from the
 "Form Bean" tab on the Action screen.

  *) Added "Referencing Actions" tab to "Form Bean"
 screen so that you can see which actions use the
 given form bean.

  *) Updated windows batch file to no longer require
 editing to get the app running on windows.
 Thanks to Clóvis Yutaka Harada
 <[EMAIL PROTECTED]> for sending me this
update.

  *) Fixed bug where the "default Action" warning
 message was being displayed when it wasn't
 supposed to be.

  *) Fixed bug where "add" dialogs were not showing up
 properly on Linux under certain window managers.
 Thanks to Ken Beyer <[EMAIL PROTECTED]> for
 pointing this out and helping me debug the
 problem.


As usual, let me know if there are any features you'd
like added or if you come across any bugs.

Thanks,

-james
[EMAIL PROTECTED]
http://www.ejcenter.com/struts/



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



How do I use non-string values in ?

2001-10-26 Thread Eric Boudreau

Do I have to convert the value to a string first? Is there a cleaner way to
handle this situation?
The result of my attempt is shown below:

C:\weblogic\config\mydomain\applications\.wlnotdelete\WEB-INF\_tmp_war_myser
ver_myserver_contentweb\jsp_servlet\__tasks.java:326: cannot resolve symbol
probably occurred due to an error in /tasks.jsp line 149:


C:\weblogic\config\mydomain\applications\.wlnotdelete\WEB-INF\_tmp_war_myser
ver_myserver_contentweb\jsp_servlet\__tasks.java uses or overrides a
deprecated API.

Full compiler error(s):
C:\weblogic\config\mydomain\applications\.wlnotdelete\WEB-INF\_tmp_war_myser
ver_myserver_contentweb\jsp_servlet\__tasks.java:326: cannot resolve symbol
symbol  : method setValue  (int)
location: class org.apache.struts.taglib.logic.EqualTag
_logic_equal1.setValue(WorkItem.PRIORITY_HIGH);
//[ /tasks.jsp; Line: 149]
 ^
Note:
C:\weblogic\config\mydomain\applications\.wlnotdelete\WEB-INF\_tmp_war_myser
ver_myserver_contentweb\jsp_servlet\__tasks.java uses or overrides a
deprecated API.
Note: Recompile with -deprecation for details.
1 error


Thanks.
-Eric



RE: java IDEs

2001-10-26 Thread Joe Niski
Title: RE: java IDEs





The free JBuilder doesn't support JSP very well. After a year of using JBuilder Professional (4.0), i've spent a few months with NetBeans and find it more to my liking.

Joe Niski | Senior Software Engineer/Internet Architect
Nine Dots
503.548.2176
Portland . Irvine . San Francisco . Toronto
[EMAIL PROTECTED]


> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 26, 2001 5:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: java IDEs
> 
> 
> I believe in VIM (www.vim.org) - not a memory hog like all 
> the rest of the
> IDE's.  JBuilder seems to get a lot of good reviews too.
> 
> Matt
> 
> --- Jossevel Daniel <[EMAIL PROTECTED]> wrote:
> > Hello essayez Forte Community Edition 3.0 (chez sun) !!
> > 
> > -Message d'origine-
> > De : peter [mailto:[EMAIL PROTECTED]]
> > Envoyé : jeudi, 25. octobre 2001 22:13
> > À : [EMAIL PROTECTED]
> > Objet : java IDEs
> > 
> > 
> > Hi
> > 
> > I know this is off topic (apologies), but I think there 
> several people
> > within this group who use Java IDEs.  I've never used an 
> IDE (always used an
> > editor like Ultra Edit), but would like to use one to 
> perform mundane tasks
> > like creating beans, etc.  My question is:  are there any 
> free Java IDEs
> > available, which are relatively easy to use?  Nothing too 
> flash, just
> > something to make all the boring monotonous developing 
> tasks simpler and
> > quicker.
> > 
> > 
> > Thanks
> > 
> > 
> > Peter
> > 
> 
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 





Re: Digestioin pill needed

2001-10-26 Thread martin . cooper

You shouldn't push your 'a' and 'm' objects on to the stack, but let the 
Digester create them as it encounters them. You probably want something 
like this:

digester.push(this);
digester.addObjectCreate("root/action",
 "yourPackage.yourActionClass");
digester.addSetProperties("root/action");
digester.addSetNext("root/action",
 "yourAddActionMethod");
digester.addObjectCreate("root/method",
 "yourPackage.yourMethodClass");
digester.addSetProperties("root/method");
digester.addSetNext("root/method",
 "yourAddMethodMethod");

In the class in which you implement this, you would add two methods, which 
I have named 'yourAddActionMethod' and 'yourAddMethodMethod' above, 
something like this:

public void yourAddActionMethod(yourPackage.yourActionClass obj) {
 // Do what you want with the new action object
}

public void yourAddMethodMethod(yourPackage.yourMethodClass obj) {
 // Do what you want with the new method object
}

Hope this helps.

--
Martin Cooper


At 06:03 AM 10/25/01, Mark Franklin wrote:
>Hi.
>
>I'm having some trouble getting a Digester to parse what is a very simple
>bit of XML.
>
>Our adopted standard is for XML whose value is in a specific named attribute
>("value"):
>
>ie
>
> 
> 
>
>
>The function of the above is for the action to look up in a class factory
>and to then invoke its list method.
>
>I consider this an ideal candidate for a Digester and have a Class that
>endeavours to :
>
>  sXml= "";
>
> InputSource source = new InputSource(new StringReader(sXml));
>
> Digester digester = new Digester();
>
> digester.setValidating(false);
>
> digester.push(a);
> digester.push(m);
>
> digester.addSetProperties("root/action");
> digester.addSetProperties("root/method");
>
> try{
> digester.parse(source);
> System.err.println(a.getValue());
> System.err.println(m.getValue());
>
> }
> catch(java.io.IOException e){}
> catch(org.xml.sax.SAXException esx){}
>
> }
>
>and two classes for getting the properties:
>public class Action {
>
> String s = new String();
> public Action() {
> }
> public void setValue(String value)
> {
> s= value;
> }
>
>public void getValue()
> {
> return s;
> }
>}
>public class Method {
> String s = new String();
> public Method() {
> }
> public void setValue(String value)
> {
> s= value;
> }
>public void getValue()
> {
> return s;
> }
>}
>
>The problem is that it only seems to match for the last object pushed onto
>the stack, ie it only prints "list".
>
>ANy assistance greatly appreciated.





Migrating from tomcat 4.0 to tomcat 4.01

2001-10-26 Thread Domingo Aguilera

I have a webapp that runs properly under tomcat 4.0.
Struts jar and commons jars are as from 9/19/2001


Now I want to make such webapp run in tomcat 4.0.1 but it seems the digester
can't instantiate some classes from the struts-menu example.

What I have noticed is that from tomcat 4.0 to 4.1 there was a change about
going from crimson to xerces.

When tha app was run in tomcat 4.0,  I added crimson.jar and jaxp.jar to
myapp/WEB-INF/lib, but in tomcat 4.0.1 I had to remove such files and let
xerces work.

In tomcat 4.0.1 when init() function from my CustomActionServlet is run
Digester works fine till have to lead with the instantiation of
MenuRepository class.

I've noticed that the digester don't send the verbose output when dealing
with MenuRepository.

I will thank any idea that would make solve this prob.

Tks. Domingo




RE: Flash button and forms with struts

2001-10-26 Thread Joe Niski
Title: RE: Flash button and forms with struts





on a simpler level, you can send name/value pairs to a Flash movie from the  or  tag in the JSP that references the Flash file, e.g.

 


the value can be dynamic, e.g. an expression or tag that returns a string. When the Flash movie loads, a variable named "param1" is automatically declared and initialized to "param1Value"  - your Flash scripts can reference the variable without declaring it.

Joe Niski | Senior Software Engineer/Internet Architect
Nine Dots
503.548.2176
Portland . Irvine . San Francisco . Toronto
[EMAIL PROTECTED]


> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 25, 2001 11:49 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Flash button and forms with struts
> 
> 
> I've never done it, but I know you can use XML to communicate 
> with Flash. 
> Produce XML from your bean, and walla!
> 
> http://www.macromedia.com/support/flash/interactivity/xml/
> 
> 
> --- Dmitri Colebatch <[EMAIL PROTECTED]> wrote:
> > There are two different parts to struts... firstly the 
> framework side, and
> > secondly the presentation side (taglibs).  There's no 
> reason you couldn't
> > use the framework without the presentation.  The key thing 
> would be that
> > you'd lose the ability to have fields populated with values 
> that were
> > present in the bean...  but imho its very doable...
> > 
> > hth
> > dim
> > 
> > On Wed, 24 Oct 2001, Hitesh Parashar wrote:
> > 
> > > Hi All:
> > > 
> > > How can we use Macromedia flash buttons and forms with
> > > struts?
> > > 
> > > It is really important for us at the moment because we
> > > want to use struts and we also want to leverage the
> > > Flash forms/buttons already present with us. 
> > > 
> > > The decision of whether to use struts or not hinges on
> > > the fact "how easily can we integrate Flash components
> > > in struts".
> > > 
> > > TIA,
> > > 
> > > Hitesh.
> > > 
> > > __
> > > Do You Yahoo!?
> > > Make a great connection at Yahoo! Personals.
> > > http://personals.yahoo.com
> > > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 





Re: Mailing list congestion?

2001-10-26 Thread Ted Husted

They're working on it. Let's not add to the congestion by chatting about
the congestion ;-)

Adriano Labate wrote:
> 
> You're right.
> A message I posted this early this morning is not appeared yet more that 5
> hours later.
> 
> -Original Message-
> From: John Yu [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 26, 2001 7:01 AM
> To: [EMAIL PROTECTED]
> Subject: Mailing list congestion?
> 
> I found the mailing list very slow. Messages I post only appears on the
> next day.
> Is it only me?
> 
> --
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for Struts"

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/



Re: How can Struts support tag

2001-10-26 Thread Ted Husted

The html:base tag will let you use relative references. 

For more about using Struts with Dreamweaver, see 

http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html

pipashu wrote:
> 
> I use Struts to build a web. I have some directories to store jsp
> pages,
> 
> most of thes pages have images, for example, [Image],
> 
> When I execute a action (*.do), then forwards to a jsp in one of these
> 
> directory(not root directory), this page can not show images. I wonder
> Struts
> 
> does not support a) [Image].
> 
> I know Struts support b) [Image]
> 
> a) can be used in dreamveaver,
> 
> but b) can not be used in dreamveaver,
> 
> This is my problem.
> 
> Please ask how can I resolve this problem.
> 
> Thanks in advance.
> 
> 
> 
> Jack Wang
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> 
> ¶¬¼¾ÌػݻúƱ
> 
> ´òÕ۾ƵêµÈÄãÀ´
> 
> ʮԽðÇᆱ²ÊÑÇÖÞÐÐ
> 
> ĦÍÐÂÞÀ­¾ãÀÖ²¿»áÔ±·þÎñ
> 
> eÁú¶ÌО«²ÊÎÞÏÞ
> 
> Õ½ÕùºÍ´«Ã½

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/



Re: How can a retrive an Action instance with a path ?

2001-10-26 Thread Ted Husted

The ActionMappings are already in application scope, which is how the
html tags use them.

I suppose you could do the same with your Action, put a reference to it
in application scope, under a known name. Usually, you would obtain
whatever you needed from the Action first and put it into the request
scope, and have the tags look there. The View is not usually aware that
the Actions exist.

"emmanuel.boudrant" wrote:
> 
> I make a TabLig:
> 
> 
>  ...
> 
> 
> And in this tag, I must access to the Action instance
> witch path is /saisie.do
> 
> How can I retrive this action instance with
> ActionMappings in application scope ?
> 
> Thanx.
> 
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Courrier : http://courrier.yahoo.fr

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/



Iterating thru collection of nested beans inside form

2001-10-26 Thread Kraffmiller, Ellen

I am having trouble using the "indexed"  attribute in the html form tags.

I have a form that contains section that is repeated a variable number of
times.  I am representing the controls within that section as a bean.  My
form bean contains a collection of "section beans".

class SectionBean {
   private String name; 
   public String getName(){return name;}
   public void setName(String val) {name=val;}
  
}

// ItemForm is mapped to the Action class handling the form
class ItemForm extends ActionForm  {
private Collection sectionList;
public Collection getSectionList() {return sectionList;}
public void setSectionList(Collection coll) {sectionList=coll;}
}

My First try was to do this:





 

This compiles and runs, but the property value does not get populated into
the nested bean inside the form bean.  I think that's because the translated
html name, "section[0].name", does not correspond to a property of itemForm.

 If  I try:
 
   

I get an error because "itemForm.sectionList" is not defined as a bean in
any context.  

I also tried defining the collection before the iterate section:

  


 

 
This gave a run-time error when struts was populating the bean.

Any help would be greatly appreciated.
Thanks
Ellen



Re: Mailing list congestion?

2001-10-26 Thread Mark Gordon

I think there may have been a problem yesterday.  


Normally it seems ok.  (plus I always get good responses!  Hope to start 
adding some value to this list soon.)

-Mark

John Yu wrote:

> I found the mailing list very slow. Messages I post only appears on 
> the next day.
> Is it only me?
>





Re: How do i generate a unique checkbox name when iterating a dynamically created page

2001-10-26 Thread dhay



Hi Reid,

I posted a note a while back on this.  The indexed attribute available in the
nightly build automatically create a checkbox name including the index - eg
myCollection[0].myCheckboxValue.  If you can't use that, you'll have to use
scriptlets to generate the same thing.

Cheers,

Dave





"Reid Thompson" <[EMAIL PROTECTED]> on 10/25/2001
10:46:43 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  How do i generate a unique checkbox name when iterating a dynamically
  created page



Read through the archives and could not get any of the variations that I
found re iteration/index to do what I need. Would appreciate any
guidance.  I am using






























   

where lineList is a Vector used to generate a page of data.  lineList
can vary in length.  I need to be able to update the checkbox values in
my form.  I assume that to do that I need a unique name for each
checkbox ( ie "checkboxname+index" is what I would like to use) so that
I can specify which checkbox i am referencing when calling a setter
function to update the page & backend data file(s) when user submits;
how can I generate a unique name for each checkbox?  Or is there an
easier means of doing this?

Thanks,
reid


Title: How do i generate a unique checkbox name when iterating a dynamically created page






Read through the archives and could not get any of the variations that I found re iteration/index to do what I need. Would appreciate any guidance.  I am using

    

    

        

    

    

        

    

    

       

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

       


where lineList is a Vector used to generate a page of data.  lineList can vary in length.  I need to be able to update the checkbox values in my form.  I assume that to do that I need a unique name for each checkbox ( ie "checkboxname+index" is what I would like to use) so that I can specify which checkbox i am referencing when calling a setter function to update the page & backend data file(s) when user submits; how can I generate a unique name for each checkbox?  Or is there an easier means of doing this?

Thanks,

reid





Re: PROPOSAL: collectionProperty attribute in

2001-10-26 Thread dhay



+1 for me

Dave





Mindaugas Idzelis <[EMAIL PROTECTED]> on 10/25/2001
03:32:47 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  PROPOSAL: collectionProperty attribute in 



PROPOSAL: collectionProperty attribute in 

Abstract:
 A new attribute "collectionProperty" which will act like the
current "colllection" attribute except that it specifies the property of the
form which contains the collection thereby elimating the need for a
 and decreasing coupling between the JSP page and the name of the
form bean defined in struts-config.xml.

Proposal:

A common approach to using the  tag uses the collection,
property, and labelProperty attributes to specify which bean properties to use
to generate the  tag. This works fine when the collection is sent
separate from the form.

There is a problem when the collection is actually a property of the form. The
collection attribute EXPECTS an actual collection, and will NOT accept a
property.

Scenario:

 You have a form named "formBean" with a collection of beans under a
property "users." You want to use the bean properties "userid" and "username"
to render values and labels for the html options.

 In order to do this, you would need something along the following lines
of code:
 
 
  
  
 
 

Problem with this scenario:

 If you notice, we must use the bean:define tag. First of all, this tag
adds overhead: It is using reflection to copy a collection into a page scope
variable. Also, the form now must KNOW what the name of the formBean is.
Wouldn't it be nice if you could just tell the  tag which
property contains the collection within the form bean? The  tag
would call this property on the formBean associated with the Form.

Updated scenario;

 This is what the jsp code will look like with the proposed change:

 
 
  
 
 

Proposed Change:

 We would add an attribute to  called "collectionProperty"
this property will specify what property under the current form bean contains
the collection. The property and labelProperty attributes will function in the
same way as they do when they are used in conjuction with the "collection"
attribute.

Rationale:

 I believe this change will give the  tag more
functionality and make it easier to use. As well as the help in certain strut
design patterns.
 Consider the following. You have a Class called "CommonForm" which
inherits from ActionForm. This form contains several common elements like
State/abbreviate pairs, etc. All of your other forms inherit from CommonForm so
they also have access to this data. The above proposal would make this design a
lot more convenient.

 I would like to hear comments as well as votes for this change. Thanks

Mindaugas Idzelis
Application Developer
Rochester, NY 14623









Re: Iterate will be the death of me.

2001-10-26 Thread dhay



John,

What scope is your form bean?  Try putting it in session scope and see if that
helps!

Dave





"John Bowen" <[EMAIL PROTECTED]> on 10/25/2001
05:01:50 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Iterate will be the death of me.




  Alright, I've completely simplified my code to the bare-bones, have tried
following the iterate examples provided by the kind souls who have posted
example code, but I can not for the life of me get  and
 working together.

  I do have the <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
tag in my JSP.

  I am using the October 17th nightly build of struts.jar.

  The ActionForm bean, defined in my struts-config.xml as
tournamentPlayersForm, in session scope:
private Vector mUserList = new Vector();

public Vector getUserList()
{
return( mUserList);
}

public void setUserList( Vector userList )
{
mUserList = userList;
}

public FormUser getUser( int index )
{
return ( FormUser ) mUserList.elementAt( index );
}

  ...mUserList contains a vector of easy-to-swallow FormUser objects:
private String mUserName = null;

public String getUserName()
{
return mUserName;
}

public void setUserName( String value )
{
mUserName = value;
}

  The JSP in question:

  


  When the JSP initially loads, it properly displays the number of textboxes
based on the size of mUserList and even fills them in with userNames if the
userName values were previously populated.  However, when I retrieve the
same vector after this JSP is submitted, the userNames never get populated
with the values entered into the  boxes.  When I view source,
they appear as so:




  Andrew van der Voort (bless this man for posting code snippets) posted his
way to get it working which I've tried but unfortunately had the same
results - having the same setUserName method normally used in my FormUser
object and put it into the form itself taking a String[] as an argument,
then on the validate() event of my ActionForm go through the member variable
I assigned the String[] to and pull the names out that way.  This String[]
never gets populated either.

  I've tried every possible combination of tags, I've followed everyone
else's example of how to get iterate working, and I'm still looking at null
userNames.

  Help?

  - John










Re: ActionErrors.add

2001-10-26 Thread David Winterfeldt

There are just multiple error messages for the login
property.  Nothing is lost.

David

--- "emmanuel.boudrant" <[EMAIL PROTECTED]> wrote:
> What's happen if...
> 
> 
> ActionErrors errors = new ...
> 
> (...)
> errors.add("login",new ActionError("error.login1"));
> (...)
> errors.add("login",new ActionError("error.login2"));
> 
> Is the first errors is overloaded by the second
> error
> ?
> 
> 
>
___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
> en français !
> Yahoo! Courrier : http://courrier.yahoo.fr


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Visual Age 4.0, Tomcat 3.2.3 and Struts

2001-10-26 Thread Greg Berger

Does anyone have Struts working with Visual Age 4.0 Pro and the Tomcat Test 
Environment 3.2.3 from IBM? When I put the struts-example.war file in the 
webapps directory, Tomcat deploys and starts it with no problems, and the 
index page displays. If I attempt to follow the "Register..." link, I get

java.lang.NoClassDefFoundError: org.apache.struts.taglib.html.HiddenTag

If I follow the "Log On..." link I get
java.lang.NoClassDefFoundError: org.apache.struts.taglib.html.TextTag

It appears to me that Tomcat cannot find the html taglib packages. I have 
imported Struts into a Visual Age project, but if I include that project on 
the TomcatRunner classpath, I get

java.lang.reflect.InvocationTargetException: java.lang.InternalError: (Ex02) 
An error has occurred.

I have the same problem with the struts-blank.war - the index page displays 
no problem, but if I add any jsp pages that use the html taglibs I get the 
class not found errors.

On occasion, after goofing around with this, the struts example app will 
start working, but none of the jsp's get compiled into the "JSP Page Compile 
Generated Code" project in VAJ. I've tried a bunch of different experiments, 
and it seems very close to working, but I just cannot get it functioning 
fully. Any insight will be greatly appreciated.

Greg Berger Advance/Tech,Inc
Dirty deeds done dirt cheap


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




Example of bundle attribute in

2001-10-26 Thread Eric Rizzo

Are there any examples that use the bundle attribute of ?

Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: This list NEEDS a FAQ

2001-10-26 Thread Eric Rizzo

[EMAIL PROTECTED] wrote:

> There already is a FAQ, here:
> 
> http://jakarta.apache.org/struts/userGuide/kickstart.html


jGuru hosts a lot of Java FAQ lists, including one for Struts at 
http://www.jguru.com/faq/Struts  The nice thing is you can suggest new 
questions, answers, and comments to existing FAQs.


 
> I agree with the sentiment behind your suggestion, though. The real problem
> is that many people don't refer to the FAQ, and don't check the mailing list
> archives, before posting their own questions to the list.

[snip]

> Perhaps the best we can do is
> to collectively enforce the "do your own research first" reaction.
> 
> So whenever you read a message that asks a question that is already on the
> FAQ list, don't reply with the answer, but reply with a reference to the FAQ
> which supplies the answer. And if you see a question being asked repeatedly,
> propose it as a candidate for the FAQ.
> 
> If we are consistent in the way we respond to frequently asked questions on
> this list, we should be able to reduce the overall message volume, and
> increase the signal-to-noise ratio. That will benefit us all.


Agreed.  A short answer saying "See the FAQ at this URL: http://.."; not only 
directs people to the answer for a particular question, but also teaches them to 
look there for their next question.  Another thing I've done on the VisualAge 
for Java forums is to post a weekly message about the existence of the FAQ. 
That way someone browsing recent messages is bound to stumble upon the link, and 
anyone nice enough to do a search in the archives for "FAQ" will find it.

Ted Husted manages the jGuru Struts FAQ - would he be willing to post a message 
along these lines to this list every week (I can send the one I use for VAJ if 
you'd like to adapt it).

Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




access a error with logic (error added in form not action)

2001-10-26 Thread juraj Lenharcik

hello,

i have a input field and i check it in the FORM-bean (Not action!), if it is
ok; when not i put it to the errors (errors.add("count", new
ActionError("error.count")); ) and return to the input jsp.
Now i want to output a error message. i did it with  but now i want to output a error message from a other
source (xml or database). I need to check if the error with the property
count is available. i tried:


   
  
 
  
   


can someone send me a snipset of a code segment how it is possible to access
the error?


thank 
juraj 





Re: html:link page or forward?

2001-10-26 Thread Ted Husted

The page form taked a hardcoded URI. If you change your page names
later, you will have to update these.

The forward form takes a logical name, and reads the actual URI from the
struts-config. This is a much better approach. If you change your page
names, you can just update the struts-config.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


chiji nwankwo wrote:
> 
> Hi,
> 
> What is the difference between using the page and forward attributes
> of the html:link tag?
> 
> Thanks
> 
> Chiji
> 
> --
> Get your FREE download of MSN Explorer at http://explorer.msn.com



Re: Struts, JSP, Servlets and dB

2001-10-26 Thread Ted Husted

Extending the ActionForm to handle the SQL statements might be a bit
much. 

People often handle data access directly from the Action. The Action
pulls the data out of the ActionForm, puts it into a SQL query, and then
puts the result back into the ActionForm, or an ArrayList. Just as
people have often done with conventional servlets. 

Though, this doesn't provide the best separation of controller and
model.

Right now, I'm working on a slightly different approach that keeps the
data access seperate from the rest the Action. I specify a data access
class in the ActionMapping (using the parameter property). The data
access class is a "model bean" with a standard method for calling a SQL
query. The model bean looks a lot like the ActionForm bean, except that
it uses native types. The model bean is subclassed for each query. All
the Action does is populate the model bean, and call its query method
("execute"). (As a convenience, my model beans can populate themselves
using reflection, so this becomes one call - execute(form).) The data
access class then returns a list of beans generated by the query. 

The sample application is Artimus, which uses the Scaffold package.

http://husted.com/struts/resources.htm#new

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Daniel WAMARA wrote:
> 
> Hi,
> 
> no good answer has been given to me thru all the websites I went to but I
> should now have to ask my question here I think : I'm brand new in Struts'
> world because I've been hired by a company using it.
> 
> Having worked before with servlets where querying databases where a matter
> of SQL statements, I'm not a bit lost : all the examples I've seen were
> using kinda "XML databases" but I now have to make a short application to
> see that I'm a bit good in Struts before beginning my real project next
> week.
> 
> I would like to know if I can use some "normal" SQL statements in my Form
> objects extending the ActionForm class ?
> 
> Writing the config-struts.xml file, writing the form objects, writing the
> lines of the Actions are not a problem because I now have a good look over
> it but how could I use "normal" databases or tables like I was doing before
> with servlets, like defining the driver, getting the connection, making
> statements and so on...
> 
> I was a bit long but it was for a good explanation.
> 
> Thanks for helping,
> 
> Daniel WAMARA
> 
> Frankfurt/Main, Germany
> 
> _
> Téléchargez MSN Explorer gratuitement à l'adresse
> http://explorer.msn.fr/intl.asp



Re: This list NEEDS a FAQ

2001-10-26 Thread Ted Husted

And if you have any Ant questions (come on, I know you do), Erik can
help you at 

http://www.jguru.com/faq/Ant

;-) 

Erik Hatcher wrote:
> 
> http://www.jguru.com/faq/Struts
> 
> - Original Message -
> From: "Mindaugas Idzelis" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 25, 2001 5:32 PM
> Subject: This list NEEDS a FAQ
> 
> > Subscribers,
> >
> > This list NEEDS a FAQ badly. There are many many many questions that are
> > asked repeatedly. It would be nice to refer them to a FAQ. I'd be willing
> to
> > put together a small FAQ. Please send me questions (and answers!! -- if
> you
> > have them) to [EMAIL PROTECTED] Please include FAQ in the subject. Thanks.
> >
> > Mindaugas Idzelis



Different Actions calls in one Tag

2001-10-26 Thread Roland Berger

Hi all

I'd like to put severel (submit) buttons into one  tag. Each of
this button should execute a different action. The problem is that only the
action given in the  tag is called.
Is there a way to tell struts to analyze the request for a property "action"
and if the "action" property is defined in the parameter list it calls the
action given there? (Of course all input text fields definded in the form
shall be transmitted.)

See example below how I imagine this (finally the action "actionName.do"
shall be called instead of "/dummy.do"




***


***



Thanks for any help
Roland




Re: Knowing where you came from

2001-10-26 Thread Ted Husted

The underlying problem is that the framework does not generate the
request, the client does. The client is suppose to add certain
properties to a request, which I think include the referring page, but
you have no control over this, and personally, I would not depend on it. 

If there is information that should be part of a request, then it should
be part of the API contract, and included in the form or the link. If
the request is incomplete, then the client should be routed to an error
page.

Besides hidden properties, the parameter property in the ActionMapping
can often be used to map different tasks onto the same Action. 

If retaining a history of pages for your clients is important, that is
something you could create in the session and maintain with a subclass
of the ActionConroller. Each outgoing ActionForward could be added to a
self-limiting stack. However, Web application servers do not persist the
session, so if it times out, the history would be lost, unless you also
keep it in a cookie.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Arnaud Chiaberge wrote:
> 
> Hi all,
> 
> I have exactly the same concern. I'm using one Actionform for several
> purposes (coming from different JSP pages), and I'd like ot be able to know
> where I come from...is it possible ?
> 
> Also, same problem when using an Action (a dispatcher one) that can be
> called from any JSP page...once again, I need to know from which JSP page
> this Action has been called (in this specific case, I don't have any
> "input=" entry ine the struts-config.xml file)
> 
> Thanks in advance for any help.
> 
> Arnaud Chiaberge
> 
> - Original Message -
> From: "DUPRAT Alexandre" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 25, 2001 1:58 PM
> Subject: RE: Knowing where you came from
> 
> > Hi,
> >
> > I would be pretty interresting to know what is the action mapping when
> > validating an ActionForm.
> > We are using one form bean for 3 actions. We need to know what is the
> > current action but the form is validating before going to action.perform()
> > :-(
> > do something exist to help us?
> >
> >
> >
> > -Message d'origine-
> > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Date: jeudi 25 octobre 2001 00:13
> > À: [EMAIL PROTECTED]
> > Objet: Re: Knowing where you came from
> >
> >
> >
> > Hi,
> >
> > It seems pretty common for applications to need some kind of "what screen
> /
> > logical function did the user get here from" mechanism.  I think it would
> > be interesting to try to build an xml driven navigation tool that would
> > work with struts forwardings / actions.
> >
> > The navigation bean could be kept on the session, and tell you:
> > - what logical function the user is currently at
> > - what logical functions should be available from the current function
> > - what function the user was at, if any, before arriving at the current
> > location - you could even keep a history here...
> >
> > For any given function, you can find out what the url is for that function
> > or what the global forwarding is for it, or what the action name is for
> it.
> >
> > An XML file could be built to configure the navigation bean, i.e.
> > 
> >  
> >  
> >  
> > 
> >
> > You could use this for building navigation links in the JSPs dynamically
> > and handling "where did I come from" context sensitive requirements.
> >
> > I'm sure there's a lot wrong with this idea ;-).
> >
> > Jim W.
> > ThoughtWorks
> >
> >
> > At 10:20 AM 10/23/01, [EMAIL PROTECTED] wrote:
> > >In an Action, is there a way to determine if the request is coming from a
> > >forward from another Action or from an "external" request?  I've thought
> > >about storing in the session the last known request object and then
> > >comparing against it every time any of my actions perform() get called to
> > >see if the current request is the same as the last "known" request.  But
> > >this feels clunky.
> > >Are there any other ways to know where the request is coming from?
> > >
> > > Eric
> > >--
> > >Eric Rizzo, Software Engineer
> > >OpenNetwork Technologies
> > >http://www.opennetwork.com
> > >-
> > >I embrace my personality flaws, for without them
> > >I might have no personality at all.
> >
> >
> > Jim Weaver
> > Software Developer - ThoughtWorks
> >
> >
> >
> > ++
> > | Ce courrier ainsi que les fichiers joints sont confidentiels.  |
> > | Si vous avez recu ce courrier par erreur, veuillez en informer |
> > | l'administrateur du systeme : [EMAIL PROTECTED]   |
> > |  - |
> > | Ce message confirme que le courrier a passe le controle|
> > | antivirus du relais de messagerie Internet avec succes.|
> > +-

Re: Fwd: Dynamic message

2001-10-26 Thread Ted Husted

The nightly build includes a message object with a seperate queue than
errors. 

Personally, I just use the errors queue for these kinds of messages too.
After the Action determines there is not an error message, I have it
check for confirmation messages, using the same ActionError queue. Works
just fine.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


[EMAIL PROTECTED] wrote:
> 
> Forwarding to struts-user.
> 
> >From: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Dynamic message
> >Date: Thu, 25 Oct 2001 14:43:36 -0400
> >
> >Hi, Martin,
> >I'm new to struts.
> >I'm wondering if there is a way to set up a dynamic message, just like
> >dynamic errors.
> >
> >I have a search page, search.jsp, including a form where user can type in
> >text and submit to search.do
> >If nothing is found, I just want to put a message on the top of search.jsp
> >page, say, "no result found, try again."
> >I know I can put this message in errors but this is not actually an error
> >so I don't want to include the error head.
> >
> >I tried to put this line in ApplicationResources :
> >search.message = message: {0}
> >
> >without doing nothing to {0}, the message showed up is "message:null"
> >Can I set up {0} in my action class? like error massage?
> >
> >Thanks
> >
> >Yunming



Re: Application Ressources from database?

2001-10-26 Thread Ted Husted

For real-time retrievals, in a model 2 / MVC environment, you would make
such retrievals in the Action, and then pass the pertinent messages
along in a bean. For i18n, you would make the user's locale (stored in
the session) part of the database query. 

If you want to maintain the ApplicationResources from a database,
options would include having it created from the database as part of the
build process, or overriding the constructor so it retrieves information
from the database rather than a file. 


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


juraj Lenharcik wrote:
> 
> hi all,
> 
> want to ask how i can use the tags with a source like a database intead of
> ApplicationRessources.properties. a example is to use error messages from
> database. when it is not possible, how can i check with the iterate tag if a
> error id is there?
> 
> example:
> 
> 
>  toLower="true" />
> 
> 
> greetings
> juraj
>



JVM ERROR

2001-10-26 Thread Devangi Shah

Has anybody ever seen this error?


#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 47454E45524154452F4F502D41500E435050084B
#
# Problematic Thread: prio=5 tid=0x7b1060 nid=0x2bf runnable
=

I  have my .jsp file  with so many internationalized tag.
I am attaching test.jsp for the reference. Adding one more tag to jsp will crash
tomact with above error.
Create resource file with
role.form.label.permission.permission1.value.All = All

---
My Environment:
Tomcat 3.2.3
Struts 1.0
jdk 1.3.1
--

Devangi.




 testexperiment.jsp


artimus

2001-10-26 Thread ltorrence
Title: artimus





I'm having trouble getting artimus (husted sample app) to run on Tomcat 4.1-dev.


I think I took all the steps outlined in web-inf/readme.txt. I changed the poolman.xml file to reflect my local oracle drive and db. (the poolman.xml file works fine with the sample poolman-webapp from codestudio).

When I try to search or log onto the admin interface I get an error in the browser:


javax.servlet.ServletException: Cannot retrieve definition for form bean null 



The Catalina console displays:


org.apache.scaffold.util.QueryException: Unable to access data.


the poolman log displays:


October 26, 2001 10:21:44 AM EDT: PoolMan JDBCPool unable to locate a default JNDI provider, jdbc/article DataSource not bound to JNDI: null

October 26, 2001 10:21:44 AM EDT: PoolMan Local Pool Deployer: Created JDBC XA Connection Pool named: article


Do I have to create the table "article" in the Oracle db or will the app do that automatically?






RE: Real time web page?

2001-10-26 Thread Tom Klaasen (TeleRelay)

You're right: I get approx. the same response times.
I also noticed the webservers of apache.org are going unusual slow.
Maybe this is related?

tomK


> -Original Message-
> From: Paul Dillon [mailto:[EMAIL PROTECTED]] 
> Sent: vrijdag 26 oktober 2001 9:40
> To: [EMAIL PROTECTED]
> Subject: Re: Real time web page?
> 
> 
> Ick, I sent this email about 7 hours ago and it has only just 
> appeared on
> the list.  I sent a mail to ant-user yesterday still hasn't appeared.
> Anyone else having email probs with the jakarta mailing lists?
> 
> - Original Message -
> From: "Paul Dillon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 26, 2001 10:29 AM
> Subject: Re: Real time web page?
> 
> 
> > You can effectively push with a multipart response.  The 
> server can send
> > each part whenever it wants - in response to a real-time event for
> example.
> >
> > Some guy put together a library for doing real-time updates 
> by pushing
> > chunks of javascript in the body of a long-lived response.  
> By putting it
> > into a hidden frame you could keep your main page stationary while
> updating
> > the form input elements in real-time.  Sorry I don't 
> remember the URL.
> >
> > The most robust solution would be an applet.  Is the reason 
> you don't want
> > to use an applet due to presentation issues?  You can have 
> a more or less
> > invisible applet that handles the communication, and use 
> DHTML for the
> > presentation.
> >
> > Cheers,
> >
> > Paul
> >
> > > - Original Message -
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, October 25, 2001 2:16 AM
> > > Subject: Real time web page?
> > >
> > >
> > > >
> > > >
> > > > Hi everyone.  We are starting a new project and have a 
> requirement for
> > > real-time
> > > > updates in a web browser.  Does anyone know of any 
> tools that allow
> for
> > > this,
> > > > apart from applets?
> > > >
> > > > Cheers,
> > > >
> > > > Dave
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> 
> 



Re: This list NEEDS a FAQ

2001-10-26 Thread steven . valin

On Fri, 26 October 2001, [EMAIL PROTECTED] wrote:

> I agree with the sentiment behind your suggestion, though. The real problem
> is that many people don't refer to the FAQ, and don't check the mailing list
> archives, before posting their own questions to the list. Unfortunately,
> these are typically the same people who believe that their own time is more
> valuable than that of other people on the list.

I'll second that.  Many many questions have been posted on this list that are clearly 
explained in the documentation.

The documentation isn't perfect, and can be confusing at times, but some due diligence 
should be expected.  Not only is there documentation, but the source code is available 
and it will tell you the truth like no other!

About a month ago I was thrilled to see someone respond to a question with "RTFM"!

--
Steven Valin
[EMAIL PROTECTED]



Re: RowTag Zip file

2001-10-26 Thread Sandeep Takhar

http://husted.com/struts/resources/rowtag.zip

Sandeep
--- [EMAIL PROTECTED] wrote:
> 
> StrutsUsers--
> 
>  Does anyone know where I can get a copy of the
> RowTag Zip file?
>  (The link on the struts website is broken)
> 
> Thanks!
> 
> Jason
> 
> 
> 
>
__
> This message contains information that may be
> privileged or confidential
> and is the property of the Cap Gemini Ernst & Young
> Group.  It is intended
> only for the person to whom it is addressed.  If you
> are not the intended
> recipient, you are not authorized to read, print,
> retain, copy,
> disseminate, distribute, or use this message or any
> part thereof. If you
> receive this message in error, please notify the
> sender immediately and
> delete all copies of this message
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Re: Design consideration: Client side validation

2001-10-26 Thread Sandeep Takhar

The struts validator performs client side validation,
but then repeats again in case the user has turned off
javascript.  This is the preferred approach.

The nice thing is, most validators are pre-configured
for you and you don't have to write java or javascript
code in order to use these pre-defined validators.

It is pretty cool in my opinion.

here is the link:

http://home.earthlink.net/~dwinterfeldt/overview.html

-Sandeep
--- Hitesh Parashar <[EMAIL PROTECTED]> wrote:
> Hi:
> 
> Struts puts emaphasis on server-side validations.
> However, lotsa times it makes sense to do some
> validations before we hit the server. 
> 
> How the client side validations should be done while
> keeping the sanctity of the design principles for
> struts? Is it a good practice to use use JavaScript
> to
> do this? What are the possible ways to do this?
> 
> TIA,
> 
> Hitesh.
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Re: Using a HashMap for storing the FormBeans-Data

2001-10-26 Thread Ted Husted

You can use BeanUtils.populate(Object,Map) to populate any JavaBean from
any Map.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

storck wrote:
> 
> Hi,
> 
> is it possible to use a HashMap to get and set the data of a FormBean. I
> would like to have a formbean with a HashMap wich represents the formbeans
> data!
> 
> Any suggestions are welcome



Re: Mailing list congestion?

2001-10-26 Thread Michelle Popovits

Not just you.
that's just the way it works sometimes.


>From: John Yu <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Mailing list congestion?
>Date: Fri, 26 Oct 2001 13:00:38 +0800
>
>I found the mailing list very slow. Messages I post only appears on the
>next day.
>Is it only me?
>
>--
>John Yu   Scioworks Technologies
>e: [EMAIL PROTECTED] w: +(65) 873 5989
>w: http://www.scioworks.com   m: +(65) 9782 9610
>
>Scioworks Camino - "Rapid WebApp Assembly for Struts"
>


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




Re: Mailing list congestion?

2001-10-26 Thread Ted Husted

The webmasters are working on the problem.

John Yu wrote:
> 
> I found the mailing list very slow. Messages I post only appears on the
> next day.
> Is it only me?
> 
> --
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for Struts"



onmouseover attribute of html:link

2001-10-26 Thread lisa ward

Hi,

Can anyone see what I am doing wrong here.




   
 


 


I have a bean, which has been exposed using the image1 variable.  Everything 
else (image2 and container) works fine.  The problem I am getting is that 
when I view the source of my page the value of image1.getName() and 
image1.getLocationURL within my onmouseover handler are not bein resolved to 
the values.  This is the output of view source.



I am very sorry about the mess, I hope you can read the code.

Any responses will be greatly appreciated.

Thank you for your speedy response

Lisa

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




Re: html:options with FormBean

2001-10-26 Thread Peter Pilgrim


There are two ways but the best way is to set up a simple bean
like "LabelValueBean" that has two attribute; the option value and the
option description

public class LabelValueBean {
 String label, descrip ; 
 public String getLabel() { ... }
 public void setLabel( String newValue ) { ... }
 public String getDescription() { ... }
 public void setDescription( String newValue ) { ... }
}

Write a collection and store  LabelValueBean inside it.
Write an action form that allows you get the collection or add
the collection directly to the request scope under a known name.
Then you write your  tags to get all the options
You need to tell  the JavaBean property to get the value ie "label" == 
getLabel()
and the display text "description" == getDescription



HTH
--
Peter Pilgrim ++44 (0)207-545-9923
  //_\\
"Mathematics is essentially the study of islands of  ===
disparate subjects in a sea of ignorance."   || ! ||
Andrew Wiles _


 Message History 



From: Francois Duchaussoy <[EMAIL PROTECTED]> on 26/10/2001 12:33

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  html:options with FormBean


> I have an ActionForm with a Collection object inside.
> I'd like to use the  tag to display that Collection.
> Could anyone give me an example on how to do that?
>
> something like that??
>  labelProperty="value"/>
>
> Thanks.
> Francois.





--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





Comment on using the Struts platform for this project.

2001-10-26 Thread Alex Colic

Hi,


I have to create a app that allows users to change/input data into a
database. Sounds simple. Problem is I have to make it dynamic so that is
will work with any database or table. I have a back end VB app that will
send me:

Field name
Field caption
Field type
Field display type e.g.. radio, drop down, text box etc.

I then need to dynamically create a form with form elements.

Is Struts suited for this or should I stick with a plain servlet?

Alex




Re: How to pass initialise parameters to action class

2001-10-26 Thread Alex Colic


Thanks for all the info. I guess in my action class I will have to create an
empty constructor that initialises that value.

Alex




Re: ActionForward to ActionClass

2001-10-26 Thread Peter Pilgrim


method #1

ActionA extends Action
{
ActionForward perform(...)
{
 ActionServlet servlet = getServlet();
 RequestDispatcher rd = 
servlet.getConfig().getContext().getRequestDispatcher("actionB.do?command=XY" );
 rd.forward( request, response );
  return null;
}
}

method #2

ActionA extends Action
{
ActionForward perform(...)
{
 response.sendRedirect( response.getEncodedURL(
  request.getContextPath()+"/actionB.do?command=XY") );
  return null;
}
}

--
Peter Pilgrim ++44 (0)207-545-9923
  //_\\
"Mathematics is essentially the study of islands of  ===
disparate subjects in a sea of ignorance."   || ! ||
Andrew Wiles _


 Message History 



From: Wolfgang Frank <[EMAIL PROTECTED]> on 25/10/2001 16:06 ZE2

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  ActionForward to ActionClass


Hello there,

i am currently trying to find a way to call another action
(ActionB) from within an action (ActionA).
as and ActionForeward object should be returned from an action i
cerated a new ActionForward
with the path of the URL, or the action i wanted to call, but it
doesn´t seem to work.

The problem is that i want to call ActionB with parameters:

"actionB.do?command=XY"

The parameters are calculated in ActionA .

This is what I tried:
...
ActionA extends Action
{
ActionForward perform(...)
{
  return new ActionForward("actionB.do?command=XY");
}
}


I can foreward directly with a requestdispatcher but browser
doesn´t stop properly and continues loading.
I think there should be a way using the STRUTS calsses ..

Can anybody help please? I think I made some mistake ..

Thank you
Wolfgang








--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





RE: What is proper way to determine ActionForm type?

2001-10-26 Thread Justin Piper

Yes, you're right, you would lose that, and I don't think there's a clean
workaround in my solution, save for adding a visit() method for every
ActionServlet you want to support (ick).  AFAICT, the way Ted suggested will
still work with multiple different actions, so that would be the way to go
if you want to use multiple forms with the same servlet AND multiple
servlets with the same form.  In any case, this whole plan seems to be
contrary to the design goals of Struts, so I'd suggest thinking carefully
whether handling several forms with the same action is really the way to go.

-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 25, 2001 6:57 PM
To: '[EMAIL PROTECTED]'
Subject: RE: What is proper way to determine ActionForm type?


Aren't you then losing the ability to have one form used by many
actions?  For instance, you can have a "UserForm" which is responsible for
holding user data.  This form might be used on the login page, the signup
page, the change details, reset/resend password pages... and so on.  Then
you just have one action for each of the different pages.  

As I understand it, what you are suggesting is having something like this
(pseudo-code) in the Action class:

  if (form is login)
doLogin(form);
  else if (form is signup)
doSignup(form);
  ... and so on...

So effectively what you're doing is trying to write one action class that
handles all your scenarios?  

IMHO I think the separation of data nad logic that the form/action class
separation provides is a good thing, for reasons stated above.

cheers
dim

On Thu, 25 Oct 2001, Justin Piper wrote:

> True, it's more straightforward and slightly easier to implement if you
put
> all the work in the ActionForm.  I look at the ActionForm as nothing more
> than a temporary scratch space to allow the Struts framework to pass an
> unknown number and type of values to the ActionServlet, hence I'm
reluctant
> to do any real work in the ActionForm itself.  I think this is more of a
> design preference, since I don't think it really makes things harder to
> maintain in either case.
> 
> Looking at my previous message, I did forget one important detail -- to
> write a perform() method to handle an unknown superclass of ActionList
that
> throws an error.  It would be very bad to have the ActionForm version of
> perform() call visit() on an ActionList that turns around and calls the
> ActionForm version of perform() again.
> 
> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, October 24, 2001 4:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: What is proper way to determine ActionForm type?
> 
> 
> The details of the actual goal are sketchy, but if the ActionForm is
> polymorphic, you can add a new ActionForm type without touching the
> Action. 
> 
> The Action would just need to know to expect this super class, and hand
> this parameter to that method.
> 
> In general, the less one object knows about the specific type of
> another, the better ;-)
> 
> Justin Piper wrote:
> > 
> > Maybe I'm misinterpreting your suggestion, but wouldn't this be putting
> > logic in your ActionForm that should be in the ActionServlet?  What
about
> > defining several additional perform methods in your ActionServlet that
> > handle specific superclasses of ActionForm, and an abstract method
> > visit(YourActionServlet caller, ActionMapping mapping, ServletRequest
> > request, ServletResponse response) to the ActionList.  The concrete
> visit()
> > methods in all your derived classes would just call caller.perform(),
> > passing itself as the ActionForm parameter.
> > 
> > -Original Message-
> > From: Ted Husted [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 23, 2001 6:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: What is proper way to determine ActionForm type?
> > 
> > I'd consider using some type of polymorphism, where all of these
> > ActionForms share a common ancestor, with a known method, like
> > addItem(object), that would act as a wrapper. Each ActionForm could then
> > override addItem to call whatever list is appropriate.
> > 
> > ProductList extends ActionList
> >  addItem(addProductItem(o)) ;
> > AddressList extends ActionList
> >  addItem(addAddressItem(o));
> > 
> > In your framework Action, you could then just cast as the ancestor
> > method and call the overridden method
> > 
> > ActionList actionList = (ActionList) form;
> > 
> > actionList.addItem(o);
> > 
> > If you are still interested in determining the ActionForm bean type, see
> > the source of the processActionForm method for how the ActionServlet
> > does it.
> > 
> > If you need to call a method based on a parameter, see the source for
> > DispatchAction in the Actions package, which calls a local method based
> > on the string given as the parameter property.
> > 
> > -- Ted Husted, Husted dot Com, Fairport NY USA.
> > -- Custom Software ~ Technical Services.
> > -- Tel +1 

Re: Knowing where you came from

2001-10-26 Thread Peter Pilgrim


Expresso frameworks has the concept of states within a Controller (a direct subclass
jakarta struts action). Where can write states, which are methods prefix with "run" and
and suffixed with "State"  such as

MyController extends Controller {

 public void runPromptLoginState(  ) {  }

 public void runProcessLoginState(  ) {  }

 public void runPromptSubscriptionState(  ) {  }

 public void runProcessSubscriptionState(  ) {  }
}

--
Peter Pilgrim ++44 (0)207-545-9923
  //_\\
"Mathematics is essentially the study of islands of  ===
disparate subjects in a sea of ignorance."   || ! ||
Andrew Wiles _


 Message History 



From: Ted Husted <[EMAIL PROTECTED]> on 25/10/2001 08:47 AST

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Knowing where you came from


The problem is that, in a Web app, the client can request any valid URI
at any time, and the application has to deal with that.

Another way of looking at this is

+ what is our current state,
+ what changes are being requested to that state, and
+ can we make the change from the current state to the requested state.
+ if not, what other changes are required to move to the requested
state.

This is the general direction of the workflow project, where the state
is represented as a series of nested steps.

So if a request could not be completed because we were missing a name,
we could retain the current input, but roll back to the closest step
that captured a name, and proceed from there wizard-fashion.

For more about the workflow project see

http://jakarta.apache.org/struts/proposal-workflow.html

There also some preliminary Struts demo code in Struts-Simple

http://husted.com/struts/resources/struts-simple.zip


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

[EMAIL PROTECTED] wrote:
>
> Hi,
>
> It seems pretty common for applications to need some kind of "what screen /
> logical function did the user get here from" mechanism.  I think it would
> be interesting to try to build an xml driven navigation tool that would
> work with struts forwardings / actions.
>
> The navigation bean could be kept on the session, and tell you:
> - what logical function the user is currently at
> - what logical functions should be available from the current function
> - what function the user was at, if any, before arriving at the current
> location - you could even keep a history here...
>
> For any given function, you can find out what the url is for that function
> or what the global forwarding is for it, or what the action name is for it.
>
> An XML file could be built to configure the navigation bean, i.e.
> 
>  
>  
>  
> 
>
> You could use this for building navigation links in the JSPs dynamically
> and handling "where did I come from" context sensitive requirements.
>
> I'm sure there's a lot wrong with this idea ;-).
>
> Jim W.
> ThoughtWorks
>
> At 10:20 AM 10/23/01, [EMAIL PROTECTED] wrote:
> >In an Action, is there a way to determine if the request is coming from a
> >forward from another Action or from an "external" request?  I've thought
> >about storing in the session the last known request object and then
> >comparing against it every time any of my actions perform() get called to
> >see if the current request is the same as the last "known" request.  But
> >this feels clunky.
> >Are there any other ways to know where the request is coming from?
> >
> > Eric
> >--
> >Eric Rizzo, Software Engineer
> >OpenNetwork Technologies
> >http://www.opennetwork.com
> >-
> >I embrace my personality flaws, for without them
> >I might have no personality at all.
>
> Jim Weaver
> Software Developer - ThoughtWorks





--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





Re: Mailing list congestion?

2001-10-26 Thread Matt Raible

I'm getting the same behavior.

--- John Yu <[EMAIL PROTECTED]> wrote:
> I found the mailing list very slow. Messages I post only appears on the 
> next day.
> Is it only me?
> 
> -- 
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for Struts"
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: java IDEs

2001-10-26 Thread Matt Raible

I believe in VIM (www.vim.org) - not a memory hog like all the rest of the
IDE's.  JBuilder seems to get a lot of good reviews too.

Matt

--- Jossevel Daniel <[EMAIL PROTECTED]> wrote:
> Hello essayez Forte Community Edition 3.0 (chez sun) !!
> 
> -Message d'origine-
> De : peter [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi, 25. octobre 2001 22:13
> À : [EMAIL PROTECTED]
> Objet : java IDEs
> 
> 
> Hi
> 
> I know this is off topic (apologies), but I think there several people
> within this group who use Java IDEs.  I've never used an IDE (always used an
> editor like Ultra Edit), but would like to use one to perform mundane tasks
> like creating beans, etc.  My question is:  are there any free Java IDEs
> available, which are relatively easy to use?  Nothing too flash, just
> something to make all the boring monotonous developing tasks simpler and
> quicker.
> 
> 
> Thanks
> 
> 
> Peter
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: java IDEs

2001-10-26 Thread emmanuel.boudrant

Try JBuilder 5 Personnal Edition, it's free.


 --- Jossevel Daniel <[EMAIL PROTECTED]> a écrit : > Hello
essayez Forte Community Edition 3.0 (chez sun)
> !!
> 
> -Message d'origine-
> De : peter [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi, 25. octobre 2001 22:13
> À : [EMAIL PROTECTED]
> Objet : java IDEs
> 
> 
> Hi
> 
> I know this is off topic (apologies), but I think
> there several people
> within this group who use Java IDEs.  I've never
> used an IDE (always used an
> editor like Ultra Edit), but would like to use one
> to perform mundane tasks
> like creating beans, etc.  My question is:  are
> there any free Java IDEs
> available, which are relatively easy to use? 
> Nothing too flash, just
> something to make all the boring monotonous
> developing tasks simpler and
> quicker.
> 
> 
> Thanks
> 
> 
> Peter
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr



Re: Struts and IPlanet 6.0 (Test Drive) - Solution

2001-10-26 Thread Matt Raible

You are correct, and I was able to get the struts-example (that I ported) to
work on iPlanet Application Server (SP3) without adding anything to my
classpath.  However, I used the iPlanet Deployment Tool to register the
application.  There are other command line tools to register the application,
and even ant extensions, but both of these seem to require that the jar's be
added manually to the classpath.  Just some iPlanet qwirks, nothing more.

Matt


--- Dmitri Colebatch <[EMAIL PROTECTED]> wrote:
> Isn't the real cause of this the struts.jar file being int he
> classpath?  as I understand it the struts.jar should only be in the
> WEB-INF/lib of your web application.
> 
> cheers
> dim
> 
> On Thu, 25 Oct 2001, Matt Raible wrote:
> 
> > I wanted to make sure the solution to this issue got into the mailing list
> > archives.
> > 
> > Matt
> > 
> > --- Matt Raible <[EMAIL PROTECTED]> wrote:
> > > Date: Thu, 25 Oct 2001 10:31:48 -0700 (PDT)
> > > From: Matt Raible <[EMAIL PROTECTED]>
> > > Reply-to: [EMAIL PROTECTED]
> > > Subject: Re: Struts and IPlanet 6.0 (Test Drive)
> > > To: Brian Dainton <[EMAIL PROTECTED]>
> > > 
> > > Try adding WEB-INF/classes to your classpath.
> > > 
> > > Matt
> > > 
> > > --- Brian Dainton <[EMAIL PROTECTED]> wrote:
> > > > Thanks Matt...
> > > > 
> > > > I did apply the patch.   Thanks for the 'interact with desktop' tip. 
> My
> > > > error is
> > > > originating in the DatabaseServlet.  I'm getting a ClassNotFound
> exception
> > > on
> > > > the User
> > > > class.  I'll continue to research this
> > > > 
> > > > 
> > > > I've attached the stack trace..if you see anything obvious,  can you
> let me
> > > > know. 
> > > > Otherwise,  thanks for your help!!
> > > > 
> > > > Brian
> > > > [25/Oct/2001 11:06:47:4] info: WelcomeListServlet: init
> > > > [25/Oct/2001 11:06:47:4] info: --
> > > > [25/Oct/2001 11:06:47:7] info: --
> > > > [25/Oct/2001 11:06:47:7] info: database: init
> > > > [25/Oct/2001 11:06:47:7] info: --
> > > > [25/Oct/2001 11:06:47:7] info: --
> > > > [25/Oct/2001 11:06:47:7] info: database: Initializing database servlet
> > > > [25/Oct/2001 11:06:47:7] info: --
> > > > [25/Oct/2001 11:06:47:7] info: --
> > > > [25/Oct/2001 11:06:47:7] info: database: Loading database from
> > > > '/WEB-INF/databas
> > > > e.xml'
> > > > [25/Oct/2001 11:06:47:7] info: --
> > > > New org.apache.struts.webapp.example.User
> > > > Begin event threw exception
> > > > java.lang.ClassNotFoundException: org.apache.struts.webapp.example.User
> > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
> > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
> > > > at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
> > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> > > > at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
> > > > at java.lang.Class.forName0(Native Method)
> > > > at java.lang.Class.forName(Class.java:124)
> > > > at
> > > > org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.ja
> > > > va:152)
> > > > at
> > > > org.apache.struts.digester.Digester.startElement(Digester.java:528)
> > > > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1390)
> > > > at com.sun.xml.parser.Parser.content(Parser.java:1498)
> > > > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
> > > > at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
> > > > at com.sun.xml.parser.Parser.parse(Parser.java:283)
> > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
> > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
> > > > at org.apache.struts.digester.Digester.parse(Digester.java:755)
> > > > at
> > > > org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet
> > > > .java:251)
> > > > at
> > > > org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet
> > > > .java:175)
> > > > at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > > > at
> > > > com.netscape.server.servlet.servletrunner.ServletRepository.loadServl
> > > > et(Unknown Source)
> > > > at
> > > > com.netscape.server.servlet.servletrunner.ServletRepository.createIns
> > > > tance(Unknown Source)
> > > > at
> > > > com.netscape.server.servlet.servletrunner.ServletRunner.createServlet
> > > > Info(Unknown Source)
> > > > at
> > > > com.netscape.server.servlet.servletrunner.AppInfo.preLoadSe

Re: Mailing list congestion?

2001-10-26 Thread emmanuel.boudrant

Me too

 --- John Yu <[EMAIL PROTECTED]> a écrit : > I found
the mailing list very slow. Messages I post
> only appears on the 
> next day.
> Is it only me?
> 
> -- 
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for
> Struts"
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr



Re: default scope for struts actions

2001-10-26 Thread emmanuel.boudrant

I'm not sure, I think default scope is session.

see this in ActionMapping.java

/**
 * The identifier of the scope ("request" or
"session") under which the
 * form bean associated with this mapping, if any,
should be created.
 */
protected String scope = "session";


 --- John Yu <[EMAIL PROTECTED]> a écrit : > Chiji,
> 
> 
> Yes, the default scope is request. Btw, the scope is
> for the ActionForm 
> (aka FormBean) assoicated with the Action, not for
> the Action itself.
> 
> 
> At 10:48 am 25-10-2001 +, you wrote:
> 
> >I am right to think that the default scope for the
> struts action is request?
> >
> >Thanks
> >
> >Chiji
> 
> -- 
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for
Struts" 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr



Re: java IDEs

2001-10-26 Thread James Holmes

Peter--

I would take a look into the NetBeans project
(NetBeans.org) or Sun's Forte Community Edition (based
off of NetBeans).  These are both great IDEs and are
free to use.

I will also be releasing a new version of the Struts
Console that "plugs" into NetBeans and Sun Forte very
soon.  This will allow you to manage Struts
applications seemlessy from one central development
tool.

-james
[EMAIL PROTECTED]
http://www.ejcenter.com/struts/



--- peter <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I know this is off topic (apologies), but I think
> there several people
> within this group who use Java IDEs.  I've never
> used an IDE (always used an
> editor like Ultra Edit), but would like to use one
> to perform mundane tasks
> like creating beans, etc.  My question is:  are
> there any free Java IDEs
> available, which are relatively easy to use? 
> Nothing too flash, just
> something to make all the boring monotonous
> developing tasks simpler and
> quicker.
> 
> 
> Thanks
> 
> 
> Peter
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: Mailing list congestion?

2001-10-26 Thread Adriano Labate

You're right. 
A message I posted this early this morning is not appeared yet more that 5
hours later.

-Original Message-
From: John Yu [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 7:01 AM
To: [EMAIL PROTECTED]
Subject: Mailing list congestion?


I found the mailing list very slow. Messages I post only appears on the 
next day.
Is it only me?

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"



How can Struts support tag

2001-10-26 Thread pipashu
I use Struts to build a web. I have some directories to store jsp pages,
most of thes pages have images, for example, ,
When I execute a action (*.do), then forwards to a jsp in one of these 
directory(not root directory), this page can not show images. I wonder Struts 
does not support a) .
I know Struts support b) 
a) can be used in dreamveaver,
but b) can not be used in dreamveaver,
This is my problem.
Please ask how can I resolve this problem.
Thanks in advance.
 
Jack Wang
 
 
 
 
 
 ___
¶¬¼¾ÌػݻúƱ
´òÕ۾ƵêµÈÄãÀ´
ʮԽðÇᆱ²ÊÑÇÖÞÐÐ
ĦÍÐÂÞÀ­¾ãÀÖ²¿»áÔ±·þÎñ
eÁú¶ÌО«²ÊÎÞÏÞ
Õ½ÕùºÍ´«Ã½ 


Re: Real time web page?

2001-10-26 Thread Erik Hatcher

Also, the remote scripting API that I created has the capability of
short-circuiting responses in a similar manner.  Its application-dependent
how that logic works, either by message ID or by a date stamp or other
mechanism, as its just another parameter being passed from the client to the
server.

Erik

- Original Message -
From: "Nathan Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 1:11 PM
Subject: RE: Real time web page?


> Dave,
>
> There is a sample servlet created by Marty Hall in his book "Core Servlets
> and JavaServer Pages" [ISBN: 0-13-089340-4].  In this sample he does just
> what Robert suggested, setting the refresh interval in the HTTP response.
> But the one twist that makes me mention this is he had a variable of the
> last time the data had changed.  So he compared this timestamp with the
last
> update sent to the http client.  If there was no change, then he sent a
> message to the client that no change has been made.  This can reduce the
> network traffic significantly [if your data doesn't change as frequently
as
> your refresh interval].
>
> He has made is code available to the public at the books website
> [http://www.coreservlets.com/].  To get more info on what/how he did it,
> you'll probably need the book [which IMO is a good one to have anyway].
>
> Nathan Anderson
>
> -Original Message-
> From: Robert Parker [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 24, 2001 7:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Real time web page?
>
>
> Hmmm - http is typically connectionless, however there are a few tricks to
> give the impression of what you require...
>
> You can get the server to serve a multipart response and hence give a
> sequence of snapshots.
> You can set a refresh interval in the response header so that the browser
> requests the page again.
>
> Note that this essentially gives you a sequence of snapshots, rather than

> any 'real-time' updates...
>
> As an alternative - have you considered using a 'fat client' ie java
> application downloaded using jumpstart?
>
> regards
>
> Rob
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 25, 2001 2:16 AM
> Subject: Real time web page?
>
>
> >
> >
> > Hi everyone.  We are starting a new project and have a requirement for
> real-time
> > updates in a web browser.  Does anyone know of any tools that allow for
> this,
> > apart from applets?
> >
> > Cheers,
> >
> > Dave
> >
> >
> >
> >
>
>
>




Re: Does struts spawn a new action class for every user?

2001-10-26 Thread David Corbin

The documentation is very clear that there is only one instance of the
action class. You should not use member variables in action classes.

David Corbin
- Original Message -
From: "Greg Lehane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 5:53 PM
Subject: Does struts spawn a new action class for every user?


Hey Folks,

  If I declare variables outside of the perform() method in my action
classes, does this mean that multiple simultaneous users will overwrite
each others variables? i.e. does struts spawn a new action object for
every user session, or does it keep the same object and just call the
perform() method each time a user calls the action?

  Any feedback would be very helpful,

  Thanks,

- Greg







RE: java IDEs

2001-10-26 Thread Alexander Jesse

Hi,
well, if it is just for bean-creation...
Why not use a uml-tool with code-generation?
(eg. ArgoUML v0.9 (the experimental one) has code-generation-features)

As a side-dish you can get uml-documentation for your bean-classes...
and still you use your preferred IDE (...UltraEdit...).

hope this helps
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 10:13 PM
To: [EMAIL PROTECTED]
Subject: java IDEs


Hi

I know this is off topic (apologies), but I think there several people
within this group who use Java IDEs.  I've never used an IDE (always used an
editor like Ultra Edit), but would like to use one to perform mundane tasks
like creating beans, etc.  My question is:  are there any free Java IDEs
available, which are relatively easy to use?  Nothing too flash, just
something to make all the boring monotonous developing tasks simpler and
quicker.


Thanks


Peter



RE: adding /viewing messages like errors

2001-10-26 Thread Alexander Jesse

Maybe he refers to the validator's messageExists tag...
 
If yes -> see validator documentation
 
cheers
Alexander
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 7:55 AM
To: [EMAIL PROTECTED]
Subject: Re: adding /viewing messages like errors


Are you referring to the  tag?

   http://jakarta.apache.org/struts/struts-logic.html#present 
 

Or are you looking for information on ?

   http://jakarta.apache.org/struts/struts-html.html#errors 
 



At 02:04 pm 24-10-2001 -0400, you wrote:



I thought I read somewhere that I can add to the message bean
and then in a jsp see if this message bean exists and output it kind
of like errors???

errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError("error.database.missing"));

Can anyone point me in the right direction/...


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

Thank you.

-- 
John Yu   Scioworks Technologies 
e: [EMAIL PROTECTED] w: +(65) 873 5989
w:   http://www.scioworks.com     m: +(65) 9782 9610 

Scioworks Camino - "Rapid WebApp Assembly for Struts" 




html:link page or forward?

2001-10-26 Thread chiji nwankwo

Hi,
What is the difference between using the page and forward attributes of the html:link tag?
Thanks
ChijiGet your FREE download of MSN Explorer at http://explorer.msn.com


Nightly Build Problem

2001-10-26 Thread L. Yeung

My struts app is currently working. I just
redownloaded struts build-20011025. Threw out all my
old tlds, dtds and struts lib jar files and replaced
it with new ones. When I ran tomcat it crashed. I took
my struts app out from the server.xml, and Tomcat ran
just fine. Am I missing something?

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Re: ActionErrors.add

2001-10-26 Thread emmanuel.boudrant

Yes.

Domage ;)

 --- John Yu <[EMAIL PROTECTED]> a écrit : > If I
remember correctly, the errors are
> concatenated, not overwritten.
> 
> 
> At 05:22 pm 25-10-2001 +0200, you wrote:
> >What's happen if...
> >
> >
> >ActionErrors errors = new ...
> >
> >(...)
> >errors.add("login",new
> ActionError("error.login1"));
> >(...)
> >errors.add("login",new
> ActionError("error.login2"));
> >
> >Is the first errors is overloaded by the second
> error
> >?
> 
> -- 
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for
Struts" 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr



HowTo: How can I acces the index of a iterator-tag within a logic-tag ?

2001-10-26 Thread storck

Hi,

How can I acces the index of a iterator-tag within a logic-tag ?

   



THANKS !




AW: submit button internationalization.

2001-10-26 Thread Bernhard J. Hirschmann


Thank you very much! THIS is I was looking for. Great!


> -Ursprungliche Nachricht-
> Von: Jonathan R. Okin [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 25. Oktober 2001 15:02
> An: [EMAIL PROTECTED]
> Betreff: Re: submit button internationalization.
> 
> 
> I could be wrong, but this is what I use and it doesn't get
> much simpler:
> 
> 
> 
> where xxx = the value of the button to evaluate in your action class
> and yyy = the message key in your ApplicationResourses.properties file
> 
> -Jonathan
> 
> --- Mark Gordon <[EMAIL PROTECTED]> wrote:
> > 
> > Has anyone come up with a cool way to internationalize a submit button 
> > using the  tag?
> > 
> >  > value="<%=org.apache.struts.util.RequestUtils.message(pageContext, 
> > org.apache.struts.action.Action.MESSAGES_KEY, 
> > org.apache.struts.action.Action.LOCALE_KEY,"button.save")%>"
> > styleClass="formField"/>
> > 
> > 
> > I was thinking about extending the html:submit tag to include an 
> > attribute   valueKey  and have that  set the value.
> > 
> > 
> > -Mark
> > 
> 
> 
> =
> _
> Jonathan R. OkinEmail: [EMAIL PROTECTED]
> President, Cambridge Consulting, Inc.   Phone: 973-763-8239
> 74 Boyden Avenue Maplewood, NJ 07040Alternate Phone: 973-763-8260
> 
> Maine:
> Frenchman Bay, Winter Harbor, ME 04693  Phone: 207-963-2355
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 



Re: How can a retrive an Action instance with a path ?

2001-10-26 Thread emmanuel.boudrant

Is is the unique solution ?



package com.csi.controller;

import org.apache.struts.action.ActionMapping;

public class CsiActionMapping extends ActionMapping
{

   /**
* @roseuid 3BD93D2D0078
*/
   public CsiActionMapping()
   {

   }

   public getActionInstance() {
return instance;
   }
}




___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr



How can a retrive an Action instance with a path ?

2001-10-26 Thread emmanuel.boudrant

I make a TabLig:




And in this tag, I must access to the Action instance
witch path is /saisie.do

How can I retrive this action instance with
ActionMappings in application scope ?

Thanx.

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr



Re: Does struts spawn a new action class for every user?

2001-10-26 Thread Ted Husted

There is only one instance of an Action class per application, and so
they must be thread-safe.

http://jakarta.apache.org/struts/userGuide/building_controller.html#action_classes

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Greg Lehane wrote:
> 
> Hey Folks,
> 
>   If I declare variables outside of the perform() method in my action
> classes, does this mean that multiple simultaneous users will overwrite
> each others variables? i.e. does struts spawn a new action object for
> every user session, or does it keep the same object and just call the
> perform() method each time a user calls the action?
> 
>   Any feedback would be very helpful,
> 
>   Thanks,
> 
> - Greg



Re: RowTag Zip file

2001-10-26 Thread Ted Husted

The current version from Jakarta Taglibs can be used instead.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


[EMAIL PROTECTED] wrote:
> 
> StrutsUsers--
> 
>  Does anyone know where I can get a copy of the RowTag Zip file?
>  (The link on the struts website is broken)
> 
> Thanks!
> 
> Jason
> 
> __
> This message contains information that may be privileged or confidential
> and is the property of the Cap Gemini Ernst & Young Group.  It is intended
> only for the person to whom it is addressed.  If you are not the intended
> recipient, you are not authorized to read, print, retain, copy,
> disseminate, distribute, or use this message or any part thereof. If you
> receive this message in error, please notify the sender immediately and
> delete all copies of this message



Re: Digestioin pill needed

2001-10-26 Thread Ted Husted

You might also bring this up on the Jakarta Commons list, where the
current version of the Digester is maintained.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Mark Franklin wrote:
> 
> Hi.
> 
> I'm having some trouble getting a Digester to parse what is a very simple
> bit of XML.
> 
> Our adopted standard is for XML whose value is in a specific named attribute
> ("value"):
> 
> ie
> 
> 
> 
> 
> 
> The function of the above is for the action to look up in a class factory
> and to then invoke its list method.
> 
> I consider this an ideal candidate for a Digester and have a Class that
> endeavours to :
> 
>  sXml= "";
> 
> InputSource source = new InputSource(new StringReader(sXml));
> 
> Digester digester = new Digester();
> 
> digester.setValidating(false);
> 
>  digester.push(a);
> digester.push(m);
> 
> digester.addSetProperties("root/action");
> digester.addSetProperties("root/method");
> 
> try{
> digester.parse(source);
> System.err.println(a.getValue());
> System.err.println(m.getValue());
> 
> }
> catch(java.io.IOException e){}
> catch(org.xml.sax.SAXException esx){}
> 
> }
> 
> and two classes for getting the properties:
> public class Action {
> 
> String s = new String();
> public Action() {
> }
> public void setValue(String value)
> {
> s= value;
> }
> 
>public void getValue()
> {
> return s;
> }
> }
> public class Method {
> String s = new String();
> public Method() {
> }
> public void setValue(String value)
> {
> s= value;
> }
>public void getValue()
> {
> return s;
> }
> }
> 
> The problem is that it only seems to match for the last object pushed onto
> the stack, ie it only prints "list".
> 
> ANy assistance greatly appreciated.



Struts, JSP, Servlets and dB

2001-10-26 Thread Daniel WAMARA

Hi,

no good answer has been given to me thru all the websites I went to but I 
should now have to ask my question here I think : I'm brand new in Struts' 
world because I've been hired by a company using it.

Having worked before with servlets where querying databases where a matter 
of SQL statements, I'm not a bit lost : all the examples I've seen were 
using kinda "XML databases" but I now have to make a short application to 
see that I'm a bit good in Struts before beginning my real project next 
week.

I would like to know if I can use some "normal" SQL statements in my Form 
objects extending the ActionForm class ?

Writing the config-struts.xml file, writing the form objects, writing the 
lines of the Actions are not a problem because I now have a good look over 
it but how could I use "normal" databases or tables like I was doing before 
with servlets, like defining the driver, getting the connection, making 
statements and so on...

I was a bit long but it was for a good explanation.

Thanks for helping,

Daniel WAMARA

Frankfurt/Main, Germany

_
Téléchargez MSN Explorer gratuitement à l'adresse 
http://explorer.msn.fr/intl.asp




Re: Design consideration: Client side validation

2001-10-26 Thread John Yu

If client-side validation is preferred, one paradigm is:

   - use js to do client-side validation,
   - don't do validation in Struts, and
   - let your business logic do the final safe-guard to
 throw exception if the values are invalid.

The main consideration is the maintenance of the js code.


At 05:44 pm 25-10-2001 -0700, you wrote:
>Hi:
>
>Struts puts emaphasis on server-side validations.
>However, lotsa times it makes sense to do some
>validations before we hit the server.
>
>How the client side validations should be done while
>keeping the sanctity of the design principles for
>struts? Is it a good practice to use use JavaScript to
>do this? What are the possible ways to do this?
>
>TIA,
>
>Hitesh.
>
>__
>Do You Yahoo!?
>Make a great connection at Yahoo! Personals.
>http://personals.yahoo.com

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"




HowTo: Struts Template containing JSP with Action and ActionForms associated

2001-10-26 Thread storck

Hi,

I have a template build with struts and I have a JSP wich uses that template
and looks like the following:

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







AND I have a struts-config:



















If I use "" I get a exception wich says that
the bean "showBoxesBean" could not be found in session so I thought I must
use "" in my
JSP. But than I get a "javax.servlet.jsp.JspException: Servlet Exception"
throwen in the template-insert-tag.

The Action associated with my ShowSelectionBoxes.jsp has the duty to fill
some selectboxes.
What I want to do is to have a JSP build with template wich has on the left
side a sidebar containing 3 selectboxes and in the middle showing some
content wich is although a jsp with a Action and a ActionForm

PLEASE can anyone help me how to achieve that ??
THANKS!




Re: This list NEEDS a FAQ

2001-10-26 Thread Erik Hatcher

http://www.jguru.com/faq/Struts


- Original Message -
From: "Mindaugas Idzelis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 5:32 PM
Subject: This list NEEDS a FAQ


> Subscribers,
>
> This list NEEDS a FAQ badly. There are many many many questions that are
> asked repeatedly. It would be nice to refer them to a FAQ. I'd be willing
to
> put together a small FAQ. Please send me questions (and answers!! -- if
you
> have them) to [EMAIL PROTECTED] Please include FAQ in the subject. Thanks.
>
> Mindaugas Idzelis
>
>
>




RE: what is expresso??

2001-10-26 Thread Tom Klaasen (TeleRelay)

One search on Google (http://www.google.com) to "expresso framework"
gave me this link http://www.jcorporate.com/ immediately. On this page,
do a ctrl+f, and type "expresso" to find the right link.

hth,
tomK

-Original Message-
From: John McClain [mailto:[EMAIL PROTECTED]] 
Sent: donderdag 25 oktober 2001 4:27
To: [EMAIL PROTECTED]
Subject: what is expresso??


Can someone out there tell me what expresso is and how it is different
from struts? What are the features it has that struts does not and
vice-versa? Thanks
John McClain
7604 Muschetto Ct.
Citrus Heights, CA. 95621
[EMAIL PROTECTED]
(916)728-5223



Re: Real time web page?

2001-10-26 Thread Paul Dillon

Ick, I sent this email about 7 hours ago and it has only just appeared on
the list.  I sent a mail to ant-user yesterday still hasn't appeared.
Anyone else having email probs with the jakarta mailing lists?

- Original Message -
From: "Paul Dillon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 10:29 AM
Subject: Re: Real time web page?


> You can effectively push with a multipart response.  The server can send
> each part whenever it wants - in response to a real-time event for
example.
>
> Some guy put together a library for doing real-time updates by pushing
> chunks of javascript in the body of a long-lived response.  By putting it
> into a hidden frame you could keep your main page stationary while
updating
> the form input elements in real-time.  Sorry I don't remember the URL.
>
> The most robust solution would be an applet.  Is the reason you don't want
> to use an applet due to presentation issues?  You can have a more or less
> invisible applet that handles the communication, and use DHTML for the
> presentation.
>
> Cheers,
>
> Paul
>
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, October 25, 2001 2:16 AM
> > Subject: Real time web page?
> >
> >
> > >
> > >
> > > Hi everyone.  We are starting a new project and have a requirement for
> > real-time
> > > updates in a web browser.  Does anyone know of any tools that allow
for
> > this,
> > > apart from applets?
> > >
> > > Cheers,
> > >
> > > Dave
> > >
> > >
> > >
> > >
> >
> >
>
>




RE: RowTag Zip file

2001-10-26 Thread Adriano Labate

See on the page http://husted.com/struts/resources.htm, there is a valid
link on http://husted.com/struts/resources/rowtag.zip.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 12:50 AM
To: [EMAIL PROTECTED]
Subject: RowTag Zip file



StrutsUsers--

 Does anyone know where I can get a copy of the RowTag Zip file?
 (The link on the struts website is broken)

Thanks!

Jason



__
This message contains information that may be privileged or confidential
and is the property of the Cap Gemini Ernst & Young Group.  It is intended
only for the person to whom it is addressed.  If you are not the intended
recipient, you are not authorized to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and
delete all copies of this message



Re: java IDEs

2001-10-26 Thread John Yu

Peter,

Borland's JBuilder is a popular and powerful commercial IDE. Its 
BeansExpress wizard can generate beans for you from the properties 
specified by you. They have a free bare-bone Personal version available for 
download:

http://www.borland.com/jbuilder/offers/

NetBeans is an open source IDE:

http://www.netbeans.org

If you need a tool to go through your JSPs and generate formBeans 
automatically from the , you may want to take a look at 
Scioworks Camino,

http://www.scioworks.com/scioworks_camino.html

Hope this help.


At 09:13 pm 25-10-2001 +0100, you wrote:
>Hi
>
>I know this is off topic (apologies), but I think there several people
>within this group who use Java IDEs.  I've never used an IDE (always used an
>editor like Ultra Edit), but would like to use one to perform mundane tasks
>like creating beans, etc.  My question is:  are there any free Java IDEs
>available, which are relatively easy to use?  Nothing too flash, just
>something to make all the boring monotonous developing tasks simpler and
>quicker.
>
>Thanks
>
>Peter

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"




Re: Knowing where you came from

2001-10-26 Thread Arnaud Chiaberge

Hi all,

I have exactly the same concern. I'm using one Actionform for several
purposes (coming from different JSP pages), and I'd like ot be able to know
where I come from...is it possible ?

Also, same problem when using an Action (a dispatcher one) that can be
called from any JSP page...once again, I need to know from which JSP page
this Action has been called (in this specific case, I don't have any
"input=" entry ine the struts-config.xml file)

Thanks in advance for any help.

Arnaud Chiaberge


- Original Message -
From: "DUPRAT Alexandre" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 1:58 PM
Subject: RE: Knowing where you came from


> Hi,
>
> I would be pretty interresting to know what is the action mapping when
> validating an ActionForm.
> We are using one form bean for 3 actions. We need to know what is the
> current action but the form is validating before going to action.perform()
> :-(
> do something exist to help us?
>
>
>
> -Message d'origine-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Date: jeudi 25 octobre 2001 00:13
> À: [EMAIL PROTECTED]
> Objet: Re: Knowing where you came from
>
>
>
> Hi,
>
> It seems pretty common for applications to need some kind of "what screen
/
> logical function did the user get here from" mechanism.  I think it would
> be interesting to try to build an xml driven navigation tool that would
> work with struts forwardings / actions.
>
> The navigation bean could be kept on the session, and tell you:
> - what logical function the user is currently at
> - what logical functions should be available from the current function
> - what function the user was at, if any, before arriving at the current
> location - you could even keep a history here...
>
> For any given function, you can find out what the url is for that function
> or what the global forwarding is for it, or what the action name is for
it.
>
> An XML file could be built to configure the navigation bean, i.e.
> 
>  
>  
>  
> 
>
> You could use this for building navigation links in the JSPs dynamically
> and handling "where did I come from" context sensitive requirements.
>
> I'm sure there's a lot wrong with this idea ;-).
>
> Jim W.
> ThoughtWorks
>
>
> At 10:20 AM 10/23/01, [EMAIL PROTECTED] wrote:
> >In an Action, is there a way to determine if the request is coming from a
> >forward from another Action or from an "external" request?  I've thought
> >about storing in the session the last known request object and then
> >comparing against it every time any of my actions perform() get called to
> >see if the current request is the same as the last "known" request.  But
> >this feels clunky.
> >Are there any other ways to know where the request is coming from?
> >
> > Eric
> >--
> >Eric Rizzo, Software Engineer
> >OpenNetwork Technologies
> >http://www.opennetwork.com
> >-
> >I embrace my personality flaws, for without them
> >I might have no personality at all.
>
>
> Jim Weaver
> Software Developer - ThoughtWorks
>
>
>
> ++
> | Ce courrier ainsi que les fichiers joints sont confidentiels.  |
> | Si vous avez recu ce courrier par erreur, veuillez en informer |
> | l'administrateur du systeme : [EMAIL PROTECTED]   |
> |  - |
> | Ce message confirme que le courrier a passe le controle|
> | antivirus du relais de messagerie Internet avec succes.|
> ++
>




Re: This list NEEDS a FAQ

2001-10-26 Thread John Yu

There's an FAQ on husted.com which contains frequent questions asked on the 
list,

 http://www.husted.com/struts/FAQ/index.htm

Maybe we need an eye-catching link on jakarta's website pointing to the FAQ 
page? What do you think, Ted?


At 05:32 pm 25-10-2001 -0400, you wrote:
>Subscribers,
>
> This list NEEDS a FAQ badly. There are many many many questions 
> that are
>asked repeatedly. It would be nice to refer them to a FAQ. I'd be willing to
>put together a small FAQ. Please send me questions (and answers!! -- if you
>have them) to [EMAIL PROTECTED] Please include FAQ in the subject. Thanks.
>
>Mindaugas Idzelis

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"




Re: This list NEEDS a FAQ

2001-10-26 Thread martin . cooper

There already is a FAQ, here:

http://jakarta.apache.org/struts/userGuide/kickstart.html

I agree with the sentiment behind your suggestion, though. The real problem
is that many people don't refer to the FAQ, and don't check the mailing list
archives, before posting their own questions to the list. Unfortunately,
these are typically the same people who believe that their own time is more
valuable than that of other people on the list.

I don't know what the best solution is for this problem. Moderating the list
is one option, but with the typical daily volume of this list, I don't see
anyone readily volunteering for that task. ;-) Perhaps the best we can do is
to collectively enforce the "do your own research first" reaction.

So whenever you read a message that asks a question that is already on the
FAQ list, don't reply with the answer, but reply with a reference to the FAQ
which supplies the answer. And if you see a question being asked repeatedly,
propose it as a candidate for the FAQ.

If we are consistent in the way we respond to frequently asked questions on
this list, we should be able to reduce the overall message volume, and
increase the signal-to-noise ratio. That will benefit us all.

--
Martin Cooper


- Original Message -
From: "Mindaugas Idzelis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 2:32 PM
Subject: This list NEEDS a FAQ


> Subscribers,
>
> This list NEEDS a FAQ badly. There are many many many questions that are
> asked repeatedly. It would be nice to refer them to a FAQ. I'd be willing
to
> put together a small FAQ. Please send me questions (and answers!! -- if
you
> have them) to [EMAIL PROTECTED] Please include FAQ in the subject. Thanks.
>
> Mindaugas Idzelis
>
>





Re: Does struts spawn a new action class for every user?

2001-10-26 Thread John Yu

Greg,

Action MUST be stateless unless you synchronize its access.
The same single instance is used to serve all requests.

See, 
http://jakarta.apache.org/struts/api-1.0/org/apache/struts/action/Action.html

At 02:53 pm 25-10-2001 -0700, you wrote:
>Hey Folks,
>
>   If I declare variables outside of the perform() method in my action
>classes, does this mean that multiple simultaneous users will overwrite
>each others variables? i.e. does struts spawn a new action object for
>every user session, or does it keep the same object and just call the
>perform() method each time a user calls the action?
>
>   Any feedback would be very helpful,
>
>   Thanks,
>
>- Greg

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"




PROPOSAL: collectionProperty attribute in

2001-10-26 Thread Mindaugas Idzelis

PROPOSAL: collectionProperty attribute in 

Abstract:
A new attribute "collectionProperty" which will act like the 
current "colllection" attribute except that it specifies the property of the 
form which contains the collection thereby elimating the need for a 
 and decreasing coupling between the JSP page and the name of the 
form bean defined in struts-config.xml.

Proposal:

A common approach to using the  tag uses the collection, 
property, and labelProperty attributes to specify which bean properties to use 
to generate the  tag. This works fine when the collection is sent 
separate from the form. 

There is a problem when the collection is actually a property of the form. The 
collection attribute EXPECTS an actual collection, and will NOT accept a 
property. 

Scenario:

You have a form named "formBean" with a collection of beans under a 
property "users." You want to use the bean properties "userid" and "username" 
to render values and labels for the html options.

In order to do this, you would need something along the following lines 
of code:







Problem with this scenario:

If you notice, we must use the bean:define tag. First of all, this tag 
adds overhead: It is using reflection to copy a collection into a page scope 
variable. Also, the form now must KNOW what the name of the formBean is. 
Wouldn't it be nice if you could just tell the  tag which 
property contains the collection within the form bean? The  tag 
would call this property on the formBean associated with the Form.

Updated scenario;

This is what the jsp code will look like with the proposed change:







Proposed Change:

We would add an attribute to  called "collectionProperty" 
this property will specify what property under the current form bean contains 
the collection. The property and labelProperty attributes will function in the 
same way as they do when they are used in conjuction with the "collection" 
attribute.

Rationale:

I believe this change will give the  tag more 
functionality and make it easier to use. As well as the help in certain strut 
design patterns.
Consider the following. You have a Class called "CommonForm" which 
inherits from ActionForm. This form contains several common elements like 
State/abbreviate pairs, etc. All of your other forms inherit from CommonForm so 
they also have access to this data. The above proposal would make this design a 
lot more convenient.

I would like to hear comments as well as votes for this change. Thanks

Mindaugas Idzelis
Application Developer
Rochester, NY 14623



Re: Does struts spawn a new action class for every user?

2001-10-26 Thread Dmitri Colebatch

On Thu, 25 Oct 2001, Greg Lehane wrote:

>   If I declare variables outside of the perform() method in my action
> classes, does this mean that multiple simultaneous users will overwrite
> each others variables? i.e. does struts spawn a new action object for
> every user session, or does it keep the same object and just call the
> perform() method each time a user calls the action?

no, there is only one instance of each action class, so yes, concurrent
calls will overwrite each other's variables.  consider it the same as a
servlet in the way you code it.

hth
dim




Re: Struts and IPlanet 6.0 (Test Drive) - Solution

2001-10-26 Thread Dmitri Colebatch

Isn't the real cause of this the struts.jar file being int he
classpath?  as I understand it the struts.jar should only be in the
WEB-INF/lib of your web application.

cheers
dim

On Thu, 25 Oct 2001, Matt Raible wrote:

> I wanted to make sure the solution to this issue got into the mailing list
> archives.
> 
> Matt
> 
> --- Matt Raible <[EMAIL PROTECTED]> wrote:
> > Date: Thu, 25 Oct 2001 10:31:48 -0700 (PDT)
> > From: Matt Raible <[EMAIL PROTECTED]>
> > Reply-to: [EMAIL PROTECTED]
> > Subject: Re: Struts and IPlanet 6.0 (Test Drive)
> > To: Brian Dainton <[EMAIL PROTECTED]>
> > 
> > Try adding WEB-INF/classes to your classpath.
> > 
> > Matt
> > 
> > --- Brian Dainton <[EMAIL PROTECTED]> wrote:
> > > Thanks Matt...
> > > 
> > > I did apply the patch.   Thanks for the 'interact with desktop' tip.  My
> > > error is
> > > originating in the DatabaseServlet.  I'm getting a ClassNotFound exception
> > on
> > > the User
> > > class.  I'll continue to research this
> > > 
> > > 
> > > I've attached the stack trace..if you see anything obvious,  can you let me
> > > know. 
> > > Otherwise,  thanks for your help!!
> > > 
> > > Brian
> > > [25/Oct/2001 11:06:47:4] info: WelcomeListServlet: init
> > > [25/Oct/2001 11:06:47:4] info: --
> > > [25/Oct/2001 11:06:47:7] info: --
> > > [25/Oct/2001 11:06:47:7] info: database: init
> > > [25/Oct/2001 11:06:47:7] info: --
> > > [25/Oct/2001 11:06:47:7] info: --
> > > [25/Oct/2001 11:06:47:7] info: database: Initializing database servlet
> > > [25/Oct/2001 11:06:47:7] info: --
> > > [25/Oct/2001 11:06:47:7] info: --
> > > [25/Oct/2001 11:06:47:7] info: database: Loading database from
> > > '/WEB-INF/databas
> > > e.xml'
> > > [25/Oct/2001 11:06:47:7] info: --
> > > New org.apache.struts.webapp.example.User
> > > Begin event threw exception
> > > java.lang.ClassNotFoundException: org.apache.struts.webapp.example.User
> > > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > > at java.security.AccessController.doPrivileged(Native Method)
> > > at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
> > > at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
> > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
> > > at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
> > > at java.lang.Class.forName0(Native Method)
> > > at java.lang.Class.forName(Class.java:124)
> > > at
> > > org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.ja
> > > va:152)
> > > at
> > > org.apache.struts.digester.Digester.startElement(Digester.java:528)
> > > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1390)
> > > at com.sun.xml.parser.Parser.content(Parser.java:1498)
> > > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
> > > at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
> > > at com.sun.xml.parser.Parser.parse(Parser.java:283)
> > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
> > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
> > > at org.apache.struts.digester.Digester.parse(Digester.java:755)
> > > at
> > > org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet
> > > .java:251)
> > > at
> > > org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet
> > > .java:175)
> > > at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > > at
> > > com.netscape.server.servlet.servletrunner.ServletRepository.loadServl
> > > et(Unknown Source)
> > > at
> > > com.netscape.server.servlet.servletrunner.ServletRepository.createIns
> > > tance(Unknown Source)
> > > at
> > > com.netscape.server.servlet.servletrunner.ServletRunner.createServlet
> > > Info(Unknown Source)
> > > at
> > > com.netscape.server.servlet.servletrunner.AppInfo.preLoadServlets(Unk
> > > nown Source)
> > > at
> > > com.netscape.server.servlet.servletrunner.AppInfo.resetServlets(Unkno
> > > wn Source)
> > > at com.netscape.server.servlet.servletrunner.AppInfo.(Unknown
> > > Sour
> > > ce)
> > > at
> > > com.netscape.server.servlet.servletrunner.ServletModule.getAppInfo(Un
> > > known Source)
> > > at
> > > com.netscape.server.servlet.servletrunner.ServletModule.getPlatformSe
> > > rvletContext(Unknown Source)
> > > at
> > > com.netscape.server.servlet.platformhttp.PlatformServletContext.getCo
> > > ntext(Unknown Source)
> > > at
> > > com.netscape.server.servlet.servletrunner.WelcomeListServlet.doJSPInc
> > > lude(Unknow

Re: HowTo: Preselect a value of a SelectBox

2001-10-26 Thread Jens Kühnberger

If you got something like:





then initialise the variable "somevalue" in your form bean with the 
value you want to have preselected.

Jens

storck wrote:

>Hi,
>
>how can I preselect a value of a SelectBox?
>
>Many Thanks!!
>
>





RE: java IDEs

2001-10-26 Thread Jossevel Daniel
Title: RE: java IDEs





Hello essayez Forte Community Edition 3.0 (chez sun) !!


-Message d'origine-
De : peter [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi, 25. octobre 2001 22:13
À : [EMAIL PROTECTED]
Objet : java IDEs



Hi


I know this is off topic (apologies), but I think there several people
within this group who use Java IDEs.  I've never used an IDE (always used an
editor like Ultra Edit), but would like to use one to perform mundane tasks
like creating beans, etc.  My question is:  are there any free Java IDEs
available, which are relatively easy to use?  Nothing too flash, just
something to make all the boring monotonous developing tasks simpler and
quicker.



Thanks



Peter





Mailing list congestion?

2001-10-26 Thread John Yu

I found the mailing list very slow. Messages I post only appears on the 
next day.
Is it only me?

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"




Re: Flash button and forms with struts

2001-10-26 Thread John Yu

Hitesh,

You may want to look at Enhydra XMLC,

http://xmlc.enhydra.org/community/enhydraOnTheEdge/index.html



At 11:48 am 25-10-2001 -0700, you wrote:
>I've never done it, but I know you can use XML to communicate with Flash.
>Produce XML from your bean, and walla!
>
>http://www.macromedia.com/support/flash/interactivity/xml/
>
>
>--- Dmitri Colebatch <[EMAIL PROTECTED]> wrote:
> > There are two different parts to struts... firstly the framework side, and
> > secondly the presentation side (taglibs).  There's no reason you couldn't
> > use the framework without the presentation.  The key thing would be that
> > you'd lose the ability to have fields populated with values that were
> > present in the bean...  but imho its very doable...
> >
> > hth
> > dim
> >
> > On Wed, 24 Oct 2001, Hitesh Parashar wrote:
> >
> > > Hi All:
> > >
> > > How can we use Macromedia flash buttons and forms with
> > > struts?
> > >
> > > It is really important for us at the moment because we
> > > want to use struts and we also want to leverage the
> > > Flash forms/buttons already present with us.
> > >
> > > The decision of whether to use struts or not hinges on
> > > the fact "how easily can we integrate Flash components
> > > in struts".
> > >
> > > TIA,
> > >
> > > Hitesh.
> > >

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"




Re: Real time web page? There is a way

2001-10-26 Thread Mark Ashworth

Good day,

Listen closely as I describe how to push content to the browser. What is 
required is a servlet or the like to sit in a loop sending java script 
function updates to an iframe. Once the iframe receives the data it then 
calls an update function on the relevant page. So the solution looks like 
this:-


Browser--IFrame(A)--Servlet
-IFrame(B)

Now you are probably saying that the servlet will keep the browser busy, and 
you will be correct. That is why it is housed in an iframe, since it abides 
to special rules.

There are some special gotchas that you will need to look out for:-
1 - The servlet must be referenced by it's absolute path
2 - The servlet might not know when the user has left that page
3 - The iframe initialisation needs to be done correctly or the
page will hang on getting the data from the servlet

Regards,
Java Mage

>From: John Yu <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Real time web page?
>Date: Thu, 25 Oct 2001 11:14:25 +0800
>
>Dave,
>
>It is limited by the HTTP protocol that the web server cannot 'push' data.
>The only pure HTML solution I'm aware of is to put a meta tag onto the page
>to ask the browser to refresh (i.e. 'pull') the page periodically:
>
>   CONTENT="3;URL=http://www.some.org/some.html";>
>
>Things like Macromedia Flash and Shockwave may provide real-time data
>pushing. But I'm not sure.
>
>
>At 12:16 pm 24-10-2001 -0400, you wrote:
>
>
>>Hi everyone.  We are starting a new project and have a requirement for
>>real-time
>>updates in a web browser.  Does anyone know of any tools that allow for 
>>this,
>>apart from applets?
>>
>>Cheers,
>>
>>Dave
>
>--
>John Yu   Scioworks Technologies
>e: [EMAIL PROTECTED] w: +(65) 873 5989
>w: http://www.scioworks.com   m: +(65) 9782 9610
>
>Scioworks Camino - "Rapid WebApp Assembly for Struts"


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




Re: default scope for struts actions

2001-10-26 Thread John Yu

Chiji,

Yes, the default scope is request. Btw, the scope is for the ActionForm
(aka FormBean) assoicated with the Action, not for the Action
itself.

At 10:48 am 25-10-2001 +, you wrote:
I am right to think that the
default scope for the struts action is request?
Thanks
Chiji

-- 
John
Yu  
Scioworks Technologies 
e: [EMAIL PROTECTED] w:
+(65) 873 5989
w:
http://www.scioworks.com 
 m: +(65) 9782 9610 
Scioworks Camino - "Rapid WebApp Assembly for
Struts"


Re: Struts 'n Expresso

2001-10-26 Thread John Yu

Expresso and Struts complement each other.
You may want to take a look at the documentation which includes some
information on Expresso/Struts integration.
 
http://www.jcorporate.com/econtent/Content.do?state=template&template=2&resource=636&db=default

At 06:58 pm 25-10-2001 +0800, you wrote:
Hi,
I'm new to Struts and happen to come across Expresso too. I wonder
what're
the differences between the 2 framework? What're the strength and
weakness
of each framework?
Thank you.
Best Regards,
Ho Chin Hwang

-- 
John
Yu  
Scioworks Technologies 
e: [EMAIL PROTECTED] w:
+(65) 873 5989
w:
http://www.scioworks.com 
 m: +(65) 9782 9610 
Scioworks Camino - "Rapid WebApp Assembly for
Struts"


Re: ActionErrors.add

2001-10-26 Thread John Yu

If I remember correctly, the errors are concatenated, not
overwritten.

At 05:22 pm 25-10-2001 +0200, you wrote:
What's happen if...

ActionErrors errors = new ...
(...)
errors.add("login",new
ActionError("error.login1"));
(...)
errors.add("login",new
ActionError("error.login2"));
Is the first errors is overloaded by the second error
?


-- 
John
Yu  
Scioworks Technologies 
e: [EMAIL PROTECTED] w:
+(65) 873 5989
w:
http://www.scioworks.com 
 m: +(65) 9782 9610 
Scioworks Camino - "Rapid WebApp Assembly for
Struts"


how to "read" SQL String from a Xml.

2001-10-26 Thread ZhengRui



Hi all:I use JSP with TagLib and I do not know where is a 
Taglib can  "read" SQL String from a Xml  file.thanks 
zhengrui


Design consideration: Client side validation

2001-10-26 Thread Hitesh Parashar

Hi:

Struts puts emaphasis on server-side validations.
However, lotsa times it makes sense to do some
validations before we hit the server. 

How the client side validations should be done while
keeping the sanctity of the design principles for
struts? Is it a good practice to use use JavaScript to
do this? What are the possible ways to do this?

TIA,

Hitesh.

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Re: Real time web page?

2001-10-26 Thread Paul Dillon

You can effectively push with a multipart response.  The server can send
each part whenever it wants - in response to a real-time event for example.

Some guy put together a library for doing real-time updates by pushing
chunks of javascript in the body of a long-lived response.  By putting it
into a hidden frame you could keep your main page stationary while updating
the form input elements in real-time.  Sorry I don't remember the URL.

The most robust solution would be an applet.  Is the reason you don't want
to use an applet due to presentation issues?  You can have a more or less
invisible applet that handles the communication, and use DHTML for the
presentation.

Cheers,

Paul

> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 25, 2001 2:16 AM
> Subject: Real time web page?
>
>
> >
> >
> > Hi everyone.  We are starting a new project and have a requirement for
> real-time
> > updates in a web browser.  Does anyone know of any tools that allow for
> this,
> > apart from applets?
> >
> > Cheers,
> >
> > Dave
> >
> >
> >
> >
>
>