Re: how to solve a problem of fetchin' HUGE collection into form

2002-06-20 Thread Elizabeth Barham

A method that I used for a user to find out his or her employee id was
by having a 'search for employee id' link on a page next to a text
field where the user is to enter his or her employee id since most
employees don't know it.

This caused a new window to display, allowing the user to enter in his
or her name. They enter their name, hit submit, and in the same new
window, the results were displayed. When the user selects one of
these, the javascript populates the main browser window (the one that
launched the search page) and the new window closes itself.

"Slava_L" <[EMAIL PROTECTED]> writes:

> that's quite nice way.. but then i will need to truncate search
> results if they are "too big" to be send on client, wont i ?

In the above app, if the search resulted in only one record, then that
record was used to populate the main browser window, otherwise it
displayed all the results (which probably wasn't very wise in
retrospect).

Perhaps if the results are, say, over 25 records, then you could ask
them to be more specific or perhaps make pages for them to select from
- such as when you use a search engine on the web and receive a great
deal of results - 25 each page or whatnot (and perhaps with a text
field to re-do their search since at that point they'd realize that
their search wasn't specific enough).

An extension to the above method is by using javascript to initiate
the first query on the pop-up window, too. If there is only one result
then javascript populates the calling window (such as when a user is
pretty sure that the street name is correct but wants the system to do
a quick check; perhaps feedback could be provided in the status bar).

hth, Elizabeth

> - Original Message -
> From: "Dan Cancro" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, June 21, 2002 10:01 AM
> Subject: RE: how to solve a problem of fetchin' HUGE collection into form
> 
> 
> > It sounds like you need to replace your drop down box with a link to a
> > search screen.  On the search screen, the user types in a few letters and
> > the system displays just the streets that start with those letters.  Then
> > the user picks one and goes back to the form.
> >
> >
> > > -Original Message-
> > > From: Slava_L [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 20, 2002 5:49 PM
> > > To: Struts Users Mailing List
> > > Subject: how to solve a problem of fetchin' HUGE collection into form
> > >
> > >
> > > I have  a form with several fields.
> > > And one of them is SELECT field - 4xmpl streets names.
> > > All streets names are stored in database, amount 100-300
> > > thousands records
> > > And the problem is that when this field renders on the page,
> > > app is freezing for a long time.
> > > how am i suppose to solve kinda problem ?
> > >
> > >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Re: problem

2002-06-20 Thread Phil Steitz

Look at your servlet engine log (servlet.log if you are using Tomcat with
the default setup).  Most likely the ActionServlet associated with your web
app is not loading because the data source initialization is failing.  The
mappings aren't there because the initialization failed.  The error message
will (hopefully) tell you why.  Make sure that you have the Oracle JDBC
driver jar in your application's WEB-INF/lib.

slickdev wrote:


I have a problem with the data-source properties in struts-config.xml
This is for the sample email portal application.

I configured the properties to use my localhost oracle installation, which
does work with jdbc from command-line java apps as well as with sql*plus.

Here is the suspect layout:

 

  
  
  
  
  
  
  
  

  

PROBLEM
When clicking the initial logon link to invoke logon.jsp, an exception
occurs:

javax.servlet.ServletException: Cannot find ActionMappings orActionFormBeans
collection
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:460)
at logon_1._jspService(logon_1.java:691)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
---
---
---

The exception does not occur if the stuff between  ---
 is commented out.



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




struts-menu do not work properly in Opera browser

2002-06-20 Thread Slava_L

wussup with it ? 
and also i've tried out this "struts-menu.war" in Netscape - it duz not reflect my 
locale as it is in IE




AW: Using the value of a request-parameter for the attribute of a custom tag

2002-06-20 Thread Sann, Stephan

Re-hi,

> I see you're fighting with the same problem as I am... Did you manage to
> solve it yet, or found any work-arounds?

Sorry - this solution method doesn't seem to work in any way.

It seems that you have to use scriptlets again. Like in point 1.1 of the
Struts User's Guide: Forward into the Past!

Best regards
Stephan

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




Re: Struts and Voice XML

2002-06-20 Thread stefan werner

Hi,

I know an AddisonWesley book called 'Pervasive Computing'. I know, it is
available in german language.
It is not struts-, but MVC- specific, with a lot of Informations for using
VoiceXML. Maybe you will find this useful.

regards
Stefan

http://www.p8serv.de/werkstatt


- Original Message -
From: "VEDRE, RANAPRATAP REDDY" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 1:03 AM
Subject: Struts and Voice XML


>
> Please share your experiences if any of  used Struts to generate Voice
XML.
>
>
> Is struts with Transformations stxx a better option?
>
> Thanks,
>  Rana
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: how to solve a problem of fetchin' HUGE collection into form

2002-06-20 Thread Slava_L

that's quite nice way.. but then i will need to truncate search results if
they are "too big" to be send on client, wont i ?


- Original Message -
From: "Dan Cancro" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 10:01 AM
Subject: RE: how to solve a problem of fetchin' HUGE collection into form


> It sounds like you need to replace your drop down box with a link to a
> search screen.  On the search screen, the user types in a few letters and
> the system displays just the streets that start with those letters.  Then
> the user picks one and goes back to the form.
>
>
> > -Original Message-
> > From: Slava_L [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 20, 2002 5:49 PM
> > To: Struts Users Mailing List
> > Subject: how to solve a problem of fetchin' HUGE collection into form
> >
> >
> > I have  a form with several fields.
> > And one of them is SELECT field - 4xmpl streets names.
> > All streets names are stored in database, amount 100-300
> > thousands records
> > And the problem is that when this field renders on the page,
> > app is freezing for a long time.
> > how am i suppose to solve kinda problem ?
> >
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: how to solve a problem of fetchin' HUGE collection into form

2002-06-20 Thread Slava_L

how to glue it with database table ?
should i always check if entered street are exist in table?



- Original Message -
From: "Arron Bates" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 10:08 AM
Subject: Re: how to solve a problem of fetchin' HUGE collection into form


> Dare I say it... better info design. The most I've had was 500. From the
> user's point of view, this is not good.
>
> The freezing will most likely not be the server side, but your browser
> slowly rolling over and having a cardiac arrest.  :)
>
> Take the lower end of 100,000 options. If eack option had only one
> letter, one byte, the dowload is already 1MB. Take that to an average of
> say 15 bytes per record up to 300,000 and the result is one impressive
> drop-down box.
>
> Try getting the text that would be rendered into Html, get it into flat
> Html, and then test it on the browser. I'm quite sure that you'll be
> changing your mind and making it a free-text field real quick.
>
>
> Arron.
>
>
> On Fri, 2002-06-21 at 10:48, Slava_L wrote:
> > I have  a form with several fields.
> > And one of them is SELECT field - 4xmpl streets names.
> > All streets names are stored in database, amount 100-300 thousands
records
> > And the problem is that when this field renders on the page, app is
freezing for a long time.
> > how am i suppose to solve kinda problem ?
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




If you haven't seen this yet.

2002-06-20 Thread James Mitchell

Mark, I thought you'd like this one :-)

http://www.theserverside.com/home/thread.jsp?thread_id=14080



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

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




RE: problem

2002-06-20 Thread Chakradhar Tallam

have u got this declaration just before the 

  

...

  

declaration!

-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 June 2002 12:12 PM
To: Struts Users Mailing List
Subject:  problem


I have a problem with the data-source properties in struts-config.xml
This is for the sample email portal application.

I configured the properties to use my localhost oracle installation, which
does work with jdbc from command-line java apps as well as with sql*plus.

Here is the suspect layout:

 

  
  
  
  
  
  
  
  

  

PROBLEM
When clicking the initial logon link to invoke logon.jsp, an exception
occurs:

javax.servlet.ServletException: Cannot find ActionMappings orActionFormBeans
collection
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:460)
at logon_1._jspService(logon_1.java:691)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
---
---
---

The exception does not occur if the stuff between  ---
 is commented out.




RE: how to solve a problem of fetchin' HUGE collection into form

2002-06-20 Thread Andrew Hill

You want to put 300k records in a select box!?
You havent really thought very hard about this have you?
I wouldnt worry about the app freezing for a long time. Its nothing compared
to the several days it will take your poor users to scroll through the
select box trying to select the street

rofl

Your best bet is to replace the select box with a popup window that has
somewhat more advanced methods for the user to find and select the street
name and then write the value back to the form field using javascript.

-Original Message-
From: Slava_L [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 08:49
To: Struts Users Mailing List
Subject: how to solve a problem of fetchin' HUGE collection into form


I have  a form with several fields.
And one of them is SELECT field - 4xmpl streets names.
All streets names are stored in database, amount 100-300 thousands records
And the problem is that when this field renders on the page, app is freezing
for a long time.
how am i suppose to solve kinda problem ?



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




problem

2002-06-20 Thread slickdev

I have a problem with the data-source properties in struts-config.xml
This is for the sample email portal application.

I configured the properties to use my localhost oracle installation, which does work 
with jdbc from command-line java apps as well as with sql*plus.

Here is the suspect layout:

 

  
  
  
  
  
  
  
  

  

PROBLEM
When clicking the initial logon link to invoke logon.jsp, an exception occurs:

javax.servlet.ServletException: Cannot find ActionMappings orActionFormBeans collection
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at logon_1._jspService(logon_1.java:691)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
---
---
---

The exception does not occur if the stuff between  ---  is 
commented out.




Re: Newbie pls help: Anyone using JBoss 3 w/ Struts 1.1?

2002-06-20 Thread Tadashi Ishikawa

Hi Brian,

I've tried the URL http://localhost:8080/bad/saveRegistration.do
I saw input form normaly. Your ActionForm was created, wasn't it?
When I clicked 'Save', I saw blank-page, but no exception.

As I suggested at last post, JBoss already found *Your* ActionForm 
before WebClassLoader find it.
Remove Struts-related classes from your-ejb.jar file, then it will work.

Hope this helps.

Brian Topping wrote:

>Hi James & Ishikawa-san,
>
>Oh boy, my bad.  It was late when I posted, I should have stated that the
>problem URL is http://localhost:8080/bill2site-web/editRegistration.do.  Big
>difference there!!  Ack.
>
>Could I have you try again with that URL?
>
>Thanks so much!!
>
>Brian
>
>>-Original Message-
>>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, June 20, 2002 1:18 AM
>>To: Struts Users Mailing List
>>Subject: RE: Newbie pls help: Anyone using JBoss 3 w/ Struts 1.1?
>>
>>
>>Hi Brian,
>>
>>I posted on the jboss list about 20 minutes ago..just 
>>ignore that
>>
>>I've got JBoss 3.0 Final w/ Tomcat 4.0.3 and I get this when 
>>submitting from
>>the first page.
>>
>>
>>
>>Apache Tomcat/4.0.3 - HTTP Status 404 - /s/j_security_check
>>--
>>--
>>
>>type Status report
>>message /s/j_security_check
>>description The requested resource (/s/j_security_check) is 
>>not available.
>>
>>your index.html is submitting the login to the above url.
>>I can't seem to find that anwhere in your config files.
>>
>>
>>James Mitchell
>>Software Engineer\Struts Evangelist
>>Struts-Atlanta, the "Open Minded Developer Network"
>>http://struts-atlanta.open-tools.org
>>
>>>-Original Message-
>>>From: Brian Topping [mailto:[EMAIL PROTECTED]]
>>>Sent: Thursday, June 20, 2002 12:47 AM
>>>To: [EMAIL PROTECTED]
>>>Subject: Newbie pls help: Anyone using JBoss 3 w/ Struts 1.1?
>>>
>>>
>>>Hi All,
>>>
>>>I'm trying to get my first Struts app going.  I'm using 
>>>
>>JBoss3 with Tomcat
>>
>>>for the web container, and am having quite a bit of problems with
>>>getting my
>>>classes loaded.  It's what seems to be a common problem:
>>>"java.lang.NoClassDefFoundError:
>>>org/apache/struts/action/ActionForm".  There
>>>are a lot of solutions in the archives relating to moving 
>>>
>>jars underneath
>>
>>>WEB-INF, manifests, etc.  All I can say is that the struts.jar in
>>>this war is
>>>the only struts.jar on any classpath that I'm running under.  So
>>>if it's in
>>>the wrong location in this war (WEB-INF/lib), that may be 
>>>
>>my problem.
>>
>>>Anyone else using JBoss3+Tomcat4.0.3 release?
>>>
>>>I've got a war file at http://www.orb.org/bad.war that exhibits
>>>the problem.
>>>It works fine under Tomcat 4.0.4b3 standalone, it's simply a
>>>problem when the
>>>war is loaded under JBoss 3.  When it does the right thing, 
>>>
>>you'll get an
>>
>>>exception about not being able to locate an EJB in JNDI...
>>>
>>>I can post more information about the problem, but it seems the
>>>more I post,
>>>the harder the post is to read, so I'll start with this :)
>>>
>>>Any help appreciated, i'm so close to getting all this running!!
>>>
>>>thanks a bunch,
>>>
>>>Brian
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>
>>For additional commands, e-mail:
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>
>
>For additional commands, e-mail: 
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>
>




Problem with checkbox

2002-06-20 Thread Sudhir

Hi,

In my form I have got a list of organizations and I need to update only checked 
(selected by the user) organizations to database.
In my bean I wrote getter and setter methods to the list of organizations.

My problem here is while getting the list of selected organizations (while editing) I 
need to make the selected organizations
checked.  while populating I am populating the list of selected organizations to the 
form. If I try to put an attribute called
checked to checkbox tag it is giving error(Attribute checked has no value). And if it 
put some value like checked="true" it is
giving the error(Unable to find setter method for attribute: checked). Even though 
they are not getting selecting.(while editing the
form)  So how can I make the selected organizations checked.

Can anybody help me in fixing the problem.

Thanks and Best Regards,


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




Re: how to solve a problem of fetchin' HUGE collection into form

2002-06-20 Thread Arron Bates

Dare I say it... better info design. The most I've had was 500. From the
user's point of view, this is not good.

The freezing will most likely not be the server side, but your browser
slowly rolling over and having a cardiac arrest.  :)

