Setting chehckbox state for DynActionForm

2003-01-05 Thread Affan Qureshi
I want to set checkbox states for properties of a DynaActionForm. What
values and types should I set for form bean defs in struts-config? What
values should I get in Action after submitting the form?

I have tried setting property types to java.lang.String, boolean and
java.lang.Boolean type. It showed all checkboxes as "on" even though I had
set the property to "on" in the prececding Action. Then I used  in JSP but this time the
display was fine but the values i was getting were not correct i.e the only
checked checkbox was the one that I had hard-coded in JSP.

Note: All checkboxes are not related. So multi-box is no suitable here i
think

Any ideas.

Thanks,
Affan


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




Re: PrePopulation of FormBean Values

2003-01-05 Thread Affan Qureshi
This has been asked many times before as well.

In Action before forwarding to the JSP:

MyBean bean = new MyBean();
bean.setMyAttribute("my value from somwhere");
request.setAttribute("formBeanNameInStrutsConfig" , bean);


- Original Message -
From: "ashokd" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 3:23 PM
Subject: PrePopulation of FormBean Values


> Hi,
>
> How to propopulate the Form values in a Form (which is using the Struts
> FormBean)
>
> The scope of the FormBean is request.
>
> Please provide an example on this.
>
> Thanks in Advance,
> Ashok.D
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: ActionMapping, struts-config and custom attributes

2003-01-05 Thread David M. Karr
> "Steve" == Steve Vanspall <[EMAIL PROTECTED]> writes:

Steve> Is there a way to set a custom attribute for an action mapping, then
Steve> retrieve that attribute through the ActionMapping class?

Steve> I am using Struts 1.1-b2

It appears there's two ways to do this.  You can get a hint about this by
looking at the "struts-config_1_1.dtd" in the distribution.  I've never tried
either of these, but it's relatively clear how to use them from the DTD.

First is the "parameter" attribute of the "action" element.  This just allows
you to set one value, and retrieve it with "getParameter()" on the
ActionMapping.

Second is to use nested "set-property" elements in your "action" element.  This
requires adding additional javabean setters/getters to your Action class.  It's
useful to know that the "set-property" nested element is available in several
other places in the struts-config.xml file.

I have not checked to see whether either of these features were available in
1.1b2.  I see them in the latest source.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




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




PrePopulation of FormBean Values

2003-01-05 Thread ashokd
Hi,

How to propopulate the Form values in a Form (which is using the Struts
FormBean)

The scope of the FormBean is request.

Please provide an example on this.

Thanks in Advance,
Ashok.D


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




ActionMapping, struts-config and custom attributes

2003-01-05 Thread Steve Vanspall
Hi there,

Me again.

Is there a way to set a custom attribute for an action mapping, then
retrieve that attribute through the ActionMapping class?

I am using Struts 1.1-b2

Regards

Steve Vanspall


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




ModelJ - open-source EJB/Struts code generator for JBoss 3.x released

2003-01-05 Thread Tom Tessier
http://modelj.sourceforge.net

ModelJ is an open-source RAD (Rapid Application Development) tool that uses 
code generation to create complete J2EE applications using the Struts and 
EJB frameworks. With ModelJ, one is only a few steps away from a 
database-driven web site readily deployable to JBoss, the leading 
open-source J2EE Application Server. ModelJ uses proven design patterns to 
ensure a robust, easy-to-maintain design.

ModelJ can also be used as a learning tool for J2EE and JBoss. It outputs 
EJB 2.x deployment descriptors and session and entity beans, creating 
business delegates that are accessible via Struts (a Swing-based 
administration interface is planned). JBoss-QL is used for all database 
queries.

The ModelJ generator uses Castor for XML marshalling and Velocity/Texen to 
perform the actual code generation. The open-source license is GNU/GPL.

For more information, visit http://modelj.sourceforge.net

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


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



Re: line breaks

2003-01-05 Thread Affan Qureshi
No its coming from a DB. But the DB gets its values from Swing tool.
The chain is:
Swing->Oracle->XML->MySQL->WebApp (Struts)
Thanks
Affan

- Original Message -
From: "Max Kremer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 1:31 AM
Subject: Re: line breaks


