Change the src of Image dynamically

2002-11-20 Thread Alireza Fattahi
Hi,

How can we change the src of the image dynamically by using  from
a bean?
I know that this tag accepts paramName and paramProperty, but the result
always have a "?" appended to the src.

Like:


Is it possible to change the src of the image dynamicly by using ?


Alireza.

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




html:form with sub application

2002-11-20 Thread gmail
Hello, 
I use multiple sub application modules with struts (1.1b2).
The Action  "addUser" is defined in "admin" struts config file :

 


And the "admin" config file is defined in web.xml :

action
org.apache.struts.action.ActionServlet

config
/WEB-INF/struts-config.xml


config/admin
/WEB-INF/struts-config-admin.xml


 ...

 ...


When I use this action in the "html:form" taglib :

I got the following exception :
"Cannot retrieve mapping for action /admin/addUser"

Any one got this problem too ?

Thanks 

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


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




Re: tag returns null (although attribute exists in Component context)

2002-11-20 Thread Cedric Dumoulin

 Maybe it is related to the bug with the "id" attribute. Try to add 
explicitly the id attribute to each of your tag (id="bar", id="foo", ...).
 The problem is linked to the reuse of the tags by your web container. 
What is your configuration ?

Cedric

Walk, Christopher wrote:

 

Has anyone experienced the  tag returning null for
an attribute that is explicitly defined in the tiles-defs.xml file?  Any
assistance provided would be much appreciated.

Example (foo and bar are each defined with values in the tiles-defs.xml):
==
It appears that the first  tag is able to read it's
attribute, but any subsequent  tags are not.



<%= foo %>
<%= bar %>

1. returns the value from the tiles-defs.xml file for foo
2. returns null



<%= foo %>
<%= bar %>

1. returns null
2. returns the value from the tiles-defs.xml file for bar


However, if I explictly obtain the values from the ComponentContext:
--
---

ComponentContext c =
(ComponentContext)pageContext.getAttribute(ComponentConstants.COMPONENT_CO
NTEXT, pageContext.REQUEST_SCOPE);
Iterator it = c.getAttributeNames();
while (it.hasNext())
{
 String attributeName = (String) it.next();
 out.print(attributeName);
 out.print((String)c.getAttribute(attributeName);
}

both (all) attribute/value pairs are available.  What gives?

I'm running Struts 1.1-Beta 2 under Resin 2.1.6 with JDK 1.3.1.

Regards, 
-Chris Walk
   


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


 



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




Re: html:form with sub application

2002-11-20 Thread Gemes Tibor
2002. november 20. 14:20 dátummal [EMAIL PROTECTED] ezt írtad:
>
> When I use this action in the "html:form" taglib :
> 
> I got the following exception :
> "Cannot retrieve mapping for action /admin/addUser"
>
> Any one got this problem too ?

This is not a problem. You have to put your jsp pages into the subdirectory 
with the same name as the module has. So put the above jsp into the /admin 
dir, and set your html:form the action="/addUser" attriubte. 

Hth,

Tib

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




Re: Dynamic Tiles xml definitions

2002-11-20 Thread Cedric Dumoulin

 Yes, it is possible. You can access the definition factory, and modify 
definitions yourself. This require a well understanding of the 
structure, because a lot of object are shared, especially when their is 
some inheritance.
 Also, you can write your own definition factory implementing the 
required interface. Your factory can provide needed methods to modify 
definitions at runtime.

 Cedric

Mark Ayad wrote:

I've just started to use Tiles and Struts together.

I have a question regarding the xml definitions loaded into memory.

My question is would it be possible to parse / modify the definition file at
runtime To say switch the template ?

Mark


 



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




Re: Re: html:form with sub application

2002-11-20 Thread gmail
Thansk for your help !

Actually, the jsp file is under the top level of my application directory : 
MyApplication/
   +myPage.jsp (with call /admin/addUser action)
   +index.jsp
   +admin/
   |  +bar.jsp
   |  +foo.jsp
   |
   +WEB-INF/
  +web.xml
  +struts-config.xml
  +struts-config-admin.xml


A JSP can not access an action in a sub module ?


Message d'origine
>De: Gemes Tibor <[EMAIL PROTECTED]>
>A: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sujet: Re: html:form with sub application
>Date: Wed, 20 Nov 2002 10:29:09 +0100
>
>2002. november 20. 14:20 dátummal [EMAIL PROTECTED] ezt írtad:
>>
>> When I use this action in the "html:form" taglib :
>> 
>> I got the following exception :
>> "Cannot retrieve mapping for action /admin/addUser"
>>
>> Any one got this problem too ?
>
>This is not a problem. You have to put your jsp pages into the subdirectory 
>with the same name as the module has. So put the above jsp into the /admin 
>dir, and set your html:form the action="/addUser" attriubte. 
>
>Hth,
>
>Tib
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


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




Re: Merging Tiles body into tile definition

2002-11-20 Thread Cedric Dumoulin


Brian Topping wrote:


Hue, Dirk,

Thanks for your input.  I tried with 
and found that to work just great.

Maybe I shouldn't care, but Dirk, do you know a subtle advantage to using
type="string" instead of direct="true"?


 Both are the same.
 type="string" is the original tiles syntax, while direct="true" is the 
syntax to be compatible with the template library.

  Cedric


I'm quite happy, I'm just getting started on this app, but I can go back
through on the limited number of files that I have and merge the body file
for each presentation item, keeping the source tree more manageable for the
future.

have a great day,

-b

 

-Ori


 



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




Re: Can

2002-11-20 Thread Cedric Dumoulin

 You normally can't do a redirect once the response is committed. If 
you use Tiles, the response is usually committed when you insert a Tile ...
 So, you should avoid using redirect with Tiles, or any other include 
mechanism.

 Cedric

Zsolt Koppany wrote:

Hi,

I have the impression that  commands are ignored when they 
are in JSP files included over Tiles. Is that true?

Zsolt

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


 



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




RE: Can

2002-11-20 Thread ROSSEL Olivier
>   You normally can't do a redirect once the response is committed. If 
> you use Tiles, the response is usually committed when you 
> insert a Tile ...
>   So, you should avoid using redirect with Tiles, or any 
> other include mechanism.

My vision:
redirection should be managed through an action.
And all include should be managed via tiles.


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




Where can i get struts-el ???

2002-11-20 Thread Andreas Langmann
Hello,

i'm searching for struts-el

but can't find the struts-html-el.tld

Are they included in struts?

Thanks,

Andreas

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




Re: Where can i get struts-el ???

2002-11-20 Thread Gemes Tibor
2002. november 20. 11:48 dátummal Andreas Langmann ezt írtad:
> Hello,
>
> i'm searching for struts-el
>
> but can't find the struts-html-el.tld
>
> Are they included in struts?

in the nightly

Hth

Tib

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




Validator -- range validation not firing...

2002-11-20 Thread Marcus Edwards
Hi All,

I've been knocking my head on the problem for the past day and need
help. Nothing in the archives of FAQ's since most people seem to
be able to get the validations to work fine.

Problem: I cannot get the 'range' validator action to function. I can
get 'required' to function as expected so I know that the validation setup
is (mostly) correct. Strangely, the example struts-validation.war functions
correctly.

I see from the log that the validation rules are correctly being loaded and
also that the Validator Action for required has been registered. I've
included the relevant snips from the code below.

Interestingly, the
'required' validator action in the sequence "required,integer,range" does
fire, but neither of the others do when given obviously wrong input such as
'string' and '57'.

I am using Struts modules in this scenario but don't think that it is
relevant
since the 'required' validator actions are functioning correctly.

I am using Struts 1.1b2 under Tomcat 4.1.12, JDK1.4 and Windows 2000.

Any help deeply appreciated
-- Marcus

---8<--- struts-config-apply.xml

...



...


   


---8<--- ApplicationResources_apply.properties
errors.required={0} is required.
errors.integer={0} must be an integer.
errors.range={0} is not in the range {1} through {2}.
prompt.apply.dateOfBirthDay=Date of birth
...

---8<--- validation_apply.xml

...





min
1


max
31


...
---8<--- applicationform.jsp
...

...
---8<---



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




Re: Struts & Tiles ( was: struts-tiles.war doesn't work (Nov 18thni ghtly) )

2002-11-20 Thread Cedric Dumoulin

 The tiles-blank-* files are shipped with the tiles distribution from 
the original tiles site ;-)
www.lifl.fr/~dumoulin/tiles
 Both distributions are the same, except some extra war files.

Cedric

Wendy Smoak wrote:

Cedric wrote:
 

Tiles is now in the main trunck of Struts. The tiles contrib folder is 
not maintained, and should normally not be present.
Use tiles-documentation.war instead.
   


Thank you!  I'm just trying to get started with tiles, and I grabbed
everything I could find with 'tiles' in the name. :)

On the main page of the tiles-documentation webapp, it refers to:
 Tiles-blank Applications 
 Different tiles-blanc.war files are now provided to help starting new
project using Tiles. 
 tiles-blank.war - Tiles without Struts 
 tiles-blank-struts1.1.war - Tiles with Struts1.1 
 tiles-blank-struts1.0.war - Tiles with latest stable Struts1.0.x 

Unfortunately I can't find these .war files anywhere.  (I've got the both
the source and binary distributions of the nightly build dated Nov 18th.)
Are they possibly zipped inside another file?

Thanks,

 



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




RE: Where can i get struts-el ???

2002-11-20 Thread Jon.Ridgway
Hi Andreas,

I think you will find struts-el in more recent nightly builds. You can
download these from the Struts web site.

Jon Ridgway


-Original Message-
From: Andreas Langmann [mailto:[EMAIL PROTECTED]] 
Sent: 20 November 2002 10:48
To: Struts Users Mailing List
Subject: Where can i get struts-el ???

Hello,

i'm searching for struts-el

but can't find the struts-html-el.tld

Are they included in struts?

Thanks,

Andreas

--
To unsubscribe, e-mail:

For additional commands, e-mail:



The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




future of struts

2002-11-20 Thread Mouratidis, Georg

the following article i found at TheServerSide.com

>The tag libraries bundled with Struts provide access to simple and indexed 
>properties; the
>org.apache.struts.taglib.nested package contains tags that access simple and indexed 
>properties in a
>nested combination. For a complete list of all tags available with Struts, refer to 
>the
>http://jakarta.apache.org/struts/userGuide/index.html; more resources on Struts are 
>available at
>http://jakarta.apache.org/struts/resources/index.html. The future direction of Struts 
>is to transition
>over to JavaServer Pages Standard Tag Library (JSTL) and JavaServer Faces tags.

But what does the last sentence mean. do i have to throw my HTML-pages away because 
the STRUTS tags
are not longer needed. Or is there a misunderstanding?

mit freundlichen Grüßen 

Georg XL. Mouratidis 
Web Application Developer 

Heiler|Software AG 
Mittlerer Pfad 9 
D-70499 Stuttgart 

Tel: 0711-139 84-265
Fax: 0711-866 63 01 
Email: [EMAIL PROTECTED] 

Connecting Buyer and Supplier
http://www.heiler.com 

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




RE: Change the src of Image dynamically

2002-11-20 Thread Jon.Ridgway
Hi Alireza,

You should look at the struts-el tags or the JSTL. You could then store the
src as a bean property and reference like mailto:[EMAIL PROTECTED]] 
Sent: 20 November 2002 09:20
To: 'Struts Users Mailing List'
Subject: Change the src of Image dynamically

Hi,

How can we change the src of the image dynamically by using  from
a bean?
I know that this tag accepts paramName and paramProperty, but the result
always have a "?" appended to the src.

Like:


Is it possible to change the src of the image dynamicly by using ?


Alireza.

--
To unsubscribe, e-mail:

For additional commands, e-mail:



The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




Re: About RowSet

2002-11-20 Thread V. Cekvenich
http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html as 
per google, or you can read the JavaDoc on rowset in Java Developers 
Connection on JavaSoft.com.

You should either use RowSet or Resultset, not sure of why mix.
RowSet extends ResultSet, major difference that former is a bean, that 
is you can say new RowSet(), thus making GC a bit easier for new 
developers who do not do the nested finally right for the ResultSet.

Since you are posting on Struts, I assume you would use existing tags, 
as opposed to writing tags.

There is a source code approach with "zero" copy on basicPortal.sf.net.
A DAO has a ROWSET. (or CommonsSQL - 2 ways)
A Bean has a DAO.
DAO is also an iterator, and Bean is also a Collection(advanced topic: 
even as your treat this bean for testing with bean properties, Struts 
sees it as a collection (iterator adaptor w getRow), so it can do multi 
row updates, for master detail processing).
You unit test the Bean, so it can be used by Console, Model1 use bean, etc.

The benefit of this design is that when a setter is fired by Struts, it 
is on the disconnected RowSet, thus Zero copy.
There are no VO, DTO, etc. objects that are GCed later, thus you can 
support more concurrent users per server.

Not sure what loops or populations you are talking about, but there is a 
rowset DAO w/ Struts on sf.net

Above is for any bean.

For options collection, you can create an collection of beans, with 2 
properties. Again, do not use Resultset for beans, and RowSet for 
options, it makes no sense.

hth,
.V

ot: I will soon have a DAO that also uses Commons SQL so you can chose 
RowSet or CommonSQL (else you write your own DAO, to say JDO)

Savantraj, Chennamakal Subramanian wrote:
Hi,
Could anyone share your experience in using RowSet to Transfer data from
ResultSet?
What is the significance difference using a rowset instead of our custom
generated
collection object or something like TableModel?
What would be a better option for the following situation.

Objective
	1. Create a Custom Tag which will generate a Table HTML Display
based on a Result Set.
Approach 1
	1. Run the SQL
	2. Populate Collection (RowSet/TableModel/Any other) from ResultSet
	3. Pass the collection to Custom Tag
	4. Custom Tag will generate  based on the
collection.

In the above scenario will I save any processing (Looping) if I use RowSet?
If I am using my own
collection I need to run Loop 1 to create the collection and Loop 2 inside
Custom Tag to generate
HTML. RowSet looks like saving the first loop. But how it is internally
doing? Is it the same way?

Pls provide your advice.

Thanks in advance

Best Regards
Savant
	

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway. 
---




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




RE: About RowSet

2002-11-20 Thread edgar
http://jakarta.apache.org/taglibs/doc/dbtags-doc/intro.html

I think this is what you are looking for.

-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, November 19, 2002 10:24 PM
To: 'Struts Users Mailing List'
Subject: About RowSet


Hi,
Could anyone share your experience in using RowSet to Transfer data from
ResultSet? What is the significance difference using a rowset instead of
our custom generated collection object or something like TableModel?
What would be a better option for the following situation.

Objective
1. Create a Custom Tag which will generate a Table HTML Display
based on a Result Set. Approach 1
1. Run the SQL
2. Populate Collection (RowSet/TableModel/Any other) from
ResultSet
3. Pass the collection to Custom Tag
4. Custom Tag will generate  based on
the collection.

In the above scenario will I save any processing (Looping) if I use
RowSet? If I am using my own collection I need to run Loop 1 to create
the collection and Loop 2 inside Custom Tag to generate HTML. RowSet
looks like saving the first loop. But how it is internally doing? Is it
the same way?

Pls provide your advice.

Thanks in advance

Best Regards
Savant


---
This email is confidential and intended only for the use of the
individual or entity named above and may contain information that is
privileged. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this email is strictly
prohibited. If you have received this email in error, please notify us
immediately by return email or telephone and destroy the original
message. Thank you. - This mail is sent via Sony Asia Pacific Mail
Gateway. 
---


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Chuck Cavaness Book ..where is it now?

2002-11-20 Thread Shalu Goel



