RE: Row

2004-04-14 Thread Indra Gunawan
if you want the transfer of data is also limited , you have to use paging
techniques ... there are choices and one of them is to use iBATIS DataLayer
component . you can fetch records starting from row n and fetch x records
using SqlMap class .

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 11:41 AM
To: Struts Users Mailing List
Subject: RE: Row


One issue with this is that if there is a *lot* of data then rendering and
sending that page to the browser will suffer something of a performance
hit. - 100 rows should be ok though, and if you run an compression filter
(as discussed in other recent threads) the streaming shouldnt be very
intense.

For doing the javascript display/hide Ive found it works best to have the
css style done from a a stylesheet class rather than trying to modify it
directly in the element nodes - so to show and hide you can set the nodes
className property. ie:

in stylesheet:
--
.visibleElement{

}
.hiddenElement {
  display: none;
}

in javascript:
--
var myElement = window.document.getElementById('bob');
myElement.className = 'visibleElement';

in html:


  blah


One thing to be aware of is that in Netscrap6 any fields hidden in this way
wont be submitted (in issue if you are using this trick to simulate
tabpanes)! (This bug is fixed in later versions of the mozilla engine though
so Mozilla1, Netscrap7 are sweet (as are ie5+))

As for older browsers such as netscrap4 etc... I think it wont work at all?