> I use SQL server to populate TEXTAREAs from the DB and update the DB as
> well.
> I'm using the  struts tag to accomplish this, and I'm not
> experiencing any problems.
> If  I understand your message correctly you're saying that the string
value
> is not coming directly from the DB but from Swing.
> Its probably something along the way thats messing up your string.
>
> - Original Message -
> From: "Affan Qureshi" <[EMAIL PROTECTED]>
> To: "struts-user" <[EMAIL PROTECTED]>
> Sent: Saturday, January 04, 2003 9:10 AM
> Subject: line breaks
>
>
> > I am using Struts 1.1b2, Tomcat 4.1.12 LE, on Win2K.
> >
> > I have a strange issue. I have a TEXTAREA type control that gets
populated
> > from values in database. The value in the database has some line breaks.
I
> > store that value in a variable called: "OLD_VALUE". Then I display the
> value
> > in the TEXTAREA and when i get it back(from form-bean) after the form is
> > submitted (without changing the value) i store it in a variable called
> > "NEW_VALUE". The two DON'T evaluate String.equals() to "true". When I
> paste
> > them in notepad I see that OLD_VALUE has line-breaks while the NEW_VALUE
> > does not have line breaks.
> >
> > Has anyone else faced the same problem? I guess it has something to do
> with
> > \r and \r\n for line breaks on different platforms.
> >
> > BTW the data in the database is saved in Oracle 8i through a Swing
> > client/server app. The App-Server for Swing app is Weblogic on Solaris
for
> > SunSPARC. Then the data gets imported to XML and then to MySQL on Win2K.
> > Then the Struts app loads and display/edits it in the above form.
> >
> > Thanks and regards,
> >
> > Affan
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> > -
> >
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




SSLext Struts-1.1-b2 - Addition

2003-01-05 Thread Steve Vanspall
Just a quick add-on

It seems the site remain secure even If I don't continue to use the
 tag.

I assume it is secure.

New to ssl. As long as the little padlock in the corner appears locked (IE
5.x), does that mean the information sent and recevied is encrypted.

Therefore, do I not need to keep useing hte sslext:form tag for the rest of
the site.

If this is the case, how do I break out of secure mode? say when a person
log's out?

Thanks in advance

Steve Vanspall



-Original Message-
From: Steve Vanspall [mailto:[EMAIL PROTECTED]]
Sent: Monday, 6 January 2003 2:51 PM
To: Struts User Mailing List
Subject: SSLext Struts-1.1-b2


Hi there.

I am going to be as precise as I can with this one.

I have been having this problem for a while now, and as yet, no solution.

I am converting my web-app to use SSL for some of the pages.

I use Steve Ditlinger's SSL extension.

I am using Struts 1.1 B2

and Tomcat 4.1.18 (just upgraded from 4.1.12, was having the problem with
this version also)

Basically, my login works, I then go to a menu page. If I click an option on
that page. It forwards to another action, that checks the last page the user
was viewing. In this case there will be no page. So it goes to the default
search page. This is where I have my problem.

I would like the search page to be secure.

If I use normal  tags, the page works. However if I make the tage
 tags. I get a:

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope

Exception thrown.

Below are the details of what I have coded.


The login page (which works fine) uses the sslext:form tag like so

***






***

Naturally, there is other formatting in between the tags listed above,
however they are standard HTML, so don't affect the JSP.

Anyway, this works.

It passes itself to a LoginAction class

This succesfully forwards itself to a menu page, with a list of links that.
These are standard link, not secure links.




 
Main Customer
List




If you click Main Customer List, you are forwarded to another action, this
is the one that checks if this user has is returning to that section. And
therefore goes to the last page the user was viewing, otherwise (as in this
case) it goes to the search page.

This is how the form, on this page, was originally.









--
Primary Contact
Member
Person








**

As I said earlier, this works, however if I change the form tags from
 to 

I get the exception I mentioned at the top of this message.

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope

Having debugged using the source code. I know it is looking for the Form
Bean for that action. But don't understand why it can't access it.

It is supposed to create a new instance of it if it is not in session.

Any help would be appreciated.


Regards

Steve Vanspall


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




SSLext Struts-1.1-b2

2003-01-05 Thread Steve Vanspall
Hi there.

I am going to be as precise as I can with this one.

I have been having this problem for a while now, and as yet, no solution.

I am converting my web-app to use SSL for some of the pages.

I use Steve Ditlinger's SSL extension.

I am using Struts 1.1 B2

and Tomcat 4.1.18 (just upgraded from 4.1.12, was having the problem with
this version also)

Basically, my login works, I then go to a menu page. If I click an option on
that page. It forwards to another action, that checks the last page the user
was viewing. In this case there will be no page. So it goes to the default
search page. This is where I have my problem.

I would like the search page to be secure.

If I use normal  tags, the page works. However if I make the tage
 tags. I get a:

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope

Exception thrown.

Below are the details of what I have coded.


The login page (which works fine) uses the sslext:form tag like so

***






***

Naturally, there is other formatting in between the tags listed above,
however they are standard HTML, so don't affect the JSP.

Anyway, this works.

It passes itself to a LoginAction class

This succesfully forwards itself to a menu page, with a list of links that.
These are standard link, not secure links.




 
Main Customer
List




If you click Main Customer List, you are forwarded to another action, this
is the one that checks if this user has is returning to that section. And
therefore goes to the last page the user was viewing, otherwise (as in this
case) it goes to the search page.

This is how the form, on this page, was originally.