Hello,
few days back i have had the opportunity to know 
that Chuck's book is lying at theserverside.com (for review purpose)...so i 
downloaded first two chapters and read them ...today agian when i went to 
visit the same site..i couldnt locate the resource...i had saved the 
url in my favorites and now instead of listing Chuck cavaness 
book chapters it takes me to a review chapter of some JEDO 
book.
pl. help me locate the resource...
i am not able to find struts boks on the book 
shops too...so greatly dependent on the theserverside 
resource
pl. let me know if anybody has the 
idea
thanks in advance
Shalu  
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Chuck Cavaness Book ..where is it now?

2002-11-20 Thread Michael.Kessler
Title: Message



You 
can buy a struts ebook online at: http://www.manning.com/husted/index.html

  
  -Original Message-From: Shalu Goel 
  [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 
  2002 1:19 PMTo: Struts Users Mailing ListSubject: Chuck 
  Cavaness Book ..where is it now?
  Hello,
  few days back i have had the opportunity to know 
  that Chuck's book is lying at theserverside.com (for review purpose)...so i 
  downloaded first two chapters and read them ...today agian when i went to 
  visit the same site..i couldnt locate the resource...i had saved the 
  url in my favorites and now instead of listing Chuck cavaness 
  book chapters it takes me to a review chapter of some JEDO 
  book.
  pl. help me locate the resource...
  i am not able to find struts boks on 
  the book shops too...so greatly dependent on the theserverside 
  resource
  pl. let me know if anybody has the 
  idea
  thanks in advance
  Shalu  

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


Re: About RowSet

2002-11-20 Thread V. Cekvenich
Which is not very Model2.
Anytime you do something is JSP or EL. you are writing logic in the 
View, which is not the layered approach, thus less efficient.
Write less in View! Unless you are off loading processing to Browser via 
.js functions (javascript).

Much better to prepare everything ahead of the JSP/View.

.V

edgar wrote:
http://jakarta.apache.org/taglibs/doc/dbtags-doc/intro.html

I think this is what you are looking for.

-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, November 19, 2002 10:24 PM
To: 'Struts Users Mailing List'
Subject: About RowSet


Hi,
Could anyone share your experience in using RowSet to Transfer data from
ResultSet? What is the significance difference using a rowset instead of
our custom generated collection object or something like TableModel?
What would be a better option for the following situation.

Objective
	1. Create a Custom Tag which will generate a Table HTML Display
based on a Result Set. Approach 1
	1. Run the SQL
	2. Populate Collection (RowSet/TableModel/Any other) from
ResultSet
	3. Pass the collection to Custom Tag
	4. Custom Tag will generate  based on
the collection.

In the above scenario will I save any processing (Looping) if I use
RowSet? If I am using my own collection I need to run Loop 1 to create
the collection and Loop 2 inside Custom Tag to generate HTML. RowSet
looks like saving the first loop. But how it is internally doing? Is it
the same way?

Pls provide your advice.

Thanks in advance

Best Regards
Savant
	

---
This email is confidential and intended only for the use of the
individual or entity named above and may contain information that is
privileged. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this email is strictly
prohibited. If you have received this email in error, please notify us
immediately by return email or telephone and destroy the original
message. Thank you. - This mail is sent via Sony Asia Pacific Mail
Gateway. 
---


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




Error creating form bean in Sun One

2002-11-20 Thread Umberto Dissenha Junior

> Hi,
> 
> I had some problems with Struts running on Sun One (formerly iPlanet). I
> succesfully deployed to the Reference Implementation, jBoss and OC4J, but
> for some reason I can´t run it well on Sun One Application Server. An
> exception is throw.
> 
> Any help would be welcome.
> 
> Thanks...
> 
> Umberto
> 
> **
> 
> 
>  SingleSignOn[server1]: Process request for
> '/fi-plus/channelTypeAction.do'
> [19/Nov/2002:15:28:38] FINE ( 1592): SingleSignOn[server1]:  Checking for
> SSO cookie
> [19/Nov/2002:15:28:38] FINE ( 1592): SingleSignOn[server1]:  SSO cookie is
> not present
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout: ERROR: Error
> creating form bean of class fiplus.fiplus.administration.ChannelTypeForm
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:
> java.lang.NoClassDefFoundError
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcc
> essorImpl.java:39)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstr
> uctorAccessorImpl.java:27)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> java.lang.Class.newInstance0(Class.java:296)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> java.lang.Class.newInstance(Class.java:249)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:
> 216)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:610
> )
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.struts.action.RequestProcessor.processActionForm(RequestProcess
> or.java:349)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:24
> 3)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.catalina.core.StandardWrapperValve.invokeServletService(Standar
> dWrapperValve.java:720)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperVa
> lve.java:118)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.j
> ava:278)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> java.security.AccessController.doPrivileged(Native Method)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> java:274)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505
> )
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> java:212)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505
> )
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:2
> 03)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505
> )
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.
> java:157)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout: ERROR: No action
> instance for path /channelTypeAction could be created
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:
> java.lang.NoClassDefFoundError: br.cits.jcits.action.BaseAction
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> java.lang.Class.getDeclaredConstructors0(Native Method)
> [19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
> j

RE: About RowSet

2002-11-20 Thread Savantraj, Chennamakal Subramanian
Hi,

Thanks for your reply. I think I failed to share my objective clearly with
you.
What we are planning to do is
1. Create a DB Table with two columns
{ID  VARCHAR2(20)
 SQL_STMT VARCHAR2(1000)}
2. Register the SQL statement with an ID in DB
For Example for a Customer Drop Down generation I will have
a record like
ID- CUSTDD001
SQL_STMT - SELECT Cust_Cd,Cust_Nm from Customer 
3. Write a Custom Tag Which will take this ID as an Argument
4. Custom Tag will retrieve the SQL_STMT based on ID ,then execute a
loop on the resultset 
and return an HTML output like 

CustNm1
CustNm1
CustNm1


This looks a deviation from Model 2 Approach.

So alternatively I was thinking to populate some Collection using
some standard Method defined and then pass
this collection to Custom Tag. This is definitely a good approach in
Architecture sense.But if I consider the performance factor this looks a bit
expensive. Reason is simple, I need to run the SQL and execute a loop on
ResultSet to create the Collection. Then in the custom Tag I need to run
another loop on Collection to generate HTML.This effect can be really
considerable in case of pages with many DropDowns.
Returning resultset is another option which will leave me Statement
unclosed. I heard somwhere that ResultSet can be assigned to RowSet without
any loops. Also I can close the Statement and return the connection.
Hope this will explain my situation better.Pls advise.

Thanks & Regards
Savant





-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 7:36 PM
To: [EMAIL PROTECTED]
Subject: Re: About RowSet


http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html as 
per google, or you can read the JavaDoc on rowset in Java Developers 
Connection on JavaSoft.com.

You should either use RowSet or Resultset, not sure of why mix.
RowSet extends ResultSet, major difference that former is a bean, that 
is you can say new RowSet(), thus making GC a bit easier for new 
developers who do not do the nested finally right for the ResultSet.

Since you are posting on Struts, I assume you would use existing tags, 
as opposed to writing tags.

There is a source code approach with "zero" copy on basicPortal.sf.net.
A DAO has a ROWSET. (or CommonsSQL - 2 ways)
A Bean has a DAO.
DAO is also an iterator, and Bean is also a Collection(advanced topic: 
even as your treat this bean for testing with bean properties, Struts 
sees it as a collection (iterator adaptor w getRow), so it can do multi 
row updates, for master detail processing).
You unit test the Bean, so it can be used by Console, Model1 use bean, etc.

The benefit of this design is that when a setter is fired by Struts, it 
is on the disconnected RowSet, thus Zero copy.
There are no VO, DTO, etc. objects that are GCed later, thus you can 
support more concurrent users per server.

Not sure what loops or populations you are talking about, but there is a 
rowset DAO w/ Struts on sf.net

Above is for any bean.

For options collection, you can create an collection of beans, with 2 
properties. Again, do not use Resultset for beans, and RowSet for 
options, it makes no sense.

hth,
.V

ot: I will soon have a DAO that also uses Commons SQL so you can chose 
RowSet or CommonSQL (else you write your own DAO, to say JDO)

Savantraj, Chennamakal Subramanian wrote:
> Hi,
> Could anyone share your experience in using RowSet to Transfer data from
> ResultSet?
> What is the significance difference using a rowset instead of our custom
> generated
> collection object or something like TableModel?
> What would be a better option for the following situation.
> 
> Objective
>   1. Create a Custom Tag which will generate a Table HTML Display
> based on a Result Set.
> Approach 1
>   1. Run the SQL
>   2. Populate Collection (RowSet/TableModel/Any other) from ResultSet
>   3. Pass the collection to Custom Tag
>   4. Custom Tag will generate  based on the
> collection.
> 
> In the above scenario will I save any processing (Looping) if I use
RowSet?
> If I am using my own
> collection I need to run Loop 1 to create the collection and Loop 2 inside
> Custom Tag to generate
> HTML. RowSet looks like saving the first loop. But how it is internally
> doing? Is it the same way?
> 
> Pls provide your advice.
> 
> Thanks in advance
> 
> Best Regards
> Savant
>   
> 
> ---
> This email is confidential and intended only for the use of the individual
> or entity named above and may contain information that is privileged. If
you
> are not the intended recipient, you are notified that any dissemination,
> distribution or copying of this email is strictly p

Re: html:form with sub application

2002-11-20 Thread Billy Bacon
It looks like your action path in your  doesn't match your path
in your action mapping. You have path="/addUser" within your 
mapping and your  action="/admin/addUser". Have you tried
changing your action-mapping to 

Hope that helps.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 3:20 AM
Subject: html:form with sub application


Hello,
I use multiple sub application modules with struts (1.1b2).
The Action  "addUser" is defined in "admin" struts config file :

 


And the "admin" config file is defined in web.xml :

action

org.apache.struts.action.ActionServlet

config
/WEB-INF/struts-config.xml


config/admin
/WEB-INF/struts-config-admin.xml


 ...

 ...


When I use this action in the "html:form" taglib :

I got the following exception :
"Cannot retrieve mapping for action /admin/addUser"

Any one got this problem too ?

Thanks

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min)
Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




Re: About RowSet

2002-11-20 Thread V. Cekvenich
Perhaps you wanted to create a SQL Super type. This is a commons sql 
design, it goes like this.

Thre are many types, codes, and decodes in SQL.
Newbies solve it like this.
Table States: StateCode, StateName;
Table Status: StatusCode, Status
Table NextStep: Step, Name
Table Type: Type, Name
etc. etc.

Thus creating many code tables and poulting the model and not be able to 
write OO.

The solution is a super type table that decodes all types like this:
Type, Code, Name
Ex:
State, NY, New York
Status, Closed, Closed

etc.

So one table to stroe all the types.

Then write a simple bean 2, properties, name/value.
Then write a helper bean that returns a collection of properties above, 
based on type.
So find("states");
or find("status");

I should upload this example up to bP.
My invoice is on the way.
hth,
V.
917 345 1445
[EMAIL PROTECTED]

Savantraj, Chennamakal Subramanian wrote:
Hi,

Thanks for your reply. I think I failed to share my objective clearly with
you.
What we are planning to do is
	1. Create a DB Table with two columns
		{ID  VARCHAR2(20)
		 SQL_STMT VARCHAR2(1000)}
	2. Register the SQL statement with an ID in DB
		For Example for a Customer Drop Down generation I will have
a record like
		ID- CUSTDD001
		SQL_STMT - SELECT Cust_Cd,Cust_Nm from Customer 
	3. Write a Custom Tag Which will take this ID as an Argument
	4. Custom Tag will retrieve the SQL_STMT based on ID ,then execute a
loop on the resultset 
	and return an HTML output like 
	
			CustNm1
			CustNm1
			CustNm1
	
	
	This looks a deviation from Model 2 Approach.

	So alternatively I was thinking to populate some Collection using
some standard Method defined and then pass
this collection to Custom Tag. This is definitely a good approach in
Architecture sense.But if I consider the performance factor this looks a bit
expensive. Reason is simple, I need to run the SQL and execute a loop on
ResultSet to create the Collection. Then in the custom Tag I need to run
another loop on Collection to generate HTML.This effect can be really
considerable in case of pages with many DropDowns.
	Returning resultset is another option which will leave me Statement
unclosed. I heard somwhere that ResultSet can be assigned to RowSet without
any loops. Also I can close the Statement and return the connection.
Hope this will explain my situation better.Pls advise.

Thanks & Regards
Savant
	




-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 7:36 PM
To: [EMAIL PROTECTED]
Subject: Re: About RowSet


http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html as 
per google, or you can read the JavaDoc on rowset in Java Developers 
Connection on JavaSoft.com.

You should either use RowSet or Resultset, not sure of why mix.
RowSet extends ResultSet, major difference that former is a bean, that 
is you can say new RowSet(), thus making GC a bit easier for new 
developers who do not do the nested finally right for the ResultSet.

Since you are posting on Struts, I assume you would use existing tags, 
as opposed to writing tags.

There is a source code approach with "zero" copy on basicPortal.sf.net.
A DAO has a ROWSET. (or CommonsSQL - 2 ways)
A Bean has a DAO.
DAO is also an iterator, and Bean is also a Collection(advanced topic: 
even as your treat this bean for testing with bean properties, Struts 
sees it as a collection (iterator adaptor w getRow), so it can do multi 
row updates, for master detail processing).
You unit test the Bean, so it can be used by Console, Model1 use bean, etc.

The benefit of this design is that when a setter is fired by Struts, it 
is on the disconnected RowSet, thus Zero copy.
There are no VO, DTO, etc. objects that are GCed later, thus you can 
support more concurrent users per server.

Not sure what loops or populations you are talking about, but there is a 
rowset DAO w/ Struts on sf.net

Above is for any bean.

For options collection, you can create an collection of beans, with 2 
properties. Again, do not use Resultset for beans, and RowSet for 
options, it makes no sense.

hth,
.V

ot: I will soon have a DAO that also uses Commons SQL so you can chose 
RowSet or CommonSQL (else you write your own DAO, to say JDO)

Savantraj, Chennamakal Subramanian wrote:

Hi,
Could anyone share your experience in using RowSet to Transfer data from
ResultSet?
What is the significance difference using a rowset instead of our custom
generated
collection object or something like TableModel?
What would be a better option for the following situation.

Objective
	1. Create a Custom Tag which will generate a Table HTML Display
based on a Result Set.
Approach 1
	1. Run the SQL
	2. Populate Collection (RowSet/TableModel/Any other) from ResultSet
	3. Pass the collection to Custom Tag
	4. Custom Tag will generate  based on the
collection.

In the above scenario will I save any processing (Looping) if I use


RowSet?


If I am using my own
collection I need to run Loop 1 to 

Next meeting of njMVCOpenSource is this Saturday Nov. 23

2002-11-20 Thread John Menke
We have many new things to cover.

Basicportal has integrated the new DAO layer and we now have a
working example showing insert, update, select and multi-table select
and update processes.

Demo will be on bp and how to customize bp.

For information on the meeting see the Yahoo group setup for njMVCOpenSource

http://groups.yahoo.com/group/njmvcopensource/

You can find directions to the meeting there.

New members welcome!


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




Validator - not validating when form is submitted from remote machine

2002-11-20 Thread Gunther De Bruyckere

Hello.

For our latest project, I have been using the validator functionality in Struts 1.1. I 
used the checks for "required" and "double" and plugged in a couple of my own 
validators. I got some strange behaviour using Struts 1.1 beta 2, but that went away 
after I replaced the included validator package with a newer version (1.0 rc3). I 
thought I got everything to work until I tested the app from a PC other than my own.