-Original Message-
From: Matthew Fisher [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April 2004 12:22
To: 'Struts Users Mailing List'
Subject: RE: Row


I've had to do something similar, where I took all the results and put them
in  tags. Then with a bit of javascript you can hide and display the
div you want.

Matt

-Original Message-
From: Sapt [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April 2004 2:22 PM
To: Struts Users Mailing List
Subject: Re: Row


and if u don't want to use displaytag, u can put your data in session, and
take only 10 data.
- Original Message -
From: "Sapt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 15, 2004 11:11 AM
Subject: Re: Row


> u can try displaytag from displaytag.org..
> - Original Message -
> From: "Iwan Soenarto (IT)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 15, 2004 10:00 AM
> Subject: Row
>
>
> I have 100 records. How do I limit the number of row to display per page
> to 10 ?
> What technique should I use ?
>
> Tks
> Iws
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

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



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

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



Re: Tool for HTML/JSP formatting

2004-04-14 Thread Craig McClanahan
Matthew Fisher wrote:

Sorry, I guess that is a bit of a downer.

Are Jdeveloper or netbeans free?

 

JDeveloper is not free.  Netbeans (http://www.netbeans.org) is.

Craig


-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April 2004 1:54 PM
To: 'Struts Users Mailing List'
Subject: RE: Tool for HTML/JSP formatting
Homesite is from Macromedia right? Not free :(

http://www.macromedia.com/software/homesite/



Regards,
Daniel
-Original Message-
From: Matthew Fisher [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April, 2004 8:42 AM
To: 'Struts Users Mailing List'
Subject: RE: Tool for HTML/JSP formatting
I use Homesite 5. It isn't specifically a java tool so it doesn't have all
the integration that JDev etc has, but for HTML there is nothing better.
Matt

-Original Message-
From: Arumugam Senthil Kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 14 April 2004 3:09 PM
To: Struts Users Mailing List
Subject: Re: Tool for HTML/JSP formatting
Hi,

Jdeveloper,netbeans are good tool for html and jsp.

Regards,

A.S.Kumar.

	
	
		

Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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


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



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


Re:

2004-04-14 Thread Craig McClanahan
Julia Weaver wrote:

Hi All,

I got an error message with the following:

It said onload is invalid.
Can someone please tell me how I can have onload
inside  tag?
Thanks!

 

I'm afraid you can't.  The only legal place in HTML for an onload 
attribute is on a  tag.

Craig

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


RE: Row

2004-04-14 Thread Andrew Hill
One issue with this is that if there is a *lot* of data then rendering and
sending that page to the browser will suffer something of a performance
hit. - 100 rows should be ok though, and if you run an compression filter
(as discussed in other recent threads) the streaming shouldnt be very
intense.

For doing the javascript display/hide Ive found it works best to have the
css style done from a a stylesheet class rather than trying to modify it
directly in the element nodes - so to show and hide you can set the nodes
className property. ie:

in stylesheet:
--
.visibleElement{

}
.hiddenElement {
  display: none;
}

in javascript:
--
var myElement = window.document.getElementById('bob');
myElement.className = 'visibleElement';

in html:


  blah


One thing to be aware of is that in Netscrap6 any fields hidden in this way
wont be submitted (in issue if you are using this trick to simulate
tabpanes)! (This bug is fixed in later versions of the mozilla engine though
so Mozilla1, Netscrap7 are sweet (as are ie5+))

As for older browsers such as netscrap4 etc... I think it wont work at all?

-Original Message-
From: Matthew Fisher [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April 2004 12:22
To: 'Struts Users Mailing List'
Subject: RE: Row


I've had to do something similar, where I took all the results and put them
in  tags. Then with a bit of javascript you can hide and display the
div you want.

Matt

-Original Message-
From: Sapt [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April 2004 2:22 PM
To: Struts Users Mailing List
Subject: Re: Row


and if u don't want to use displaytag, u can put your data in session, and
take only 10 data.
- Original Message -
From: "Sapt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 15, 2004 11:11 AM
Subject: Re: Row


> u can try displaytag from displaytag.org..
> - Original Message -
> From: "Iwan Soenarto (IT)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 15, 2004 10:00 AM
> Subject: Row
>
>
> I have 100 records. How do I limit the number of row to display per page
> to 10 ?
> What technique should I use ?
>
> Tks
> Iws
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

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



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



RE: Row

2004-04-14 Thread Matthew Fisher
I've had to do something similar, where I took all the results and put them
in  tags. Then with a bit of javascript you can hide and display the
div you want.

Matt

-Original Message-
From: Sapt [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April 2004 2:22 PM
To: Struts Users Mailing List
Subject: Re: Row


and if u don't want to use displaytag, u can put your data in session, and
take only 10 data.
- Original Message -
From: "Sapt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 15, 2004 11:11 AM
Subject: Re: Row


> u can try displaytag from displaytag.org..
> - Original Message -
> From: "Iwan Soenarto (IT)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 15, 2004 10:00 AM
> Subject: Row
>
>
> I have 100 records. How do I limit the number of row to display per page
> to 10 ?
> What technique should I use ?
>
> Tks
> Iws
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

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



RE: Tool for HTML/JSP formatting

2004-04-14 Thread Matthew Fisher
Sorry, I guess that is a bit of a downer.

Are Jdeveloper or netbeans free?

-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April 2004 1:54 PM
To: 'Struts Users Mailing List'
Subject: RE: Tool for HTML/JSP formatting


Homesite is from Macromedia right? Not free :(

http://www.macromedia.com/software/homesite/



Regards,
Daniel


-Original Message-
From: Matthew Fisher [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April, 2004 8:42 AM
To: 'Struts Users Mailing List'
Subject: RE: Tool for HTML/JSP formatting


I use Homesite 5. It isn't specifically a java tool so it doesn't have all
the integration that JDev etc has, but for HTML there is nothing better.

Matt

-Original Message-
From: Arumugam Senthil Kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 14 April 2004 3:09 PM
To: Struts Users Mailing List
Subject: Re: Tool for HTML/JSP formatting


Hi,

Jdeveloper,netbeans are good tool for html and jsp.


Regards,

A.S.Kumar.






Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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

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



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

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



javascript event

2004-04-14 Thread JavaSoft
Hi all

If i have a text field (html:text)
and a button submit(html:submit disabled="true")
How can I make if i onfocus html:text, my html:submit
disabled=false



=
==
thx,
a Java Student




__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



RE: when not to use an ActionForm

2004-04-14 Thread Daniel Joshua
Great idea... make use of the nested property!

But what would the advantage be of using this "Map" as compared to the
request.getParameters()'s "Map"?

All I can see that it only would be useful if you did some validation in
your ActionForm on the "Map", any other uses?


Regards,
Daniel


-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
Sent: Thursday, 15 April, 2004 7:10 AM
To: [EMAIL PROTECTED]
Subject: Re: when not to use an ActionForm



I don't believe it can be done with the fields named like that, but there is
a trick you might be able to use. ;-)

1) In the  elements, use names of the form "dynaFields.field_1", etc.
The name isn't important, but the dot is.
2) Create a corresponding Map property in your form bean (i.e. a property
named "dynaFields" in this example).

When your action form is populated, you will end up with the "dynaFields"
map containing key/value pairs corresponding to the name/value pairs from
your  elements.

--
Martin Cooper


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



IOException: Stream closed error when using custom tags

2004-04-14 Thread shanmugampl
Hi All,

   I have a custom tag, which iterates through a data and provides a 
url to be included during every iteration. When i display the url as  a 
string, everything works fine. But when i try to include it through the 
 tag i am getting the following error.

java.io.IOException: Stream closed
org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:624)
Once i get this error, reverting back to the old case(displaying the url as a string) 
also throws the same error.
I cannot figure out the problem.
Also i have disabled tagpooling. Can anyone help me out on this.

Thanks
Shanmugam PL


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


Re: Row

2004-04-14 Thread Sapt
and if u don't want to use displaytag, u can put your data in session, and
take only 10 data.
- Original Message -
From: "Sapt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 15, 2004 11:11 AM
Subject: Re: Row


> u can try displaytag from displaytag.org..
> - Original Message -
> From: "Iwan Soenarto (IT)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 15, 2004 10:00 AM
> Subject: Row
>
>
> I have 100 records. How do I limit the number of row to display per page
> to 10 ?
> What technique should I use ?
>
> Tks
> Iws
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Tool for HTML/JSP formatting

2004-04-14 Thread Daniel Joshua
Homesite is from Macromedia right? Not free :(

http://www.macromedia.com/software/homesite/



Regards,
Daniel


-Original Message-
From: Matthew Fisher [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April, 2004 8:42 AM
To: 'Struts Users Mailing List'
Subject: RE: Tool for HTML/JSP formatting


I use Homesite 5. It isn't specifically a java tool so it doesn't have all
the integration that JDev etc has, but for HTML there is nothing better.

Matt

-Original Message-
From: Arumugam Senthil Kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 14 April 2004 3:09 PM
To: Struts Users Mailing List
Subject: Re: Tool for HTML/JSP formatting


Hi,

Jdeveloper,netbeans are good tool for html and jsp.


Regards,

A.S.Kumar.






Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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

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



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



Re: Row

2004-04-14 Thread Sapt
u can try displaytag from displaytag.org..
- Original Message - 
From: "Iwan Soenarto (IT)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 15, 2004 10:00 AM
Subject: Row


I have 100 records. How do I limit the number of row to display per page
to 10 ?
What technique should I use ?
 
Tks
Iws



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



Re: when not to use an ActionForm

2004-04-14 Thread Oswald Campesato
Hello, Martin/Andy:
 
I'd like to suggest using JSTL for this type of scenario.  You can find a 
nice explanation at the following URL (my compliments to its author):
 
http://jakarta.apache.org/struts/faqs/indexedprops.html

Regards,
 
Oswald
 
Note:  I also downloaded the tag-libs project, because the solution outlined 
in the preceding URL requires both jstl.jar and standard.jar, which contains
org/apache/taglibs/standard/lang/support/ExpressionManager.class
 

Martin Cooper <[EMAIL PROTECTED]> wrote:

"Andy Engle" wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
>
> > Richard,
> > Its not necessary to use ActionForm, but it is always better to use
> > one(its my philosophy). But yes it will work the way you are doing
> > it. But i rather prefer a ActionForm which can also help in future
> > for any validation or in future if decided to add more attributes to
> > the form..
>
> With this discussion in mind, I am wondering if there is any way I can
> use an ActionForm in the following scenario: I would like to have a
> list of fields, dynamically created, with names that have been
> dynamically created along with those fields. So, for example, I would
> have a series of input fields like this:
>
>  [input] 
>  [input] 
>  [input] 
>
> The "field_" part of the name value will stay, but the number will
> change. With these field name values being so dynamic, is there any
> trick I can use to feed all this into an ActionForm? I don't think
> there is, unless I am missing something...

I don't believe it can be done with the fields named like that, but there is
a trick you might be able to use. ;-)

1) In the  [input]  elements, use names of the form "dynaFields.field_1", etc.
The name isn't important, but the dot is.
2) Create a corresponding Map property in your form bean (i.e. a property
named "dynaFields" in this example).

When your action form is populated, you will end up with the "dynaFields"
map containing key/value pairs corresponding to the name/value pairs from
your  [input]  elements.

--
Martin Cooper


>
>
> Thanks,
> Andy




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


-
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th

Reporting Tool.

2004-04-14 Thread Marcelo Epstein
Hi,
I need to create some reports in my application. Which is the best tool
available to work with Struts?
I read about JasperReports, is it the way to go with Struts?

Thanks in advance.
Marcelo


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



RE: Row

2004-04-14 Thread Indra Gunawan
If you use jsp pages you can try taglib from
http://jsptags.com/tags/navigation/pager/index.jsp

good luck

-Original Message-
From: Iwan Soenarto (IT) [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 10:01 AM
To: [EMAIL PROTECTED]
Subject: Row


I have 100 records. How do I limit the number of row to display per page
to 10 ?
What technique should I use ?
 
Tks
Iws

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



Row

2004-04-14 Thread Iwan Soenarto (IT)
I have 100 records. How do I limit the number of row to display per page
to 10 ?
What technique should I use ?
 
Tks
Iws


RE: redirecting XML/XSLT to JSP or Vice Versa

2004-04-14 Thread Kunal H. Parikh
Consider the JSTL.

JSTL supports XML and XSLT processing.


Cheers,

Kunal

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 14 April 2004 16:14
To: [EMAIL PROTECTED]
Subject: redirecting XML/XSLT to JSP or Vice Versa

Hi
In the application I am working with data is in the form of XML for some
screens .But since the architecture uses beans and jsp.I was wondering how
to integrate JSP/Struts Architecture with XSLT/XML.
My requirement is either transform the xsl template to JSP or vice versa.
XSL/XML -> JSP -> HTML or  JSP -> XSL/XML -> HTML
is this possible??
also I was planning to use the  tag eg http://127.0.0.1:9080/XSLTServlet"; />
This would give a transformed page.
is this ok?? 
Now when i started doing the basic transformation on an xsl derived from a
JSP PAge came across an error 
"The prefix "bean" for element "bean:message" is not bound."
can this be resolved.
regards
Alan


The XSL is as follows


http://www.w3.org/1999/XSL/Transform";
version="1.0"
xmlns:xalan="http://xml.apache.org/xslt"; >











 


















MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO


~~
Opinions expressed in this e-mail are those of the individual and not that
of Mastek Limited, unless specifically indicated to that effect. Mastek
Limited does not accept any responsibility or liability for it. This e-mail
and attachments (if any) transmitted with it are confidential and/or
privileged and solely for the use of the intended person or entity to which
it is addressed. Any review, re-transmission, dissemination or other use of
or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. This e-mail and
its attachments have been scanned for the presence of computer viruses. It
is the responsibility of the recipient to run the virus check on e-mails and
attachments before opening them. If you have received this e-mail in error,
kindly delete this e-mail from all computers.

~~


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





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



user@struts.apache.org

2004-04-14 Thread Julia Weaver
Hi All,

I got an error message with the following:

It said onload is invalid.

Can someone please tell me how I can have onload
inside  tag?

Thanks!









__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



Re: Using XDoclet for DynaForms

2004-04-14 Thread Nick Heudecker
Kunil:

I've written an XDoclet extension to create DynaForm configs from POJOs.
It works quite well, and you can find it at:

http://www.systemmobile.com/code/xdoclet-apache-module-sm-1_2.zip

I'm still recovering from a disk failure, which explains the paucity of
content.  


On 2004-Apr-15 09:04, Kunal H. Parikh wrote:
> Hi All!
> 
> Is there a recommended way of generating DynaActionForms using XDoclet ?
> 
> If not, I guess I would end up writing my own ActionForms and inserting
> XDoclet tags in there.
> 
> However, is there any performance benefit of using DynaActionForms instead
> of plain ActionForms ?
> 
> TIA,
> 
> Kunal
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Phone: 734.604.9192
Web: http://www.systemmobile.com

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



an general exception about jdbc for sqlserver200

2004-04-14 Thread asd
hello ,everyone.
i happened an matter about my program.
the  code  frag  like :
*
String user = "asd";
String password = "asdddt";
String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String url="jdbc:microsoft:sqlserver://192.168.12.63:1433;DatabaseName=test";



ConnectionParam param = new ConnectionParam(driver, url, user, password);
**
ConnectionParam is a class establishing connection,that it can run well for oracle 
jdbc driver.
i had make the msbase.jar located the proper directory,etc.
but the code not run well.192.168.12.63 is the ip of my localhost, 
if change "192.168.12.63"  to "localhost ",the same exception occur.
all exception message are below:
**
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing 
socket.
 at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
 at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
 at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
 at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown Source)
 at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
 at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
 at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
 at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
 at java.sql.DriverManager.getConnection(Unknown Source)
 at java.sql.DriverManager.getConnection(Unknown Source)
 at connectionpool._Connection.(_Connection.java:44)
 at connectionpool._Connection.getConnection(_Connection.java:108)
 at connectionpool.ConnectionFactory.(ConnectionFactory.java:67)
 at connectionpool.testmypool.main(testmypool.java:84)
***
someone said it is not correct connecting the sqlserver db,but i can login and operate 
the db using SQL Server Enterprise Manager.
why?
how will i can do?

best my respect.

Re: Using XDoclet for DynaForms

2004-04-14 Thread Craig McClanahan
Kunal H. Parikh wrote:

Hi All!

Is there a recommended way of generating DynaActionForms using XDoclet ?

If not, I guess I would end up writing my own ActionForms and inserting
XDoclet tags in there.
However, is there any performance benefit of using DynaActionForms instead
of plain ActionForms ?
TIA,

Kunal

 

If you believe the microbenchmarks that come with commons-beanutils 
(grab the source repository and run "ant bench"), dynabeans (and 
therefore DynaActionForms) run a little faster on a 1.4 JDK, and quite a 
little faster on earlier JDKs, because of the use of reflection for 
standard JavaBeans (versus HashMap lookups on dynabeans).  However, it's 
unlikely to matter at all for most web applications, unless your servlet 
container's server is heavily CPU bound.

Craig



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



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


Re: how to use JSF tree control in a Struts application?

2004-04-14 Thread Craig McClanahan
snpe wrote:

I compile struts-faces2 from cvs and i get next error when I try log in
(I register, log off and try log in) :
 

You would get an exception like this if the custom renderers in 
struts-faces.jar were not registered with JSF, which might in turn 
happen if you didn't include all the JARs, or you're running on a broken 
servlet container that doesn't recognize TLDs inside JAR files.  Could 
you double check that you've included struts-faces.jar, jsf-api.jar, and 
jsf-impl.jar inside /WEB-INF/lib?  What container (and version) are you 
running on?  Finally, were there any logged errors when the app was 
initially deployed?

If that all looks right, could you please give me a precise script to 
reproduce the problem?  When I try what you describe above, it works 
fine for me.

Craig

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


Re: Better peformance: Using static variables or application context object

2004-04-14 Thread Craig McClanahan
Prasad, Kamakshya wrote:

Hi All,

Performance wise which will be the better way of caching for a web
application, using static variables or embedding the object to be cached
in the application context object.
 

Unless your server is totally CPU bound, it's unlikely to make any 
difference at all from a performance point fo view.  If it is, then any 
difference is solely in the tradeoffs of how you get to the cached data 
-- the ServletContext.getAttributes() call is typically a lookup in a 
HashMap (with synchronization to avoid multithread issues), versus 
whatever lookup mechanism you use in your static variables.

But, I would suggest focusing on clean architecture and design as the 
first priority, and optimize stuff like this only if it shows up in your 
performance measurements.  Paying attention to the indexes on your 
database is likely to give you substantially more benefit for a given 
amount of time spent on performance tuning than something like this.

KP

 

Craig

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


RE: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-14 Thread James Holmes
As a side note, I just released a new version of Struts and Faces Consoles
that now work with JDeveloper 10g.

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

I'll post an official notice later.

-James

-Original Message-
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 3:25 AM
To: Struts Users Mailing List
Subject: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

Finally!

http://otn.oracle.com/software/products/jdev/index.html (249MB)

-- Chris

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


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



RE: Tool for HTML/JSP formatting

2004-04-14 Thread Matthew Fisher
I use Homesite 5. It isn't specifically a java tool so it doesn't have all
the integration that JDev etc has, but for HTML there is nothing better.

Matt

-Original Message-
From: Arumugam Senthil Kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 14 April 2004 3:09 PM
To: Struts Users Mailing List
Subject: Re: Tool for HTML/JSP formatting


Hi,

Jdeveloper,netbeans are good tool for html and jsp.


Regards,

A.S.Kumar.






Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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

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



Re: Access to tiles-config_1_1.dtd

2004-04-14 Thread snpe
dtd exits in commons-validator.jar, you need decalaration only
If You have old version  validator maybe you need this :
 http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>

This declaration are in begin dtd file in jar files - parser know this catalog
("-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN")
and don't do network acccess

regards
On Wednesday 14 April 2004 09:15 pm, MyHotspotzz Mail wrote:
> Thanks, It looks like I'm missing the 1.1 in the public name and a different
> domain name.
>  Do you really think that this could be the solution? I have been able to
> download the
> dtd file from jakarta.apache.org.
> 
> I just pinged www.jakarta.org and I don't get DNS resoluton.
> http://www.jakarta.org/struts/dtds/tiles-config_1_1.dtd"; in my web browser
> does not
> open the dtd file.
> 
> JR
> 
>  Configuration//EN'
>  'http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd'>
> - Original Message - 
> From: "snpe" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 14, 2004 10:28 AM
> Subject: Re: Access to tiles-config_1_1.dtd
> 
> 
> > set tiles-def.xml like :
> > 
> >
> >   >"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
> >"http://www.jakarta.org/struts/dtds/tiles-config_1_1.dtd";>
> > 
> >
> > regards
> > On Wednesday 14 April 2004 02:43 pm, MyHotspotzz Mail wrote:
> > > I was seeing a failure to find tiles definitions factory.
> > > I've tracked it down to the tiles-config_1_1.dtd not being accessable
> from the jakarta web site.
> > >
> > > I have a copy of the tiles-config_1_1.dtd in my WEB-INF folder. How do I
> get Tomcat to find it?
> > >
> > > J.R.
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: when not to use an ActionForm

2004-04-14 Thread Martin Cooper

"Andy Engle" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
>
> > Richard,
> > Its not necessary to use ActionForm, but it is always better to use
> > one(its my philosophy). But yes it will work the way you are doing
> > it. But i rather prefer a ActionForm which can also help in future
> > for any validation or in future if decided to add more attributes to
> > the form..
>
> With this discussion in mind, I am wondering if there is any way I can
> use an ActionForm in the following scenario: I would like to have a
> list of fields, dynamically created, with names that have been
> dynamically created along with those fields.  So, for example, I would
> have a series of input fields like this:
>
> 
> 
> 
>
> The "field_" part of the name value will stay, but the number will
> change.  With these field name values being so dynamic, is there any
> trick I can use to feed all this into an ActionForm?  I don't think
> there is, unless I am missing something...

I don't believe it can be done with the fields named like that, but there is
a trick you might be able to use. ;-)

1) In the  elements, use names of the form "dynaFields.field_1", etc.
The name isn't important, but the dot is.
2) Create a corresponding Map property in your form bean (i.e. a property
named "dynaFields" in this example).

When your action form is populated, you will end up with the "dynaFields"
map containing key/value pairs corresponding to the name/value pairs from
your  elements.

--
Martin Cooper


>
>
> Thanks,
> Andy




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



Using XDoclet for DynaForms

2004-04-14 Thread Kunal H. Parikh
Hi All!

Is there a recommended way of generating DynaActionForms using XDoclet ?

If not, I guess I would end up writing my own ActionForms and inserting
XDoclet tags in there.

However, is there any performance benefit of using DynaActionForms instead
of plain ActionForms ?

TIA,

Kunal



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



Re: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-14 Thread Christian Bollmeyer
On Wednesday 14 April 2004 10:24, Christian Bollmeyer wrote:
> Finally!
>
> http://otn.oracle.com/software/products/jdev/index.html (249MB)
>
> -- Chris
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

And they did a great job indeed. Well, I'm not paid for promoting
Oracle software, but but this is rather close to the IDE I always
wanted. All those litte features that make life so much easier
actually seem to work now (upon briefly testing under Windows
and Linux (home)). Choosing IDEs always is a matter of taste,
and I like the Eclipse, IntelliJ and NetBeans approaches as well,
but well, after all, this definitely might become be me and my
teammates' workhorse for quite some time.

So, Duncan Mills and his entire team should open a bottle
of Champage now, sit back, relax and watch things happen.
From a technical view, 10g beats JBuilder X (among other
'full-featured IDEs') in almost any aspect. The 'productivity
by choice' slogan seems to be quite fitting. Alas. Great job,
guys!

Cheers,
-- Chris.

NB. Still wonder why the release of JDev 10g Production
is *still* not on the OTN home page.

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



Re: when not to use an ActionForm

2004-04-14 Thread Andy Engle
[EMAIL PROTECTED] wrote:

> Richard,
> Its not necessary to use ActionForm, but it is always better to use 
> one(its my philosophy). But yes it will work the way you are doing
> it. But i rather prefer a ActionForm which can also help in future
> for any validation or in future if decided to add more attributes to
> the form..

With this discussion in mind, I am wondering if there is any way I can
use an ActionForm in the following scenario: I would like to have a
list of fields, dynamically created, with names that have been
dynamically created along with those fields.  So, for example, I would
have a series of input fields like this:





The "field_" part of the name value will stay, but the number will
change.  With these field name values being so dynamic, is there any
trick I can use to feed all this into an ActionForm?  I don't think
there is, unless I am missing something...


Thanks,
Andy


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



Re: when not to use an ActionForm

2004-04-14 Thread Vijay . Kukreja
Richard,
Its not necessary to use ActionForm, but it is always better to use 
one(its my philosophy). But yes it will work the way you are doing it. But 
i rather prefer a ActionForm which can also help in future for any 
validation or in future if decided to add more attributes to the form..

Vijay.

Re: Strange problem with the validator.

2004-04-14 Thread Nathan Maves
Never mind!  found the problem...  one of those ID10T  errors.

Nathan
On Apr 14, 2004, at 3:33 PM, Nathan Maves wrote:
Anyone know why the error message does not show the maxlength argument.

# Purpose can not be greater than characters.
# Description can not be greater than characters.
notice it places the first argument (name of the field) but not the 
max length.

from the validation.xml





maxlength
2000



















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


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


Re: StyleClass

2004-04-14 Thread Dean A. Hoover
Maybe you meant "styleClass" (first character lowercase)

Dean Hoover

Teixeira, Jorge (Informaker) wrote:

What's up guys,

I wath use the property StyleClass on TagLib of struts,  I done this:



The question is,  need I make anymore? Becose this return one error
"StyleClass not found".
Need I configure anyfile?
FT.

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



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


StyleClass

2004-04-14 Thread Teixeira, Jorge (Informaker)
What's up guys,

I wath use the property StyleClass on TagLib of struts,  I done this:




The question is,  need I make anymore? Becose this return one error
"StyleClass not found".
Need I configure anyfile?


FT.

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



Strange problem with the validator.

2004-04-14 Thread Nathan Maves
Anyone know why the error message does not show the maxlength argument.

# Purpose can not be greater than characters.
# Description can not be greater than characters.
notice it places the first argument (name of the field) but not the max 
length.

from the validation.xml





maxlength
2000



















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


Logic:iterate with html:text indexed properties

2004-04-14 Thread Scherger, Derek
I'm having a bit of a problem with the html:text tag in an indexed
context... 
my form bean is arranged as follows:

FormBean
InnerBean aaa;
InnerBean bbb;

InnerBean 
List list;

SimpleBean 
String name;
Integer value;

Where the elements of the InnerBean list are SimpleBean's. On my jsp page I
have the following, inside of and html:form tag.





The html that gets generated by this has text inputs named simple[0].value,
simple[1].value etc..
When this is submitted it's trying to set these indexed values directly on
the formBean rather than on the proper inner bean's list. i.e.
BeanUtils.populate(formBean, {simple[0].value=123, simple[1]=456})

I'm thinking of addint a getSimple(int index) method to my form bean to
return the indexed element from aaa.list but this seems like somewhat of a
hack. It seems that the html:text tag needs some way of generating inputs
with a prefix to the specified name, in my case aaa.list so that the inputs
are named "aaa.list.simple[0].value" etc.

Is there a better way to handle situations like this, or does my form bean
need to be less structured to work properly?

Thanks,
Derek







when not to use an ActionForm

2004-04-14 Thread rmchiriac
Hi,

i've got a pretty simple action that takes a couple of params, does some simple 
parameter validation (in case there are any problems the user is redirected to an 
error page) and has no html form associated with it (it's called using a GET method 
from an UI test)... would using an ActionForm in this case be necessary? or using 
request.getParameter() in action will be enough? 

thanks
r

___
Get your free mail box @ http://www.mail.md



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



Re: Tool for HTML/JSP formatting

2004-04-14 Thread Arumugam Senthil Kumar
Hi,

Jdeveloper,netbeans are good tool for html and jsp.


Regards,

A.S.Kumar.






Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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



Re: Access to tiles-config_1_1.dtd

2004-04-14 Thread MyHotspotzz Mail
Thanks, It looks like I'm missing the 1.1 in the public name and a different
domain name.
 Do you really think that this could be the solution? I have been able to
download the
dtd file from jakarta.apache.org.

I just pinged www.jakarta.org and I don't get DNS resoluton.
http://www.jakarta.org/struts/dtds/tiles-config_1_1.dtd"; in my web browser
does not
open the dtd file.

JR

http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd'>
- Original Message - 
From: "snpe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 14, 2004 10:28 AM
Subject: Re: Access to tiles-config_1_1.dtd


> set tiles-def.xml like :
> 
>
>  "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
>"http://www.jakarta.org/struts/dtds/tiles-config_1_1.dtd";>
> 
>
> regards
> On Wednesday 14 April 2004 02:43 pm, MyHotspotzz Mail wrote:
> > I was seeing a failure to find tiles definitions factory.
> > I've tracked it down to the tiles-config_1_1.dtd not being accessable
from the jakarta web site.
> >
> > I have a copy of the tiles-config_1_1.dtd in my WEB-INF folder. How do I
get Tomcat to find it?
> >
> > J.R.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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



Re: Slightly OT How to set a request header using JSTL

2004-04-14 Thread Jim Collins
Thanks for you help Craig. I think the  tag looks the cleanest way and
I'll use that.

Regards

Jim.
- Original Message - 
From: "Craig McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 14, 2004 5:50 AM
Subject: Re: Slightly OT How to set a request header using JSTL


> Michael McGrady wrote:
>
> > Couldn't he wrap the response object inside a getter/setter facade?
> >
> I suppose one could do that, and even stick it (the response object)
> into the request attributes to make it visible to the EL via the
> "requestScope" magic variable.  But a property setter only takes a
> single argument (the value), so you'd need a property setter for every
> possible header (which is technically infeasible, since the set of
> possible headers is unbounded), and you still wouldn't be able to deal
> with the cases where more than one value for a header can be added (via
> response.addHeader()).
>
> It is a far far better thing :-) to just use the  tag that HTML
> provides for exactly this sort of purpose.
>
>   
>
> Besides the performance advantages of skipping all the mapping and
> facading, and making people scratch their heads over the resulting EL
> expressions, this has the advantage of clearly describing what's going
> on to anyone who is familiar with HTML.
>
> Craig
>
>
> > At 06:56 PM 4/13/2004, Craig McClanahan wrote:
> >
> >> Jim Collins wrote:
> >>
> >>> Hi Craig,
> >>>
> >>> Thanks for your response. I wanted to set the header in the JSP page
> >>> itself.
> >>> At the moment I set the header using a scriptlet (as you described
> >>> in your
> >>> post) but I would like to disable scriptlets in my JSP pages.
> >>> I was playing around with the EL and could print out the headers
> >>> using this
> >>> but I could find no way to set a header. I believe that Struts
> >>> provide a tag
> >>> that encapsulates the response that I could manipulate using the EL
> >>> but I
> >>> was wondering if I could do it using the explicit response object in
> >>> the EL.
> >>>
> >>>
> >> Unfortunately the "response" implicit object (that the JSP page
> >> compiler provides) is not visible through the EL directly.  Even if
> >> it were, however, it wouldn't help much because you can only call
> >> property getters with EL expressions; not arbitrary methods with
> >> arbitrary parameters.
> >>
> >>> Regards
> >>>
> >>> Jim.
> >>>
> >>
> >> Craig
> >>
> >>
> >>> - Original Message - From: "Craig McClanahan"
> >>> <[EMAIL PROTECTED]>
> >>> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>> Sent: Tuesday, April 13, 2004 10:48 PM
> >>> Subject: Re: Slightly OT How to set a request header using JSTL
> >>>
> >>>
> >>>
> >>>
>  Jim Collins wrote:
> 
> 
> 
> > Hi,
> >
> > Has anyone any thoughts on this?
> >
> >
> >
> >
>  The "header" object relates to the *request* headers.  You can set
>  *response* headers in a number of ways:
> 
>  * (Servlet 2.3 or later) in a Filter that wraps and postprocesses
>   the response
> 
>  * In your Action (although that only works if you also do the output
>   itself; doing a request dispatcher forward will clear the headers).
> 
>  * In a JSP page with scriptlets (as long as it's before the response
>   is committed):
> 
>   <%
> response.setHeader("Foo", "bar");
>   %>
> 
>  * In a JSP page with HTML  tags in the  section:
> 
>   
> 
>  * (JSP 2.0 or later) you can use EL expressions to get the value part
>   of the header from a bean property dynamically:
> 
>   
> 
>  * Ugly but workable using a Struts tag get the dynamic value:
> 
>       content=''>
> 
>   This only works because  is not a custom tag; otherwise
>   the nesting syntax would be illegal.
> 
> 
> 
> > Thanks
> >
> > Jim.
> >
> >
> >
>  Craig
> 
> 
> 
> 
> > - Original Message - From: "Jim Collins"
> > <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 06, 2004 10:10 PM
> > Subject: Slightly OT How to set a request header using JSTL
> >
> >
> >
> >
> >
> >
> >> Hi,
> >>
> >> I know how I can read request headers using c:out and the header
> >> object.
> >> Does anyone know how I can set a response header using c:set? Can
> >> it be
> >>
> >>
> >>
> > done
> >
> >
> >
> >
> >> without using the response tag? I don't want to use scriptlets.
> >>
> >> Thanks
> >>
> >> Jim.
> >>
> >>
>
>> - 
> >>
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
>
> ---

Re: how to use JSF tree control in a Struts application?

2004-04-14 Thread snpe
I compile struts-faces2 from cvs and i get next error when I try log in
(I register, log off and try log in) :

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

root cause

java.lang.NullPointerException
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:676)
javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:323)
javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:574)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:461)
org.apache.jsp.logon_jsp._jspx_meth_s_errors_0(logon_jsp.java:131)
org.apache.jsp.logon_jsp._jspService(logon_jsp.java:104)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0 logs
On Wednesday 14 April 2004 04:07 pm, Matthias Wessendorf wrote:
> Hi,
> 
> did you look into struts-faces
> there are two examples(one with tiles)
> 
> the jsps are all with JSF-"Tags"
> 
> and there is a  ...>-Componentent,
> the 
> public String method(){
> 
> }
> call a struts-action (on ExternalContext.dispatch)
> 
> i hope/guess you mean that.
> 
> cheers,
> 
> Matthias
> 
> PS: three backingBeans are included in example2...
> 
> 
> > -Original Message-
> > From: Sharath Reddy [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, April 14, 2004 2:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: how to use JSF tree control in a Struts application?
> > 
> > 
> > hello,
> > 
> > i have an existing struts application, and i need to
> > add a tree control. i thought i would take a look at
> > JSF. however, the only concrete example i found for
> > integrating struts and JSF:
> > 
> http://www-106.ibm.com/developerworks/library/j-integrate/
> 
> deals only with a simple form. is it possible to use
> the tree control? how do i distinguish between the
> different kinds of clicks (node expanded vs. leaf
> selected) in my struts action class?
> 
> thanks!
> 
> sharath
> 
> 
> 
> 
> 
> 
>   
>   
> __
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th
> http://taxes.yahoo.com/filing.html
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: Date validator and I18N

2004-04-14 Thread Joe Hertz
I tried to change one piece of my functionality to struts faces. Here's
my take.

My smallest complaint was that most of what's out there as far as
learning JSF still talks about EA4, and JSF has had some significant
changes made to it since 1.0 came out. Enough that pretty much any JSP
written for EA4 won't work at all with 1.0. This is just an early
adopter issue. This will fix itself.

What kinda bothered me though was what what JSF does do the JSP files.

When I was looking for a front end person to help me out, I didn't care
that they didn't know the struts tag libs. I showed them some pages, and
they saw , ,  and they universally said,
"Oh! I can do this...". They even smiled when I told them there was a
commercially available Dreamweaver extension for the Struts tags.

But in looking at my jsf JSP page, I didn't think that would work. To
test my concern, I showed my one JSF enabled JSP page to someone of a
similar background. Their reaction? 

"f? h?  ?". 

In some ways this struck me as almost worse than embedded scriptlets in
JSP. The tags the HTML person *should* have understood weren't obvious
to them.

This won't be nearly as big of a deal I think once some good IDE tools
come out for JSF, but for right now it's an issue. Basically I came away
feeling that JSF is going to be fine once it gets used more, but right
now the paint is still pretty wet.

But in thinking about this, I came away with a few thoughts. JSF
provides these rich UI widgets to do things. In some cases, as I
understand it, you should use them instead of doing your own iteration
on "ordinary" tags. The problem is, I don't really need rich UI widgets.
I don't want a Swiss Army JackHammer.

It just struck me as overkill. I just want something in Struts to deal
with the things I need to do everyday when I use Struts. 

Yes, the JSP's are going to need to send me String data or need some UI
logic tacked onto them. I accept that. I'll need Action Forms. No
problem. 

FormDef's reason for existence is to create the forms you'll need on the
fly and convert the data you'll get back into business objects when you
have a correspondence between a business object and a form. This is the
bread and butter of Struts actions. FormDef does an admirable job of
trying to make the chore easier. In fact, it makes it easier to think of
your struts app in terms of the business objects, which is what the goal
should be.

-Joe

> -Original Message-
> From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 14, 2004 1:41 PM
> To: Struts Users Mailing List
> Subject: RE: Date validator and I18N
> 
> 
> Having the locale stuff is vital for some projects 
> (especially in canada).
> 
> JSF is on the horizon as well, but I don't know if it impacts 
> formdef or not.  I plan on playing with this one a bit.
> 
> sandeep
> 
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 14, 2004 1:14 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Date validator and I18N
> 
> 
> Sandeep,
> 
> That's more or less what I found as well. I gave up eons 
> before you did though. Glad it wasn't just me. 
> 
> My "previous solution" was an utter kludge to 
> BeanUtils.copyProperties and copyProperty. I created 
> something called DateBeanUtils that had had both of these 
> methods, with a DateFormat parameter added to them. It's 
> utterly hideous but it works.
>  
> Date->Anything first formats the Date into a String and proceeds as if
> it was a String all along.
> 
> String->Date is handled directly and the only ->Date conversion that's
> handled at all, since Anything->Date gets is typically 
> ignored by BeanUtils. 
> 
> Like I said, hideous.
> 
> But it's interesting you should mention FormDef, because 
> THAT's what I am using now, and I'm incredibly happy with it. 
> Nevermind I don't need to to define many of the DynaBeans I 
> otherwise would have, but it's current handling of Dates is 
> loads better than anything else for my needs (I no longer 
> have to deal with the date handling at all in my actions!!).
> 
> It looks to be *almost* there for i18n (currently you can 
> specify date formats to use as a default, and for various 
> properties, but there's no way to specify a DateFormat to use 
> per Locale. Curiously though the infrastructure in the code 
> looks to be all in place to support this, so...Hubert Rabago 
> and I have been talking, and to make a long story short, it 
> looks like I'll be helping him out on this plugin. (This is 
> very very early in the going here)
> 
> I've already made some changes locally that will make it more 
> usable for those using Hibernate and nested form beans (Me! 
> Me! Me!). If I have my druthers, this issue will be getting 
> s put to bed, I can tell you that.
> 
> -Joe
> 
> > -Original Message-
> > From: Takhar, Sandeep [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, April 14, 2004 7:39 AM
> > To: Struts Users Mailing List
> > Subject: RE

RE: Date validator and I18N

2004-04-14 Thread Takhar, Sandeep
Having the locale stuff is vital for some projects (especially in canada).

JSF is on the horizon as well, but I don't know if it impacts formdef or not.  I plan 
on playing with this one a bit.

sandeep

-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Date validator and I18N


Sandeep,

That's more or less what I found as well. I gave up eons before you did
though. Glad it wasn't just me. 

My "previous solution" was an utter kludge to BeanUtils.copyProperties
and copyProperty. I created something called DateBeanUtils that had had
both of these methods, with a DateFormat parameter added to them. It's
utterly hideous but it works.
 
Date->Anything first formats the Date into a String and proceeds as if
it was a String all along.

String->Date is handled directly and the only ->Date conversion that's
handled at all, since Anything->Date gets is typically ignored by
BeanUtils. 

Like I said, hideous.

But it's interesting you should mention FormDef, because THAT's what I
am using now, and I'm incredibly happy with it. Nevermind I don't need
to to define many of the DynaBeans I otherwise would have, but it's
current handling of Dates is loads better than anything else for my
needs (I no longer have to deal with the date handling at all in my
actions!!).

It looks to be *almost* there for i18n (currently you can specify date
formats to use as a default, and for various properties, but there's no
way to specify a DateFormat to use per Locale. Curiously though the
infrastructure in the code looks to be all in place to support this,
so...Hubert Rabago and I have been talking, and to make a long story
short, it looks like I'll be helping him out on this plugin. (This is
very very early in the going here)

I've already made some changes locally that will make it more usable for
those using Hibernate and nested form beans (Me! Me! Me!). If I have my
druthers, this issue will be getting s put to bed, I can tell you
that.

-Joe

> -Original Message-
> From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 14, 2004 7:39 AM
> To: Struts Users Mailing List
> Subject: RE: Date validator and I18N
> 
> 
> I have coded LocaleBeanUtils, but had to subclass the whole 
> thing since it seems like it is a version behind.  In the 
> subclass I changed a couple of lines in some methods to make 
> it work with some converters I created.
> 
> Someone else has a solution that I haven't had time to look 
> at yet: http://www.rabago.net/struts/formdef that talks about 
> formatting.
> 
> I had to have custom converters so the populate that struts 
> uses from BeanUtils removes some formatting as well so we 
> don't have to deal with this in the action.
> 
> sandeep
> 
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 13, 2004 10:51 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Date validator and I18N
> 
> 
> Yes, you can get the dates validated this way, but isn't 
> actually the tough hurdle.
> 
> You've got Date objects being stored some place.
> 
> You'll need them displayed as Strings in your Action Form. 
> You'll need them formatted by Locale.
> 
> You'll want want the Strings converted back to Dates in the 
> processing Action. You'll need them parsed by Locale.
> 
> Unless someone can offer a better explanation of the usage of 
> LocaleBeanUtils than I can, this may prove to be quite the 
> annoying little repeated task.
> 
> -Joe
> 
> > -Original Message-
> > From: Jeff Caesar [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 13, 2004 7:04 PM
> > To: Struts Users Mailing List
> > Subject: RE: Date validator and I18N
> > 
> > 
> > I haven't personally tried doing this, but according to the
> > doc you can specify language/country/variant on the formset 
> > when defining your validation so that the validator will 
> > choose the best one available for the given user's locale.
> > 
> > From the validator DTD:
> > 
> > 
> > 
> > 
> > 
> > 
> > So you would want to create four different  defs
> > (one for each of your languages plus a default) for the form.
> > 
> > Jeff
> > 
> > -Original Message-
> > From: Stjepan Brbot [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 13, 2004 3:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: Date validator and I18N
> > 
> > 
> > In my web application I deal with three languages (Croatian,
> > German and English). Application does have forms allowing 
> > user to input a date value. When english locale is active 
> > user must have the ability to insert date in english date 
> > format (mm/dd/), also croatian and german users must have 
> > the ability to insert dates in their own date format 
> > (dd.mm.). How to define a validation for such a 
> > situation? In mask for date validation (in validation.xml) I 
> > can define only one date format pattern!
> > 
> > Stjepan Brbot
> > 
> > 

RE: Date validator and I18N

2004-04-14 Thread Joe Hertz
Sandeep,

That's more or less what I found as well. I gave up eons before you did
though. Glad it wasn't just me. 

My "previous solution" was an utter kludge to BeanUtils.copyProperties
and copyProperty. I created something called DateBeanUtils that had had
both of these methods, with a DateFormat parameter added to them. It's
utterly hideous but it works.
 
Date->Anything first formats the Date into a String and proceeds as if
it was a String all along.

String->Date is handled directly and the only ->Date conversion that's
handled at all, since Anything->Date gets is typically ignored by
BeanUtils. 

Like I said, hideous.

But it's interesting you should mention FormDef, because THAT's what I
am using now, and I'm incredibly happy with it. Nevermind I don't need
to to define many of the DynaBeans I otherwise would have, but it's
current handling of Dates is loads better than anything else for my
needs (I no longer have to deal with the date handling at all in my
actions!!).

It looks to be *almost* there for i18n (currently you can specify date
formats to use as a default, and for various properties, but there's no
way to specify a DateFormat to use per Locale. Curiously though the
infrastructure in the code looks to be all in place to support this,
so...Hubert Rabago and I have been talking, and to make a long story
short, it looks like I'll be helping him out on this plugin. (This is
very very early in the going here)

I've already made some changes locally that will make it more usable for
those using Hibernate and nested form beans (Me! Me! Me!). If I have my
druthers, this issue will be getting s put to bed, I can tell you
that.

-Joe

> -Original Message-
> From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 14, 2004 7:39 AM
> To: Struts Users Mailing List
> Subject: RE: Date validator and I18N
> 
> 
> I have coded LocaleBeanUtils, but had to subclass the whole 
> thing since it seems like it is a version behind.  In the 
> subclass I changed a couple of lines in some methods to make 
> it work with some converters I created.
> 
> Someone else has a solution that I haven't had time to look 
> at yet: http://www.rabago.net/struts/formdef that talks about 
> formatting.
> 
> I had to have custom converters so the populate that struts 
> uses from BeanUtils removes some formatting as well so we 
> don't have to deal with this in the action.
> 
> sandeep
> 
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 13, 2004 10:51 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Date validator and I18N
> 
> 
> Yes, you can get the dates validated this way, but isn't 
> actually the tough hurdle.
> 
> You've got Date objects being stored some place.
> 
> You'll need them displayed as Strings in your Action Form. 
> You'll need them formatted by Locale.
> 
> You'll want want the Strings converted back to Dates in the 
> processing Action. You'll need them parsed by Locale.
> 
> Unless someone can offer a better explanation of the usage of 
> LocaleBeanUtils than I can, this may prove to be quite the 
> annoying little repeated task.
> 
> -Joe
> 
> > -Original Message-
> > From: Jeff Caesar [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 13, 2004 7:04 PM
> > To: Struts Users Mailing List
> > Subject: RE: Date validator and I18N
> > 
> > 
> > I haven't personally tried doing this, but according to the
> > doc you can specify language/country/variant on the formset 
> > when defining your validation so that the validator will 
> > choose the best one available for the given user's locale.
> > 
> > From the validator DTD:
> > 
> > 
> > 
> > 
> > 
> > 
> > So you would want to create four different  defs
> > (one for each of your languages plus a default) for the form.
> > 
> > Jeff
> > 
> > -Original Message-
> > From: Stjepan Brbot [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 13, 2004 3:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: Date validator and I18N
> > 
> > 
> > In my web application I deal with three languages (Croatian,
> > German and English). Application does have forms allowing 
> > user to input a date value. When english locale is active 
> > user must have the ability to insert date in english date 
> > format (mm/dd/), also croatian and german users must have 
> > the ability to insert dates in their own date format 
> > (dd.mm.). How to define a validation for such a 
> > situation? In mask for date validation (in validation.xml) I 
> > can define only one date format pattern!
> > 
> > Stjepan Brbot
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> >

"Request Processing Message"

2004-04-14 Thread Eastmond, Benjamin K
Anyone have any examples or ideas on how to create some sort of request processing 
page? ( ie. Like Travelocity search page )

I would like to be able to go a "processing request ... please wait" page while 
processing a request and then forwarding or displaying the results of the request. I 
would like this to be an automatic feature / process using struts.

Thanks in advance...


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



RE: Calling CGI script

2004-04-14 Thread Joe Hertz
I had a similar problem once, an action needing to call a client's NT
executable to generate a file to be emailed to someone. This isn't
really a struts problem though. 

CGI only means it's an application that takes it parameters on the
command line and prints whatever it wants to be displayed in the
browser, so it shouldn't be incredibly tough to call the script. 

You could put it on some hidden/secure place on your web server, and
make your own properly formed http call to it from your action. 

If making an http call to an app that technically doesn't need http to
work offends you, you can probably call it directly with the Runtime
class, but at that moment, you've made yourself dependent on your
underlying OS.

HTH

-Joe

> -Original Message-
> From: Alain Van Vyve [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 14, 2004 9:48 AM
> To: Struts Users Mailing List
> Subject: Calling CGI script
> 
> 
> 
> My application is using Struts in a Tomcat 4.1.29 
> environment. I'm in a situation where an Action has to call a 
> CGI script that will be 
> responsible to initiate a payment process (third party)
> 
> I have  found the way how to modify my Tomcat environment ... 
> that's not 
> the issue !
> My problem is : How can I call a cgi script in my action ?
> 
> Thank's
> 
> Alain
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



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



RE: how to use JSF tree control in a Struts application?

2004-04-14 Thread Matthias Wessendorf
Hi,

did you look into struts-faces
there are two examples(one with tiles)

the jsps are all with JSF-"Tags"

and there is a -Componentent,
the 
public String method(){

}
call a struts-action (on ExternalContext.dispatch)

i hope/guess you mean that.

cheers,

Matthias

PS: three backingBeans are included in example2...


> -Original Message-
> From: Sharath Reddy [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 14, 2004 2:43 PM
> To: [EMAIL PROTECTED]
> Subject: how to use JSF tree control in a Struts application?
> 
> 
> hello,
> 
> i have an existing struts application, and i need to
> add a tree control. i thought i would take a look at
> JSF. however, the only concrete example i found for
> integrating struts and JSF:
> 
http://www-106.ibm.com/developerworks/library/j-integrate/

deals only with a simple form. is it possible to use
the tree control? how do i distinguish between the
different kinds of clicks (node expanded vs. leaf
selected) in my struts action class?

thanks!

sharath








__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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


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



Re: Access to tiles-config_1_1.dtd

2004-04-14 Thread snpe
set tiles-def.xml like :


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


regards
On Wednesday 14 April 2004 02:43 pm, MyHotspotzz Mail wrote:
> I was seeing a failure to find tiles definitions factory.
> I've tracked it down to the tiles-config_1_1.dtd not being accessable from the 
> jakarta web site.
> 
> I have a copy of the tiles-config_1_1.dtd in my WEB-INF folder. How do I get Tomcat 
> to find it?
> 
> J.R.
> 

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



Re: AW: [OT] Session end notification

2004-04-14 Thread Pani R
Andreas, I'm using it with Tomcat 4.1.30 and invaildation based on timeout works fine.

-Pani

--

- Original Message -

DATE: Wed, 14 Apr 2004 09:32:20
From: "Andreas Solarik" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Cc: 

>Sorry to continue this, but:
>
>does sessionDestroyed(...) actually allow one to receive the invalidation of
>a session, especially after an invalidation based on a timeout? I can dimly
>remember some problems with tomcat (an early, stable version 4.something)
>using this feature; we ended up looking for the unbinding of a session (or
>was it the unbinding of session attributes?), which worked *much* better.
>This was a long time ago, it might not be an issue anymore.
>
>Andreas
>
>-Ursprungliche Nachricht-
>Von: Pani R [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 14. April 2004 00:59
>An: Struts Users Mailing List
>Betreff: Re: [OT] Session end notification
>
>
>
>Check
>
> javax.servlet.http.HttpSessionListener
>
>interface.
>
>-Pani
>
>--
>
>- Original Message -
>
>DATE: Tue, 13 Apr 2004 15:51:58
>From: Chiming Huang <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Cc:
>
>>Hi,
>>
>>Is there a way to get a notification when a session is ended?
>>
>>Thanks,
>>Chiming
>>
>>
>>-
>>Do you Yahoo!?
>>Yahoo! Tax Center - File online by April 15th
>
>
>
>
>Find what you are looking for with the Lycos Yellow Pages
>http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
>?SRC=lycos10
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>




Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



Re: reading and posting

2004-04-14 Thread Stjepan Brbot
I use news (usenet) reader built inside Microsoft Outlook Express and it works just 
fine. Point your news reader to news://news.gname.org news server.

Stjepan Brbot


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



RE: redirecting XML/XSLT to JSP or Vice Versa

2004-04-14 Thread MARU, SOHIL (SBCSI)
I am doing something similar, I have a JSP with the following code




Which transforms using XSL. Now you need to create an xsl and then use
the .jsp extension instead. Your XSL should being like this

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
http://www.w3.org/1999/XSL/Transform"; 
xmlns:fo="http://www.w3.org/1999/XSL/Format"; 
xmlns:xalan="http://xml.apache.org/xalan";
version="1.0">

Including any tabglibs that you want to use in your xsl. That worked for
me. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 1:14 AM
To: [EMAIL PROTECTED]
Subject: redirecting XML/XSLT to JSP or Vice Versa


Hi
In the application I am working with data is in the form of XML for some
screens .But since the architecture uses beans and jsp.I was wondering
how to integrate JSP/Struts Architecture with XSLT/XML.
My requirement is either transform the xsl template to JSP or vice
versa.
XSL/XML -> JSP -> HTML or  JSP -> XSL/XML -> HTML
is this possible??
also I was planning to use the  tag eg http://127.0.0.1:9080/XSLTServlet"; />
This would give a transformed page.
is this ok?? 
Now when i started doing the basic transformation on an xsl derived from
a JSP PAge came across an error 
"The prefix "bean" for element "bean:message" is not bound."
can this be resolved.
regards
Alan


The XSL is as follows


http://www.w3.org/1999/XSL/Transform";
version="1.0"
xmlns:xalan="http://xml.apache.org/xslt"; >











 


















MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO


~~
Opinions expressed in this e-mail are those of the individual and not
that of Mastek Limited, unless specifically indicated to that effect.
Mastek Limited does not accept any responsibility or liability for it.
This e-mail and attachments (if any) transmitted with it are
confidential and/or privileged and solely for the use of the intended
person or entity to which it is addressed. Any review, re-transmission,
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. This e-mail and its attachments have been
scanned for the presence of computer viruses. It is the responsibility
of the recipient to run the virus check on e-mails and attachments
before opening them. If you have received this e-mail in error, kindly
delete this e-mail from all computers.

~~


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


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



RE: Calling CGI script

2004-04-14 Thread MARU, SOHIL (SBCSI)
You can do that by using the Java Runtime.getRuntime().exec(command)
Where exec is the command on your file system.

-Original Message-
From: Alain Van Vyve [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 8:48 AM
To: Struts Users Mailing List
Subject: Calling CGI script



My application is using Struts in a Tomcat 4.1.29 environment.
I'm in a situation where an Action has to call a CGI script that will be

responsible to initiate a payment process (third party)

I have  found the way how to modify my Tomcat environment ... that's not

the issue !
My problem is : How can I call a cgi script in my action ?

Thank's

Alain


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


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



Access to tiles-config_1_1.dtd

2004-04-14 Thread MyHotspotzz Mail
I was seeing a failure to find tiles definitions factory.
I've tracked it down to the tiles-config_1_1.dtd not being accessable from the jakarta 
web site.

I have a copy of the tiles-config_1_1.dtd in my WEB-INF folder. How do I get Tomcat to 
find it?

J.R.


Calling CGI script

2004-04-14 Thread Alain Van Vyve
My application is using Struts in a Tomcat 4.1.29 environment.
I'm in a situation where an Action has to call a CGI script that will be 
responsible to initiate a payment process (third party)

I have  found the way how to modify my Tomcat environment ... that's not 
the issue !
My problem is : How can I call a cgi script in my action ?

Thank's

Alain

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


Re: [OT] Session end notification

2004-04-14 Thread Chiming Huang
Thank you Pani.  I will check it out.

Chiming


- Original Message -
From: "Pani R" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
Sent: Tuesday, April 13, 2004 6:59 PM
Subject: Re: [OT] Session end notification


>
> Check
>
>  javax.servlet.http.HttpSessionListener
>
> interface.
>
> -Pani
>
> --
>
> - Original Message -
>
> DATE: Tue, 13 Apr 2004 15:51:58
> From: Chiming Huang <[EMAIL PROTECTED]>
> To: Struts Users Mailing List
<[EMAIL PROTECTED]>
> Cc:
>
> >Hi,
> >
> >Is there a way to get a notification when a session
is ended?
> >
> >Thanks,
> >Chiming
> >
> >
> >-
> >Do you Yahoo!?
> >Yahoo! Tax Center - File online by April 15th
>
>
>
>

> Find what you are looking for with the Lycos Yellow
Pages
>
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
?SRC=lycos10
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>





__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



RE: Nesting of one tag within another.

2004-04-14 Thread Lowery, Mat
The issue here is the  when you change the  to an
.  If you're using the EL version of the Struts html taglib,
you could do something like:







-Original Message-
From: Velmurugan M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 8:22 PM
To: [EMAIL PROTECTED]
Subject: Nesting of one tag within another.

Can someone mail  me how to convert this piece of code in to  

Html:link.

 

   )">





 

 

Struts tag should not be nesting another struts tag.

 

Regards, 

Velmuruganm

 


"The sender believes that this E-Mail and any attachments were free of any virus, 
worm, Trojan horse, and/or malicious code when sent. This message and its attachments 
could have been infected during transmission.  By reading the message and opening any 
attachments, the recipient accepts full responsibility for taking proactive and 
remedial action about viruses and other defects. The sender's business entity is not 
liable for any loss or damage arising in any way from this message or its attachments."


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



how to use JSF tree control in a Struts application?

2004-04-14 Thread Sharath Reddy
hello,

i have an existing struts application, and i need to
add a tree control. i thought i would take a look at
JSF. however, the only concrete example i found for
integrating struts and JSF:

http://www-106.ibm.com/developerworks/library/j-integrate/

deals only with a simple form. is it possible to use
the tree control? how do i distinguish between the
different kinds of clicks (node expanded vs. leaf
selected) in my struts action class?

thanks!

sharath








__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



SV: Validator

2004-04-14 Thread hermod . opstvedt
Hi

set validate="false" in your action definition 

Hermod

-Opprinnelig melding-
Fra: Zakaria khabot [mailto:[EMAIL PROTECTED]
Sendt: 14. april 2004 13:41
Til: Struts Users Mailing List; Struts Developers List
Emne: Validator


Hi all,
In my JSP I have many "Submit(s)" to the same action. In someones I want
to use the validator but in the others I want to execute the action
without using validator.
I am using validation.xml
How to do this???
Thanks



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



RE: Validator

2004-04-14 Thread Takhar, Sandeep
 will do a submit but doesn't do a validate.  Populate will still work.

sandeep

-Original Message-
From: Zakaria khabot [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 7:41 AM
To: Struts Users Mailing List; Struts Developers List
Subject: Validator


Hi all,
In my JSP I have many "Submit(s)" to the same action. In someones I want to use the 
validator but in the others I want to execute the action without using validator.
I am using validation.xml
How to do this???
Thanks


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



Validator

2004-04-14 Thread Zakaria khabot
Hi all,
In my JSP I have many "Submit(s)" to the same action. In someones I want to use the 
validator but in the others I want to execute the action without using validator.
I am using validation.xml
How to do this???
Thanks



RE: Date validator and I18N

2004-04-14 Thread Takhar, Sandeep
I have coded LocaleBeanUtils, but had to subclass the whole thing since it seems like 
it is a version behind.  In the subclass I changed a couple of lines in some methods 
to make it work with some converters I created.

Someone else has a solution that I haven't had time to look at yet: 
http://www.rabago.net/struts/formdef that talks about formatting.

I had to have custom converters so the populate that struts uses from BeanUtils 
removes some formatting as well so we don't have to deal with this in the action.

sandeep

-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 10:51 PM
To: 'Struts Users Mailing List'
Subject: RE: Date validator and I18N


Yes, you can get the dates validated this way, but isn't actually the
tough hurdle.

You've got Date objects being stored some place.

You'll need them displayed as Strings in your Action Form. You'll need
them formatted by Locale.

You'll want want the Strings converted back to Dates in the processing
Action. You'll need them parsed by Locale.

Unless someone can offer a better explanation of the usage of
LocaleBeanUtils than I can, this may prove to be quite the annoying
little repeated task.

-Joe

> -Original Message-
> From: Jeff Caesar [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 13, 2004 7:04 PM
> To: Struts Users Mailing List
> Subject: RE: Date validator and I18N
> 
> 
> I haven't personally tried doing this, but according to the 
> doc you can specify language/country/variant on the formset 
> when defining your validation so that the validator will 
> choose the best one available for the given user's locale.
> 
> From the validator DTD:
> 
> 
> 
> 
> 
> 
> So you would want to create four different  defs 
> (one for each of your languages plus a default) for the form.
> 
> Jeff
> 
> -Original Message-
> From: Stjepan Brbot [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 13, 2004 3:07 PM
> To: [EMAIL PROTECTED]
> Subject: Date validator and I18N
> 
> 
> In my web application I deal with three languages (Croatian, 
> German and English). Application does have forms allowing 
> user to input a date value. When english locale is active 
> user must have the ability to insert date in english date 
> format (mm/dd/), also croatian and german users must have 
> the ability to insert dates in their own date format 
> (dd.mm.). How to define a validation for such a 
> situation? In mask for date validation (in validation.xml) I 
> can define only one date format pattern!
> 
> Stjepan Brbot
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



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

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



RE: Https forwarding question

2004-04-14 Thread Erez Efrati
Thanks a lot,

Erez

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 9:58 AM
To: Struts Users Mailing List
Subject: Re: Https forwarding question

Actually with sslext, you would also want to use the sslext taglib link,

so that the URL gets written out with HTTPS as well.

On 04/14/2004 03:05 AM Bill Siggelkow wrote:
> I know of two ways --
> If you are using the Struts SSL Extension 
> (http://sslext.sourceforge.net) you can specify if an action requires 
> HTTPS or not in the struts-config.xml;
> otherwise, you will need to use absolute URLs for the 'href' attribute

> and specify the protocol explicitly.
> 
> Erez Efrati wrote:
> 
>> This might be a simple question but it's a first time for me.
>> How do I forward using the  tag to an action that must be
>> addressed with HTTPS as the protocol scheme?  
>> Thanks,
>>  
>> Erez
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


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



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



SV: Tiles - Specify Error page ?

2004-04-14 Thread hermod . opstvedt
Hi

Since an error can occur on any .jsp file (Tiles is just a collection of
.jsp files), you need to add :

<%@ page errorPage="/jsp/error.jsp" session="true"%>

on ALL .jsp files - Do not have your error page as another tile. The
error page should be as simple as possible to avoid any errors occurring
in the error page itself.

Hermod

-Opprinnelig melding-
Fra: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
Sendt: 14. april 2004 09:42
Til: Struts Users Mailing List
Emne: RE: Tiles - Specify Error page ?


Hi,

Let me makes things more clear.

My main tiles file -

Should i place the errorPage attribute here ?








My content file i.e., my_contents.jsp

Should i place the errorPage attribute here ?
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>





One point to note is that my errorpage also has a main tiles file and a
content file describing the error.
So my error page (main tiles file) path is /errorPage.jsp
and path for content page of error is /contents/errorPage_contents.jsp

Regards,
Janarthan S
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 12:44 PM
To: [EMAIL PROTECTED]
Subject: SV: Tiles - Specify Error page ?


Hi

On each and every .jsp file

Hermod

-Opprinnelig melding-
Fra: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
Sendt: 14. april 2004 08:16
Til: Struts Users Mailing List
Emne: Tiles - Specify Error page ?


Hi,

I am using Tiles that comes bundled with struts1.1.
I have a main template file for my jsp's.
All my jsp's have a left navigation, a header section, a footer section
and a content section.
Given a jsp page, I have a main tiles file in which i specify these
settings.
I want to specify an error page for all my jsps.
My question is where do i specify the errorPage attribute ? Should it
come in the main tile file or the content file of the JSP ?
Any help appreciated.

Thanks & Regards,

Janarthan S.

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


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *


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


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

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



[OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-14 Thread Christian Bollmeyer
Finally!

http://otn.oracle.com/software/products/jdev/index.html (249MB)

-- Chris

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



Re: Hopefully a common Validation error

2004-04-14 Thread Adam Hardy
Are you copying the .properties file across to your deploy directory? 
When you do a compile, you get all the class files from javac in your 
build directory, but you have to explicitly copy other files (i.e. 
.properties) using ant or something.

On 04/12/2004 07:56 PM Patrick wrote:
Hello,

Thank you for taking the time to look at my post.  Any help would be 
greatly appreciated.

I am having a problem with struts validation.  It seems everything is 
working GREAT as far as the javascript being created and working fine 
for the rules of my validation.  The problem I am having is that it 
is not showing my error message.  The message that is defined in my 
applResources.properties file should be showing up when the 
javascript error message pops up, but it's not.  I can view the 
source code of the created jsp and notice that in the dynamic 
javascript that the part of the script which holds the message is not 
being populated.

Can anyone think of anything I am missing?  I have another much 
simpler project which is working just fine with the error messages 
and everything.  I have everything set up the same (except the field 
and class names of course).  The ONLY difference in the two is the 
fact that I am using Struts Studio in Eclipse.  But with the main 
project I am working on, it does not use the Struts Studio nature and 
I cannot create my .properties file the way all of the tutorials tell 
me to, I have to create it by just making a new file and putting 
a .properties on the end of it.  Could this be my problem?

Thanks.

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



--
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Date validator and I18N

2004-04-14 Thread Adam Hardy
When I last looked, BeanUtils had a bug/deficiency in it that meant it 
didn't convert dates by locale, despite having the classes & methods 
which looked like it should.

Just a warning - although that was a few months back.

Adam

On 04/14/2004 04:51 AM Joe Hertz wrote:
Yes, you can get the dates validated this way, but isn't actually the
tough hurdle.
You've got Date objects being stored some place.

You'll need them displayed as Strings in your Action Form. You'll need
them formatted by Locale.
You'll want want the Strings converted back to Dates in the processing
Action. You'll need them parsed by Locale.
Unless someone can offer a better explanation of the usage of
LocaleBeanUtils than I can, this may prove to be quite the annoying
little repeated task.
-Joe


-Original Message-
From: Jeff Caesar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 7:04 PM
To: Struts Users Mailing List
Subject: RE: Date validator and I18N

I haven't personally tried doing this, but according to the 
doc you can specify language/country/variant on the formset 
when defining your validation so that the validator will 
choose the best one available for the given user's locale.

From the validator DTD:






So you would want to create four different  defs 
(one for each of your languages plus a default) for the form.

Jeff

-Original Message-
From: Stjepan Brbot [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 3:07 PM
To: [EMAIL PROTECTED]
Subject: Date validator and I18N

In my web application I deal with three languages (Croatian, 
German and English). Application does have forms allowing 
user to input a date value. When english locale is active 
user must have the ability to insert date in english date 
format (mm/dd/), also croatian and german users must have 
the ability to insert dates in their own date format 
(dd.mm.). How to define a validation for such a 
situation? In mask for date validation (in validation.xml) I 
can define only one date format pattern!

Stjepan Brbot

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


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






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



--
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Https forwarding question

2004-04-14 Thread Adam Hardy
Actually with sslext, you would also want to use the sslext taglib link, 
so that the URL gets written out with HTTPS as well.

On 04/14/2004 03:05 AM Bill Siggelkow wrote:
I know of two ways --
If you are using the Struts SSL Extension 
(http://sslext.sourceforge.net) you can specify if an action requires 
HTTPS or not in the struts-config.xml;
otherwise, you will need to use absolute URLs for the 'href' attribute 
and specify the protocol explicitly.

Erez Efrati wrote:

This might be a simple question but it's a first time for me.
How do I forward using the  tag to an action that must be
addressed with HTTPS as the protocol scheme?  
Thanks,
 
Erez



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



--
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problem with BeanUtils

2004-04-14 Thread YOUSFI


I found the problem. The Object passed to getLibelle was in fact a String.
What happen is the following :
- before passing the object (TypAbonne ) to getLibelle I put it in a
Collection in a ActionForm property,
- then I read this collection in the following way :

Object options[] = BeanUtils.getArrayProperty(form, liste);
The options array is filled with a list of String(s) (my TypAbonne converted
to String :[EMAIL PROTECTED]).
- Then I pass the options array element to the getLibelle method.

Thanks to all of you for help !




-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] la part de Bill Siggelkow
Envoye : mardi 13 avril 2004 14:05
A : [EMAIL PROTECTED]
Objet : Re: Problem with BeanUtils


First of all, I assume that you are calling the getProperty method of
BeanUtils -- Are you sure that the object you are passing is an instance
of your class (TypAbonne) -- from what you indicated it sounds like it
is actually a String -- java.lang.String has two "getter" methods --
getClass() and getBytes().

YOUSFI wrote:
> Hi all,
> I'm trying to use BeanUtils (I have the same problem with PropertyUtils)
to
> read dynamically a bean property. But it does not work. I think I'm
missing
> some thing very impportant.
>
> I have a bean wuith some properties(see below TypAbonne.java).
> When I pass a bean instance of this classand the string "lecode"  to the
> following methode :
>
> String getLibelle(Object obj,String prop)
> {
>   return BeanUtils(obj,prop);
> }
>
> I receive a NoSuchMethodException:
> When I try to debug the code I see that PropertyDescriptor array
associated
> with my class TypAbonne contains only two descriptors : one for the
property
> "class" and the other for the property "bytes" and there are no others
> descriptor for the properties "lecode" and "lelibelle".
>
> What's wrong in the code above ?
> May be my class TypAbonne should satisfy some others conditions ?
> Is it necessary to create a typAbonneBeanInfo and override the mthod
> getPropertyDescriptors ?
> Thank you a lot for your help.
>
> The exception
received 
>
> java.lang.NoSuchMethodException: Unknown property 'lecode'
>   at
>
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.j
> ava:1175)
>   at
>
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j
> ava:772)
>   at
>
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80
> 1)
>   at
>
fr.tfe.utils.tags.TFESelectTag.getLibelleSelectionne(TFESelectTag.java:122)
>   at fr.tfe.utils.tags.TFESelectTag.doStartTag(TFESelectTag.java:72)
>
>
TypAbonne.java -
> -
> public class TypeAbonne implements Serializable {
>
> private String lecode = null;
>
> private String lelibelle = null;
>
>   /**
>*
>*/
>   public TypeAbonne() {
>   }
>
> /**
>  * @return
>  */
> public String getLecode() {
>   return lecode;
> }
>
> /**
>  * @return
>  */
> public String getLelibelle() {
>   return lelibelle;
> }
>
> /**
>  * @param string
>  */
> public void setLecode(String string) {
>   lecode= string;
> }
>
> /**
>  * @param string
>  */
> public void setLelibelle(String string) {
>   lelibelle= string;
> }
>
> }


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


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



RE: Tiles - Specify Error page ?

2004-04-14 Thread Janarthan Sathiamurthy
Hi,

Let me makes things more clear.

My main tiles file -

Should i place the errorPage attribute here ?








My content file i.e., my_contents.jsp

Should i place the errorPage attribute here ?
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>





One point to note is that my errorpage also has a main tiles file and a content file 
describing the error.
So my error page (main tiles file) path is /errorPage.jsp
and path for content page of error is /contents/errorPage_contents.jsp

Regards,
Janarthan S
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 12:44 PM
To: [EMAIL PROTECTED]
Subject: SV: Tiles - Specify Error page ?


Hi

On each and every .jsp file

Hermod

-Opprinnelig melding-
Fra: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
Sendt: 14. april 2004 08:16
Til: Struts Users Mailing List
Emne: Tiles - Specify Error page ?


Hi,

I am using Tiles that comes bundled with struts1.1.
I have a main template file for my jsp's.
All my jsp's have a left navigation, a header section, a footer section
and a content section.
Given a jsp page, I have a main tiles file in which i specify these
settings.
I want to specify an error page for all my jsps.
My question is where do i specify the errorPage attribute ? Should it
come in the main tile file or the content file of the JSP ?
Any help appreciated.

Thanks & Regards,

Janarthan S.

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


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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


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



AW: [OT] Session end notification

2004-04-14 Thread Andreas Solarik
Sorry to continue this, but:

does sessionDestroyed(...) actually allow one to receive the invalidation of
a session, especially after an invalidation based on a timeout? I can dimly
remember some problems with tomcat (an early, stable version 4.something)
using this feature; we ended up looking for the unbinding of a session (or
was it the unbinding of session attributes?), which worked *much* better.
This was a long time ago, it might not be an issue anymore.

Andreas

-Ursprungliche Nachricht-
Von: Pani R [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 14. April 2004 00:59
An: Struts Users Mailing List
Betreff: Re: [OT] Session end notification



Check

 javax.servlet.http.HttpSessionListener

interface.

-Pani

--

- Original Message -

DATE: Tue, 13 Apr 2004 15:51:58
From: Chiming Huang <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Cc:

>Hi,
>
>Is there a way to get a notification when a session is ended?
>
>Thanks,
>Chiming
>
>
>-
>Do you Yahoo!?
>Yahoo! Tax Center - File online by April 15th




Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
?SRC=lycos10

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


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



SV: Tiles - Specify Error page ?

2004-04-14 Thread hermod . opstvedt
Hi

On each and every .jsp file

Hermod

-Opprinnelig melding-
Fra: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
Sendt: 14. april 2004 08:16
Til: Struts Users Mailing List
Emne: Tiles - Specify Error page ?


Hi,

I am using Tiles that comes bundled with struts1.1.
I have a main template file for my jsp's.
All my jsp's have a left navigation, a header section, a footer section
and a content section.
Given a jsp page, I have a main tiles file in which i specify these
settings.
I want to specify an error page for all my jsps.
My question is where do i specify the errorPage attribute ? Should it
come in the main tile file or the content file of the JSP ?
Any help appreciated.

Thanks & Regards,

Janarthan S.

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


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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