--
Primary Contact
Member
Person








**

As I said earlier, this works, however if I change the form tags from
 to 

I get the exception I mentioned at the top of this message.

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope

Having debugged using the source code. I know it is looking for the Form
Bean for that action. But don't understand why it can't access it.

It is supposed to create a new instance of it if it is not in session.

Any help would be appreciated.


Regards

Steve Vanspall


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




Re: getting a datasource in a bean

2003-01-05 Thread Craig R. McClanahan
Using the  element in your struts-config.xml file does *not*
support the use of JNDI to retrieve it.  JNDI is only used for data
sources managed by your container.  For Tomcat 4.1, for example, see:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

The instructions for setting up your web.xml file, and for accessing the
data source in a program, are portable across any container that supports
JNDI based data sources.  The administrative stuff to configure them is
specific to the container.

To access your  from an Action, you'd simply say (Struts
1.1):

  DataSource ds = getDataSource(request, "FIELDSTONE");

Craig


On 5 Jan 2003, Nick Torenvliet wrote:

> Date: 05 Jan 2003 21:34:48 -0500
> From: Nick Torenvliet <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: getting a datasource in a bean
>
> Sounds like a plan,I've never worked with javax.naming packages before
> though,  I've got the following datasource
>
>
> key="FIELDSTONE">
>
>  
> property="autoCommit"
>
> value="false"/>
>
>  
> property="description"
>
> value="Example Data Source Configuration"/>
>
>  
> property="driverClassName"
>
> value="org.gjt.mm.mysql.Driver"/>
>
>  
> property="maxCount"
>
> value="4"/>
>
>  
> property="minCount"
>
> value="2"/>
>
>  
> property="password"
>
> value=""/>
>
>  
> property="url"
>
> value="jdbc:mysql://localhost:3306/wessuc"/>
>
>  
> property="username"
>
> value="root"/>
>
>
>
> Cound you give me some example code that uses JNDI to get a connection?
>
> ~/nick
>
>
> On Sun, 2003-01-05 at 17:46, Max Kremer wrote:
> > You can just look up the JNDI datasource in your bean.
> > - Original Message -
> > From: "Nick Torenvliet" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, January 05, 2003 4:51 PM
> > Subject: getting a datasource in a bean
> >
> >
> > > Hi, Just as in the examples on the struts site I've succesfully
> > > configured a mysql datasource and had it print the results of queries
> > > from out of an action class. I am using struts 1.1-b2.
> > >
> > > I want to replace my current dbpooling(I wrote last year)with the struts
> > > datasource and dbcp, I am having one problem though.  I can't get a
> > > connection in my beans to the database because I have no access to the
> > > getDataSource(request,key) method. Since my pooling methods were hard
> > > wired I just went in to the database by passing a database name to the
> > > methods.
> > >
> > > The stock answer is to pass a connection to the bean, but that means
> > > I'll be rewriting a lot of code.
> > >
> > > How can I access the datasource from a bean?
> > >
> > > ~/nick
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> > > -
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Re: getting a datasource in a bean

2003-01-05 Thread Nick Torenvliet
Sounds like a plan,I've never worked with javax.naming packages before
though,  I've got the following datasource 


   
   
 

 

 

 

 

 

 

 

   

Cound you give me some example code that uses JNDI to get a connection?

~/nick   


On Sun, 2003-01-05 at 17:46, Max Kremer wrote:
> You can just look up the JNDI datasource in your bean.
> - Original Message -
> From: "Nick Torenvliet" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, January 05, 2003 4:51 PM
> Subject: getting a datasource in a bean
> 
> 
> > Hi, Just as in the examples on the struts site I've succesfully
> > configured a mysql datasource and had it print the results of queries
> > from out of an action class. I am using struts 1.1-b2.
> >
> > I want to replace my current dbpooling(I wrote last year)with the struts
> > datasource and dbcp, I am having one problem though.  I can't get a
> > connection in my beans to the database because I have no access to the
> > getDataSource(request,key) method. Since my pooling methods were hard
> > wired I just went in to the database by passing a database name to the
> > methods.
> >
> > The stock answer is to pass a connection to the bean, but that means
> > I'll be rewriting a lot of code.
> >
> > How can I access the datasource from a bean?
> >
> > ~/nick
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> > -
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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




DynaFormValidator Javascript Problem with multiple forms

2003-01-05 Thread Mark Chaimungkalanont
Hi all,

I have 3 forms on my page each having a field that is required. The
validation stores these fields in an that can be obtained by caliing by
required().

Unfortunately, my 3





produces 3 required() methods in 3 different java script blocks.

What this means is that when required() is called, only the last value,
that is, the field from the form "blah3" is ever returned whcih in turns
mean that other two form do not valudate.

Is there a way around this? Has anyone lese encountered this problem?

Thanks

Mark C




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




Re: Iterate tag with ResultSet Example