Instead of getting back my form with the appropriate error messages, I got a stack 
trace. Apparently, the request had gone straight through to my Action class without 
any validation taking place (causing a NullPointerException to be thrown at some 
point). I know that the Validator object is called, but none of the validator methods 
are. The Validator object also doesn't throw any exceptions. The call exits normally, 
but the ActionErrors collection is empty.

It always works when I run both server and browser on the same machine. It also works 
from any PC on my home network. But when I try it at work... no validation! And 
unfortunately, it also malfunctions on our customer's intranet. They even report that 
it works on one client PC, while it doesn't on another!?

I always thought that client configuration doesn't matter when using a thin HTML 
client approach. Am I wrong in assuming this?

I read in the mailing list archives that using a validator package different from the 
one included in the original Struts build can yield unpredictable results, so I also 
tried a nightly build of Struts. Same problem.

Does anybody have any ideas as to what could be the problem?

We use:

Windows NT and 2000
JDK 1.3.1_02
Tomcat 4.0.1 and 4.0.4
Internet Explorer 5 and Netscape 4.77

Thank you.




-
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site


Re: About RowSet

2002-11-20 Thread V. Cekvenich
I forgot to add... this way you can use the options collection tag. 
Writing your own tags is something you want to reduce.
.V

V. Cekvenich wrote:
Which is not very Model2.
Anytime you do something is JSP or EL. you are writing logic in the 
View, which is not the layered approach, thus less efficient.
Write less in View! Unless you are off loading processing to Browser via 
.js functions (javascript).

Much better to prepare everything ahead of the JSP/View.

.V

edgar wrote:

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

I think this is what you are looking for.

-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, November 19, 2002 10:24 PM
To: 'Struts Users Mailing List'
Subject: About RowSet


Hi,
Could anyone share your experience in using RowSet to Transfer data from
ResultSet? What is the significance difference using a rowset instead of
our custom generated collection object or something like TableModel?
What would be a better option for the following situation.

Objective
1. Create a Custom Tag which will generate a Table HTML Display
based on a Result Set. Approach 1
1. Run the SQL
2. Populate Collection (RowSet/TableModel/Any other) from
ResultSet
3. Pass the collection to Custom Tag
4. Custom Tag will generate  based on
the collection.

In the above scenario will I save any processing (Looping) if I use
RowSet? If I am using my own collection I need to run Loop 1 to create
the collection and Loop 2 inside Custom Tag to generate HTML. RowSet
looks like saving the first loop. But how it is internally doing? Is it
the same way?

Pls provide your advice.

Thanks in advance

Best Regards
Savant


---
This email is confidential and intended only for the use of the
individual or entity named above and may contain information that is
privileged. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this email is strictly
prohibited. If you have received this email in error, please notify us
immediately by return email or telephone and destroy the original
message. Thank you. - This mail is sent via Sony Asia Pacific Mail
Gateway. 
---


--
To unsubscribe, e-mail:

For additional commands, e-mail:







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




Re: Change the src of Image dynamically

2002-11-20 Thread Marcus Biel
Use logic present or logic equal tags.

e.g.:



logic: notEqual name="yourBean" property="yourImageProperty"
value="image1"/>




marcus

[EMAIL PROTECTED] schrieb:
> 
> Hi,
> 
> How can we change the src of the image dynamically by using  from
> a bean?
> I know that this tag accepts paramName and paramProperty, but the result
> always have a "?" appended to the src.
> 
> Like:
>  paramScope="request" paramId="" />
> 
> Is it possible to change the src of the image dynamicly by using ?
> 
> Alireza.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Re: MySQL connection pooling problems!! (please help)

2002-11-20 Thread andres garcia
Hi!!

Actually, the problem was very silly and i have solved (i think!!)

The struts connection pooling gives a ton of problems in development 
enviorement becuase I need to restart the tomcat when i make any changues to 
the classes. If I use reload from the manager, all the connections in the 
pool are lost (with out being closed), so each time i used reload, i lost a 
connection and after a while all the connection were lost.

Other question: What connection pooling (free) can i use that be very 
reliable (with at least 100 simultaneus connections ) but easy to configure? 
(just a properties or xml file ) The applicattion that i'm developing must 
be very easy to configure and install(modify some lines of the configuation 
file, like name, user, database) and that's all (no JDNI, not register in 
server.xml) Poolman, Ibatis, or what?

_
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.microsoft.com/es


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



RE: Enabling server-side (only) validation with Struts 1.1

2002-11-20 Thread Richards, Devin N (Devin)
Some more information on your config files and action code would be helpful.

Make sure that in your  definition in the struts-config.xml you have 
validate="true" also make sure that your Form bean extends ValidatorForm and that in 
your validate() method you call super.validate() to process all validations that are 
in your validation.xml file.

HTH

-Devin



-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 12:16 AM
To: [EMAIL PROTECTED]
Subject: Enabling server-side (only) validation with Struts 1.1 


I must not be understanding how to set this up right.

I can configure validator fine so that I get client-side (JavaScript)
validation. Required fields and email validation work just fine.

But I want to turn off client-side and just use server-side (at least for
now).

To do this all I did was remove the 'onsubmit="return
validateContactForm(this);"' from my form statement. I left in the following
two tags at the bottom of my JSP form:



Now, when I submit the form the URL address bar changes to
"http://rth.swamp.com/contacts/saveContact.do"; and I get a blank page with
"Done" in the status bar at the bottom. I've left off a required field so I
expect to have the JSP page re-displayed.

What should I be doing differently?


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




Tapestry as View.

2002-11-20 Thread C.K
Hello,

I am thinking to use tapestry as the "View" of struts ? any comments..the
reason is just make the best of both world, properly merge both of them ?

C.K



what book/tutorial helped the most

2002-11-20 Thread cruegger
I'm trying to learn Struts quickly and 
am curious what book/tutorial people found 
most helpful? 
Thanks 


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




RE: what book/tutorial helped the most

2002-11-20 Thread Zimmerman, Eric
I too am just learning struts. Oreilly just released a book on struts 1.1.
it just shipped to me today, but it should be perfect.


Eric Zimmerman
CON-WAY Logistics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 8:46 AM
To: [EMAIL PROTECTED]
Subject: what book/tutorial helped the most

I'm trying to learn Struts quickly and 
am curious what book/tutorial people found 
most helpful? 
Thanks 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: what book/tutorial helped the most

2002-11-20 Thread ROSSEL Olivier
I have been using the O'reilly preview of this book.
Very nice. But a bit short on certain subjects.
Several articles around the web were very useful.

So the O'reilly book + Google were perfect to me
(I began one week ago, I am still a newbie, but happy newbie :-)

I hope the book of Mr Husted will focus more on 
design patterns for Struts development. Cause it seems
(to me) the most important topic.

> -Message d'origine-
> De: Zimmerman, Eric [mailto:[EMAIL PROTECTED]]
> Date: mercredi 20 novembre 2002 15:52
> À: 'Struts Users Mailing List'
> Objet: RE: what book/tutorial helped the most
> 
> 
> I too am just learning struts. Oreilly just released a book 
> on struts 1.1.
> it just shipped to me today, but it should be perfect.
> 
> 
> Eric Zimmerman
> CON-WAY Logistics
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, November 20, 2002 8:46 AM
> To: [EMAIL PROTECTED]
> Subject: what book/tutorial helped the most
> 
> I'm trying to learn Struts quickly and 
> am curious what book/tutorial people found 
> most helpful? 
> Thanks 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 
> This mail has originated outside your organization,
> either from an external partner or the Global Internet. 
> Keep this in mind if you answer this message.
> 

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




Re: MySQL connection pooling problems!! (please help)

2002-11-20 Thread Mike Way
Take care, it may not be an issue with your pool ! I have a similar 
environment and the Struts pool appears to correctly re-connect when tomcat 
restarts my application after a class change. (It should as the entire 
context is re-initialised!)

Some things that seem to help:

1) Close all result sets and statements after use.
2) Be really sure that connection.close() is called.

I suggest you close all open result sets, statements and connections in 
your finally{} block

Other things that may help with MySQL:

