No getProperties() on ActionErrors?

2003-12-08 Thread Jeroen Breedveld
Hi all,

I have the following problem: I want to access ActionError objects using
the EL language in a JSP page like this (for a reason I don't want to
work with the html:error taglib):

  

  

My guess is that this doesn't work because the ActionErrors class has a
properties() method and not a getProperties() method. Does anyone know a
way to iterate over the ActionError objects in the ActionError object
using the EL language?

Thanks and regards,

Jeroen Breedveld

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



Struts and frames: what about the request scope?

2003-10-30 Thread Jeroen Breedveld
Hi all,

I'm trying to use struts with frame but the problem I have is that forms
disappear from the request scope when I forward to an jsp containing a
frameset to other actions like this:





  
  





The frameset-jsp.page contains a frameset like this:


  
  


Now in the actions topFrame and bottomFrame the form SomeForm does not
appear in the request scope. Why is this? Rightnow I solved it by
putting SomeForm in the session scope is that the only solution? I don't
think that is a clean one anyway.

Thanks for any help and regards,

Jeroen

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
phone: +31 10 2818080
http://www.x-hive.com 

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



Help needed using struts with database and sessions

2003-10-14 Thread Jeroen Breedveld
Hi all, 

I'm creating a webapp using struts and a database. The jsp pages access
(for read and write) a resource object in a custom ActionForm like this:

 (causes setName() to be called on
the resource object when submitting form)
 (causes
getOwner() to called on resource object when jsp is loaded)

All calls to the methods in the resource object need to be called during
a database transaction because the resource object itself accesses the
database to retrieve or set data. I don't want to open and close a
session for every call on the resource object, ideally I want one
session to opened when the jsp loads and several calls are made to the
resource object consecutively. This session would have to be closed as
soon as the jsp is finished loading. And I want a session to be openend
when a form in the jsp is submitted so that new data can be stored in
the database. This session would have to be closed as soon as the jsp is
finished submitting the form data. 

Does anybody has an idea how I can somehow couple the jsp session with
my database session or maybe there is an event-listener that I can use
to start and stop database session when struts is accessing the
ActionForm? Any help is welcome.

Thanks and regards,

Jeroen

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
phone: +31 10 2818080
http://www.x-hive.com 

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



RE: Simple validator question

2003-10-03 Thread Jeroen Breedveld

 || -Original Message-
 || From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] 
 || Sent: vrijdag 3 oktober 2003 15:19
 || To: Struts Users Mailing List
 || Subject: RE: Simple validator question
 || 
 || 
 || I haven't tried it, but would something like this work?
 || 
 ||   
 || 
 ||   

No, unfortunately not. Now the error message reads '${var:email} is an
invalid email address' (I use a property called 'email')

Thanks and regards,

Jeroen


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



RE: Simple validator question

2003-10-03 Thread Jeroen Breedveld
Hi Jeff,

 || -Original Message-
 || From: Jeff Kyser [mailto:[EMAIL PROTECTED] 
 || Sent: vrijdag 3 oktober 2003 14:24
 || To: Struts Users Mailing List
 || Subject: Re: Simple validator question
 || 

...

 ||  
 ||  
 ||  
 || 
 || other pertinent entries (for the code above) in the 
 || ApplicationResources.properties file:
 || 
 || validateForm.emailField.errorname=Foo

Thanks for your help but this is not what I meant. I've probably not
been clear enough. I do not want the string 'foo' to come from a
resource file but it has to be what the user entered in the html:text
input box and which was invalidated by the validator framework.

So if a user enters '[EMAIL PROTECTED]' as emailaddress the error message should
read '[EMAIL PROTECTED] is an invalid email address' 

When a user enters '[EMAIL PROTECTED]' the error message should read '[EMAIL 
PROTECTED] is
an invalid email address' 

Thanks and regards,

Jeroen


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



Simple validator question

2003-10-03 Thread Jeroen Breedveld
Hi all,

Is it possible to supply the msg element with the value the user entered
in the form as the content of the arg element? 

My key errors.login.email.invalid is: {0} is an invalid email address
So when a user enters 'foo' as an email adres I want an error message
saying: 'foo is an invalid email address'

Is this possible? Here is the code:


  



  


Thanks and regards,

Jeroen

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
phone: +31 10 2818080
http://www.x-hive.com 

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



Property files containing countries

2003-09-05 Thread Jeroen Breedveld
Hi all,

Can someone please tell me if someone outthere is maintaining property
files containing all country names and their translations in different
languages? I need them for a webapp I'm creating.

thanks and regards,

Jeroen

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
http://www.x-hive.com 

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



Tiles attributes in jsp tags problems

2003-07-23 Thread Jeroen Breedveld
Hi all,

I changed from using the HTML embed tag to using the jsp:include tag to
embed a applet in a webpage. The problem however is that since I'm using
tiles I can't get the values of the attributes passed to tiles in the
attributes of the jsp:include tag because it is itself a jsp-tag. Can
someone please tell me how should I solve this problem?

Here is the jsp that embeds the applet:


<%@ taglib uri="/WEB-INF/struts/struts-tiles.tld" prefix="tiles" %>

  


  
"/>
"/>
"/>
"/>
  
  
Plugin tag OBJECT or EMBED not supported by browser.
  


  


Thanks and regards,

Jeroen

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



Re: File Upload : Progress Bar

2002-11-12 Thread jeroen
I've seen it done too, but not in JSP/Servlets (in my asp days... brrr)

Going to try it...

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




File Upload : Progress Bar

2002-11-12 Thread jeroen
Hi,

I was just experimenting with the file-upload utility of Struts, and it works 
fine. For one of my projects I need to upload rather big files, which take a 
long time.

I was thinking about implementing some kind of progress bar where the user can 
view what the status of his upload is.

The server first copies the file to a temporary folder before you can access it 
(and this first copy takes most of the time). Then I can use an InputStream to 
copy the folder to the correct place (and make that loader), but it's just on 
copying from one location on the server to another. What I need is a loader for 
copying from the client to the server.

Creating the loader is not the problem, but getting the "percentage done" is...

Has anyone done this? Or is it not possible?

thanks in advance...

Jeroen Keppens

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




IBM Websphere and struts installation guide.

2001-03-02 Thread Jeroen Riezebeek

Hello,

  we use struts templates in our webapp on websphere 3.5.2 and discovered
that the templates doesn't work properly.
This of behalve of the pageContect.getOut().flush wich was removed from an
earlier version(we use the latest version).
When we introduced the flush again the page is build up properly.

Maybe you can take it into the installationguide.

Thank Jeroen Riezebeek.