2003-01-05 Thread Craig R. McClanahan


On Sat, 4 Jan 2003, Mervin Williams wrote:

> Date: Sat, 4 Jan 2003 19:27:48 -0600
> From: Mervin Williams <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Iterate tag with ResultSet Example
>
> Can someone please provide sample code that demonstrates the use of passing a
> database SQL ResultSet to the logic:iterate tag?
>

In general, this is going to be a problem.

It would be technically feasible to pass in a java.sql.ResultSet object,
if the tags were enhanced to know how to pull the data out of them.
However, this requires that the ResultSet (and its associated Statement)
remain open until the JSP page was done with it.  This would violate the
separation of business and presentation logic that is one of the key
features of Struts.

As it happens, though, I just checked in a change in commons-beanutils
that can be used for this purpose, if you're using Struts 1.1.  Basically,
there's now a really simple way to copy the contents of a ResultSet into a
list of DynaBeans.  This really is a *copy* operation, so you have to pay
some performance and memory cost, but it lets you pass the data without
having to create custom beans, and without leaving the ResultSet open.

You'll need to grab a very recent nightly build of commons-beanutils from:

  http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-beanutils

and replace your commons-beanutils.jar file if you want to try this.

> Please include the .java and .jsp code.
>

In your Java code, you'd do something like this:

Connection conn = ...; // Get connection from the pool
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("select custid, name from customers");
RowSetDataSource rsdc = new RowSetDataSource(rs);
rs.close();
stmt.close();
... return connection to the pool ...
request.setAttribute("custoemrs", rsdc.getRows());

In your JSP page, treat this List of DynaBeans like you would any other
collection of beans, because all the Struts tags know how to deal with
DynaBeans.


  
Customer ID
Customer Name
  
  

  
  

  


See the updated Javadocs for commons-beanutils (included in the binary
distribution) for class org.apache.commons.beanutils.RowSetDataSource for
more information about this class.

Craig


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




Re: getting a datasource in a bean

2003-01-05 Thread Max Kremer
You can just look up the JNDI datasource in your bean.
- Original Message -
From: "Nick Torenvliet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 05, 2003 4:51 PM
Subject: getting a datasource in a bean


> Hi, Just as in the examples on the struts site I've succesfully
> configured a mysql datasource and had it print the results of queries
> from out of an action class. I am using struts 1.1-b2.
>
> I want to replace my current dbpooling(I wrote last year)with the struts
> datasource and dbcp, I am having one problem though.  I can't get a
> connection in my beans to the database because I have no access to the
> getDataSource(request,key) method. Since my pooling methods were hard
> wired I just went in to the database by passing a database name to the
> methods.
>
> The stock answer is to pass a connection to the bean, but that means
> I'll be rewriting a lot of code.
>
> How can I access the datasource from a bean?
>
> ~/nick
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> -
>
>


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




Re: extending ActionMappings in Struts 1.1 ?

2003-01-05 Thread Max Kremer
Hi,
In struts 1.1 its not longer a deployment descriptor in the web.xml, its
configured as an attribute to the  element in the struts
config file.
Check the 1.1 docs, it should be in there

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 04, 2003 11:12 AM
Subject: extending ActionMappings in Struts 1.1 ?


> How do i deploy an extended ActionMapping in Struts 1.1 ?
> i.e. a class derived from org.apache.struts.action.ActionMapping
> with additional fields for properties set by  
> tags in my struts-config.xml file.
> With Struts 1.0 this was working fine by declaring a
> 
>   mapping
>   NameOfMyExtendedActionMappingClass
> 
> in the -Element used to deploy my
> org.apache.struts.action.ActionServlet in my web.xml file.
> However, Struts 1.1 seems to ignore this 
> and simply passes an ActionMapping to my Actions' execute methods.
> Consequently Java throws a ClassCastException when i try
> to cast the passed mapping-Object back to my Class-type.
> any help would be greatly appreciated.
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> -
>
>


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




getting a datasource in a bean

2003-01-05 Thread Nick Torenvliet
Hi, Just as in the examples on the struts site I've succesfully
configured a mysql datasource and had it print the results of queries
from out of an action class. I am using struts 1.1-b2.

I want to replace my current dbpooling(I wrote last year)with the struts
datasource and dbcp, I am having one problem though.  I can't get a
connection in my beans to the database because I have no access to the
getDataSource(request,key) method. Since my pooling methods were hard 
wired I just went in to the database by passing a database name to the 
methods.

The stock answer is to pass a connection to the bean, but that means
I'll be rewriting a lot of code.  

How can I access the datasource from a bean?

~/nick


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




extending ActionMappings in Struts 1.1 ?