Use a ping query: something like : dataSource.setPingQuery("SELECT * FROM 
nextid WHERE tablename='company'");
Which effectively checks the connection is still alive before you run your 
real query. BUT, be warned that this runs prior to every query, so their 
are performance issues.
Make sure that MySql is not closing the connection on you due to 
inactivity. Sorry, but you'll need to look that one up for yourself.

Good luck

Mike


At 09:27 20/11/2002 -0500, you wrote:
Hi!!

Actually, the problem was very silly and i have solved (i think!!)

The struts connection pooling gives a ton of problems in development 
enviorement becuase I need to restart the tomcat when i make any changues 
to the classes. If I use reload from the manager, all the connections in 
the pool are lost (with out being closed), so each time i used reload, i 
lost a connection and after a while all the connection were lost.


Mike Way,
Senior Consultant, Shared Skills Ltd
+44 (0)1752 491088, mobile +44 (0) 7941 225581
email: [EMAIL PROTECTED] web: www.sharedskills.com


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




Re: future of struts

2002-11-20 Thread David Graham
The Struts html tags will continue to be a part of Struts even after JSF 
becomes more popular.  However, you should use standard technologies 
whenever possible so the Struts team is advocating using JSF instead of the 
html tags in the future.  You will not have to throw any existing code away.

David






From: "Mouratidis, Georg" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: future of struts
Date: Wed, 20 Nov 2002 12:23:24 +0100


the following article i found at TheServerSide.com

>The tag libraries bundled with Struts provide access to simple and 
indexed properties; the
>org.apache.struts.taglib.nested package contains tags that access simple 
and indexed properties in a
>nested combination. For a complete list of all tags available with 
Struts, refer to the
>http://jakarta.apache.org/struts/userGuide/index.html; more resources on 
Struts are available at
>http://jakarta.apache.org/struts/resources/index.html. The future 
direction of Struts is to transition
>over to JavaServer Pages Standard Tag Library (JSTL) and JavaServer Faces 
tags.

But what does the last sentence mean. do i have to throw my HTML-pages away 
because the STRUTS tags
are not longer needed. Or is there a misunderstanding?

mit freundlichen Grüßen

Georg XL. Mouratidis
Web Application Developer

Heiler|Software AG
Mittlerer Pfad 9
D-70499 Stuttgart

Tel: 0711-139 84-265
Fax: 0711-866 63 01
Email: [EMAIL PROTECTED]

Connecting Buyer and Supplier
http://www.heiler.com

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



RE: MySQL connection pooling problems!! (please help)

2002-11-20 Thread edgar
I recommend caucho resin for development with connection pooling.  Since
the pool in built into the container it works beautifully in
development.  If you are going to sell your product there are license
fees however.

Edgar

-Original Message-
From: andres garcia [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 9:28 AM
To: '[EMAIL PROTECTED]'
Subject: Re: MySQL connection pooling problems!! (please help)


Hi!!

Actually, the problem was very silly and i have solved (i think!!)

The struts connection pooling gives a ton of problems in development 
enviorement becuase I need to restart the tomcat when i make any
changues to 
the classes. If I use reload from the manager, all the connections in
the 
pool are lost (with out being closed), so each time i used reload, i
lost a 
connection and after a while all the connection were lost.

Other question: What connection pooling (free) can i use that be very 
reliable (with at least 100 simultaneus connections ) but easy to
configure? 
(just a properties or xml file ) The applicattion that i'm developing
must 
be very easy to configure and install(modify some lines of the
configuation 
file, like name, user, database) and that's all (no JDNI, not register
in 
server.xml) Poolman, Ibatis, or what?

_
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.microsoft.com/es


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Re: Modules in struts 1.1

2002-11-20 Thread aduprat . struts
>>
>>My problem is when im in my module called "module1", it seems action mapping is 
>schearching for actions in my default struts-congig.xml file?...
>>
>What makes you say this?  Which build are you using?  You probably want 
>to be using a nightly build if you're using modules.  There was a bug 
>for a while that is fixed in the nightly build.
>

I'm not aware of this bug fix. I'm using struts 1.1b2.
I think action mapping is schearching for actions in my default struts-config.xml file 
because when i put actions called in module1 in default struts-config.xml, it finds 
them...
When i put module1 actions in struts-module1.xml, it can't find any module1 action...


>>I also try to switch from my welcome page to my module1 and get : "Invalid 
>sub-application prefix activiteReduite was specified"
>>when using SwitchAction... :-(
>>
>SwitchAction takes two request parameters:
>- prefix: the name of the module (module1 in your example)
>- page: the action you wish to invoke
>
>It sounds to me like you gave it an invalid module name.

Yes. I agree. My problem is i gave the right module name. Perhaps, the page parameter 
is not good? I put a jsp page name in that parameter...

>
>>What did i do wrong?
>>
>>Thanks for help.
>>
>>Alexandre.
>>
>It sounds like you're setting things up right in your web.xml, etc.  I 
>don't have enough information about your two modules to formulate a 
>hypothesis about what is going wrong.  Could you elaborate?
>

Yes i can.
So, i have 2 modules : 
- default
- module1

I have my root directory for my default module and root/module1 directory for the 
other one.

In my web-inf directory, I have struts-config.xml file populated with action for 
default module and struts-module1.xml for module1 module.

my web.xml file declares my 2 module as i wrote in my first mail.

When trying to invoque an action in module1 i do :


do in need to do : 
 ???

Thank for trying to help me.

Alexandre.



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

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


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




Re: How to build Multi-Lingual Web Site?

2002-11-20 Thread Steven Banks
I asked this question a while back and got some very good answers.  If you do a search 
on these archives on "internationalizing large amounts of text" you will get several 
ideas.  

Steven

>>> <[EMAIL PROTECTED]> 11/19/02 06:45PM >>>

Our application has both legal notice and privacy pages.  We opted to
change these from static html pages to jsps.  The conversion was relatively
painless, and it allows the use of the struts custom tags (and thus
locale-specific text and images).  In our case, the client is fine
maintaining the verbage used on these pages in properties files than
editing the static html directly.

We keep our image file paths in the properties file and use the scrkey
attribute to of the html:image tag  to reference them.  This allows us to
have locale-specific images as well as text.

Jim



   
 
  "Jana Navaneethan"   
 
  
  bs.gte.com> cc:  
 
  Subject:  How to build Multi-Lingual 
Web Site?
  11/19/2002 04:02 PM  
 
  Please respond to
 
  "Struts Users
 
  Mailing List"
 
   
 
   
 




Hi,
We have a multi-lingual application. We are trying to convert our
existing application using STRUTS. We have few static HTML pages (.html)
How
to serve this pages to the User? because these are not JSP pages and I
can't
use   and the it has lot of static content for example
privacy
policy? I tried to convert them to .jsp and convert all the static text in
to messages. Since the file is huge Is there any other better way of doing
this? Also We need to serve the user with different images (Language
specific) in our JSP Pages how to do that?

Any help would be greatly appreciated!

Thanks,
Jana.



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







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



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




[Struts-Workflow] Struts

2002-11-20 Thread Matthias Bauer
Jordan,

I am CC'ing this mail to the struts user list, cause this might be 
interesting to others, too.

Nobody forces you to use a nextPath attribute. If you do not care which 
action follows next, then you can as well leave the nextState attribute 
away.

But it may as well be, that I am getting something wrong here. If so, 
please help me understand by describing your concrete problem.

--- Matthias



Jordan Thomas wrote:

Hi Matthias,

I am working on a struts app using your workflow extension. Thanks for
that, great stuff. One problem that I do face is that I am unable to
exit a workflow without an error being thrown. I hear you say use the
"nextPath" path attribute. This almost fits but I need to be able to go
anywhere in my application (as long as it is not in the middle of a
workflow). It would be good if we could just specify a "*" value within
the nextPath attribute and then it was easy. Anyway, just a suggestion.

Cheers

Jordan


Jordan Thomas
Fraunhofer-Institut fuer Produktionstechnik und Automatisierung
(FhG-IPA)

Nobelstrasse 12 
D-70569 Stuttgart

Tel.: +49 (0) 711-970-1187
Fax:  +49 (0) 711-970-97-1187
Handi:+49 (0) 150-554-76776

E-mail:   [EMAIL PROTECTED]
Web:  http://www.ipa.fhg.de



 





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




RE: Enabling server-side (only) validation with Struts 1.1

2002-11-20 Thread Richard Mixon
Thanks - I checked that validate="true", I'm extending ValidatorForm and I
do not have a validate method in my form bean (so super.validate() should be
used).
In standard error, I can see that the POST is acknoledged, then I see two
displays from my formbean and then nothing:
 Nov 20, 2002 8:45:28 AM org.apache.struts.action.RequestProcessor process
 INFO: Processing a 'POST' for path '/saveContact'
 ContactForm: setEmailAddress
 ContactForm: setFirstName

Here's the guts of my struts config:
  


  
  



  
  

  
  

  

But if I put the ' onsubmit="return validateContactForm(this);" back in the
form statement everything works fine - except I have the client-side
validations back in the picture.

Thanks in advance - Richard

-Original Message-
From: Richards, Devin N (Devin) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 7:30 AM
To: Struts Users Mailing List
Subject: RE: Enabling server-side (only) validation with Struts 1.1


Some more information on your config files and action code would be helpful.

Make sure that in your  definition in the struts-config.xml you have
validate="true" also make sure that your Form bean extends ValidatorForm and
that in your validate() method you call super.validate() to process all
validations that are in your validation.xml file.

HTH

-Devin



-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 12:16 AM
To: [EMAIL PROTECTED]
Subject: Enabling server-side (only) validation with Struts 1.1


I must not be understanding how to set this up right.

I can configure validator fine so that I get client-side (JavaScript)
validation. Required fields and email validation work just fine.

But I want to turn off client-side and just use server-side (at least for
now).

To do this all I did was remove the 'onsubmit="return
validateContactForm(this);"' from my form statement. I left in the following
two tags at the bottom of my JSP form:



Now, when I submit the form the URL address bar changes to
"http://rth.swamp.com/contacts/saveContact.do"; and I get a blank page with
"Done" in the status bar at the bottom. I've left off a required field so I
expect to have the JSP page re-displayed.

What should I be doing differently?


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: a html tag problem

2002-11-20 Thread Karr, David
The "styleClass" JSP attribute is translated to the "class" HTML attribute.
The "styleId" JSP attribute is translated to the "id" HTML attribute.

> -Original Message-
> From: George Hill [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 6:06 PM
> To: Struts Users Mailing List
> Subject: a html tag problem
> 
> 
> hi, all
> i am using struts 1.0.2.i have a problem about the html 
> tag.for example, the  tag. sometimes i need some 
> html code like  id="xxx" size="10">. how can i put the "class" and the "id" 
> property to
> struts html tag?
> thanks all.:)
> 

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




Re: Modules in struts 1.1

2002-11-20 Thread Eddie Bush
[EMAIL PROTECTED] wrote:


My problem is when im in my module called "module1", it seems action mapping is schearching for actions in my default struts-congig.xml file?...


What makes you say this?  Which build are you using?  You probably want 
to be using a nightly build if you're using modules.  There was a bug 
for a while that is fixed in the nightly build.

I'm not aware of this bug fix. I'm using struts 1.1b2.


The issue fixed centered on actions/modules with similar names - it 
doesn't sound like this is your problem, but I highly recommend you 
upgrade just the same.

I think action mapping is schearching for actions in my default struts-config.xml file because when i put actions called in module1 in default struts-config.xml, it finds them...


I don't think this is what's going on.  Globals.APPLICATION_KEY (or, in 
recent builds Globals.MODULE_KEY) will point to the default module 
config in application scope, and the current module config in request 
scope - the form tag uses the one from request scope.

When i put module1 actions in struts-module1.xml, it can't find any module1 action...


Where are you executing the page from?  ... your default module?  That 
would be a special case.  In the case that you could prepend the module 
prefix, because Struts isn't going to attempt to do this (that's not 
totally accurate.  It will prepend the prefix, but the prefix for the 
default module is the empty string.), so you're safe to do it yourself. 
I can't imagine why you'd want a page in the default module to submit 
to a non-default module, but that's how you could go about it.

I also try to switch from my welcome page to my module1 and get : "Invalid sub-application prefix activiteReduite was specified"
when using SwitchAction... :-(


SwitchAction takes two request parameters:
  - prefix: the name of the module (module1 in your example)
  - page: the action you wish to invoke

It sounds to me like you gave it an invalid module name.


Yes. I agree. My problem is i gave the right module name. Perhaps, the page parameter is not good? I put a jsp page name in that parameter...


My approach to this is to use local/global forwards that set the 
contextRelative property to true - and typically redirect instead of 
forward (redirect="true").  Setting contextRelative="true" (and 
specifying a path relative to the application, instead of relative to 
the module) is another way to do this same thing.  I'm not sure why 
SwitchAction isn't working for you - last I tried it it worked fine.  I 
haven't messed with it for some time though.

What did i do wrong?

Thanks for help.

Alexandre.


It sounds like you're setting things up right in your web.xml, etc.  I 
don't have enough information about your two modules to formulate a 
hypothesis about what is going wrong.  Could you elaborate?

Yes i can.
So, i have 2 modules : 
- default
- module1

I have my root directory for my default module and root/module1 directory for the other one.

In my web-inf directory, I have struts-config.xml file populated with action for default module and struts-module1.xml for module1 module.

my web.xml file declares my 2 module as i wrote in my first mail.

When trying to invoque an action in module1 i do :


That should work - or you should be able to say "/myModule1Action.do"


do in need to do : 
 ???

This shouldn't work.  Struts will prepend the module prefix itself. 
Incidentally, this would make it rather difficult to submit to an 
action in one non-default module from another non-default module (that I 
can see) without possibly using a SwitchAction or defining a 
"go-between" action that would forward to a different module.  I think 
things could get really hairy really quick if you did things like that 
though - I wouldn't suggest it.

Thank for trying to help me.

Alexandre.


You haven't really gotten terribly explicit about your config yet :-)  I 
was kind of in hopes you would give me something so that I could 
construct a mental image of how your pieces are layed out.  Hopefully I 
have guessed pretty well about how things are laid out.  If you continue 
to have problems just post back again.

--
Eddie Bush





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



RE: Where can i get struts-el ???

2002-11-20 Thread Karr, David
If you download the nightly build, you'll see a "contrib" directory that
contains a "struts-el" directory.  Browse through that directory and you
should find everything that you need.

> -Original Message-
> From: Andreas Langmann [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 2:48 AM
> To: Struts Users Mailing List
> Subject: Where can i get struts-el ???
> 
> 
> Hello,
> 
> i'm searching for struts-el
> 
> but can't find the struts-html-el.tld
> 
> Are they included in struts?
> 
> Thanks,
> 
> Andreas
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: Change the src of Image dynamically

2002-11-20 Thread Karr, David
The "parameters" options on "html:img" are just to provide arguments to the URL 
specified as the "src" or "path" attribute.  The "src" or "path" attributes specify 
the actual URL to the image.  Use a scriptlet expression to specify the dynamic path 
to the image.

> -Original Message-
> From: Alireza Fattahi [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
> How can we change the src of the image dynamically by using 
>  from
> a bean?
> I know that this tag accepts paramName and paramProperty, but 
> the result
> always have a "?" appended to the src.
> 
> Like:
>  paramProperty="imgSrc"
> paramScope="request" paramId="" />
> 
> Is it possible to change the src of the image dynamicly by 
> using ?
> 
> 
> Alireza.
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 


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




Re: Where can i get struts-el ???

2002-11-20 Thread Andreas Langmann
I found it, build it and - now i need to upgrade to nightly build
version...

or can i run struts-el with beta2 (i think not)

thanks,

Andreas

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




moving from struts-b2 to actual nigthly build...

2002-11-20 Thread Andreas Langmann
Hmmm... 

its not so easy.

I changed some xml files and now everything works fine.

except of my sub-applications. If i access them, i get a message 

HTTP ERROR: 404 /webapp/dv/dv_07_03 Not Found
RequestURI=/webapp/dv/a_dv_07_03.do 

I assume that struts found my action definition in struts-config-dv.xml


  


But why it wont load my tile-dv-content-definitions, where dv_07_03 is
defined?

And - why cant i see an error message ??? Struts throws me dead with
thousands of info-Messages, but no error occurs...

259913 [SocketChannelListener-0] INFO action.RequestProcessor  -
Processing a 'GET' for path '/a_dv_07_03'
259913 [SocketChannelListener-0] INFO
org.apache.struts.action.RequestProcessor  - Processing a 'GET' for path
'/a_dv_07_03'

thanks,

Andreas

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




Re: struggling with indexed/repeating input fields

2002-11-20 Thread Kevin HaleBoyes
> From: Leonardo Maciel <[EMAIL PROTECTED]>
> I GOT IT!
>
> I forgot to send the struts-config.xml and there were the
difference

> 
> if I set the action scope="request" I get:
> javax.servlet.ServletException: BeanUtils.populate
> ...
> Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
> or
> Caused by: java.lang.NullPointerException
> 
> make sure you don't have scope="request" in your 
> 


You have really made my day!!!  Thanks.

I took the code you gave me and the code from the original link
(yes, thanks Dave).

I couldn't get either of them to work since I just automatically
put in the scope="request" into the configuration entry.  I was
getting a similar error message:
javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
...
- Root Cause -
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:427)

Which is similar to every other attempt I've made.  The
array/vector/list/collection wasn't initialized to have the correct
size before the indexed setters were called.  I kind of consider it
to be a bug in BeanUtils but I'm not sure.

It would
never have occurred to me that the scope would effect it.  As soon
as I made that change and restarted, it worked!

I've not tried the nested tags but I suspect the crucial element is
the scope of the form bean.

I do agree with [EMAIL PROTECTED] about having to put
the bean into session scope - I'll have to manage that very
carefully or implement the indexed setter that you gave and that
Jim Krygowski mentioned.  I'll also look at the lazyList from
Commons Collection.


Thanks again!
Also, thanks to everyone else who helped.

Kevin.



__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

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




An action forcing Reload on the client?

2002-11-20 Thread ROSSEL Olivier
An action can either forward or redirect.
Can it force the browser to reload its current URL?



---cut here---


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




RE: Where can i get struts-el ???

2002-11-20 Thread Karr, David
No, I'm afraid you can't use the nightly "strutsel.jar" with the 1.1b2
"struts.jar".  There have been recent changes to "struts.jar" which the
nightly "strutsel.jar" depends on.  If you did try it (combining the
1.1b2 "struts.jar" with the nightly "strutsel.jar"), some tags might
work, but others would likely fail with mysterious errors.

> -Original Message-
> From: Andreas Langmann [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 8:12 AM
> To: Struts Users Mailing List
> Subject: Re: Where can i get struts-el ???
> 
> 
> I found it, build it and - now i need to upgrade to nightly build
> version...
> 
> or can i run struts-el with beta2 (i think not)
> 
> thanks,
> 
> Andreas
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Question About Modules

2002-11-20 Thread Madel,Kurt
My understanding is that you have to use an extension mapping in order to
use the Module functionality, i.e. '*.do'

What are people doing if they need to serve say a '.pdf' from an action?
That is, my pdf is dynamic and requires the use of the same DAO's that I use
for my jsp pages.  Sure you can set the mime type, but Internet Explorer
ignores these most of the time and counts on the extension.  If you map
*.pdf and *.do then you won't be able to server static pdf's???

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170




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




RE: Enabling server-side (only) validation with Struts 1.1

2002-11-20 Thread Richards, Devin N (Devin)
Not sure what is happening, one thing to try is to write a validate() method in your 
ValidatorForm and then log that the method was called and then explicitly call 
super.validate(). Also in your JSP is your form definition:


The onSubmit will "always" work if the JavaScript is generated and put into your JSP. 
I know that in the past to make sure that our server-side validations were done we 
just removed the onSubmit attribute from the  tag. Also are you using 
1.1b1/1.1b2/1.1nightly?

HTH

-Devin



-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 10:52 AM
To: 'Struts Users Mailing List'
Subject: RE: Enabling server-side (only) validation with Struts 1.1 


Thanks - I checked that validate="true", I'm extending ValidatorForm and I
do not have a validate method in my form bean (so super.validate() should be
used).
In standard error, I can see that the POST is acknoledged, then I see two
displays from my formbean and then nothing:
 Nov 20, 2002 8:45:28 AM org.apache.struts.action.RequestProcessor process
 INFO: Processing a 'POST' for path '/saveContact'
 ContactForm: setEmailAddress
 ContactForm: setFirstName

Here's the guts of my struts config:
  


  
  



  
  

  
  

  

But if I put the ' onsubmit="return validateContactForm(this);" back in the
form statement everything works fine - except I have the client-side
validations back in the picture.

Thanks in advance - Richard

-Original Message-
From: Richards, Devin N (Devin) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 7:30 AM
To: Struts Users Mailing List
Subject: RE: Enabling server-side (only) validation with Struts 1.1


Some more information on your config files and action code would be helpful.

Make sure that in your  definition in the struts-config.xml you have
validate="true" also make sure that your Form bean extends ValidatorForm and
that in your validate() method you call super.validate() to process all
validations that are in your validation.xml file.

HTH

-Devin



-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 12:16 AM
To: [EMAIL PROTECTED]
Subject: Enabling server-side (only) validation with Struts 1.1


I must not be understanding how to set this up right.

I can configure validator fine so that I get client-side (JavaScript)
validation. Required fields and email validation work just fine.

But I want to turn off client-side and just use server-side (at least for
now).

To do this all I did was remove the 'onsubmit="return
validateContactForm(this);"' from my form statement. I left in the following
two tags at the bottom of my JSP form:



Now, when I submit the form the URL address bar changes to
"http://rth.swamp.com/contacts/saveContact.do"; and I get a blank page with
"Done" in the status bar at the bottom. I've left off a required field so I
expect to have the JSP page re-displayed.

What should I be doing differently?


--
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: An action forcing Reload on the client?

2002-11-20 Thread Eddie Bush
You'd have to use a META tag to do a refresh for that.

ROSSEL Olivier wrote:


An action can either forward or redirect.
Can it force the browser to reload its current URL?



--
Eddie Bush





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




Re: How to build Multi-Lingual Web Site?

2002-11-20 Thread Jana Navaneethan
Thanks to every one for your valuable suggestions!

I have decided to go with converting .html to .jsp and use properties for
serving these messages. Now my properties file has 600 lines of code is it
large? or is it OK?  I believe this file is loaded only once by the Action
Servlet and kept in memory right? Will there be any memory issues? or
Performance down grades because of this huge properties file. Is there any
other better way of doing this? Any suggestions would be greatly
appreciated!

Thanks in advance,
Jana.


- Original Message -
From: "Steven Banks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 10:25 AM
Subject: Re: How to build Multi-Lingual Web Site?


> I asked this question a while back and got some very good answers.  If you
do a search on these archives on "internationalizing large amounts of text"
you will get several ideas.
>
> Steven
>
> >>> <[EMAIL PROTECTED]> 11/19/02 06:45PM >>>
>
> Our application has both legal notice and privacy pages.  We opted to
> change these from static html pages to jsps.  The conversion was
relatively
> painless, and it allows the use of the struts custom tags (and thus
> locale-specific text and images).  In our case, the client is fine
> maintaining the verbage used on these pages in properties files than
> editing the static html directly.
>
> We keep our image file paths in the properties file and use the scrkey
> attribute to of the html:image tag  to reference them.  This allows us to
> have locale-specific images as well as text.
>
> Jim
>
>
>
>
>   "Jana Navaneethan"
>   
>   bs.gte.com> cc:
>   Subject:  How to build
Multi-Lingual Web Site?
>   11/19/2002 04:02 PM
>   Please respond to
>   "Struts Users
>   Mailing List"
>
>
>
>
>
>
> Hi,
> We have a multi-lingual application. We are trying to convert our
> existing application using STRUTS. We have few static HTML pages (.html)
> How
> to serve this pages to the User? because these are not JSP pages and I
> can't
> use   and the it has lot of static content for example
> privacy
> policy? I tried to convert them to .jsp and convert all the static text in
> to messages. Since the file is huge Is there any other better way of doing
> this? Also We need to serve the user with different images (Language
> specific) in our JSP Pages how to do that?
>
> Any help would be greatly appreciated!
>
> Thanks,
> Jana.
>
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
> --
> 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: An action forcing Reload on the client?

2002-11-20 Thread ROSSEL Olivier
> You'd have to use a META tag to do a refresh for that.
> 
> ROSSEL Olivier wrote:
> 
> >An action can either forward or redirect.
> >Can it force the browser to reload its current URL?

Well, you missed my question.
A JSP (let's call it ???.jsp) has a link to an action.
When clicked, the action makes some things. And wants to 
force the browser to reload ???.jsp.

I am afraid I will have to, inside the action, get 
the referer. And make a redirect to that referer.


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




RE: How to build Multi-Lingual Web Site?

2002-11-20 Thread edgar
Doesn't sound large.  Memory is a under 100k, tiny.  I believe it is a
hash search so struts finding the message should be efficient.

The hardest thing I have found is to match the keys in the JSP to the
keys in the properties file.

Edgar

-Original Message-
From: Jana Navaneethan [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 11:41 AM
To: 'Struts Users Mailing List'
Subject: Re: How to build Multi-Lingual Web Site?


Thanks to every one for your valuable suggestions!

I have decided to go with converting .html to .jsp and use properties
for serving these messages. Now my properties file has 600 lines of code
is it large? or is it OK?  I believe this file is loaded only once by
the Action Servlet and kept in memory right? Will there be any memory
issues? or Performance down grades because of this huge properties file.
Is there any other better way of doing this? Any suggestions would be
greatly appreciated!

Thanks in advance,
Jana.


- Original Message -
From: "Steven Banks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 10:25 AM
Subject: Re: How to build Multi-Lingual Web Site?


> I asked this question a while back and got some very good answers.  If

> you
do a search on these archives on "internationalizing large amounts of
text" you will get several ideas.
>
> Steven
>
> >>> <[EMAIL PROTECTED]> 11/19/02 06:45PM >>>
>
> Our application has both legal notice and privacy pages.  We opted to 
> change these from static html pages to jsps.  The conversion was
relatively
> painless, and it allows the use of the struts custom tags (and thus 
> locale-specific text and images).  In our case, the client is fine 
> maintaining the verbage used on these pages in properties files than 
> editing the static html directly.
>
> We keep our image file paths in the properties file and use the scrkey

> attribute to of the html:image tag  to reference them.  This allows us

> to have locale-specific images as well as text.
>
> Jim
>
>
>
>
>   "Jana Navaneethan"
>   
>   bs.gte.com> cc:
>   Subject:  How to 
> build
Multi-Lingual Web Site?
>   11/19/2002 04:02 PM
>   Please respond to
>   "Struts Users
>   Mailing List"
>
>
>
>
>
>
> Hi,
> We have a multi-lingual application. We are trying to convert 
> our existing application using STRUTS. We have few static HTML pages 
> (.html) How to serve this pages to the User? because these are not JSP

> pages and I can't
> use   and the it has lot of static content for example
> privacy
> policy? I tried to convert them to .jsp and convert all the static
text in
> to messages. Since the file is huge Is there any other better way of
doing
> this? Also We need to serve the user with different images (Language
> specific) in our JSP Pages how to do that?
>
> Any help would be greatly appreciated!
>
> Thanks,
> Jana.
>
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: < 
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: moving from struts-b2 to actual nigthly build...

2002-11-20 Thread David Graham
It might need to be



David






From: Andreas Langmann <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: moving from struts-b2 to actual nigthly build...
Date: Wed, 20 Nov 2002 17:13:40 +0100

Hmmm...

its not so easy.

I changed some xml files and now everything works fine.

except of my sub-applications. If i access them, i get a message

HTTP ERROR: 404 /webapp/dv/dv_07_03 Not Found
RequestURI=/webapp/dv/a_dv_07_03.do

I assume that struts found my action definition in struts-config-dv.xml


  type="de.km.bw.estat.struts.dv.Dv_07_03_Action"
  name="f_dv_07_03"
  scope="session"
	  validate="true"
  parameter="method">
  


But why it wont load my tile-dv-content-definitions, where dv_07_03 is
defined?

And - why cant i see an error message ??? Struts throws me dead with
thousands of info-Messages, but no error occurs...

259913 [SocketChannelListener-0] INFO action.RequestProcessor  -
Processing a 'GET' for path '/a_dv_07_03'
259913 [SocketChannelListener-0] INFO
org.apache.struts.action.RequestProcessor  - Processing a 'GET' for path
'/a_dv_07_03'

thanks,

Andreas

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



Re: future of struts

2002-11-20 Thread micael
There is no issue.  Whether you use struts or not you can still use the 
taglibs.  The taglibs in struts are, in that sense, independent of 
struts.  Struts is an application framework first and a set of taglibs as a 
bit of an aside, although there are obvious connections.

Micael

At 12:23 PM 11/20/2002 +0100, you wrote:

the following article i found at TheServerSide.com

>The tag libraries bundled with Struts provide access to simple and 
indexed properties; the
>org.apache.struts.taglib.nested package contains tags that access simple 
and indexed properties in a
>nested combination. For a complete list of all tags available with 
Struts, refer to the
>http://jakarta.apache.org/struts/userGuide/index.html; more resources on 
Struts are available at
>http://jakarta.apache.org/struts/resources/index.html. The future 
direction of Struts is to transition
>over to JavaServer Pages Standard Tag Library (JSTL) and JavaServer 
Faces tags.

But what does the last sentence mean. do i have to throw my HTML-pages 
away because the STRUTS tags
are not longer needed. Or is there a misunderstanding?

mit freundlichen Grüßen

Georg XL. Mouratidis
Web Application Developer

Heiler|Software AG
Mittlerer Pfad 9
D-70499 Stuttgart

Tel: 0711-139 84-265
Fax: 0711-866 63 01
Email: [EMAIL PROTECTED]

Connecting Buyer and Supplier
http://www.heiler.com

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Struts file upload validation problem

2002-11-20 Thread Poynter, Stephen
I have just written a document upload tool for a customer using the struts
upload functionality.  My upload jsp consists of one form that is of course
a multipart/form-data form.  The form consists of the file field along with
other text fields where the user enters various information( owner, title,
etc.) about the file to be uploaded.  The problem I'm having is that once
you submit the form struts immediately starts uploading the file before any
of the other data in the form is validated.  So, in my case, the user tries
to upload a large file but enters invalid information for the other text
fields.  Struts then uploads the file before validating the form data.  So
when the user corrects their mistake they have to re-upload the file yet
again.  Is it possible to have the form data validated before the file is
uploaded?  I would rather not use javascript for error checking.  Any help
is appreciated.  Thanks...

Steve


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




Re: moving from struts-b2 to actual nigthly build...

2002-11-20 Thread Andreas Langmann
David Graham wrote:
> 
> It might need to be
> 
> 
> David
> 
> >From: Andreas Langmann <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: moving from struts-b2 to actual nigthly build...
> >Date: Wed, 20 Nov 2002 17:13:40 +0100
> >
> >Hmmm...
> >
> >its not so easy.
> >
> >I changed some xml files and now everything works fine.
> >
> >except of my sub-applications. If i access them, i get a message
> >
> >HTTP ERROR: 404 /webapp/dv/dv_07_03 Not Found
> >RequestURI=/webapp/dv/a_dv_07_03.do
> >
> >I assume that struts found my action definition in struts-config-dv.xml
> >
> >  >   type="de.km.bw.estat.struts.dv.Dv_07_03_Action"
> >   name="f_dv_07_03"
> >   scope="session"
> > validate="true"
> >   parameter="method">
> >   
> > 
> >
> >But why it wont load my tile-dv-content-definitions, where dv_07_03 is
> >defined?
> >
> >And - why cant i see an error message ??? Struts throws me dead with
> >thousands of info-Messages, but no error occurs...
> >
> >259913 [SocketChannelListener-0] INFO action.RequestProcessor  -
> >Processing a 'GET' for path '/a_dv_07_03'
> >259913 [SocketChannelListener-0] INFO
> >org.apache.struts.action.RequestProcessor  - Processing a 'GET' for path
> >'/a_dv_07_03'


no, i am using tiles and i detected via debugging that the
tiles-requestprocessor can't be called, but its as plugin in the
struts-config.xml...

any ideas?

tia

Andreas

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




RE: future of struts

2002-11-20 Thread edgar
This is obviously a true statement, kind of like motherhood and
applepie.  Unfortunately, an innordinately large percentage of
development time is spent with the tag library, as even a casual perusal
of this list reveals.

Any time spent improving the interface to struts has a disproportionate
effect on the efficiency of the developers using the platform.

Anyway, that is my $.02.  ;->

Edgar

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 12:02 PM
To: 'Struts Users Mailing List'
Subject: Re: future of struts


There is no issue.  Whether you use struts or not you can still use the 
taglibs.  The taglibs in struts are, in that sense, independent of 
struts.  Struts is an application framework first and a set of taglibs
as a 
bit of an aside, although there are obvious connections.

Micael

At 12:23 PM 11/20/2002 +0100, you wrote:

>the following article i found at TheServerSide.com
>
> >The tag libraries bundled with Struts provide access to simple and
> indexed properties; the
> >org.apache.struts.taglib.nested package contains tags that access 
> >simple
> and indexed properties in a
> >nested combination. For a complete list of all tags available with
> Struts, refer to the
> >http://jakarta.apache.org/struts/userGuide/index.html; more resources

> >on
> Struts are available at
> >http://jakarta.apache.org/struts/resources/index.html. The future
> direction of Struts is to transition
> >over to JavaServer Pages Standard Tag Library (JSTL) and JavaServer
> Faces tags.
>
>But what does the last sentence mean. do i have to throw my HTML-pages
>away because the STRUTS tags
>are not longer needed. Or is there a misunderstanding?
>
>mit freundlichen Grüßen
>
>Georg XL. Mouratidis
>Web Application Developer
>
>Heiler|Software AG
>Mittlerer Pfad 9
>D-70499 Stuttgart
>
>Tel: 0711-139 84-265
>Fax: 0711-866 63 01
>Email: [EMAIL PROTECTED]
>
>Connecting Buyer and Supplier
>http://www.heiler.com
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail: 
>

Micael

---

This electronic mail  transmission and any accompanying documents
contain 
information belonging to the sender which may be confidential and
legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent
as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of
the 
information contained in this transmission is strictly prohibited.  If
you 
have received this transmission in error, please delete the message.
Thank you 



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: moving from struts-b2 to actual nigthly build...

2002-11-20 Thread David Graham
If the Tiles request processor isn't being called then there's probably an 
error in your struts config.  Can you post the section that defines the 
plugin?

David






From: Andreas Langmann <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: moving from struts-b2 to actual nigthly build...
Date: Wed, 20 Nov 2002 18:04:02 +0100

David Graham wrote:
>
> It might need to be
> 
>
> David
>
> >From: Andreas Langmann <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: moving from struts-b2 to actual nigthly build...
> >Date: Wed, 20 Nov 2002 17:13:40 +0100
> >
> >Hmmm...
> >
> >its not so easy.
> >
> >I changed some xml files and now everything works fine.
> >
> >except of my sub-applications. If i access them, i get a message
> >
> >HTTP ERROR: 404 /webapp/dv/dv_07_03 Not Found
> >RequestURI=/webapp/dv/a_dv_07_03.do
> >
> >I assume that struts found my action definition in struts-config-dv.xml
> >
> > 
> >   type="de.km.bw.estat.struts.dv.Dv_07_03_Action"
> >   name="f_dv_07_03"
> >   scope="session"
> > validate="true"
> >   parameter="method">
> >   
> > 
> >
> >But why it wont load my tile-dv-content-definitions, where dv_07_03 is
> >defined?
> >
> >And - why cant i see an error message ??? Struts throws me dead with
> >thousands of info-Messages, but no error occurs...
> >
> >259913 [SocketChannelListener-0] INFO action.RequestProcessor  -
> >Processing a 'GET' for path '/a_dv_07_03'
> >259913 [SocketChannelListener-0] INFO
> >org.apache.struts.action.RequestProcessor  - Processing a 'GET' for 
path
> >'/a_dv_07_03'


no, i am using tiles and i detected via debugging that the
tiles-requestprocessor can't be called, but its as plugin in the
struts-config.xml...

any ideas?

tia

Andreas

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


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



Validation problems with the struts validator

2002-11-20 Thread Declan O'Shanahan
Hi there,

I am experiencing difficulty with the struts validation functionality. I am
using Internet Explorer 6.0.28 and 6.0.26 running on Windows 2000 and the
problem is that browser does not interpret the HTML of a response from a
tomcat server (version 4.0.3) running under Tru64 with the result that the
generated Javascript is shown up at the end of the page.

I can however run the same code when the tomcat server is running under
linux and windows 2000 with the same browsers with no problems. I wrote a
test program to print out the HTML (using HTTPUnit) and there are no
differences between the HTML that are produced by the HTTPUnit test case on
the three different platforms.

Normally the HTML that is produced by the browser would include the
generated javascript between an opening and closing script tag as follows.
This is missing in the HTML produced by the browser when running tomcat on
Tru64.





If anybody has seen anything similar or has any ideas as is the cause of
this I would appreciate.

Regards,

Declan.




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




Problem with database connexion on Struts Nightly Build

2002-11-20 Thread Yann Verlynde
Hello, I tried to connect Struts with Oracle Database, when I did a
dataSource.getConnection(); on my datasource I have the following exception:
Can I have Helps please?

Thanks in advance.

javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoClassDefFoundError: java/sql/Savepoint
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1631)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:926)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1360)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1243)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConne
ctionFactory.java:83)
at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnect
ionFactory.java:184)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown
Source)
at
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool
.java:117)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:108)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)
at
org.apache.struts.util.GenericDataSource.getConnection(GenericDataSource.jav
a:276)
at
com.oxade.struts.action.RechercheAction.getAllDGCL(RechercheAction.java:56)
at
com.oxade.struts.action.RechercheAction.perform(RechercheAction.java:104)
at org.apache.struts.action.Action.execute(Action.java:410)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:465)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1349)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:489)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
Filte

html:submit value not found in request, version 1.02 beta

2002-11-20 Thread Linnea Ahlbeck
Hi!

On my jsp pages I have the following code:


   
  



(On my jsp page I only have one html:form tag)

In my SaveAction class I collect the submit value from the request, like
this:

String submit = request.getParameter("submit");

The submit value is null.

I'm using the Struts 1.02 beta version. Have anybody experienced the same
problem??

So thankful for som help :)

/Linnéa Ahlbeck

Linnéa Ahlbeck - Software Engineer



Re: How to build Multi-Lingual Web Site?

2002-11-20 Thread Martin Cooper


On Wed, 20 Nov 2002, Jana Navaneethan wrote:

> Thanks to every one for your valuable suggestions!
>
> I have decided to go with converting .html to .jsp and use properties for
> serving these messages. Now my properties file has 600 lines of code is it
> large? or is it OK?  I believe this file is loaded only once by the Action
> Servlet and kept in memory right? Will there be any memory issues? or
> Performance down grades because of this huge properties file. Is there any
> other better way of doing this? Any suggestions would be greatly
> appreciated!

600 lines is nothing to worry about. I have an application in production
that uses multiple properties files, and just one of those has around 3500
lines. You have plenty of breathing room yet. ;-)

--
Martin Cooper


>
> Thanks in advance,
> Jana.
>
>
> - Original Message -
> From: "Steven Banks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, November 20, 2002 10:25 AM
> Subject: Re: How to build Multi-Lingual Web Site?
>
>
> > I asked this question a while back and got some very good answers.  If you
> do a search on these archives on "internationalizing large amounts of text"
> you will get several ideas.
> >
> > Steven
> >
> > >>> <[EMAIL PROTECTED]> 11/19/02 06:45PM >>>
> >
> > Our application has both legal notice and privacy pages.  We opted to
> > change these from static html pages to jsps.  The conversion was
> relatively
> > painless, and it allows the use of the struts custom tags (and thus
> > locale-specific text and images).  In our case, the client is fine
> > maintaining the verbage used on these pages in properties files than
> > editing the static html directly.
> >
> > We keep our image file paths in the properties file and use the scrkey
> > attribute to of the html:image tag  to reference them.  This allows us to
> > have locale-specific images as well as text.
> >
> > Jim
> >
> >
> >
> >
> >   "Jana Navaneethan"
> >Mailing List" <[EMAIL PROTECTED]>
> >   bs.gte.com> cc:
> >   Subject:  How to build
> Multi-Lingual Web Site?
> >   11/19/2002 04:02 PM
> >   Please respond to
> >   "Struts Users
> >   Mailing List"
> >
> >
> >
> >
> >
> >
> > Hi,
> > We have a multi-lingual application. We are trying to convert our
> > existing application using STRUTS. We have few static HTML pages (.html)
> > How
> > to serve this pages to the User? because these are not JSP pages and I
> > can't
> > use   and the it has lot of static content for example
> > privacy
> > policy? I tried to convert them to .jsp and convert all the static text in
> > to messages. Since the file is huge Is there any other better way of doing
> > this? Also We need to serve the user with different images (Language
> > specific) in our JSP Pages how to do that?
> >
> > Any help would be greatly appreciated!
> >
> > Thanks,
> > Jana.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <
> > mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <
> > mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Re: enter disable

2002-11-20 Thread Joe Polanik
Gemes Tibor wrote:

2002. november 15. 13:06 dátummal Gus Delgado ezt írtad:


How can I disable the 


delete the submit button, put on a button which submits the form onClick.
This way you workaround the default (which is rather handy on the other hand)



I've done something like this, but it was only partially successful.






function setDoThis(val) {
  document.forms[0].doThis.value=val;
  document.forms[0].submit();
}

This stopped the form from submitting if the user pressed enter *except* 
when a radio button had focus. (Don't ask me why.)

To stop that I added another function:

function getDoThis() {
  var todo = document.forms[0].doThis.value;
  //alert("DoThis: " + todo);
  if (todo == "") {
return false;
  }
  else {
return true;
  }
}

and I added the following to the 

onsubmit="return getDoThis()"


This all seems rather involved. Does anyone have a simpler way to do this?

Joseph Polanik



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



RE: html:submit value not found in request, version 1.02 beta

2002-11-20 Thread Karr, David
I would guess it can't find the "button.view" property in your properties file.  If 
that was nonexistent, the value would be null.

(Note that there is no "1.02 beta" version.  There's versions 1.02 and 1.1b2 (and the 
nightly).)

> -Original Message-
> From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]]
> 
> Hi!
> 
> On my jsp pages I have the following code:
> 
> 
>
>   
> 
> 
> 
> (On my jsp page I only have one html:form tag)
> 
> In my SaveAction class I collect the submit value from the 
> request, like
> this:
> 
> String submit = request.getParameter("submit");
> 
> The submit value is null.
> 
> I'm using the Struts 1.02 beta version. Have anybody 
> experienced the same
> problem??

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




RE: html:submit value not found in request, found a solution

2002-11-20 Thread Linnea Ahlbeck
Hi David!

Thanks for your tip. The "button.view" property in your properties file has
been found all the time but I'm not used to add the property attribute to
the html:submit tag. When I did that the request parameter was found (and
probably created to begin with) and therby able to reach from my action
class.

My solution:


   
  
   


Sorry for the version mix up, I'm using the  1.1b2 version.

Thanks again!

/Linnéa

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 6:41 PM
To: Struts Users Mailing List
Subject: RE: html:submit value not found in request, version 1.02 beta


I would guess it can't find the "button.view" property in your properties
file.  If that was nonexistent, the value would be null.

(Note that there is no "1.02 beta" version.  There's versions 1.02 and 1.1b2
(and the nightly).)

> -Original Message-
> From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]]
>
> Hi!
>
> On my jsp pages I have the following code:
>
> 
>
>   
> 
> 
>
> (On my jsp page I only have one html:form tag)
>
> In my SaveAction class I collect the submit value from the
> request, like
> this:
>
> String submit = request.getParameter("submit");
>
> The submit value is null.
>
> I'm using the Struts 1.02 beta version. Have anybody
> experienced the same
> problem??

--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




Re: Struts file upload validation problem

2002-11-20 Thread Martin Cooper


On Wed, 20 Nov 2002, Poynter, Stephen wrote:

> I have just written a document upload tool for a customer using the struts
> upload functionality.  My upload jsp consists of one form that is of course
> a multipart/form-data form.  The form consists of the file field along with
> other text fields where the user enters various information( owner, title,
> etc.) about the file to be uploaded.  The problem I'm having is that once
> you submit the form struts immediately starts uploading the file before any
> of the other data in the form is validated.  So, in my case, the user tries
> to upload a large file but enters invalid information for the other text
> fields.  Struts then uploads the file before validating the form data.  So
> when the user corrects their mistake they have to re-upload the file yet
> again.  Is it possible to have the form data validated before the file is
> uploaded?  I would rather not use javascript for error checking.  Any help
> is appreciated.  Thanks...

Just to clarify the process, Struts does not upload the file, the browser
does. The file is part of the same request as the other fields in your
form - it's one of the -parts- in the -multipart- request, as is each of
the remaining fields. Struts can't start working on the request until it
is complete, including the file upload.

If you need to do validation before the file is uploaded, you either need
to use JavaScript in the browser, or use a separate page for the other
fields, so that you can validate them server-side before the file is
uploaded from its own page.

--
Martin Cooper


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


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




Error creating form bean in Sun One

2002-11-20 Thread Umberto Dissenha Junior
Hi,

I had some problems with Struts running on Sun One (formerly iPlanet). I
succesfully deployed to the Reference Implementation, jBoss and OC4J, but
for some reason I can´t run it well on Sun One Application Server. An
exception is throw.

Any help would be welcome.

Thanks...

Umberto



**

 SingleSignOn[server1]: Process request for
'/fi-plus/channelTypeAction.do'
[19/Nov/2002:15:28:38] FINE ( 1592): SingleSignOn[server1]:
Checking for SSO cookie
[19/Nov/2002:15:28:38] FINE ( 1592): SingleSignOn[server1]:  SSO
cookie is not present
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout: ERROR: Error
creating form bean of class fiplus.fiplus.administration.ChannelTypeForm
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:
java.lang.NoClassDefFoundError
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
java.lang.Class.newInstance0(Class.java:296)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
java.lang.Class.newInstance(Class.java:249)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:21
6)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:610)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor
.java:349)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:243)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardW
rapperValve.java:720)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValv
e.java:118)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.jav
a:278)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
java.security.AccessController.doPrivileged(Native Method)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:274)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:157)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout: ERROR: No
action instance for path /channelTypeAction could be created
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:
java.lang.NoClassDefFoundError: br.cits.jcits.action.BaseAction
[19/Nov/2002:15:28:38] INFO ( 1592): CORE3282: stdout:  at
java.lang.Class.getDeclaredConstructors0(Nativ

Re: Struts file upload validation problem

2002-11-20 Thread Mark Lepkowski
You could have the user enter the meta data first, and then after it's validated let 
the user choose the file to upload.
  - Original Message - 
  From: Poynter, Stephen 
  To: Struts Users Mailing List (E-mail) 
  Sent: Wednesday, November 20, 2002 12:03 PM
  Subject: Struts file upload validation problem


  I have just written a document upload tool for a customer using the struts
  upload functionality.  My upload jsp consists of one form that is of course
  a multipart/form-data form.  The form consists of the file field along with
  other text fields where the user enters various information( owner, title,
  etc.) about the file to be uploaded.  The problem I'm having is that once
  you submit the form struts immediately starts uploading the file before any
  of the other data in the form is validated.  So, in my case, the user tries
  to upload a large file but enters invalid information for the other text
  fields.  Struts then uploads the file before validating the form data.  So
  when the user corrects their mistake they have to re-upload the file yet
  again.  Is it possible to have the form data validated before the file is
  uploaded?  I would rather not use javascript for error checking.  Any help
  is appreciated.  Thanks...

  Steve


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



[tiles] relative paths for the .jsp files

2002-11-20 Thread Wendy Smoak

Given the following structure:
/path/to/tomcat/webapps/myApp/three.jsp
/path/to/tomcat/webapps/myApp/four.jsp
/path/to/tomcat/webapps/myApp/WEB-INF/jsp/one.jsp
/path/to/tomcat/webapps/myApp/WEB-INF/jsp/two.jsp
/path/to/tomcat/webapps/myApp/WEB-INF/jsp/header.jsp
/path/to/tomcat/webapps/myApp/WEB-INF/jsp/footer.jsp
/path/to/tomcat/webapps/myApp/WEB-INF/jsp/menu.jsp

When I use classicLayout, all of the "put" calls seem to be relative to the
location of the layout file:


  
  <%-- these are relative to the location of the layout,
   so it's looking in WEB-INF/jsp/--%>
  
  
  
  <%-- must back up out of WEB-INF to get other files --%>
  


However, for vboxLayout, this is not the case:


  
<%-- must specify path relative to the webapp root --%>





  


Also I just noticed that vboxLayout only works with the '\' separator.  If I
switch to '/' it can't seem to find any of the files. :(  This is running
under Tomcat 4.1.14 and the Struts nightly build from the 18th.  

If '/' does not work on Windows, when I move this to HP-UX I suspect that
'\' will stop working.

Is this the expected behavior?  I found it a little confusing as a tiles
newbie.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



Re: future of struts

2002-11-20 Thread V. Cekvenich
If anyone spends a large percentage of time in the tags, jsp or view, 
then they are not fully using Model2, MVC layers. Alas, there are a lot 
of people who are need help with Struts on this list. (One example: 
newbies tend not to unit test the bean, so they debug it in the JSP.  A 
player uni tests the bean, so no issues in the view, just plop. )
JSP tags are an aside to Struts.

You can and should use JSTL. HTML tag also.

.V

edgar wrote:
This is obviously a true statement, kind of like motherhood and
applepie.  Unfortunately, an innordinately large percentage of
development time is spent with the tag library, as even a casual perusal
of this list reveals.

Any time spent improving the interface to struts has a disproportionate
effect on the efficiency of the developers using the platform.

Anyway, that is my $.02.  ;->

Edgar

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 12:02 PM
To: 'Struts Users Mailing List'
Subject: Re: future of struts


There is no issue.  Whether you use struts or not you can still use the 
taglibs.  The taglibs in struts are, in that sense, independent of 
struts.  Struts is an application framework first and a set of taglibs
as a 
bit of an aside, although there are obvious connections.

Micael

At 12:23 PM 11/20/2002 +0100, you wrote:


the following article i found at TheServerSide.com



The tag libraries bundled with Struts provide access to simple and


indexed properties; the


org.apache.struts.taglib.nested package contains tags that access 
simple

and indexed properties in a


nested combination. For a complete list of all tags available with


Struts, refer to the


http://jakarta.apache.org/struts/userGuide/index.html; more resources





on


Struts are available at


http://jakarta.apache.org/struts/resources/index.html. The future


direction of Struts is to transition


over to JavaServer Pages Standard Tag Library (JSTL) and JavaServer


Faces tags.

But what does the last sentence mean. do i have to throw my HTML-pages
away because the STRUTS tags
are not longer needed. Or is there a misunderstanding?

mit freundlichen Grüßen

Georg XL. Mouratidis
Web Application Developer

Heiler|Software AG
Mittlerer Pfad 9
D-70499 Stuttgart

Tel: 0711-139 84-265
Fax: 0711-866 63 01
Email: [EMAIL PROTECTED]

Connecting Buyer and Supplier
http://www.heiler.com

--
To unsubscribe, e-mail:





For additional commands, e-mail: 



Micael

---

This electronic mail  transmission and any accompanying documents
contain 
information belonging to the sender which may be confidential and
legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent
as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of
the 
information contained in this transmission is strictly prohibited.  If
you 
have received this transmission in error, please delete the message.
Thank you 



--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Chuck Cavaness Book ..where is it now?

2002-11-20 Thread Ken Riley
The preview chapters can be found at 
http://www2.theserverside.com/resources/strutsreview.jsp. As far as I know the book 
hasn't made to the stores yet. It should be available later this month.
 

-Original Message-
From: Shalu Goel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 7:19 AM
To: Struts Users Mailing List
Subject: Chuck Cavaness Book ..where is it now?


Hello,
few days back i have had the opportunity to know that Chuck's book is lying at 
theserverside.com (for review purpose)...so i downloaded first two chapters and read 
them ...today agian when i went to visit the same site..i couldnt locate the 
resource...i had saved the url in my favorites and now instead of listing Chuck 
cavaness book chapters it takes me to a review chapter of some JEDO book.
pl. help me locate the resource...
i am not able to find struts boks on the book shops too...so greatly dependent on the 
theserverside resource
pl. let me know if anybody has the idea
thanks in advance
Shalu  




RE: [tiles] relative paths for the .jsp files

2002-11-20 Thread James Mitchell
Wendy, the source code for Struts-Atlanta does some of what (I think) you
are wanting to do.

Feel free to download it from either

 http://www.open-tools.org/struts-atlanta/downloads (as a zip)

 or

 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/struts/struts-atlanta/ (cvs
view)




James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 1:26 PM
> To: 'Struts Users Mailing List'
> Subject: [tiles] relative paths for the .jsp files
>
>
>
> Given the following structure:
> /path/to/tomcat/webapps/myApp/three.jsp
> /path/to/tomcat/webapps/myApp/four.jsp
> /path/to/tomcat/webapps/myApp/WEB-INF/jsp/one.jsp
> /path/to/tomcat/webapps/myApp/WEB-INF/jsp/two.jsp
> /path/to/tomcat/webapps/myApp/WEB-INF/jsp/header.jsp
> /path/to/tomcat/webapps/myApp/WEB-INF/jsp/footer.jsp
> /path/to/tomcat/webapps/myApp/WEB-INF/jsp/menu.jsp
>
> When I use classicLayout, all of the "put" calls seem to be
> relative to the
> location of the layout file:
>
> 
>   
>   <%-- these are relative to the location of the layout,
>so it's looking in WEB-INF/jsp/--%>
>   
>   
>   
>   <%-- must back up out of WEB-INF to get other files --%>
>   
> 
>
> However, for vboxLayout, this is not the case:
>
> 
>   
> <%-- must specify path relative to the webapp root --%>
> 
> 
> 
> 
> 
>   
> 
>
> Also I just noticed that vboxLayout only works with the '\'
> separator.  If I
> switch to '/' it can't seem to find any of the files. :(  This is running
> under Tomcat 4.1.14 and the Struts nightly build from the 18th.
>
> If '/' does not work on Windows, when I move this to HP-UX I suspect that
> '\' will stop working.
>
> Is this the expected behavior?  I found it a little confusing as a tiles
> newbie.
>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
>


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




Re: Struts file upload validation problem

2002-11-20 Thread Brian Hickey
Martin is correct :o)

Also be aware that very very large files can exceed the setting of Java temp
space (memory) allocation is some containers and crash them.

One approach that works is to write a simple file upload script in Perl.
This allows you to check content-type, size, etc. and reject the upload
before trouble happens. It is also platform independent to a "reasonable"
degree.

Just another $.02 worth...

Brian



- Original Message -
From: "Martin Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 1:16 PM
Subject: Re: Struts file upload validation problem


>
>
> On Wed, 20 Nov 2002, Poynter, Stephen wrote:
>
> > I have just written a document upload tool for a customer using the
struts
> > upload functionality.  My upload jsp consists of one form that is of
course
> > a multipart/form-data form.  The form consists of the file field along
with
> > other text fields where the user enters various information( owner,
title,
> > etc.) about the file to be uploaded.  The problem I'm having is that
once
> > you submit the form struts immediately starts uploading the file before
any
> > of the other data in the form is validated.  So, in my case, the user
tries
> > to upload a large file but enters invalid information for the other text
> > fields.  Struts then uploads the file before validating the form data.
So
> > when the user corrects their mistake they have to re-upload the file yet
> > again.  Is it possible to have the form data validated before the file
is
> > uploaded?  I would rather not use javascript for error checking.  Any
help
> > is appreciated.  Thanks...
>
> Just to clarify the process, Struts does not upload the file, the browser
> does. The file is part of the same request as the other fields in your
> form - it's one of the -parts- in the -multipart- request, as is each of
> the remaining fields. Struts can't start working on the request until it
> is complete, including the file upload.
>
> If you need to do validation before the file is uploaded, you either need
> to use JavaScript in the browser, or use a separate page for the other
> fields, so that you can validate them server-side before the file is
> uploaded from its own page.
>
> --
> Martin Cooper
>
>
> >
> > Steve
> >
> >
> > --
> > 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: MySQL connection pooling problems!! (please help)

2002-11-20 Thread Dragan Ljubojevic
On Tuesday 19 November 2002 14:43, matthew yee-king wrote:
> You could try setting the autoReconnect parameter on the mysql url:
>
> jdbc:mysql://mydomain:3306/mydatabase?autoReconnect=true
>
> cheers
>
> matthew

It's working. 
Now I dont have to reload application every morning.
Thank you.

Dragan



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




Re: Struts file upload validation problem

2002-11-20 Thread Eddie Bush
Brian Hickey wrote:


Martin is correct :o)

Also be aware that very very large files can exceed the setting of Java temp
space (memory) allocation is some containers and crash them.

One approach that works is to write a simple file upload script in Perl.
This allows you to check content-type, size, etc. and reject the upload
before trouble happens. It is also platform independent to a "reasonable"
degree.


Unless I'm mistaken, the commons file-upload component can do this too. 
Am I mistaken?

Just another $.02 worth...

Brian


--
Eddie Bush




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




JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Hohlen, John
My team is starting a new project with Struts.  In our previous Struts
projects, our JSPs used mostly tags from the Struts tag libraries.  For our
new project, I want my team to start using the JSTL.  For that reason, the
"Struts-EL" subproject is very appealing because it will force our
developers to learn the JSTL  -- as functionality duplicated in the Struts
libraries (Bean & Logic) are removed when it is available in the JSTL.
Obviously, we'll still be using many of the Struts tags -- especially those
tied to the Struts framework (e.g. all tags in the Struts "html" library).
However, we're not sure whether to use the "Request Time" (RT) version or
the "Expression Language" (EL) version of the JSTL library.  And we have the
same question for the "Struts" subproject (Struts-EL or Struts-RT)?

Does anyone have any advice here?  Will JSTL compliant application servers
be required to implement a "EL" and "RT" version of the JSTL, or will they
only have to implement the "EL" version?

One other issue:  We want to reference constants declared in our Java files
in our JSP.  These are often the bean or error key constants.  This helps
guard against a String typo in the JSP as any mistyped constant name  will
get caught a JSP compile time -- where a string typo will not be detected
until JSP execution time.  Does anyone how to reference Java variables in
your JSP if you're using the JSTL-EL tags?  Is this even possible?  If not,
what are the alternatives?

Thanks,

JOHN



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




Problem with Action Forward

2002-11-20 Thread CraigFournier
Hello,

  I am a newbie with Struts and am trying to get a simple application up and running.
I have a JSP page with a form on it that comes up fine. When I click on the submit
button, it appears to find the action but nothing is displayed on the screen. (not even
and error message).

  I believe this is a problem with one of the XML files but can not seem to find the 
problem.  Can anyone give me some pointers about how to track down this problem.

Craig
   


   Craig Fournier
   Phone: 303-494-7847
   Email: [EMAIL PROTECTED]
   FAX: 303-494-5395






Sending a file

2002-11-20 Thread Michael Lee
Is there a way in struts, that, if a user is validated, send them a local file? This 
is so if someone paid for a piece of software they would be given access to a screen 
to download it?
thanks,
Mike


Re: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread David Graham
You should use the JSTL EL library because of the expression language's 
power.  These tags replace most of the logic and bean tags from Struts.  On 
my projects I only use the struts html taglib and the rest is handled with 
jstl.  The constants in JSP issue is tricky and I haven't solved it myself.

David






From: "Hohlen, John" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts-Help (E-mail)" <[EMAIL PROTECTED]>
Subject: JSTL Question (EL vs. RT + Struts)
Date: Wed, 20 Nov 2002 13:14:43 -0600

My team is starting a new project with Struts.  In our previous Struts
projects, our JSPs used mostly tags from the Struts tag libraries.  For our
new project, I want my team to start using the JSTL.  For that reason, the
"Struts-EL" subproject is very appealing because it will force our
developers to learn the JSTL  -- as functionality duplicated in the Struts
libraries (Bean & Logic) are removed when it is available in the JSTL.
Obviously, we'll still be using many of the Struts tags -- especially those
tied to the Struts framework (e.g. all tags in the Struts "html" library).
However, we're not sure whether to use the "Request Time" (RT) version or
the "Expression Language" (EL) version of the JSTL library.  And we have 
the
same question for the "Struts" subproject (Struts-EL or Struts-RT)?

Does anyone have any advice here?  Will JSTL compliant application servers
be required to implement a "EL" and "RT" version of the JSTL, or will they
only have to implement the "EL" version?

One other issue:  We want to reference constants declared in our Java files
in our JSP.  These are often the bean or error key constants.  This helps
guard against a String typo in the JSP as any mistyped constant name  will
get caught a JSP compile time -- where a string typo will not be detected
until JSP execution time.  Does anyone how to reference Java variables in
your JSP if you're using the JSTL-EL tags?  Is this even possible?  If not,
what are the alternatives?

Thanks,

JOHN



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Re: Struts file upload validation problem

2002-11-20 Thread Martin Cooper


On Wed, 20 Nov 2002, Eddie Bush wrote:

> Brian Hickey wrote:
>
> >Martin is correct :o)
> >
> >Also be aware that very very large files can exceed the setting of Java temp
> >space (memory) allocation is some containers and crash them.
> >
> >One approach that works is to write a simple file upload script in Perl.
> >This allows you to check content-type, size, etc. and reject the upload
> >before trouble happens. It is also platform independent to a "reasonable"
> >degree.
> >
> Unless I'm mistaken, the commons file-upload component can do this too.
>  Am I mistaken?

Commons FileUpload has a size threshold below which a part is retained in
memory, and above which it is streamed to disk, to prevent memory issues.
It also has another size threshold that determines the maximum total size
of a request that it will accept, beyond which it will throw up its hands
and refuse to process the request at all.

--
Martin Cooper


>
> >Just another $.02 worth...
> >
> >Brian
> >
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




RE: Question About Modules

2002-11-20 Thread Madel,Kurt
Anyone using modules and going through an action to generate dynamic
database driven pdf's???  Anyone .

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170


-Original Message-
From: Madel,Kurt [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 11:27 AM
To: 'Struts Users Mailing List'
Subject: Question About Modules

My understanding is that you have to use an extension mapping in order to
use the Module functionality, i.e. '*.do'

What are people doing if they need to serve say a '.pdf' from an action?
That is, my pdf is dynamic and requires the use of the same DAO's that I use
for my jsp pages.  Sure you can set the mime type, but Internet Explorer
ignores these most of the time and counts on the extension.  If you map
*.pdf and *.do then you won't be able to server static pdf's???

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




FormFile and display in tag

2002-11-20 Thread Jean-Baptiste Onofré
Hello,

in a form, i get a FormFile object.

This work fine (i display the ContentType, etc).
The file uploaded is a image type file (image/jpg or image/gif, this is
verify in the form bean associate).

I would like to populate a bean with can display in JSP.

For exemple, i have my class that extends Action :

...
pictureForm pForm = (pictureForm)form;
FormFile file = pForm.getPFile();
request.setAttribute("file",file);
...

and in the JSP, i would like to display the image file :

...

...

I would like that the  display the file bean.

Someone has a idea or a sample ?

Best regards ...
-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
[EMAIL PROTECTED]

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




Re: JSTL Question (EL vs. RT + Struts + nested?? )

2002-11-20 Thread Jeff_Mychasiw

I am curious about how the nested taglib fits into this discussion.
 I have been using the nested tags for just about all my forms and logic
tags.
Do JSTL tags  have the capability as nested tags?

Thanks




"David Graham" <[EMAIL PROTECTED]> on 11/20/2002 01:37:27 PM

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

To:[EMAIL PROTECTED]
cc:

Subject:Re: JSTL Question (EL vs. RT + Struts)


You should use the JSTL EL library because of the expression language's
power.  These tags replace most of the logic and bean tags from Struts.  On
my projects I only use the struts html taglib and the rest is handled with
jstl.  The constants in JSP issue is tricky and I haven't solved it myself.

David






>From: "Hohlen, John" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts-Help (E-mail)" <[EMAIL PROTECTED]>
>Subject: JSTL Question (EL vs. RT + Struts)
>Date: Wed, 20 Nov 2002 13:14:43 -0600
>
>My team is starting a new project with Struts.  In our previous Struts
>projects, our JSPs used mostly tags from the Struts tag libraries.  For
our
>new project, I want my team to start using the JSTL.  For that reason, the
>"Struts-EL" subproject is very appealing because it will force our
>developers to learn the JSTL  -- as functionality duplicated in the Struts
>libraries (Bean & Logic) are removed when it is available in the JSTL.
>Obviously, we'll still be using many of the Struts tags -- especially
those
>tied to the Struts framework (e.g. all tags in the Struts "html" library).
>However, we're not sure whether to use the "Request Time" (RT) version or
>the "Expression Language" (EL) version of the JSTL library.  And we have
>the
>same question for the "Struts" subproject (Struts-EL or Struts-RT)?
>
>Does anyone have any advice here?  Will JSTL compliant application servers
>be required to implement a "EL" and "RT" version of the JSTL, or will they
>only have to implement the "EL" version?
>
>One other issue:  We want to reference constants declared in our Java
files
>in our JSP.  These are often the bean or error key constants.  This helps
>guard against a String typo in the JSP as any mistyped constant name  will
>get caught a JSP compile time -- where a string typo will not be detected
>until JSP execution time.  Does anyone how to reference Java variables in
>your JSP if you're using the JSTL-EL tags?  Is this even possible?  If
not,
>what are the alternatives?
>
>Thanks,
>
>JOHN
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>


_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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








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




Enabling debug levels - which way?

2002-11-20 Thread Richard Mixon
In trying to track down why my action is not being called in a previous post
(Enabling server-side (only) validation with Struts 1.1), I am having  a
heck of a time getting the debug parameters to change.

I've tried changing the value in the web.xml file:

  
  
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml


  debug
  6


  detail
  6

1
  


I've tried in the struts-config.xml file (it seems that this is now the
preferred method?):

  



  

In each case, whether I set it to 1,2,3,4,5 or 6, My application issues the
following displays with either a level 5 or 6 set:
 ContactForm.validate: Logging level=3
 ContactForm.validate: Error enabled
 ContactForm.validate: Fatal enabled
 ContactForm.validate: Info enabled
 ContactForm.validate: Warn enabled
 ContactForm.validate: Info mode is on
 [INFO] class - - Info mode is on
I print the log level and then check for Debug, Error, Fatal, Info, Warn and
Trace respectively. As you can see I get no display that Debug and Trace are
enabled.

Any suggestions are appreciated.

Richard Mixon
Promoting Value in Information Technology and Software
cell: (480) 577-6834 home: (480) 614-3442
email: [EMAIL PROTECTED]


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




Re: Question About Modules

2002-11-20 Thread Eddie Bush
The issue is not related to modules.  There have been several solutions 
for this posted at various times in the past.  Each of them should still 
work.  Modules really don't play a part - you've simply got to inform 
the browser of what it's going to receive in such a way that it 
understands the proper file-name and content-type.  I haven't had need 
to do this, so I can't rattle off a solution for you - sorry.

Try to see if you can get any good information by doing a google search. 
Then, try hitting the archive on the off-chance you can glean something 
from there directly.  If you have no luck, try back here with a more 
appropriate subject - something like "Dynamically serve PDF to client" 
or some such.  I'd wager that if you searched for different variations 
on that theme using google, you'd have your answer - but I have been 
wrong before!  If you don't initially get struts-related results, throw 
"Struts" into your query - you should.

Madel,Kurt wrote:

Anyone using modules and going through an action to generate dynamic
database driven pdf's???  Anyone .

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170


-Original Message-
From: Madel,Kurt [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 11:27 AM
To: 'Struts Users Mailing List'
Subject: Question About Modules

My understanding is that you have to use an extension mapping in order to
use the Module functionality, i.e. '*.do'

What are people doing if they need to serve say a '.pdf' from an action?
That is, my pdf is dynamic and requires the use of the same DAO's that I use
for my jsp pages.  Sure you can set the mime type, but Internet Explorer
ignores these most of the time and counts on the extension.  If you map
*.pdf and *.do then you won't be able to server static pdf's???

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170

--
Eddie Bush



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




RE: Enabling debug levels - which way?

2002-11-20 Thread Richard Mixon
Forgot to add - I'm using the SimpleLog implementation for now, and I am
running J2SDK 1.4.1.

-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 12:54 PM
To: [EMAIL PROTECTED]
Subject: Enabling debug levels - which way?


In trying to track down why my action is not being called in a previous post
(Enabling server-side (only) validation with Struts 1.1), I am having  a
heck of a time getting the debug parameters to change.

I've tried changing the value in the web.xml file:

  
  
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml


  debug
  6


  detail
  6

1
  


I've tried in the struts-config.xml file (it seems that this is now the
preferred method?):

  



  

In each case, whether I set it to 1,2,3,4,5 or 6, My application issues the
following displays with either a level 5 or 6 set:
 ContactForm.validate: Logging level=3
 ContactForm.validate: Error enabled
 ContactForm.validate: Fatal enabled
 ContactForm.validate: Info enabled
 ContactForm.validate: Warn enabled
 ContactForm.validate: Info mode is on
 [INFO] class - - Info mode is on
I print the log level and then check for Debug, Error, Fatal, Info, Warn and
Trace respectively. As you can see I get no display that Debug and Trace are
enabled.

Any suggestions are appreciated.