Take the lower end of 100,000 options. If eack option had only one
letter, one byte, the dowload is already 1MB. Take that to an average of
say 15 bytes per record up to 300,000 and the result is one impressive
drop-down box.

Try getting the text that would be rendered into Html, get it into flat
Html, and then test it on the browser. I'm quite sure that you'll be
changing your mind and making it a free-text field real quick.


Arron.


On Fri, 2002-06-21 at 10:48, Slava_L wrote:
> I have  a form with several fields.
> And one of them is SELECT field - 4xmpl streets names.
> All streets names are stored in database, amount 100-300 thousands records
> And the problem is that when this field renders on the page, app is freezing for a 
>long time.
> how am i suppose to solve kinda problem ? 
> 



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




RE: how to solve a problem of fetchin' HUGE collection into form

2002-06-20 Thread Dan Cancro

It sounds like you need to replace your drop down box with a link to a
search screen.  On the search screen, the user types in a few letters and
the system displays just the streets that start with those letters.  Then
the user picks one and goes back to the form.


> -Original Message-
> From: Slava_L [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 5:49 PM
> To: Struts Users Mailing List
> Subject: how to solve a problem of fetchin' HUGE collection into form
> 
> 
> I have  a form with several fields.
> And one of them is SELECT field - 4xmpl streets names.
> All streets names are stored in database, amount 100-300 
> thousands records
> And the problem is that when this field renders on the page, 
> app is freezing for a long time.
> how am i suppose to solve kinda problem ? 
> 
> 

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




how to solve a problem of fetchin' HUGE collection into form

2002-06-20 Thread Slava_L

I have  a form with several fields.
And one of them is SELECT field - 4xmpl streets names.
All streets names are stored in database, amount 100-300 thousands records
And the problem is that when this field renders on the page, app is freezing for a 
long time.
how am i suppose to solve kinda problem ? 




Re: id?

2002-06-20 Thread Arron Bates

Seems that you're trying to write out a property instead of the bean.
Try this...









...should get you back on the road.


Arron.



On Fri, 2002-06-21 at 04:59, Kamholz, Keith (corp-staff) USX wrote:
> When you use the  tag, do you have to define the id that
> stores the result of the iteration before the tag?
> My code is:
> 
>   
>  type="com.moog.us.eos.beans.MCentry">
>   
>   
>   
>   
>   
>   
> 
>   
>   
> NO ENTRIES
>   
> 
> If I don't define the id before the iterate tag, I get a runtime error that
> says:
> Cannot find bean mc.oldDept in scope null:
> However, if I do define the id, then I get a compile time error that
> complains about a duplicate variable.
> Maybe the "cannot find bean" error is referring to the "oldDept" part rather
> than the "mc", but I dont' know.
> What's going on?
> 
> 
> ~ Keith
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



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




Re: easystruts + netbeans/forte?

2002-06-20 Thread Slava_L

How many of u, list, use these IDEs (nb/forte) ?
i use Forte and it will be grate if some sort of easystruts soft will appear


- Original Message -
From: "Vincent Stoessel" <[EMAIL PROTECTED]>
To: "Struts Users" <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 12:26 AM
Subject: easystruts + netbeans/forte?


> Hello,
> I have a few questions.
> I was wondering if anyone know if easystruts can be configured
> to work with nb/forte as well as eclipse and jbuilder?
>
> Also how does easy struts work if you are already using
> struts-console? Do they conflict?
> Thanks
>
>
> --
> Vincent Stoessel
> Linux Systems Developer
> vincent xaymaca.com
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




RE: Weblogic 5.1 + commons.logging - HERE'S THE ANSWER!

2002-06-20 Thread Ren Bitonio

Dean,

I believe you are talking about Struts version 1.1Beta1.  If so, then that
version of commons-logging.jar has a classloader problem issue, that does
not work smoothly with Weblogic 5.1.  I had this problem earlier with WLS61
SP2 and later resolved it.

You need to swap out your commons-logging.jar.  I believe the 5/9 nightly
build was the first edition to resolve this problem, as I checked its source
code to see if LogFactory class was fixed, regarding which classloader to
use and load the factory implementation.  It worked!  The latest ones should
work as well.

By the way, other than getting a newer jar file, there is another
workaround, which is placing the original jar file in the Weblogic's
globalclasspath, yet this is not the preferred route.  

Give it a try, and let me know how it works out.

Good luck,
Ren

-Original Message-
From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 20, 2002 12:08 PM
To: 'Struts Users Mailing List'
Subject: Weblogic 5.1 + commons.logging


Hi,

I'm migrating my Tomcat application to WebLogic 5.1, in doing so I am
getting this error:

Thu Jun 20 15:05:07 EDT 2002:  Error
instantiating servlet: com.gs.eq.ed.atlas.web.commons.SetsActionServlet
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)

I placed the commons-logging.jar into the WEB-INF/lib directory, however, it
still complains. Has anyone seen these types of error before? Is this a
weblogic problem or a commons-logging problem?

Thanks,

Dean Chen

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: blank page

2002-06-20 Thread Billy Ng

My wrong.  I have a typo in the method name.  Sorry

Billy Ng

- Original Message -
From: "Billy Ng" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 20, 2002 4:36 PM
Subject: blank page


I did the , but I got a blank page after I hit the submit
button.  I have a feeling the Action object is not being hit.  What did I do
worng?

Billy Ng


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




RE: blank page

2002-06-20 Thread VEDRE, RANAPRATAP REDDY

please post your action mapping in config file and the form tag used in view
component.

a. make sure u have the action attribute of form tag and path attribute of
action tag in action mappings are exaclty the same.

b. if u are forwarding non existing mapping in ur Action class.

-Original Message-
From: Billy Ng [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 7:36 PM
To: Struts Users Mailing List
Subject: blank page


I did the , but I got a blank page after I hit the submit
button.  I have a feeling the Action object is not being hit.  What did I do
worng?

Billy Ng

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




blank page

2002-06-20 Thread Billy Ng

I did the , but I got a blank page after I hit the submit button.  I 
have a feeling the Action object is not being hit.  What did I do worng?

Billy Ng



NotSerializableException in WLS6.1 and Struts1.1

2002-06-20 Thread Fickes, Vic (PRB)

Hi,
I just recently upgraded to WebLogic6.1sp2 and Struts1.1 (build of 6/18).  I
thought I had done everything correctly to upgrade my web app to Struts 1.1,
but I was getting various NotSerializableExceptions.  So then I just tried
running some of the example web apps and I got the same problems, which
leads me to believe I didn't configure something right in WebLogic.  From
reading the mailing lists, there seems to be some sort of systemic problem
with getting NotSerializableExceptions under WebLogic, but I couldn't relate
any of the info IO saw to my specific problem.  Do the stack traces below
that I got running the struts-validator example mean anything to anybody?  
Thanks in advance,
Vic


  
<[WebAppServletContext(4602203,stru
ts-validator,/struts-validator)] Could not deserialize context attribute
java.io.NotSerializableException: org.apache.commons.logging.impl.SimpleLog
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)

at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1827)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:480)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)

at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper
.java:92)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper
.java:64)
at
weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppSer
vletContext.java:306)
at
weblogic.servlet.jsp.PageContextImpl.getAttribute(PageContextImpl.jav
a:176)
at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:788)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:2
95)
at jsp_servlet.__registration._jspService(__registration.java:131)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:304)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
  
<[WebAppServletContext(4602203,stru
ts-validator,/struts-validator)] Root cause of ServletException
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apac
he.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:2
95)
at jsp_servlet.__registration._jspService(__registration.java:131)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:304)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
  
<[WebAppServletContext(4602203,stru
ts-validator,/struts-validator)] Could not deserialize context attribute
java.io.NotSerializableException: org.apache.commons.logging.impl.SimpleLog
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)

at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1827)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:480)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)

at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper
.java:92)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper
.java:64)
at
weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppSer
vletContext.java:306)
at
weblogic.servlet.jsp.PageContextImpl.getAttribute(PageContextImpl.jav
a:176)
at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:788)
at
org.apache.struts.tagl

Struts and Voice XML

2002-06-20 Thread VEDRE, RANAPRATAP REDDY


Please share your experiences if any of  used Struts to generate Voice XML.


Is struts with Transformations stxx a better option?

Thanks,
 Rana

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




Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app's persistence layer

2002-06-20 Thread Steve Muench

Here's an article illustrating how to use the Oracle BC4J framework
to quickly implement your collections of value objects for MVC-based
apps without hand-coding.

http://otn.oracle.com/products/jdev/howtos/bc4j/bc4j-collections.html

I'm working next on a writeup specific to building BC4J+Struts
applications.

Have fun.

__
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Simplify J2EE and EJB Development with BC4J
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp
- Original Message - 
From: "Gibson Brad - IL" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 20, 2002 10:28 PM
Subject: RE: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app's 
persistence layer


| Have you tried BC4J in JDeveloper 9i?
| 
| IT seems to work very well for connection pooling, Object 
| Relational Mapping and Caching.
| 
| 
| Brad
| 
| -Original Message-
| From: John Nicholas [mailto:[EMAIL PROTECTED]] 
| Sent: Thursday, June 20, 2002 1:49 PM
| To: Struts Users Mailing List
| Subject: Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts
| app's persistence layer
| 
| Jerome Jacobsen wrote:
| > New Jakarta project ObjectRelationalBridge (OJB) provides for transparent
| > object persistence.  Current APIs include ODMG 3.0 and a lower level
| > PersistenceBroker API.  Currently developing a JDO API.
| > 
| > Check it out:
| > 
| > http://jakarta.apache.org/ojb/
| 
| I'm glad to see this become part of jakarta. It seems that of the three 
|   things most needed by struts users(connection pooling, Object 
| Relational Mapping and Caching) there are jakarta projects for all. I 
| would like to see these formally brought into Struts. Of course they 
| should be replaceable, but I find it odd that there's things in the docs 
| like this: "Struts generic connection pool is an optional component. 
| Many Struts applications use other connection pools for better 
| performance, especially with high-volume production systems."
| 
| It seems that with Fulcrum and OJB we should be able to have it all in 
| one simple download and tutorial.I know a lot of this is in Expresso but 
| I'd like to have it all under one license and tutorial. I haven't tried 
| Expresso but it looks like it replaces several Struts pieces rather than 
| just addding functionality.
| 
| John Nicholas
| 
| 
| 
| --
| To unsubscribe, e-mail:
| 
| For additional commands, e-mail:
| 
| 
| --
| To unsubscribe, e-mail:   
| For additional commands, e-mail: 
| 
| 


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