2003-01-05 Thread javaenterprisecoder <[EMAIL PROTECTED]>
How do i deploy an extended ActionMapping in Struts 1.1 ?
i.e. a class derived from org.apache.struts.action.ActionMapping
with additional fields for properties set by  
tags in my struts-config.xml file.
With Struts 1.0 this was working fine by declaring a

  mapping
  NameOfMyExtendedActionMappingClass

in the -Element used to deploy my 
org.apache.struts.action.ActionServlet in my web.xml file.
However, Struts 1.1 seems to ignore this 
and simply passes an ActionMapping to my Actions' execute methods. 
Consequently Java throws a ClassCastException when i try
to cast the passed mapping-Object back to my Class-type.
any help would be greatly appreciated.
 


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




Re: line breaks

2003-01-05 Thread Max Kremer
I use SQL server to populate TEXTAREAs from the DB and update the DB as
well.
I'm using the  struts tag to accomplish this, and I'm not
experiencing any problems.
If  I understand your message correctly you're saying that the string value
is not coming directly from the DB but from Swing.
Its probably something along the way thats messing up your string.

- Original Message -
From: "Affan Qureshi" <[EMAIL PROTECTED]>
To: "struts-user" <[EMAIL PROTECTED]>
Sent: Saturday, January 04, 2003 9:10 AM
Subject: line breaks


> I am using Struts 1.1b2, Tomcat 4.1.12 LE, on Win2K.
>
> I have a strange issue. I have a TEXTAREA type control that gets populated
> from values in database. The value in the database has some line breaks. I
> store that value in a variable called: "OLD_VALUE". Then I display the
value
> in the TEXTAREA and when i get it back(from form-bean) after the form is
> submitted (without changing the value) i store it in a variable called
> "NEW_VALUE". The two DON'T evaluate String.equals() to "true". When I
paste
> them in notepad I see that OLD_VALUE has line-breaks while the NEW_VALUE
> does not have line breaks.
>
> Has anyone else faced the same problem? I guess it has something to do
with
> \r and \r\n for line breaks on different platforms.
>
> BTW the data in the database is saved in Oracle 8i through a Swing
> client/server app. The App-Server for Swing app is Weblogic on Solaris for
> SunSPARC. Then the data gets imported to XML and then to MySQL on Win2K.
> Then the Struts app loads and display/edits it in the above form.
>
> Thanks and regards,
>
> Affan
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> -
>
>


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




Re: Tiles with Struts1.0.2

2003-01-05 Thread Cedric Dumoulin

 Hi,

 You can use Tiles with Struts1.0.x. You need to download a jar file 
containing the Tiles and compiled with Struts1.0.x. You can find it in 
the tiles distribution from:
http://www.lifl.fr/~dumoulin/tiles/
(mirror) http://www.geocities.com/cedricdumoulin//tiles/

 The jar file is named tilesForStruts1.0.jar
 In this distribution you will also find a tiles-blank-struts1-0.war 
file properly initialized to be used with Struts1.0.

Cedric

ashokd wrote:

Hi,

I have a doubt regarding usage of Tiles in Struts 1.0.2

Shall I use Tiles by using .xml file in Sturtust 1.0.2 ?
If yes their is any configuration is needed ?

Can I get any example like this.

Thanks in Advance for helping me in this.


Thanks & Regards,
Ashok.D


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


 



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




Re: Validator with Map-backed forms

2003-01-05 Thread Max Kremer
I wish I could pay but I'm broke. However, if had the cash I would
millions  $$$ :-)

But if you could help I would be most grateful.

- Original Message -
From: "Arik Levin ( Tikal )" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Sunday, January 05, 2003 1:50 PM
Subject: RE: Validator with Map-backed forms


> Hi Max Kremer.
> How much you are willing to pay ;)
>
> -Original Message-
> From: Max Kremer [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 05, 2003 8:34 PM
> To: Struts Users Mailing List
> Subject: Validator with Map-backed forms
>
> Hi,
>
> I've asked this question before but so far haven't received any feedback
on
> this subject:
> Is there any way to use the Validator with map-backed Action Forms?
>
> I'm currently using Map-backed forms to manage forms that are dynamically
> created from a database, where the number of fields, their names, their
> types are not necessarily known at deployment (so no DynaActionForm). I'm
> wondering if it's still possible to use the (Commons) Validator to
validate
> the form fields.
>
> I understand that the normal usage requires form elements in the
> validator-rules file to match that of a form-bean element in the Struts
> config file. That's not really possible in my case because I don't know
> ahead of time what the fields will be (by name or type, in number, etc.).
> Would it be possible to programmatically create the formset and form
> elements Validator requires but still use them in conjunction with the
> validations file (where the validator elements are stored), which would be
> commonly shared between forms? Any pointers on how I can accomplish this?
> Or, is there a better way to handle dynamic (i.e., on-the-fly or
real-time)
> form creation with Struts?
>
>
>
>
>
>
>
> Regards,
>
> Max Kremer
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> -
>
>


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




RE: Validator with Map-backed forms

2003-01-05 Thread Arik Levin ( Tikal )
Hi Max Kremer.
How much you are willing to pay ;)

-Original Message-
From: Max Kremer [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 8:34 PM
To: Struts Users Mailing List
Subject: Validator with Map-backed forms

Hi,

I've asked this question before but so far haven't received any feedback on
this subject:
Is there any way to use the Validator with map-backed Action Forms?

I'm currently using Map-backed forms to manage forms that are dynamically
created from a database, where the number of fields, their names, their
types are not necessarily known at deployment (so no DynaActionForm). I'm
wondering if it's still possible to use the (Commons) Validator to validate
the form fields.

I understand that the normal usage requires form elements in the
validator-rules file to match that of a form-bean element in the Struts
config file. That's not really possible in my case because I don't know
ahead of time what the fields will be (by name or type, in number, etc.).
Would it be possible to programmatically create the formset and form
elements Validator requires but still use them in conjunction with the
validations file (where the validator elements are stored), which would be
commonly shared between forms? Any pointers on how I can accomplish this?
Or, is there a better way to handle dynamic (i.e., on-the-fly or real-time)
form creation with Struts?







Regards,

Max Kremer




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Validator with Map-backed forms

2003-01-05 Thread Max Kremer
Hi,

I've asked this question before but so far haven't received any feedback on
this subject:
Is there any way to use the Validator with map-backed Action Forms?

I'm currently using Map-backed forms to manage forms that are dynamically
created from a database, where the number of fields, their names, their
types are not necessarily known at deployment (so no DynaActionForm). I'm
wondering if it's still possible to use the (Commons) Validator to validate
the form fields.

I understand that the normal usage requires form elements in the
validator-rules file to match that of a form-bean element in the Struts
config file. That's not really possible in my case because I don't know
ahead of time what the fields will be (by name or type, in number, etc.).
Would it be possible to programmatically create the formset and form
elements Validator requires but still use them in conjunction with the
validations file (where the validator elements are stored), which would be
commonly shared between forms? Any pointers on how I can accomplish this?
Or, is there a better way to handle dynamic (i.e., on-the-fly or real-time)
form creation with Struts?







Regards,

Max Kremer




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




[ANNOUNCE] StrutsTestCase v1.9.5 Released

2003-01-05 Thread Deryl Seale
StrutsTestCase v1.9.5 improves support for Struts 1.1b3
(including support for testing Tiles and sub-applications),
provides several requested enhancements, and fixes many
reported defects.

The project home page can be found here:

http://strutstestcase.sourceforge.net

Notes for this release can be found here:

http://sourceforge.net/project/shownotes.php?release_id=131689


Questions and comments are always welcome!

Deryl Seale - [EMAIL PROTECTED]


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




RE: What are the new feautures of struts-b3?

2003-01-05 Thread Arik Levin ( Tikal )
What exactly are you looking for, maybe I can help.
You can also query http://issues.apache.org/bugzilla/query.cgi
And find all the fixes.

-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 6:50 PM
To: Struts Users Mailing List
Subject: RE: What are the new feautures of struts-b3?

Arik,

I did find that section but that contains only three items under "Beta
Fixes" and I thought more has been done since b2, because b2 was
released a couple of months ago.

Zsolt

On Sun, 2003-01-05 at 17:18, Arik Levin ( Tikal ) wrote:
> .. and there's more:
> 
> "...The remainder of this document contains the release notes for nightly
> build of the Struts Framework, and covers changes that have taken place
> since Version 1.0.2 was released. The following sections cover New
Features
> and Changes to Struts." Do you want me to stop? 
> 
> -Original Message-
> From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, January 05, 2003 6:16 PM
> To: 'Struts Users Mailing List'
> Subject: RE: What are the new feautures of struts-b3?
> 
> Read it instead of all these questions...
> 
> It says and I quotes: 
> "This section contains the release notes for nightly build of the Struts
> Framework, for changes that have taken place since Version 1.1 beta 2 was
> released..."
> 
> -Original Message-
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, January 05, 2003 6:08 PM
> To: Struts Users Mailing List
> Subject: RE: What are the new feautures of struts-b3?
> 
> As far as I understand, the url below contains the changes since 1.0 and
> not since 1-1-b2. Am I right?
> 
> Zsolt
> 
> On Sun, 2003-01-05 at 16:57, Arik Levin ( Tikal ) wrote:
> > Details of the changes in this release are available in the Release
Notes,
> > which can be found here:
> > 
> >   http://jakarta.apache.org/struts/userGuide/release-notes-1.1-b3.html
> > 
> > 
> > -Original Message-
> > From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
> > Sent: Sunday, January 05, 2003 5:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: What are the new feautures of struts-b3?
> > 
> > Hi,
> > 
> > what are the new features in b3 since b2? I cannot find them in the
> > release notes!
-- 
Zsolt


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: What are the new feautures of struts-b3?

2003-01-05 Thread Zsolt Koppany
Arik,

I did find that section but that contains only three items under "Beta
Fixes" and I thought more has been done since b2, because b2 was
released a couple of months ago.

Zsolt

On Sun, 2003-01-05 at 17:18, Arik Levin ( Tikal ) wrote:
> .. and there's more:
> 
> "...The remainder of this document contains the release notes for nightly
> build of the Struts Framework, and covers changes that have taken place
> since Version 1.0.2 was released. The following sections cover New Features
> and Changes to Struts." Do you want me to stop? 
> 
> -Original Message-
> From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, January 05, 2003 6:16 PM
> To: 'Struts Users Mailing List'
> Subject: RE: What are the new feautures of struts-b3?
> 
> Read it instead of all these questions...
> 
> It says and I quotes: 
> "This section contains the release notes for nightly build of the Struts
> Framework, for changes that have taken place since Version 1.1 beta 2 was
> released..."
> 
> -Original Message-
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, January 05, 2003 6:08 PM
> To: Struts Users Mailing List
> Subject: RE: What are the new feautures of struts-b3?
> 
> As far as I understand, the url below contains the changes since 1.0 and
> not since 1-1-b2. Am I right?
> 
> Zsolt
> 
> On Sun, 2003-01-05 at 16:57, Arik Levin ( Tikal ) wrote:
> > Details of the changes in this release are available in the Release Notes,
> > which can be found here:
> > 
> >   http://jakarta.apache.org/struts/userGuide/release-notes-1.1-b3.html
> > 
> > 
> > -Original Message-
> > From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
> > Sent: Sunday, January 05, 2003 5:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: What are the new feautures of struts-b3?
> > 
> > Hi,
> > 
> > what are the new features in b3 since b2? I cannot find them in the
> > release notes!
-- 
Zsolt


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




Re: a couple of questions

2003-01-05 Thread Joseph Fifield
I extended the ErrorsTag to add a feature very similar to this, for a
slightly different reason. I wanted to display all global errors at the top
of the screen, and all field specific errors below it's respective form
field. However, for this to look right, I needed a different set of prefixes
and suffixes, which I called a "decoration set", for global errors and field
errors. I added a property called decorationSet, which indicated the set of
resource keys to use for this instance. A decorationSet of "global" would
result in using the keys errors.global.prefix, etc. Maybe something like
this is useful to others? And maybe someone can come up with a better name
than decoration set?

Joe

> in the resource file, you can specify error.perfix etc, but you
> can't do this
> hiarchinally i suppose? it'd be much nicer if for error.login, you can
> define
> error.login.prefix, that way your error messages will look different
> based
> on different types of errors. if this can't be done, might be a good
> improvment
> in the future.


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




RE: What are the new feautures of struts-b3?

2003-01-05 Thread Arik Levin ( Tikal )
.. and there's more:

"...The remainder of this document contains the release notes for nightly
build of the Struts Framework, and covers changes that have taken place
since Version 1.0.2 was released. The following sections cover New Features
and Changes to Struts." Do you want me to stop? 

-Original Message-
From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 6:16 PM
To: 'Struts Users Mailing List'
Subject: RE: What are the new feautures of struts-b3?

Read it instead of all these questions...

It says and I quotes: 
"This section contains the release notes for nightly build of the Struts
Framework, for changes that have taken place since Version 1.1 beta 2 was
released..."

-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 6:08 PM
To: Struts Users Mailing List
Subject: RE: What are the new feautures of struts-b3?

As far as I understand, the url below contains the changes since 1.0 and
not since 1-1-b2. Am I right?

Zsolt

On Sun, 2003-01-05 at 16:57, Arik Levin ( Tikal ) wrote:
> Details of the changes in this release are available in the Release Notes,
> which can be found here:
> 
>   http://jakarta.apache.org/struts/userGuide/release-notes-1.1-b3.html
> 
> 
> -Original Message-
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, January 05, 2003 5:50 PM
> To: [EMAIL PROTECTED]
> Subject: What are the new feautures of struts-b3?
> 
> Hi,
> 
> what are the new features in b3 since b2? I cannot find them in the
> release notes!
-- 
Zsolt


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: What are the new feautures of struts-b3?

2003-01-05 Thread Arik Levin ( Tikal )
Read it instead of all these questions...

It says and I quotes: 
"This section contains the release notes for nightly build of the Struts
Framework, for changes that have taken place since Version 1.1 beta 2 was
released..."

-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 6:08 PM
To: Struts Users Mailing List
Subject: RE: What are the new feautures of struts-b3?

As far as I understand, the url below contains the changes since 1.0 and
not since 1-1-b2. Am I right?

Zsolt

On Sun, 2003-01-05 at 16:57, Arik Levin ( Tikal ) wrote:
> Details of the changes in this release are available in the Release Notes,
> which can be found here:
> 
>   http://jakarta.apache.org/struts/userGuide/release-notes-1.1-b3.html
> 
> 
> -Original Message-
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, January 05, 2003 5:50 PM
> To: [EMAIL PROTECTED]
> Subject: What are the new feautures of struts-b3?
> 
> Hi,
> 
> what are the new features in b3 since b2? I cannot find them in the
> release notes!
-- 
Zsolt


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: What are the new feautures of struts-b3?

2003-01-05 Thread Zsolt Koppany
As far as I understand, the url below contains the changes since 1.0 and
not since 1-1-b2. Am I right?

Zsolt

On Sun, 2003-01-05 at 16:57, Arik Levin ( Tikal ) wrote:
> Details of the changes in this release are available in the Release Notes,
> which can be found here:
> 
>   http://jakarta.apache.org/struts/userGuide/release-notes-1.1-b3.html
> 
> 
> -Original Message-
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, January 05, 2003 5:50 PM
> To: [EMAIL PROTECTED]
> Subject: What are the new feautures of struts-b3?
> 
> Hi,
> 
> what are the new features in b3 since b2? I cannot find them in the
> release notes!
-- 
Zsolt


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




B2 to B3 Upgrade

2003-01-05 Thread chris . cranford
We upgraded our instance from struts 1.1b2 to b3 and the SimpleLog logging we 
had turned on just stopped.  Does anyone have any suggestions on what I should 
check or do to get it turned back on?

Chris 


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




a couple of questions

2003-01-05 Thread Yan Zhu

hey guys,

using struts 1.1 beta 3 here with tomcat 4.1.18.

pretty much a newbie with struts ...

first of all, I am trying to use ActionError to create some error
messages
during validation. is there anyway to customize your error message
instead
of getting from the resource file? sometimes my message content is
dynamic.
If I wish to extend the original ActionError to implement this feature,
how
would I go about it? seems a bit tough without modifying original class.

in the resource file, you can specify error.perfix etc, but you
can't do this
hiarchinally i suppose? it'd be much nicer if for error.login, you can
define
error.login.prefix, that way your error messages will look different
based
on different types of errors. if this can't be done, might be a good
improvment
in the future.

I am also using tiles, which is a cool feature, but here is my
problem. I have
a template with tile insert a few other files, let's call them a.jsp and
b.jsp.
How do I do jsp import or other things on a template level so I don't
have
to do it over and over again for a.jsp and b.sjp.

for example, I like to be able to include a init.jsp in my template,
so that
I don't need to include one for a.jsp and b.jsp individually. I tried
it, doesn't
seem to work.

thanks in advance.

yan





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




RE: What are the new feautures of struts-b3?

2003-01-05 Thread Arik Levin ( Tikal )
Details of the changes in this release are available in the Release Notes,
which can be found here:

  http://jakarta.apache.org/struts/userGuide/release-notes-1.1-b3.html


-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 5:50 PM
To: [EMAIL PROTECTED]
Subject: What are the new feautures of struts-b3?

Hi,

what are the new features in b3 since b2? I cannot find them in the
release notes!
-- 
Zsolt


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




What are the new feautures of struts-b3?

2003-01-05 Thread Zsolt Koppany
Hi,

what are the new features in b3 since b2? I cannot find them in the
release notes!
-- 
Zsolt


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




Re: Altering html:form focus property

2003-01-05 Thread David Graham
I don't understand the question.  Have you checked the user's guide?

http://jakarta.apache.org/struts/userGuide/struts-html.html#form

David







From: [EMAIL PROTECTED]
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Altering html:form focus property
Date: Sat, 04 Jan 2003 23:29:33 -0500

  Is there any way to alter the value of the focus property on the
  html:form tag in struts?

  Thanks!
  Chris



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



Re: Iterate tag with ResultSet Example

2003-01-05 Thread David Graham
ResultSet objects should never be passed to JSPs because they maintain an 
open database connection.  Move your data to value beans or RowSet before 
passing to a JSP.

David






From: "Mervin Williams" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Iterate tag with ResultSet Example
Date: Sat, 4 Jan 2003 23:00:44 -0600

Can someone please provide sample code that demonstrates the use of
passing a database SQL ResultSet to the logic:iterate tag?

Please include the .java and .jsp code.


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Re: Iterate tag with ResultSet Example

2003-01-05 Thread V. Cekvenich
If you want  (updetable) multi row working sample, here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/portlets/cms/ContentApprovePortlet.jsp?rev=1.7&content-type=text/vnd.viewcvs-markup

Same link has the bean and dao and other common things.
.V

Mervin Williams wrote:

Can someone please provide sample code that demonstrates the use of passing a
database SQL ResultSet to the logic:iterate tag?  

Please include the .java and .jsp code.




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