Richard Mixon
Promoting Value in Information Technology and Software
cell: (480) 577-6834 home: (480) 614-3442
email: [EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Question About Modules

2002-11-20 Thread Antoni Reus
Hi,

A Dimecres 20 Novembre 2002 17:26, Madel,Kurt va escriure:
> My understanding is that you have to use an extension mapping in order to
> use the Module functionality, i.e. '*.do'
>
> What are people doing if they need to serve say a '.pdf' from an action?
> That is, my pdf is dynamic and requires the use of the same DAO's that I
> use for my jsp pages.  Sure you can set the mime type, but Internet
> Explorer ignores these most of the time and counts on the extension.  If
> you map *.pdf and *.do then you won't be able to server static pdf's???
>
> Kurt Madel
> Programmer, CSMi
> (703) 823-4300 ext. 170

You can suggest a file name to the browser setting the Content-Disposition 
header  (RFC 2183)

String fileName = "theFile.pdf"
response.setContentType("application/pdf");
response.setHeader("Content-Dispostion", "inline; filename=" + fileName);



Salut!

-- Antoni Reus

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




Re: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Kris Schneider
You pretty much need the RT taglibs to get at constants:





Quoting David Graham <[EMAIL PROTECTED]>:

> You should use the JSTL EL library because of the expression language's 
> power.  These tags replace most of the logic and bean tags from Struts.  On
> 
> my projects I only use the struts html taglib and the rest is handled with 
> jstl.  The constants in JSP issue is tricky and I haven't solved it myself.
> 
> David
> 
> 
> 
> 
> 
> 
> >From: "Hohlen, John" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts-Help (E-mail)" <[EMAIL PROTECTED]>
> >Subject: JSTL Question (EL vs. RT + Struts)
> >Date: Wed, 20 Nov 2002 13:14:43 -0600
> >
> >My team is starting a new project with Struts.  In our previous Struts
> >projects, our JSPs used mostly tags from the Struts tag libraries.  For
> our
> >new project, I want my team to start using the JSTL.  For that reason, the
> >"Struts-EL" subproject is very appealing because it will force our
> >developers to learn the JSTL  -- as functionality duplicated in the Struts
> >libraries (Bean & Logic) are removed when it is available in the JSTL.
> >Obviously, we'll still be using many of the Struts tags -- especially
> those
> >tied to the Struts framework (e.g. all tags in the Struts "html" library).
> >However, we're not sure whether to use the "Request Time" (RT) version or
> >the "Expression Language" (EL) version of the JSTL library.  And we have 
> >the
> >same question for the "Struts" subproject (Struts-EL or Struts-RT)?
> >
> >Does anyone have any advice here?  Will JSTL compliant application servers
> >be required to implement a "EL" and "RT" version of the JSTL, or will they
> >only have to implement the "EL" version?
> >
> >One other issue:  We want to reference constants declared in our Java
> files
> >in our JSP.  These are often the bean or error key constants.  This helps
> >guard against a String typo in the JSP as any mistyped constant name  will
> >get caught a JSP compile time -- where a string typo will not be detected
> >until JSP execution time.  Does anyone how to reference Java variables in
> >your JSP if you're using the JSTL-EL tags?  Is this even possible?  If
> not,
> >what are the alternatives?
> >
> >Thanks,
> >
> >JOHN
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
> _
> Protect your PC - get McAfee.com VirusScan Online 
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

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




RE: Question About Modules

2002-11-20 Thread edgar
Yes, I am in the middle of an extensive PDF output project.  I have
started to create dynamic names and forwarding to them and put them on a
delete list in order to give them pdf names so IE would know how to
handle them.  I hadn't got to the file handling part yet so your post is
timely.

I hadn't thought of mapping pdf's as actions and I love the idea.  On
your question regarding static PDF's I believe the answer to your
question is that they would have to be mapped through struts-config as
forwards and you would need a single action class to forward to the
actual pdf.

My first thought is


name="PDFDynaForm"  
validate="false"



Since I have no static pdf's I am going to steal your idea.

Thanks

Edgar

-Original Message-
From: Madel,Kurt [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 2:46 PM
To: 'Struts Users Mailing List'
Subject: RE: Question About Modules


Anyone using modules and going through an action to generate dynamic
database driven pdf's???  Anyone .

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170


-Original Message-
From: Madel,Kurt [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 11:27 AM
To: 'Struts Users Mailing List'
Subject: Question About Modules

My understanding is that you have to use an extension mapping in order
to use the Module functionality, i.e. '*.do'

What are people doing if they need to serve say a '.pdf' from an action?
That is, my pdf is dynamic and requires the use of the same DAO's that I
use for my jsp pages.  Sure you can set the mime type, but Internet
Explorer ignores these most of the time and counts on the extension.  If
you map *.pdf and *.do then you won't be able to server static pdf's???

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170




--
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: Enabling debug levels - which way?

2002-11-20 Thread Karr, David
If you want more debug information from Struts, and you're using the default 
SimpleLog, then put a file named "simplelog.properties" in your WEB-INF/classes with 
the following contents:

org.apache.commons.logging.simplelog.defaultlog = debug

> -Original Message-
> From: Richard Mixon [mailto:[EMAIL PROTECTED]]
> 
> In trying to track down why my action is not being called in 
> a previous post
> (Enabling server-side (only) validation with Struts 1.1), I 
> am having  a
> heck of a time getting the debug parameters to change.
> 
> I've tried changing the value in the web.xml file:
> 
>   
>   
> action
> 
> org.apache.struts.action.ActionServlet
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   debug
>   6
> 
> 
>   detail
>   6
> 
> 1
>   
> 
> 
> I've tried in the struts-config.xml file (it seems that this 
> is now the
> preferred method?):
> 
>   
> 
> 
> 
>   
> 
> In each case, whether I set it to 1,2,3,4,5 or 6, My 
> application issues the
> following displays with either a level 5 or 6 set:
>  ContactForm.validate: Logging level=3
>  ContactForm.validate: Error enabled
>  ContactForm.validate: Fatal enabled
>  ContactForm.validate: Info enabled
>  ContactForm.validate: Warn enabled
>  ContactForm.validate: Info mode is on
>  [INFO] class - - Info mode is on
> I print the log level and then check for Debug, Error, Fatal, 
> Info, Warn and
> Trace respectively. As you can see I get no display that 
> Debug and Trace are
> enabled.

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




Illegal target of jump or branch w/Tomcat

2002-11-20 Thread Emmanuel Bridonneau
Some double talk,
so I ran into this JVM exeption after switching from the "oh you're too expensive for 
me" Weblogic to "you're great for a free software" JBoss.
Turns out that Tomcat (used in conjunction w/JBoss) has a 64kb limitation whilst 
generating the servlet code from a JSP.
I intend to follow some suggestion I read and reduce the size of the .class files by:
 - reducing the number of tags used by merging some functionalities at the expense of 
a clean code
 - putting some code outside of the jsp and including these snippets at run time

It's a rather nasty and long undertaking.
If anyone has encountered this type of exeption can you confirm this assumption and 
what were the steps you took to overcome this limitation?
Heard of a future Tomcat release that'll increase the 64kb limit?
Thanks

Configuration details:
JBoss 2.4.4 bundle w/Tomcat 4.0.1
Struts 1.0.2


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




RE: Question About Modules

2002-11-20 Thread Madel,Kurt
I suppose for static pdf you could use Struts 1.1 action forward class and
just set the parameter to be the actual pdf:


 

I haven't tried it yet, but it should work ...

Thanks for the idea ;-)

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170


-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 3:27 PM
To: 'Struts Users Mailing List'
Subject: RE: Question About Modules

Yes, I am in the middle of an extensive PDF output project.  I have
started to create dynamic names and forwarding to them and put them on a
delete list in order to give them pdf names so IE would know how to
handle them.  I hadn't got to the file handling part yet so your post is
timely.

I hadn't thought of mapping pdf's as actions and I love the idea.  On
your question regarding static PDF's I believe the answer to your
question is that they would have to be mapped through struts-config as
forwards and you would need a single action class to forward to the
actual pdf.

My first thought is


name="PDFDynaForm"  
validate="false"



Since I have no static pdf's I am going to steal your idea.

Thanks

Edgar

-Original Message-
From: Madel,Kurt [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 2:46 PM
To: 'Struts Users Mailing List'
Subject: RE: Question About Modules


Anyone using modules and going through an action to generate dynamic
database driven pdf's???  Anyone .

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170


-Original Message-
From: Madel,Kurt [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 11:27 AM
To: 'Struts Users Mailing List'
Subject: Question About Modules

My understanding is that you have to use an extension mapping in order
to use the Module functionality, i.e. '*.do'

What are people doing if they need to serve say a '.pdf' from an action?
That is, my pdf is dynamic and requires the use of the same DAO's that I
use for my jsp pages.  Sure you can set the mime type, but Internet
Explorer ignores these most of the time and counts on the extension.  If
you map *.pdf and *.do then you won't be able to server static pdf's???

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Illegal target of jump or branch w/Tomcat

2002-11-20 Thread edgar
I believe the simplest way of dealing with this is just to use nested
classes.  Dr. Kabutz has an interesting discussion of Java limitations
(attached).

I.E. if you have a class

class A {
m1
m2
...
mn
}

Use instead

class A1 {
m1
m2
...
m (n/2)
}

class A2 extends A1 {
m (n/2+1)
...
mn
}

Let me know if this solves your problem.

Edgar

-Original Message-
From: Emmanuel Bridonneau [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 3:30 PM
To: ''Struts Users Mailing List' (E-mail)'
Subject: Illegal target of jump or branch w/Tomcat


Some double talk,
so I ran into this JVM exeption after switching from the "oh you're too
expensive for me" Weblogic to "you're great for a free software" JBoss.
Turns out that Tomcat (used in conjunction w/JBoss) has a 64kb
limitation whilst generating the servlet code from a JSP. I intend to
follow some suggestion I read and reduce the size of the .class files
by:
 - reducing the number of tags used by merging some functionalities at
the expense of a clean code
 - putting some code outside of the jsp and including these snippets at
run time

It's a rather nasty and long undertaking.
If anyone has encountered this type of exeption can you confirm this
assumption and what were the steps you took to overcome this limitation?
Heard of a future Tomcat release that'll increase the 64kb limit? Thanks

Configuration details:
JBoss 2.4.4 bundle w/Tomcat 4.0.1
Struts 1.0.2


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--- Begin Message ---
Title: 2002-10-29 The Java Specialists' Newsletter [Issue 059] - Verry long Strings and other things





2002-10-29 The Java Specialists' Newsletter [Issue 059] - Verry long Strings and other things
Author: 
  Dr. Heinz M. Kabutz

  If you are not already subscribed to this newsletter, please send an email to
  [EMAIL PROTECTED].
  Be warned that if you are a beginner in Java, you will at times struggle to keep up.
  The archive of past newsletters is kept at http://www.javaspecialists.co.za



Welcome to the 59th edition of The Java(tm) Specialists' Newsletter sent to 5008 Java
Specialists in 89
countries.  We have broken through the 5000 mark, I am
very grateful to all of you for "spreading the word" about this
newsletter.



A few monts ago, my daugter pulled off one of my keys from
my Asus notebook.  Te irritating part is tat te company from wom I
bougt te notebook went bankrupt, and it is now really ard to get
spare parts in Sout Africa.  I would tell you wic key it is
if I could ... ;-)



I started typing this newsletter whilst sitting in a coach, speeding
across the English country-side.  I spent three days in October
at a large company in London, presenting my Design
Patterns Course and followed that up with a quick visit to mom-in-law
in Sidmouth.  Whilst in London, I met up with a number of
my newsletter subscribers from the company, and they gave me a
memorable introduction to English beverages.  Thanks especially
to Joe for organising it.  That Design Patterns Course was the
best I've had so far, gauged by the discussions we had around
the various subtleties of the patterns.  I am also looking at
running a Design Patterns Course in Munich, Germany
some time at the end of December 2002 or January 2003.  We have
already identified a very
nice hotel where we would like to run the course.  Please
email 
me if you would like to attend.



The British Broadcast Corporation (BBC) lists
50 Places to See Before
You Die.  Cape Town, the city in which I live, is listed as
number 5, after The Grand Canyon, Great Barrier Reef, Florida and South Island.
 I hope that you have been convinced that you should come for a visit :-)  And while you pack your suitcase, pop me an email
and let me know when you're arriving.  My father-in-law is a
very reliable taxi-driver who will take you all around Cape
Town and will not rip you off.  Of course, I also love meeting with my subscribers
as time permits.  And lastly, if you want to use the trip as a
tax break, why not throw in some training with "The Java Specialists"?
If you seriously want to do that, please send me an email.


Verry long Strings and other things


One of the things I enjoy doing, is seeing how far I can take things.
For example, the rev counter of my Alfa Romeo is limited to 6000
revolutions per minute (revs).  The question is, for each of the gears,
what is the km/h equivalent of 6000 revs?  I found out the hard way
on the first day when I had just gotten the car.  I was sitting next
to a Mercedes at a traffic light, waiting for it to change to green.
As it did, I threw in the first gear, charging it up to 60km/h, smugly watching the Mercedes in my rearview

RE: Illegal target of jump or branch w/Tomcat

2002-11-20 Thread James Childers
We ran across this exact same problem recently, and it has to do with the way 
that the servlet container does the JSP --> Java translation. You are likely to
encounter this problem if the container puts everything  -- scriptlets, custom 
tags, etc. -- into a single monolithic _jspService method, which is what most 
containers do. I asked the Jikes-dev list about this, and this was the response:

"It is a fundamental flaw in the .class file format.  You currently can't 
have a method with more than 64K bytecodes.  (Well, technically you can, 
but it cannot have any exception handlers after the 64K limit, and it 
relies on the mercy of the VM to not crash).  See JVMS 4.10.  Sun is 
considering extending the .class file format in JDK 1.5, to allow up to 
4GB bytecodes in a method, at the expense of requiring such .class files 
to be run on a 1.5 compatible VM, but that doesn't help you now."

We saw this problem when we started using 400+ custom tags in a single page. The 
newer versions of Tomcat do not suffer from this problem because they are smart 
enough to put the custom tag logic into separate private methods within the 
generated .java file. (At least when I tested it on Tomcat 4.1.12 the problem
disappeared for me. YMMV.)

-= James

> Some double talk,
> so I ran into this JVM exeption after switching from the "oh 
> you're too expensive for me" Weblogic to "you're great for a 
> free software" JBoss.
> Turns out that Tomcat (used in conjunction w/JBoss) has a 
> 64kb limitation whilst generating the servlet code from a JSP.
> I intend to follow some suggestion I read and reduce the size 
> of the .class files by:
>  - reducing the number of tags used by merging some 
> functionalities at the expense of a clean code
>  - putting some code outside of the jsp and including these 
> snippets at run time
> 
> It's a rather nasty and long undertaking.
> If anyone has encountered this type of exeption can you 
> confirm this assumption and what were the steps you took to 
> overcome this limitation?
> Heard of a future Tomcat release that'll increase the 64kb limit?
> Thanks
> 
> Configuration details:
> JBoss 2.4.4 bundle w/Tomcat 4.0.1
> Struts 1.0.2

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




RE: [tiles] relative paths for the .jsp files

2002-11-20 Thread Wendy Smoak
> Wendy, the source code for Struts-Atlanta does some of what (I think) you
> are wanting to do.

Thanks!  That's actually the example that got me started putting jsp's under
WEB-INF to begin with.  I downloaded it again to make sure I have the newest
version.  

Now I'm experimenting with tiles and I got momentarily stuck when those two
example layouts were not behaving the same way.  I don't think it has to do
with where the jsp's are stored though.  

Perhaps I should ask on the developer's list... for some reason, the
 tag acts different from the  does.  In
one, the "value" attribute is taken as relative to the location of the
layout page, and in the other, it's relative to the top level of the webapp.

Although I am using 
   
vs. 
   
so the different attributes might have something to do with it.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



  1   2   >