RE: Weblogic 5.1 + commons.logging

2002-06-20 Thread Chen, Dean (Zhun)

I'm using sp8 I believe. But it's on Unix.  The jar files are in
/WEB-INF/lib directory.  I don't understand where WebLogic
looks for Jar files. Does it look in the WEB-INF/lib directory, what about
the appclasses directory?

Thanks,

Dean Chen



-Original Message-
From: Daniel Jaffa [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 4:48 PM
To: Struts Users Mailing List
Subject: Re: Weblogic 5.1 + commons.logging


What sp are you using and, where in startweblogic.cmd  are u putting the jar
in the classpath (The weblogic or java)
- Original Message -
From: "Chen, Dean (Zhun)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 20, 2002 3:07 PM
Subject: Weblogic 5.1 + commons.logging


> Hi,
>
> I'm migrating my Tomcat application to WebLogic 5.1, in doing so I am
> getting this error:
>
> Thu Jun 20 15:05:07 EDT 2002:  Error
> instantiating servlet: com.gs.eq.ed.atlas.web.commons.SetsActionServlet
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.LogFactoryImpl
> at
> org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
> at
> org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
> at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> at
> org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
>
> I placed the commons-logging.jar into the WEB-INF/lib directory, however,
it
> still complains. Has anyone seen these types of error before? Is this a
> weblogic problem or a commons-logging problem?
>
> Thanks,
>
> Dean Chen
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: 1.1b1 xml

2002-06-20 Thread Dennis Muhlestein

I got the 1.1b1 files.
I'm sure I'm using the correct ones because DynaActionForm works.

This could be another quirk with my system.  I've certainly had a few
during the upgrade process.  Maybe someone else can verify this.

To see the errors, I turned the debug level in my tomcat/conf/server.xml
of the ROOT context to 3 (or higher).


On Thu, 2002-06-20 at 15:50, James Holmes wrote:
> Which version of Struts are you using?  Only Struts
> 1.1b1 and the nightly builds will accept the 1.1
> config files.
> 
> You have to use a 1.0 config file for any other
> versions.
> 
> -james
> [EMAIL PROTECTED]
> http://www.jamesholmes.com/struts/
> 
> 
> --- Dennis Muhlestein <[EMAIL PROTECTED]> wrote:
> > I turned debugging up in tomcat just for the heck of
> > it.  (ROOT Context
> > debug="3")  Tomcat printed a whole bunch of xml
> > errors when I reload my
> > app.  The app worked correctly anyway (Go figure)
> > 
> > My xml validator validates my 1.1 xml ok.  If if
> > change the dtd to point
> > to the 1.0 version instead and try to validate the
> > xml, I get the same
> > errors that tomcat printed.
> > 
> > Basically, I think that no matter what dtd you
> > specify, Struts is using
> > the 1.0 dtd.
> > 
> > I had this in my struts-config.xml:
> > 
> >  >   "-//Apache Software Foundation//DTD
> > Struts Configuration
> > 1.1//EN"
> >
> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> > 
> > 
> > Maybe someone is interested.
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




RE: Why Tiles?

2002-06-20 Thread Trieu, Danny

Thanks Ted,

danny

> -Original Message-
> From: Ted Husted [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 12:44 PM
> To:   Struts Users Mailing List
> Subject:  Re: Why Tiles?
> 
> The next closest thing might be SiteMesh,
> http://uk.opensymphony.com/sitemesh/
> 
> Or, you could compare it against the Template taglib, but that may be
> too similar to draw any real constrst. 
> 
> The real comparison, I think, might be between using Tiles and not using
> Tiles. 
> 
> -T.
> 
> "Trieu, Danny" wrote:
> > 
> > If I was the one who will make the decision then Tiles would be the
> choice
> > already.  I been using tiles for quite some time already.  I want these
> > people to pickup Tiles, but I need good arguments and comparision in
> other
> > to convince them.  I need a few framework to compare against Tiles to
> begin
> > with.
> > 
> > > -Original Message-
> > > From: Juan Alvarado (Struts List) [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 20, 2002 8:25 AM
> > > To:   Struts Users Mailing List
> > > Subject:  RE: Why Tiles?
> > >
> > > so why can't you just use tiles???
> > >
> > > **
> > > Juan Alvarado
> > > Internet Developer -- Manduca Management
> > > (786)552-0504
> > > [EMAIL PROTECTED]
> > > AOL Instant Messenger: [EMAIL PROTECTED]
> > >
> > > -Original Message-
> > > From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 20, 2002 11:23 AM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: Why Tiles?
> > >
> > >
> > > Does any body know what other framework available out there that does
> what
> > > Tiles does?  My boss wanna find a framework that help you do the
> > > ViewComposition part, and works well with Struts.  And the only one
> that I
> > > came up with is 'Tiles'.
> > >
> > > danny
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




Re: 1.1b1 xml

2002-06-20 Thread James Holmes

Which version of Struts are you using?  Only Struts
1.1b1 and the nightly builds will accept the 1.1
config files.

You have to use a 1.0 config file for any other
versions.

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


--- Dennis Muhlestein <[EMAIL PROTECTED]> wrote:
> I turned debugging up in tomcat just for the heck of
> it.  (ROOT Context
> debug="3")  Tomcat printed a whole bunch of xml
> errors when I reload my
> app.  The app worked correctly anyway (Go figure)
> 
> My xml validator validates my 1.1 xml ok.  If if
> change the dtd to point
> to the 1.0 version instead and try to validate the
> xml, I get the same
> errors that tomcat printed.
> 
> Basically, I think that no matter what dtd you
> specify, Struts is using
> the 1.0 dtd.
> 
> I had this in my struts-config.xml:
> 
>"-//Apache Software Foundation//DTD
> Struts Configuration
> 1.1//EN"
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> 
> 
> Maybe someone is interested.
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Weblogic 5.1 + commons.logging

2002-06-20 Thread Daniel Jaffa

What sp are you using and, where in startweblogic.cmd  are u putting the jar
in the classpath (The weblogic or java)
- Original Message -
From: "Chen, Dean (Zhun)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 20, 2002 3:07 PM
Subject: Weblogic 5.1 + commons.logging


> Hi,
>
> I'm migrating my Tomcat application to WebLogic 5.1, in doing so I am
> getting this error:
>
> Thu Jun 20 15:05:07 EDT 2002:  Error
> instantiating servlet: com.gs.eq.ed.atlas.web.commons.SetsActionServlet
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.LogFactoryImpl
> at
> org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
> at
> org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
> at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> at
> org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
>
> I placed the commons-logging.jar into the WEB-INF/lib directory, however,
it
> still complains. Has anyone seen these types of error before? Is this a
> weblogic problem or a commons-logging problem?
>
> Thanks,
>
> Dean Chen
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




1.1b1 xml

2002-06-20 Thread Dennis Muhlestein

I turned debugging up in tomcat just for the heck of it.  (ROOT Context
debug="3")  Tomcat printed a whole bunch of xml errors when I reload my
app.  The app worked correctly anyway (Go figure)

My xml validator validates my 1.1 xml ok.  If if change the dtd to point
to the 1.0 version instead and try to validate the xml, I get the same
errors that tomcat printed.

Basically, I think that no matter what dtd you specify, Struts is using
the 1.0 dtd.

I had this in my struts-config.xml:

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>


Maybe someone is interested.




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




RE: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app'spersistence layer

2002-06-20 Thread Schneider, Eric

Just one more to throw out there.  Solid design.  Has a good modeling tool
to create or reverse engineer a relational database.  Plus it generates java
source.

http://objectstyle.org/cayenne/ 

I just started using it a week or so ago.  Extremely happy so far.  Requires
the J2SE 1.4 tho...that may be a problem for some.

Eric

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 4:31 PM
> To: Struts Users Mailing List
> Subject: Re: Use Jakarta's ObjectRelationalBridge (OJB) for 
> your Struts
> app'spersistence layer
> 
> 
> 
> 
> 
> > Down the road, I think the Stuts DataSources feature may 
> become a way to
> > manage and swap between different datasource connection 
> pools, rather
> > than to just load an internal implementation. This can be a useful
> > feature for a controller. You might want to run unit tests against
> > different pools, side by side, or switch to another pool for
> > troubleshooting, which seem like useful controller features to me.
> 
> Any thought to using JMX for this type of managment? The 
> functions you've
> described seem to fit what JMX provides reasonably well.
> 
> Craig is listed as Author for the whole Modeler pacakge in 
> the Commons area for facilitating JMX implementations:
> 
 http://jakarta.apache.org/commons/modeler/docs/api/index.html


Some other background for anyone not familiar with JMX.

 The JMX home page

 http://java.sun.com/products/JavaManagement/

 An article by Marc Fluery (leader of the JBoss project) on JMS
published on O'Reilly's OnJava site

 http://www.onjava.com/pub/a/onjava/2001/02/01/jmx.html

 MX4J - an open source JMX implementation distributed under an
Apache-style license

 http://mx4j.sourceforge.net/

 JSR-003  - The JSR covering JMX -currently in Final Release

 http://jcp.org/aboutJava/communityprocess/final/jsr003/index2.html





--
To unsubscribe, e-mail:

For additional commands, e-mail:



**
This message, including any attachments, contains confidential information intended 
for a specific individual and purpose, and is protected by law.  If you are not the 
intended recipient, please contact sender immediately by reply e-mail and destroy all 
copies.  You are hereby notified that any disclosure, copying, or distribution of this 
message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**

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




RE: Validator problem (or user problem... not sure which yet)

2002-06-20 Thread David Winterfeldt

The change from using multiple set-property elements
was made right after beta since it wasn't very clear
to call setPathname muliple times.  The Validator is
run through the ActionForm's validate method and
returns a standard ActionErrors object.  The
additional tags that used to come with the Validator
were for features now incorporated into Struts.

html:messages - Iterate through messages/errors.

logic:messagesPresent - check for the presence of a
message/error (can pass in an optional property to
check if there is a message/error for an individual
field)

logic:messagesNotPresent - check for the absence of a
message/error

David


--- [EMAIL PROTECTED] wrote:
> 
> the problem I was having was caused by the
> struts-config.xml file 
> defining the plug in like:
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
> 
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator.xml"/>
> 
> 
> I took a look at the struts blank war and copied
> that syntax over which 
> is like this:
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
>  value="/WEB-INF/validator-rules.xml"/>
>  value="/WEB-INF/validator.xml"/>
> 
> 
> And it started recognizing my rules.  Now I cannot
> get it to show error 
> messages, although it does successfully redirect
> back until the 
> validation requirements are met.  Does validator
> feed the error messages 
> into the normal html:errors?  I noticed it had a
> validator taglib at one 
> point, but I am not sure where it is now that 1.1b
> incorporated alot
> 
> 
> 
> -Original Message-
> From: Chmura, William B. 
> Sent: Thursday, June 20, 2002 9:46 AM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Where I have this in my validator.xml file...
> 
> ?1 This means it should give me an error if it is
> not filled in?
> ?2 Should I have to invoke something from the action
> to check it, or is 
> it just like an actionform?
> ?3 What else can I try?  Its like its all working,
> just ignoring my 
> validate.xml file or something
> 
>depends="required">
> key="registrationForm.firstname.displayname"/>
>  
> 
> -Original Message-
> From: Chmura, William B. 
> Sent: Wednesday, June 19, 2002 4:54 PM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Nope...  Code runs, but it detects no errors...
> 
> AAARRGHHH
> 
> -Original Message-
> From: Raffy.Lata [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 19, 2002 4:29 PM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Lot's of stuff in your action class, but I see that
> you defined a
> DynaValidatorForm in your  but you are
> casting it as a
> DynaActionForm in your action class...if you cast it
> correctly as a
> DynaValidatorForm and then invoke the validate()
> method (like in my
> previous email), it might correct the problem...try
> it...
> 
> 
> 
> 
> 
> [EMAIL PROTECTED] on 06/19/2002
> 01:24:28 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Here is everything:
> 
> Thanks in advance for any solutions!
> 
> 
> Struts-config.xml
> 
> 
>  Foundation//DTD
> Struts Configuration 1.1//EN"
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> 
>  property="autoCommit" value="false" /> property="description" value="MySql" /> property="driverClass"
> value="org.gjt.mm.mysql.Driver" /> property="maxCount" value="4" /> property="minCount"
> value="2" /> value="vuud"
> /> /> property="url"
> value="jdbc:mysql://localhost/plantsecurity"
> />
> 
>  type="org.apache.struts.validator.DynaValidatorForm"
> dynamic="true">
>  type="java.lang.String"
> initial="" />
>  type="java.lang.String"
> initial="" />
>  type="java.lang.String" initial="" />
>  type="java.lang.String"
> initial="" />
>  type="java.lang.String"
> initial="" />
>  type="java.lang.String" initial="" />
>  type="java.lang.String" initial="" />
>  initial="Simsbury"
> />
>  type="java.lang.String" initial="" />
>  initial="" />
> 
> 
> 
> 
> 
>  forward="plantsec.mainmenu"> path="plantsec.mainmenu" redirect="false"
> />
>  forward="plantsec.todo" />
> 
>  type="com.ebind.plantsec.create.actionCreateNew"
> name="formNewRequest"
> validate="true"
> input="plantsec.create.new"
> scope="request">
> 
>  redirect="false" />
>  redirect="false" />
> 
> 
>  type="com.ebind.plantsec.search.actionSearch" />
>  type="com.ebind.plantsec.search.actionSearch" />
>  type="com.ebind.plantsec.search.actionSearch" />
>  type="com.ebind.plantsec.search.actionSearch" />
> 
=== message truncated ===


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To un

Re: html:errors tag funny null strings

2002-06-20 Thread Tim T. Young


Are you using Websphere?  If you are, when null String objects get written
to a jsp
they produce a "null".  Early versions of Websphere did not do this but we
had problems
starting with version 3.5.3.

I just put a errors.header= and errors.footer= in the properties file and
it takes care of it,
since I didn't have anything I wanted to display like in the example below.

Tim



   

Jan Fetyko 

 

   

06/20/2002 

02:48 PM   To: Struts Users Mailing List 
<[EMAIL PROTECTED]>  
Please respond cc: 

to "Struts 

Users Mailing  

List"  

  Subject: Re: html:errors tag funny null 
strings  
   




Caterpillar: Confidential Green  Retain Until: 07/20/2002
 Retention Category:  G90 -
 Information and Reports




Actualy I'm not missing the entry for the error, since it gets writen to
the page, but there are aditional "null" strings.

I have this in properties file:

text.login.password.error=Password is required

on the jsp page I have



but the output on the page is not just: "Password is required"
but : "null Password is required null".

Does that make sense ?

Jf

Celestino Pena wrote:
> In your properties file you are missing entries for "errors" as in...
>
> errors.header=Validation ErrorYou must
> correct the following error(s) before proceeding:
> errors.footer=
>
>
> -Original Message-
> From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 1:51 PM
> To: Struts Users Mailing List
> Subject: html:errors tag funny null strings
>
>
> Hi,
>
> I'm using the  tag to display errors after
> the form validation fails. The problem is that when the error is
> displayed it contains a "null" string at the begining and at the end on
> the actual error message. Ex.: "null Password is required null".
>
> What's going on ? Is this fix-able ?
>
> Jf
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>
>



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






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




RE: tag for the blank string to " " ... performance

2002-06-20 Thread Niall Pemberton

Alternatively, you could sub-class the struts PresentTag and override the
doStartTag() method to output the   if the condition is not true (I
haven't tested it, but see below example).

Then use in the same way as the struts PresentTag ... how clear is that?

  
  
  


===
import javax.servlet.jsp.JspException;
import org.apache.struts.util.ResponseUtils;
public class PresentTagNbsp extends
org.apache.struts.taglib.logic.PresentTag {

/**
 * Perform the test required for this particular tag, and either
evaluate
 * or output a " "
 *
 * @exception JspException if a JSP exception occurs
 */
public int doStartTag() throws JspException {

// Present, output body
if (condition())
return (EVAL_BODY_INCLUDE);

// Not Present, output  .
ResponseUtils.write(pageContext, " ");

return (SKIP_BODY);

}
}
===

> -Original Message-
> From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]]
> Sent: 19 June 2002 23:00
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: tag for the blank string to " " ... performance
>
>
>
>
>
> 
> 
><% if ( theForm.getTheProp() != null ) { %>
> <%= theForm.getTheProp() %>
><% } else { %> <% } %>
>  
>
> is's more readable ;) ... but scope must be known.
>
>
> -Emmanuel
>
>
>   Joseph Barefoot <[EMAIL PROTECTED]> a écrit :
> >
> > Hi,
> >
> > I've got a simple question, custom tags decrease performance,
> > isn't it ? When using a custom tag, a object is instancied,
> > doStartTag, doEndTag... invoked.
> >
> > so why use a tag for making a simple test ?
>
> 4 reasons:
>
> 1. You are testing for the existence of a property of an
> Attribute, not the
> existence of the attribute itself. See below for the difference.
>
> 2. You are enforcing MVC concepts by limiting logic expressions
> in your JSP
>
> 3. By using the tag with no scope specified, the object with name
> "theForm"
> could be in any scope. Doing it the scriplet way would require
> you to write
> code for a specific scope (request, sesssion, etc.).
>
> 4. The tag is a a helluva lot easier to read than the corresponding
> scriplet (see below).
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > became
> >
> >
> >
> >
> >
> >
>
>
> The above would not have the desired effect. You would have to cast and
> invoke the getter. It would have to be:
>
>
> null ) { %>
>
>
>
>
> Note that this assumes the form bean is in the request. You would have to
> write more code if it could be either session or request scope. Note also
> that you are still invoking a custom tag to ouput the value, so if you're
> trying to eliminate tag overhead it should be:
>
>
> null ) { %>
>
>
>
>
>
> Isn't that fun to read? :):)
>
>
> >
> >
> > -Emmanuel
> >
> > James Mitchell a écrit :
> > DOH!!.hehehe.sorry, that's what I meant. (going thru my mail too
> > quickly)
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://struts-atlanta.open-tools.org
> >
> > > -Original Message-
> > > From: Joseph Barefoot [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 20, 2002 4:02 PM
> > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > Subject: RE: tag for the blank string to " "
> > >
> > >
> > > That's what we do, except the " " should be outside the logic tag, or
> > > it won't get ouputted when the property isn't present:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, June 19, 2002 1:03 PM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: tag for the blank string to " "
> > > >
> > > >
> > > > You might be frustrated by the way tables are displayed when a
> > > > is empty
> > > > (especially if you are using stylesheets to format your tables)
> > > >
> > > > Instead of rewriting a bunch tablib to support this, or
> calling helper
> > > > functions, I've overcome this by always adding a in
> > > every like
> > > > this
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hope this helps!
> > > >
> > > >
> > > > James Mitchell
> > > > Software Engineer\Struts Evangelist
> > > > Struts-Atlanta, the "Open Minded Developer Network"
> > > > http://struts-atlanta.open-tools.org
> > > >
> > > > > -Original Message-
> > > > > From: Cheng, Sophia [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, June 19, 2002 2:20 PM
> > > > > To: '[EMAIL PROTECTED]'
> > > > > Subject: tag for the blank string to " "
> > > > >
> > > > >
> > > > > Hi,
> > > > > Is there any tag which will write the blank string(null
> > > String or
> > > > > String with length 0) to " " for a form property?
> > > > >
> > > > > Currently I am using logic:notPresent(see below), but I
> > > > > need to do it
> > > > > for man

Re: html:errors tag funny null strings

2002-06-20 Thread Jan Fetyko

Actualy I'm not missing the entry for the error, since it gets writen to 
the page, but there are aditional "null" strings.

I have this in properties file:

text.login.password.error=Password is required

on the jsp page I have



but the output on the page is not just: "Password is required"
but : "null Password is required null".

Does that make sense ?

Jf

Celestino Pena wrote:
> In your properties file you are missing entries for "errors" as in...
> 
> errors.header=Validation ErrorYou must
> correct the following error(s) before proceeding:
> errors.footer=
> 
> 
> -Original Message-
> From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 1:51 PM
> To: Struts Users Mailing List
> Subject: html:errors tag funny null strings
> 
> 
> Hi,
> 
> I'm using the  tag to display errors after 
> the form validation fails. The problem is that when the error is 
> displayed it contains a "null" string at the begining and at the end on 
> the actual error message. Ex.: "null Password is required null".
> 
> What's going on ? Is this fix-able ?
> 
> Jf
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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




Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app'spersistencelayer

2002-06-20 Thread Kevin . Bedell




> Down the road, I think the Stuts DataSources feature may become a way to
> manage and swap between different datasource connection pools, rather
> than to just load an internal implementation. This can be a useful
> feature for a controller. You might want to run unit tests against
> different pools, side by side, or switch to another pool for
> troubleshooting, which seem like useful controller features to me.

Any thought to using JMX for this type of managment? The functions you've
described seem to fit what JMX provides reasonably well.

Craig is listed as Author for the whole Modeler pacakge in the Commons area for 
facilitating JMX implementations:

 http://jakarta.apache.org/commons/modeler/docs/api/index.html


Some other background for anyone not familiar with JMX.

 The JMX home page

 http://java.sun.com/products/JavaManagement/

 An article by Marc Fluery (leader of the JBoss project) on JMS published on 
O'Reilly's OnJava site

 http://www.onjava.com/pub/a/onjava/2001/02/01/jmx.html

 MX4J - an open source JMX implementation distributed under an Apache-style license

 http://mx4j.sourceforge.net/

 JSR-003  - The JSR covering JMX -currently in Final Release

 http://jcp.org/aboutJava/communityprocess/final/jsr003/index2.html





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




RE: Dynamic Forms

2002-06-20 Thread James Mitchell

I'm interested to know how you are dynamically persisting these fields?
Certainly not in a RDBMS.  Perhaps this can be resolved with better design.

It almost sounds like someone is shoving this design at you and expecting
you to code it this way.  Is this the case?  If not, there are better ways
to structure your application so you don't have to do such a hack job on the
front-end.



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




> -Original Message-
> From: Adrian Cunningham [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 10:14 AM
> To: Struts Users Mailing List
> Subject: RE: Dynamic Forms
>
>
> Hi,
>
> I have checked through almost the entire archive and encountered loads
> of articles covering dynamic forms, but all use the DynaActionForm,
> which requres the properties to specified in the struts-config.xml file.
>
>
> In most cases this is fine but for a few JSP's the property names are
> being dynamically generated at run-time so I can't add them to the
> struts-config file.
>
> Adrian.
>
> >  -Original Message-
> > From:   James Holmes <[EMAIL PROTECTED]>@KAINOS
> > Sent:   20 June 2002 14:29
> > To: Struts Users Mailing List
> > Subject:Re: Dynamic Forms
> >
> >
> > Check the mailing list archives.  This question was
> > answered in the past couple of days.
> >
> > http://www.mail-archive.com/struts-user@jakarta.apache.org
> >
> > -james
> > [EMAIL PROTECTED]
> > http://www.jamesholmes.com/struts/
> >
> >
> > --- Adrian Cunningham <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I am writing a JSP that will contain a dynamic form.
> > >  It basically
> > > consists of a table in which each row contains
> > > various form elements,
> > > the number of rows in the table is variable.  For
> > > example:
> > >
> > > ...
> > >
> > > <%
> > >  for(int i = 0; i < 3; i++)
> > >  {
> > > %>
> > >
> > > 
> > >  
> > >   
> > >  
> > >  
> > >   
> > >  
> > >  
> > >   
> > >  
> > > 
> > >
> > > <%
> > >  }
> > > %>
> > >
> > > As you can see from the example I use a for loop to
> > > dynamically create
> > > the rows in the table.  As a result I need to
> > > specify unique names for
> > > each of the properites in the form so I also
> > > dynamically create the
> > > property names.  For this reason I can't use the
> > > ActionForm as it
> > > requires the properties, getters and setters to be
> > > defined.
> > >
> > > I thought the solution to my problem would be
> > > DynaActionForm but again
> > > it requires the properties to be specified in the
> > > struts-config.xml
> > > file, same problem.
> > >
> > > So how can I implement dynamic forms using Struts
> > > without having to
> > > write the form class and defining all my properties,
> > > getters and
> > > setters.
> > >
> > > Any help on this would be greatly appreciated.
> > >
> > > Thanks in advance.
> > >
> > > Adrian Cunningham
> > >
> > >
> > >
> > > --
> > >
> > > This e-mail is confidential and is intended for the
> > > named recipient only. If
> > > you receive it in error please destroy the message
> > > and all copies. Kainos
> > > Software Ltd. does not accept liability for damage
> > > sustained as a result of
> > > malicious software (e.g. viruses). Kainos does not
> > > accept liability for, or
> > > permit; the creation of contracts on its behalf by
> > > e-mail, the publication of
> > > any defamatory statement by its employees by e-mail,
> > > or changes subsequently
> > > made to the original message. The Company's
> > > registered office is located at
> > > 4-6 Upper Crescent, Belfast, BT7 1NT, Northern
> > > Ireland, Tel +44 28 9057 1100.
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
>
> This e-mail is confidential and is intended for the named
> recipient only. If
> you receive it in error please destroy the message and all copies. Kainos
> Software Ltd. does not accept liability for damage sustained as a
> result of
> malicious software (e.g. viruses). Kainos does not accept
> liability for, or
> permit; the creation of contracts on its behalf by e-mail, the
> publication of
> any defamatory statement by its employees by e-mail, or changes
> subsequently
> made to the original message. The Company's registered office is
> located at
> 4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44
> 28 9057 1100.
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app'spersistence layer

2002-06-20 Thread Joe Germuska

>Maybe that's all I really need.  I also tend to lean towards Jakarta 
>tools over others. For example, I was about to rework an app to use 
>Castor but now I'll probably use ObjectRealtionalBridge instead.

It's not just about Jakarta...  from just a passing experience with 
the two tools, I found the mapping syntax for OJB to be far, far more 
comprehensible than that of Castor JDO.  Plus, have you ever looked 
at the source code for Castor stuff?  yikes.

I had heard somewhere that the Castor project was in hibernation, or 
worse... is there any truth to that?  So far i've still had better 
luck with Castor than Jakarta Commons Betwixt for Bean<->XML Binding, 
but I like Betwixt's approach better, and figure it's only a matter 
of time until the tricks to get Betwixt working sink through my 
skull...

Joe

-- 
--
* Joe Germuska{ [EMAIL PROTECTED] }
"It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records."
--Sam Goody, 1956
tune in posse radio: 

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




RE: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts ap p's persistence layer

2002-06-20 Thread Yerramreddy, Sridhar

Also check out:

www.realmethods.com

www.wakesoft.com

http://www.jcorporate.com/

All three of thes seem to work really well with Stuts based architecture
along with DBPC, ORM and Caching.



-Original Message-
From: Gibson Brad - IL [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 3:28 PM
To: 'Struts Users Mailing List'
Subject: RE: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts
ap p's persistence layer


Have you tried BC4J in JDeveloper 9i?

IT seems to work very well for connection pooling, Object 
Relational Mapping and Caching.


Brad

-Original Message-
From: John Nicholas [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 20, 2002 1:49 PM
To: Struts Users Mailing List
Subject: Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts
app's persistence layer

Jerome Jacobsen wrote:
> New Jakarta project ObjectRelationalBridge (OJB) provides for transparent
> object persistence.  Current APIs include ODMG 3.0 and a lower level
> PersistenceBroker API.  Currently developing a JDO API.
> 
> Check it out:
> 
> http://jakarta.apache.org/ojb/

I'm glad to see this become part of jakarta. It seems that of the three 
  things most needed by struts users(connection pooling, Object 
Relational Mapping and Caching) there are jakarta projects for all. I 
would like to see these formally brought into Struts. Of course they 
should be replaceable, but I find it odd that there's things in the docs 
like this: "Struts generic connection pool is an optional component. 
Many Struts applications use other connection pools for better 
performance, especially with high-volume production systems."

It seems that with Fulcrum and OJB we should be able to have it all in 
one simple download and tutorial.I know a lot of this is in Expresso but 
I'd like to have it all under one license and tutorial. I haven't tried 
Expresso but it looks like it replaces several Struts pieces rather than 
just addding functionality.

John Nicholas



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app's persistence layer

2002-06-20 Thread Gibson Brad - IL

Have you tried BC4J in JDeveloper 9i?

IT seems to work very well for connection pooling, Object 
Relational Mapping and Caching.


Brad

-Original Message-
From: John Nicholas [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 20, 2002 1:49 PM
To: Struts Users Mailing List
Subject: Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts
app's persistence layer

Jerome Jacobsen wrote:
> New Jakarta project ObjectRelationalBridge (OJB) provides for transparent
> object persistence.  Current APIs include ODMG 3.0 and a lower level
> PersistenceBroker API.  Currently developing a JDO API.
> 
> Check it out:
> 
> http://jakarta.apache.org/ojb/

I'm glad to see this become part of jakarta. It seems that of the three 
  things most needed by struts users(connection pooling, Object 
Relational Mapping and Caching) there are jakarta projects for all. I 
would like to see these formally brought into Struts. Of course they 
should be replaceable, but I find it odd that there's things in the docs 
like this: "Struts generic connection pool is an optional component. 
Many Struts applications use other connection pools for better 
performance, especially with high-volume production systems."

It seems that with Fulcrum and OJB we should be able to have it all in 
one simple download and tutorial.I know a lot of this is in Expresso but 
I'd like to have it all under one license and tutorial. I haven't tried 
Expresso but it looks like it replaces several Struts pieces rather than 
just addding functionality.

John Nicholas



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: tag

2002-06-20 Thread James Holmes

The forward tag allows you to give a name to view
component that can be referenced by Actions.

Take a look at the config file DTD for more info on
the config file's elements:

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

I also recommend reviewing the User Guide for details
on how the MVC architecture works with Struts.

http://jakarta.apache.org/struts/doc-1.0.2/userGuide/index.html

The Struts Console make's managing the config file a
breeze:

http://www.jamesholmes.com/struts/

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


--- Billy Ng <[EMAIL PROTECTED]> wrote:
> In the struts-config.xml, there is a  tag
> in the  tag.  What is it for?
> 
> Thanks!
> 
> Billy Ng
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app'spersistencelayer

2002-06-20 Thread John Nicholas

Ted Husted wrote:
> I don't see any reason for Struts to adopt any particular approach to
> representing the model. There are already a number of packages for this,
> including Castor, Turbine, ObjectRealtionalBridge, and like a dozen
> others. It's cool that one of these will sport an Apache License now,
> but Struts developers should be able to choose their own model layer. 
> 
> Of course, if anyone wants to document some good ways to use Struts with
> any of these packages, I'm sure that we'd be happy to expand the User
> Guide in that direction. 

Maybe that's all I really need.  I also tend to lean towards Jakarta 
tools over others. For example, I was about to rework an app to use 
Castor but now I'll probably use ObjectRealtionalBridge instead.

 > Other
> products have tried the all-in-one approach, and it's just too much for
> a lot of people to swallow. 

I can understand this, that's why I didn't start out with Expresso.

> Though, personally, I think the odd thing is that Struts supports
> connection pooling at all. Bit too close to the model for my taste. But
> at the time it was added, there were few datasource-based connection
> pools available. 

I don't know if I'm in the minority here but I came from a graphics -> 
html -> javascript -> perl/php/asp -> jsp direction and am learning to 
properly separate everything by learning struts. I tend to think of 
Struts as entire web development system rather than just the frontend. I 
also have a lot of Jakarta "brand loyalty" because it helps with the 
whole decision making process and jakarta projects have good mailing lists.

Thanks,
John Nicholas



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




tag

2002-06-20 Thread Billy Ng

In the struts-config.xml, there is a  tag in the  tag.  What 
is it for?

Thanks!

Billy Ng



RE: html:errors tag funny null strings

2002-06-20 Thread Celestino Pena

In your properties file you are missing entries for "errors" as in...

errors.header=Validation ErrorYou must
correct the following error(s) before proceeding:
errors.footer=


-Original Message-
From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 1:51 PM
To: Struts Users Mailing List
Subject: html:errors tag funny null strings


Hi,

I'm using the  tag to display errors after 
the form validation fails. The problem is that when the error is 
displayed it contains a "null" string at the begining and at the end on 
the actual error message. Ex.: "null Password is required null".

What's going on ? Is this fix-able ?

Jf


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Validator problem (or user problem... not sure which yet)

2002-06-20 Thread wbchmura


the problem I was having was caused by the struts-config.xml file 
defining the plug in like:





I took a look at the struts blank war and copied that syntax over which 
is like this:






And it started recognizing my rules.  Now I cannot get it to show error 
messages, although it does successfully redirect back until the 
validation requirements are met.  Does validator feed the error messages 
into the normal html:errors?  I noticed it had a validator taglib at one 
point, but I am not sure where it is now that 1.1b incorporated alot



-Original Message-
From: Chmura, William B. 
Sent: Thursday, June 20, 2002 9:46 AM
To: struts-user
Subject: RE: Validator problem (or user problem... not sure which yet)



Where I have this in my validator.xml file...

?1 This means it should give me an error if it is not filled in?
?2 Should I have to invoke something from the action to check it, or is 
it just like an actionform?
?3 What else can I try?  Its like its all working, just ignoring my 
validate.xml file or something

 
   
 

-Original Message-
From: Chmura, William B. 
Sent: Wednesday, June 19, 2002 4:54 PM
To: struts-user
Subject: RE: Validator problem (or user problem... not sure which yet)



Nope...  Code runs, but it detects no errors...

AAARRGHHH

-Original Message-
From: Raffy.Lata [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 4:29 PM
To: struts-user
Subject: RE: Validator problem (or user problem... not sure which yet)



Lot's of stuff in your action class, but I see that you defined a
DynaValidatorForm in your  but you are casting it as a
DynaActionForm in your action class...if you cast it correctly as a
DynaValidatorForm and then invoke the validate() method (like in my
previous email), it might correct the problem...try it...





[EMAIL PROTECTED] on 06/19/2002 01:24:28 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  RE: Validator problem (or user problem... not sure which yet)



Here is everything:

Thanks in advance for any solutions!


Struts-config.xml


http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>






















































Validator.xml


   
   
   

   

 
   
 

 
   
 

 
   
 

 
   
 

 
   
 

   









actionCreateNew.java

package com.ebind.plantsec.create;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.*;
import java.util.Locale;
import java.util.Vector;
import java.util.ArrayList;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.text.ParsePosition;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionMessages;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.util.MessageResources;
import com.ebind.plantsec.visitors.*;
import javax.sql.*;
import com.ebind.plantsec.database.*;
import org.apache.struts.action.DynaActionForm;

/**
 *
 */
public final class actionCreateNew extends Action {


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

HttpSession session = request.getSession();
DynaActionForm myForm = (DynaActionForm) form;

System.out.println("ActionCreateNew: >" +
myForm.get("employeeLastName") + "<");


// Now we want to make a plantvisit bean and move all the data
into it
if (myForm.get("employeeLastName") == null ||
"".equals(myForm.get("employeeLastName"))) {

System.out.println("ELN not set");
return (mapping.findForward("continue"));
}

beanVisitorRequest vreq = new beanVisitorRequest();


// Set the required fields (already been checked to see if they
are present)
vreq.setEmployeeLastName
((String)myForm.get("employeeLastName"));
vreq.setEmployeeFirstName
((String)myForm.get("employeeFirstName"));
vreq.setEmployeeContactInfo ((String)myForm.get("contactInfo"));
vreq.setVendorCompanyName
((String)myForm.get("vendorCompanyName"));
vreq.setAccessAreas ((Str

Re: Why Tiles?

2002-06-20 Thread Ted Husted

The next closest thing might be SiteMesh,
http://uk.opensymphony.com/sitemesh/

Or, you could compare it against the Template taglib, but that may be
too similar to draw any real constrst. 

The real comparison, I think, might be between using Tiles and not using
Tiles. 

-T.

"Trieu, Danny" wrote:
> 
> If I was the one who will make the decision then Tiles would be the choice
> already.  I been using tiles for quite some time already.  I want these
> people to pickup Tiles, but I need good arguments and comparision in other
> to convince them.  I need a few framework to compare against Tiles to begin
> with.
> 
> > -Original Message-
> > From: Juan Alvarado (Struts List) [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, June 20, 2002 8:25 AM
> > To:   Struts Users Mailing List
> > Subject:  RE: Why Tiles?
> >
> > so why can't you just use tiles???
> >
> > **
> > Juan Alvarado
> > Internet Developer -- Manduca Management
> > (786)552-0504
> > [EMAIL PROTECTED]
> > AOL Instant Messenger: [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 20, 2002 11:23 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: Why Tiles?
> >
> >
> > Does any body know what other framework available out there that does what
> > Tiles does?  My boss wanna find a framework that help you do the
> > ViewComposition part, and works well with Struts.  And the only one that I
> > came up with is 'Tiles'.
> >
> > danny

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




Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app'spersistence layer

2002-06-20 Thread Ted Husted

I don't see any reason for Struts to adopt any particular approach to
representing the model. There are already a number of packages for this,
including Castor, Turbine, ObjectRealtionalBridge, and like a dozen
others. It's cool that one of these will sport an Apache License now,
but Struts developers should be able to choose their own model layer. 

Of course, if anyone wants to document some good ways to use Struts with
any of these packages, I'm sure that we'd be happy to expand the User
Guide in that direction. But I think Struts' position as an independant
controller for Java Web applications fills a very real need. Other
products have tried the all-in-one approach, and it's just too much for
a lot of people to swallow. A layered application should be able to
choose for itself what component it wants to use on a layer-by-layer
basis. 

There were several issues with the GenericDataSource class in Struts
1.0, which didn't seem like they were ever going to be resolved. To give
people fair warning, I put some disclaimers in the documentation. Since
we're not selling anything here, there's no reason not to tell the
unvarnished truth =:0)

Moving forward, we're moving the dependencies to the Commons DBCP and
can concentrate the development efforts there. I've already noticed that
the pool in Struts 1.1 is more robust than 1.0.

Though, personally, I think the odd thing is that Struts supports
connection pooling at all. Bit too close to the model for my taste. But
at the time it was added, there were few datasource-based connection
pools available. 

Down the road, I think the Stuts DataSources feature may become a way to
manage and swap between different datasource connection pools, rather
than to just load an internal implementation. This can be a useful
feature for a controller. You might want to run unit tests against
different pools, side by side, or switch to another pool for
troubleshooting, which seem like useful controller features to me.

-Ted.


John Nicholas wrote:
> 
> Jerome Jacobsen wrote:
> > New Jakarta project ObjectRelationalBridge (OJB) provides for transparent
> > object persistence.  Current APIs include ODMG 3.0 and a lower level
> > PersistenceBroker API.  Currently developing a JDO API.
> >
> > Check it out:
> >
> > http://jakarta.apache.org/ojb/
> 
> I'm glad to see this become part of jakarta. It seems that of the three
>   things most needed by struts users(connection pooling, Object
> Relational Mapping and Caching) there are jakarta projects for all. I
> would like to see these formally brought into Struts. Of course they
> should be replaceable, but I find it odd that there's things in the docs
> like this: "Struts generic connection pool is an optional component.
> Many Struts applications use other connection pools for better
> performance, especially with high-volume production systems."
> 
> It seems that with Fulcrum and OJB we should be able to have it all in
> one simple download and tutorial.I know a lot of this is in Expresso but
> I'd like to have it all under one license and tutorial. I haven't tried
> Expresso but it looks like it replaces several Struts pieces rather than
> just addding functionality.
> 
> John Nicholas
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




RE: (ASP + Servlet) Possible?

2002-06-20 Thread Syd Naveen

if ur running on a windows platform u can do it with tomcat and iis. On unix u might 
need to install JRun or IPlanet. Chilli Soft is an software that will let u render asp 
pages on a Unix box i.e Unix version or asp.dll
if u have questions please ask.
cheers
syd

-Original Message- 
From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] 
Sent: Wed 6/19/2002 1:20 PM 
To: Struts Users Mailing List 
Cc: 
Subject: Re: (ASP + Servlet) Possible?



That is a different software.  ChillSoft is a copy that allows asp pages to
run on IPlanet and apache(i think).

You would not be running iis here(Which is a good thing)
- Original Message -
From: "Rajesh Kalluri" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 19, 2002 4:07 PM
Subject: RE: (ASP + Servlet) Possible?


> Hemanth,
>
> Also sun claims that Iplanet web Server (they call it chili soft) will be
> able to run ASP along side jsp. I have not tried it though, you might
wanna
> check it out.
>
> Regards
> Raj
>
> -Original Message-
> From: hemant [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 19, 2002 4:00 PM
> To: Struts Users Mailing List
> Subject: Re: (ASP + Servlet) Possible?
>
>
> Thanks Daniel
>
> That is encouraging. I will look into JRun, I don't know if the management
> would  buy JRun for a few ASP pages. I will be thrilled if there is a way
to
> do this with Tomcat.
>
> Regards
> hemant
>
> - Original Message -
> From: "Daniel Jaffa" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 19, 2002 3:41 PM
> Subject: Re: (ASP + Servlet) Possible?
>
>
> > You can also do this with JRUN, it was very easy, i did this about 18
> months
> > ago so i am sure that the latest version of jrun will work
> >
> > - Original Message -
> > From: "hemant" <[EMAIL PROTECTED]>
> > To: "struts" <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 19, 2002 3:16 PM
> > Subject: (ASP + Servlet) Possible?
> >
> >
> > Comrades,
> >
> >
> > Is a ASP + Servlet solution really possible?
> >
> > In other words, can I hit a Servlet from an ASP page, capture the
response
> > and present data via ASP?
> >
> > I read that a Tomcat + IIS solution is possible , how difficult is it to
> > implement?
> >
> >
> > Thanks for Your Time
> > hemant
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>

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






winmail.dat
Description: application/ms-tnef

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


Weblogic 5.1 + commons.logging

2002-06-20 Thread Chen, Dean (Zhun)

Hi,

I'm migrating my Tomcat application to WebLogic 5.1, in doing so I am
getting this error:

Thu Jun 20 15:05:07 EDT 2002:  Error
instantiating servlet: com.gs.eq.ed.atlas.web.commons.SetsActionServlet
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)

I placed the commons-logging.jar into the WEB-INF/lib directory, however, it
still complains. Has anyone seen these types of error before? Is this a
weblogic problem or a commons-logging problem?

Thanks,

Dean Chen

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




id?

2002-06-20 Thread Kamholz, Keith (corp-staff) USX

When you use the  tag, do you have to define the id that
stores the result of the iteration before the tag?
My code is:

  

  
  
  
  
  
  

  
  
NO ENTRIES
  

If I don't define the id before the iterate tag, I get a runtime error that
says:
Cannot find bean mc.oldDept in scope null:
However, if I do define the id, then I get a compile time error that
complains about a duplicate variable.
Maybe the "cannot find bean" error is referring to the "oldDept" part rather
than the "mc", but I dont' know.
What's going on?


~ Keith

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




RE: Why Tiles?

2002-06-20 Thread Trieu, Danny

Yeah, may be that is it.  But I need to something to compare against Tiles.

> -Original Message-
> From: Ted Husted [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 8:53 AM
> To:   Struts Users Mailing List
> Subject:  Re: Why Tiles?
> 
> Why not Tiles?
> 
> "Trieu, Danny" wrote:
> > 
> > Does any body know what other framework available out there that does
> what
> > Tiles does?  My boss wanna find a framework that help you do the
> > ViewComposition part, and works well with Struts.  And the only one that
> I
> > came up with is 'Tiles'.
> > 
> > danny
> > 
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> 
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Java Web Development with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




RE: Why Tiles?

2002-06-20 Thread Trieu, Danny

If I was the one who will make the decision then Tiles would be the choice
already.  I been using tiles for quite some time already.  I want these
people to pickup Tiles, but I need good arguments and comparision in other
to convince them.  I need a few framework to compare against Tiles to begin
with.

> -Original Message-
> From: Juan Alvarado (Struts List) [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 8:25 AM
> To:   Struts Users Mailing List
> Subject:  RE: Why Tiles?
> 
> so why can't you just use tiles???
> 
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
> 
> -Original Message-
> From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 11:23 AM
> To: '[EMAIL PROTECTED]'
> Subject: Why Tiles?
> 
> 
> Does any body know what other framework available out there that does what
> Tiles does?  My boss wanna find a framework that help you do the
> ViewComposition part, and works well with Struts.  And the only one that I
> came up with is 'Tiles'.
> 
> danny
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




RE: Validator for Struts 1.02

2002-06-20 Thread David Winterfeldt

The 7/2/2001 release is the Struts Validator 1.0
release to go with the Struts 1.0 release.  I even
have a 1.0 download which is just the 7/2/2001 release
zip renamed.  The 7/2/2001 release is very stable.  A
lot of people were using it with no bug reports for a
long time.  And even subsequent work done on it for
months was very minor until I started making the
Validator work with the Struts nightly builds.

David

--- "Jesse Alexander (KADA 11)"
<[EMAIL PROTECTED]> wrote:
> in the revision info the 7/2/2001 version is
> described as working with Struts 1.0.
> 
> It is the one that we also use with Struts 1.0.
> 
> hope this helps
> Alexander
> 
> -Original Message-
> From: Ted Bergeron [mailto:[EMAIL PROTECTED]]
> Sent: Donnerstag, 20. Juni 2002 07:29
> To: [EMAIL PROTECTED]
> Subject: Validator for Struts 1.02
> 
> 
> What version of Struts-Validator should I use with
> Struts 1.02?  I am
> working with 1.0, the 7/2001 release, but the docs
> mention:
> 
> The Struts Validator is going to be incorporated
> into Struts 1.1. I'm
> working on finalizing any design and/or feature
> issues before this
> occurs.
> Note: The version 0.5 release is the most stable
> release (using Struts
> 3/6/2001 build). 
> 
> I just want to check if the comment about stability
> is up to date, and
> on the possibly of using the latest version with a
> few tweaks.
> 
> Thanks,
> Ted
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: DynaActionForm ClassCastException

2002-06-20 Thread Dennis Muhlestein

This actually was a browser issue.  (Mozilla 1.0) I restarted Mozilla
and it worked.  

I have no idea how the browser could have anything to do with struts
though.  Somehow, the old form was cached.  

Got me.

On Thu, 2002-06-20 at 11:09, Dennis Muhlestein wrote:
> So I decide to take the plunge, try out 1.1b1 and see what it
> can do.
> 
> I have a form that has no properties, just a placeholder while I develop
> my app.  I changed it to be org.apache.struts.action.DynaActionForm
> instead.  Still no properties.
> 
>  type="org.apache.struts.action.DynaActionForm"/>
> 
> 
> After restarting tomcat and trying to access the Action with that form,
> I get the exception below.
> 
> Any Suggestions?
> -Dennis
> 
> 
> 
> 
> java.lang.ClassCastException: my.old.class.Here
>   at
> org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:573)
>   at
> 
>org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:349)
>   at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:243)
>   at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
>   at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>   at
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>   at com.datemate.util.SessionFilter.doFilter(SessionFilter.java:67)
>   at
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>   at
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




html:errors tag funny null strings

2002-06-20 Thread Jan Fetyko

Hi,

I'm using the  tag to display errors after 
the form validation fails. The problem is that when the error is 
displayed it contains a "null" string at the begining and at the end on 
the actual error message. Ex.: "null Password is required null".

What's going on ? Is this fix-able ?

Jf


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




Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app'spersistence layer

2002-06-20 Thread John Nicholas

Jerome Jacobsen wrote:
> New Jakarta project ObjectRelationalBridge (OJB) provides for transparent
> object persistence.  Current APIs include ODMG 3.0 and a lower level
> PersistenceBroker API.  Currently developing a JDO API.
> 
> Check it out:
> 
> http://jakarta.apache.org/ojb/

I'm glad to see this become part of jakarta. It seems that of the three 
  things most needed by struts users(connection pooling, Object 
Relational Mapping and Caching) there are jakarta projects for all. I 
would like to see these formally brought into Struts. Of course they 
should be replaceable, but I find it odd that there's things in the docs 
like this: "Struts generic connection pool is an optional component. 
Many Struts applications use other connection pools for better 
performance, especially with high-volume production systems."

It seems that with Fulcrum and OJB we should be able to have it all in 
one simple download and tutorial.I know a lot of this is in Expresso but 
I'd like to have it all under one license and tutorial. I haven't tried 
Expresso but it looks like it replaces several Struts pieces rather than 
just addding functionality.

John Nicholas



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




Re: Struts Validator and global commands

2002-06-20 Thread David Winterfeldt

If you are referring to redefining forms between
locales, you only need to override change from the
default locale (no language or country defined).  So
if the default locale has first name, last name, and
phone number and you wanted a different phone number
mask for french.  You would just have to create the
form with the same name and duplicate the phone number
field with the different mask.  

If you want to actually create shared groups of fields
for something like an adddress, you can't currently
create fields in the global section.  I want to do
that though.  So it will be something that eventually
gets done.  Then you could create a field set for
something like an address and reuse it.  But right
now, you will need to duplicate similar fields between
different form elements.  

David

--- Alok Ghosh <[EMAIL PROTECTED]> wrote:
> Hi, I am using the new version of Struts Validator
> (v1.1) to validate a
> form on one page.
> 
>  
> 
> The top of my form has common fields, ie. firstName,
> lastName, and the
> bottom of my form is dependent on a drop down box. 
> (ie, different forms
> are shown on different drop down selections. Like
> Province if Canada is
> picked, or State if USA is picked)
> 
>  
> 
> In my validation.xml file, I know I can have
> multiple versions of the
> same form in different  tags.  Ie)  
> 
> and .
> 
>  
> 
> But is there anyway I can specify a set of global
>  for the top
> common part of the form?
> 
>  
> 
> I know under  there is a 
> category used for
> variables, can I place  tags there?
> 
>  
> 
> How would I go on about doing something like this?
> 
> Please help,
> 
>  
> 
> Thank you,
> 
> Alok.
> 
> 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Correction - Using SwitchAction to switch to default sub-app

2002-06-20 Thread Mete Kural

Sorry I have to make a correction. 

I said in my email:

> I set up the switch action in the default sub-app's
> config file as well. When I type this in the address
> bar of the browser:
> http://localhost/index.html?page=/&prefix=

I meant to write this URL instead:
http://localhost/switch.do?page=/&prefix=

Thanks,
Mete

--- Mete Kural <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I've been trying to get a hold on how to effectively
> use these sub-apps but I'm confused about how to
> switch between sub-apps still after reading the few
> messages on the topic already in the archives.
> 
> I have two sub-apps in my web-app: default and
> /catalog.
> 
> I added the switch action to my action-mappings in
> the
> /catalog sub-app config file i.e.
> struts-config-catalog.xml
> 
>type="org.apache.struts.actions.SwitchAction"/>
> 
> If I call the /switch action in the /catalog sub-app
> it should switch to the default sub-app if the
> correct
> parameters are given.
> 
> But when I type this in the address bar of the web
> browser:
> 
> http://localhost/catalog/switch.do?prefix=&page=/
> 
> , I get the directory listing for /catalog the first
> line starting with "Directory Listing For /catalog/"
> and then listing all the jsp files in my /catalog
> directory.
> 
> Shouldn't it take me to the index page for the
> default
> sup-app, i.e. /index.html ?
> 
> I set up the switch action in the default sub-app's
> config file as well. When I type this in the address
> bar of the browser:
> http://localhost/index.html?page=/&prefix=
> It takes me to the index page for the default
> sub-app
> as it should. But why not when I call the switch
> action from the /catalog sub-app?
> 
> Are my parameters incorrect? I'm giving a
> zero-length
> string prefix for the default sub-app and the URI
> "/"
> for the index page. What do you think I'm doing
> wrong
> here? 
> 
> Peace,
> Mete
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Struts and iWS 4.1

2002-06-20 Thread Carmen FLOREA

> Hello Everybody
> 
> I read the emails concernig how to get Struts
> working under the IPlanet web
> Server 4.1, and I found a message from  Stanley
> Santiago who wrote a
> documentation about how to get Struts based
> application to work on iWS 4.1.
> Can somebody send me this documentation?
> 
> 
> Thank you,
> Carmen




RE: html:base tag and tiles?

2002-06-20 Thread Holman, Cal

Byrne>>  I had a similar issue with the template layout being a sub
directory.  This is not as elegant as the html:base tag but works.  I
forward to definitions not .jsp.





Cal

-Original Message-
From: Byrne, Steven [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 13:44
To: [EMAIL PROTECTED]
Subject: html:base tag and tiles?

I'm using tiles for my primary page definition, and I've chosen to put
my common tiles building blocks into a "web space" subdirectory
called "tiles", including my main layout tile.  When I try to use the
html:base tag to define the default URLs for my web pages, it refers,
naturally enough to the tiles subdirectory since that's where the main
tile lives.

What I'm looking for is a way to get the  element that's emitted
to refer to the top of the web space, i.e. http://localhost:8080/app/
and not http://localhost:8080/app/tiles. 

Of course, I could put the mainLayout.jsp in the top directory, but I
had really wanted to factor the basic tiles definitions into their own
directory

Has anyone run into and solved this problem?

Steve

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




Using SwitchAction to switch to default sub-app

2002-06-20 Thread Mete Kural

Hello,

I've been trying to get a hold on how to effectively
use these sub-apps but I'm confused about how to
switch between sub-apps still after reading the few
messages on the topic already in the archives.

I have two sub-apps in my web-app: default and
/catalog.

I added the switch action to my action-mappings in the
/catalog sub-app config file i.e.
struts-config-catalog.xml



If I call the /switch action in the /catalog sub-app
it should switch to the default sub-app if the correct
parameters are given.

But when I type this in the address bar of the web
browser:

http://localhost/catalog/switch.do?prefix=&page=/

, I get the directory listing for /catalog the first
line starting with "Directory Listing For /catalog/"
and then listing all the jsp files in my /catalog
directory.

Shouldn't it take me to the index page for the default
sup-app, i.e. /index.html ?

I set up the switch action in the default sub-app's
config file as well. When I type this in the address
bar of the browser:
http://localhost/index.html?page=/&prefix=
It takes me to the index page for the default sub-app
as it should. But why not when I call the switch
action from the /catalog sub-app?

Are my parameters incorrect? I'm giving a zero-length
string prefix for the default sub-app and the URI "/"
for the index page. What do you think I'm doing wrong
here? 

Peace,
Mete



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: FW: Bean Usage - Collections

2002-06-20 Thread Kamholz, Keith (corp-staff) USX

Thanks!  I'll try it out.  I decided not to use bean:define either because
it was giving me errors.  Now I'm using jsp:useBean, but if it seems like
creating it in the action class will work better I may change things.

Keith Kamholz
Moog 
East Aurora, NY
(716) 687-7282
[EMAIL PROTECTED]


-Original Message-
From: David Morris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 2:00 PM
To: [EMAIL PROTECTED]
Subject: Re: FW: Bean Usage - Collections


Keith,

I don't use bean:define, but it works in most cases. Instead, I 
create the bean in my action class. That means you will have to 
specify the .do or /do/... url whenever you have a link to your page. 
The Action will run before you ever hit your JSP so you create the 
bean in the Action and use the request passed into your Action 
to set the action in the proper scope. You do not have to define the 
bean in struts config.

The values entered on the form will be placed in the bean specified 
on the html:form tag. If that is a struts form, you will end up with 
two copies of your bean (it can be convenient because then you 
have from and to values), one on the form and one associated 
with your action class. The name you specify on your html:text(?) 
tag would be the name you assign to the attribute you saved 
in the action class.

David Morris

>>> [EMAIL PROTECTED] 06/20/02 10:36AM >>>
Hey,
I posted this a while ago, and go no response at all.  Sorry if I'm a
pain
in the ass, but does nobody know how to do this?  It doesn't seem like
it
should be too complex for anyone that has much experience with struts.
Please help!

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 20, 2002 10:23 AM
To: Struts (E-mail)
Subject: Bean Usage - Collections


Hi everyone,
I'm new to struts and right now I'm working on some collections in my
app.
I have an EntryHolder bean class that has 3 properties (ArrayLists of
entries) which each hold a different type of entry.  Each type of entry
is
it's own class.  I then have a form that fills in the info into the
entry
class.
I believe I can just use the  tag (before the link to my form
page)
to instantiate the EntryHolder bean, right?  (Do i need to define this
bean
in struts-config, if the input doesn't come from a form?)
In order to the put the entry into the corresponding ArrayList, do I
add it
to the list in my Action that handles the form?
If so, how do I access that bean in the action?  My only guess is that
I get
it from the "request" parameter, or the HttpSession .
Any input would be greatly appreciated.  Thanks!


Keith Kamholz

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Newbie pls help: Anyone using JBoss 3 w/ Struts 1.1?

2002-06-20 Thread Brian Topping

Indeed, this works!!  

Thanks!!

-b

> -Original Message-
> From: Tadashi Ishikawa [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 1:53 AM
> To: Struts Users Mailing List
> Subject: Re: Newbie pls help: Anyone using JBoss 3 w/ Struts 1.1?
> 
> 
> I just copied struts-example.war  included in Struts1.1b1 to 
> jboss-3.0.0_tomcat-4.0.3/server/default/deploy.
> It works good.  I never get NoClassDefFoundError.
> 
> 
> Brian Topping wrote:
> 
> >Hi All,
> >
> >I'm trying to get my first Struts app going.  I'm using 
> JBoss3 with Tomcat
> >for the web container, and am having quite a bit of problems 
> with getting my
> >classes loaded.  It's what seems to be a common problem:
> >"java.lang.NoClassDefFoundError: 
> org/apache/struts/action/ActionForm".  There
> >are a lot of solutions in the archives relating to moving 
> jars underneath
> >WEB-INF, manifests, etc.  All I can say is that the 
> struts.jar in this war is
> >the only struts.jar on any classpath that I'm running under. 
>  So if it's in
> >the wrong location in this war (WEB-INF/lib), that may be my problem.
> >
> >Anyone else using JBoss3+Tomcat4.0.3 release?
> >
> >I've got a war file at http://www.orb.org/bad.war that 
> exhibits the problem.
> >It works fine under Tomcat 4.0.4b3 standalone, it's simply a 
> problem when the
> >war is loaded under JBoss 3.  When it does the right thing, 
> you'll get an
> >exception about not being able to locate an EJB in JNDI...
> >
> >I can post more information about the problem, but it seems 
> the more I post,
> >the harder the post is to read, so I'll start with this :)
> >
> >Any help appreciated, i'm so close to getting all this running!!
> >
> >thanks a bunch,
> >
> >Brian
> >
> >--
> >To unsubscribe, e-mail:   

>For additional commands, e-mail:

>
>
>
>




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


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




Re: FW: Bean Usage - Collections

2002-06-20 Thread David Morris

Keith,

I don't use bean:define, but it works in most cases. Instead, I 
create the bean in my action class. That means you will have to 
specify the .do or /do/... url whenever you have a link to your page. 
The Action will run before you ever hit your JSP so you create the 
bean in the Action and use the request passed into your Action 
to set the action in the proper scope. You do not have to define the 
bean in struts config.

The values entered on the form will be placed in the bean specified 
on the html:form tag. If that is a struts form, you will end up with 
two copies of your bean (it can be convenient because then you 
have from and to values), one on the form and one associated 
with your action class. The name you specify on your html:text(?) 
tag would be the name you assign to the attribute you saved 
in the action class.

David Morris

>>> [EMAIL PROTECTED] 06/20/02 10:36AM >>>
Hey,
I posted this a while ago, and go no response at all.  Sorry if I'm a
pain
in the ass, but does nobody know how to do this?  It doesn't seem like
it
should be too complex for anyone that has much experience with struts.
Please help!

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 20, 2002 10:23 AM
To: Struts (E-mail)
Subject: Bean Usage - Collections


Hi everyone,
I'm new to struts and right now I'm working on some collections in my
app.
I have an EntryHolder bean class that has 3 properties (ArrayLists of
entries) which each hold a different type of entry.  Each type of entry
is
it's own class.  I then have a form that fills in the info into the
entry
class.
I believe I can just use the  tag (before the link to my form
page)
to instantiate the EntryHolder bean, right?  (Do i need to define this
bean
in struts-config, if the input doesn't come from a form?)
In order to the put the entry into the corresponding ArrayList, do I
add it
to the list in my Action that handles the form?
If so, how do I access that bean in the action?  My only guess is that
I get
it from the "request" parameter, or the HttpSession .
Any input would be greatly appreciated.  Thanks!


Keith Kamholz

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




RE: Dynamic Forms

2002-06-20 Thread David Morris

Adrian,

Would it work to store your property name/values pairs 
in an arrayList and then use iterate or the nested tags 
to loop through the values when you display them? The 
generated text tag would then be something like 
property="dynValues[0].value" value="Some Value". You 
would build the arrayList of dynProps each one having a 
value, name pair.

  

  

  

David Morris

>>> [EMAIL PROTECTED] 06/20/02 08:14AM >>>
Hi,

I have checked through almost the entire archive and encountered loads
of articles covering dynamic forms, but all use the DynaActionForm,
which requres the properties to specified in the struts-config.xml
file.

In most cases this is fine but for a few JSP's the property names are
being dynamically generated at run-time so I can't add them to the
struts-config file.

Adrian.

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




Struts Validator and global commands

2002-06-20 Thread Alok Ghosh

Hi, I am using the new version of Struts Validator (v1.1) to validate a
form on one page.

 

The top of my form has common fields, ie. firstName, lastName, and the
bottom of my form is dependent on a drop down box.  (ie, different forms
are shown on different drop down selections. Like Province if Canada is
picked, or State if USA is picked)

 

In my validation.xml file, I know I can have multiple versions of the
same form in different  tags.  Ie)   
and .

 

But is there anyway I can specify a set of global  for the top
common part of the form?

 

I know under  there is a  category used for
variables, can I place  tags there?

 

How would I go on about doing something like this?

Please help,

 

Thank you,

Alok.




Rep:Re: Action, MessageResources and Locale

2002-06-20 Thread Babs Post

I tried this but it looked in default application_xx thing (default
Locale) for header and footer.

Thanks Craig for the answer. Will try it tomorrow !

BP

-Message d'origine-
De: "Slava_L" <[EMAIL PROTECTED]>
A: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Date: 20/06/02
Objet: Re: Action, MessageResources and Locale

Why don't you tried it out ?
If u've i18ned  ur bean:messages wut's the problem.
place appropriate "error.something.like.this" accordingly in all of ur
application_XX.properties files
and use this name when creatin' errors i.e for example

ActionErrors errors = new ActionErrors();

if (sometrouble)
 errors.add("ErrorName", new
ActionError("error.something.like.this"));

return errors;


- Original Message -
From: "Barbara Post" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 20, 2002 6:41 PM
Subject: Action, MessageResources and Locale


> I want my Action to create a MessageResources based on the Locale I
choose.
> How can it be ?
>
> So that my ActionForm returns errors in the appropriate language...
>
> Thanks.
>
> BP
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:  

For additional commands, e-mail:


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




data-source exception

2002-06-20 Thread slick dev mail

I have a problem with the data-source properties in struts-config.xml
This is for the sample email portal application.

I configured the properties to use my oracle installation, thus:

 

  
  
  
  
  
  
  
  

  

PROBLEM
When clicking the initial logon link to invoke logon.jsp, an exception
occurs:

javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:460)
at logon_1._jspService(logon_1.java:691)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
---
---
---

NOTE
The exception also occurs with the data-source params commented out:
 



  

HOWEVER
Commenting out the data-source begin and end tag is OK.  No exception is
thrown.
 

  



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




DynaActionForm ClassCastException

2002-06-20 Thread Dennis Muhlestein

So I decide to take the plunge, try out 1.1b1 and see what it
can do.

I have a form that has no properties, just a placeholder while I develop
my app.  I changed it to be org.apache.struts.action.DynaActionForm
instead.  Still no properties.




After restarting tomcat and trying to access the Action with that form,
I get the exception below.

Any Suggestions?
-Dennis




java.lang.ClassCastException: my.old.class.Here
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:573)
at
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:349)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:243)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at com.datemate.util.SessionFilter.doFilter(SessionFilter.java:67)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)


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




Re: Struts-Tiles Questions

2002-06-20 Thread Cedric Dumoulin



  Tiles is shipped with Struts1.1 in the contrib folder.
  Documentation is in struts-tiles.jar, in the same way struts documentation is in 
struts-documention.
  Versions on Jakarta and on original Tiles site are exactly the same. Binaries from 
original site contains more war files (like blanks*.war). They are not generated in 
the Struts distribution to not overload it. It is just an option in the ant build file.

  The overhead in using Tiles is to compare to the gain in maintenance and reuse. It 
is a comparison in the same order that choosing between using C or Java language ;-). 
But the Tiles time overhead is not in the same magnitude.

Cedric

Jerry Jalenak wrote:

> After watching this list for awhile and reading the comments about Tiles, I
> finally went out to see what Tiles was all about.  Wow!  I particularly like
> the ability to define all of your Tiles in a XML config file, and forward to
> them from a struts action.  Unless I'm mistaken, this means that a web
> application can be built entirely without the need to have complete JSP
> pages - all you need are the component tiles.  Anyway, I have to following
> 'newbie' questions:
>
> 1. According to the Tiles website (http://www.lifl.fr/~dumoulin/tiles/),
> Tiles is shipped with Struts, but I can't find any reference to Tiles in the
> Struts 1.1x documentation.  Is Tiles shipped with Struts, or do I need to
> download the latest from the Tiles website?
>
> 2. Has anyone compared Tiles to some of the other, similar products?  In
> particular, I've also looked into SiteMesh
> (http://www.opensymphony.com/sitemesh/), but I'm also wondering about
> JavaServer Faces.  I'm sure there are pro's and con's to each, but has
> anyone done an in-depth comparison?
>
> 3. What is the overhead penality in using Tiles to construct your
> presentation pages?
>
> TIA,
>
> Jerry
>
> This transmission (and any information attached to it) may be confidential and is 
>intended solely for the use of the individual or entity to which it is addressed. If 
>you are not the intended recipient or the person responsible for delivering the 
>transmission to the intended recipient, be advised that you have received this 
>transmission in error and that any use, dissemination, forwarding, printing, or 
>copying of this information is strictly prohibited. If you have received this 
>transmission in error, please immediately notify LabOne at (800)388-4675.
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




FW: Bean Usage - Collections

2002-06-20 Thread Kamholz, Keith (corp-staff) USX

Hey,
I posted this a while ago, and go no response at all.  Sorry if I'm a pain
in the ass, but does nobody know how to do this?  It doesn't seem like it
should be too complex for anyone that has much experience with struts.
Please help!

~ Keith


-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 10:23 AM
To: Struts (E-mail)
Subject: Bean Usage - Collections


Hi everyone,
I'm new to struts and right now I'm working on some collections in my app.
I have an EntryHolder bean class that has 3 properties (ArrayLists of
entries) which each hold a different type of entry.  Each type of entry is
it's own class.  I then have a form that fills in the info into the entry
class.
I believe I can just use the  tag (before the link to my form page)
to instantiate the EntryHolder bean, right?  (Do i need to define this bean
in struts-config, if the input doesn't come from a form?)
In order to the put the entry into the corresponding ArrayList, do I add it
to the list in my Action that handles the form?
If so, how do I access that bean in the action?  My only guess is that I get
it from the "request" parameter, or the HttpSession .
Any input would be greatly appreciated.  Thanks!


Keith Kamholz
Moog 
East Aurora, NY
(716) 687-7282
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: kickstarting struts/tiles

2002-06-20 Thread Vincent Stoessel

cool, found it.
Using  tiles-blank-struts1-1.war specifically.
thanks.

Ted Husted wrote:
> I believe there's a tiles-blank.war in the current distribution for just
> this purpose.
> 
> Vincent Stoessel wrote:
> 
>>OK, newbie question.
>>
>>I want to start developing a struts app with the use of tiles
>>for templating. My question is this. The way I have been doing it
>>is to copy all the *.tld  and jars into the WEB-INF of my tomcat server.
>>Would it be quicker/ faster to just use make a copy of the provided
>>struts-tiles.war file and rename it to myApp  . I figure that would
>>reduce  the margin for misconfiguration. Opinions?
>>--
>>Vincent Stoessel
>>Linux Systems Developer
>>vincent xaymaca.com
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
> 
> 
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Java Web Development with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




RE: with parametric replacement in Struts 1.0.2

2002-06-20 Thread Jennings, Christofer J.

Aahaah! Braces do the trick. Thanks Dave and Chris!

-Original Message-
From: Bartley, Chris P [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 8:50 AM
To: 'Struts Users Mailing List'
Subject: RE:  with parametric replacement in Struts 1.0.2


Change the line in ApplicationResources.properties to instead read:

   note.range=We only go between {0} and {1}.

That is, you should have braces ('{' and '}') around the ints instead of
parens.

chris

> -Original Message-
> From: Jennings, Christofer J. [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 9:55 AM
> To: 'Struts Users Mailing List'
> Subject:  with parametric replacement in Struts 1.0.2
> 
> 
> Does parametric replacement work in Struts 1.0.2?
> 
> This code isn't working
> 
> [ApplicationResources.properties]
> note.range=We only go between (0) and (1).
> 
> [MyConstants.java]
> public static final int FIRST = 10;
> public static final int LAST  = 12;
> 
> [myPage.jsp]
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ page import="myApp.Constants" %>
>arg0="<%= String.valueOf(Constants.FIRST) %>" 
>   arg1="<%= String.valueOf(Constants.LAST) %>" />
> 
> ... the result is "We only go between (0) and (1)."
> 
> Any clues?
> 
> Thanks,
> boz
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail: