Struts Dreamweaver extension

2001-11-20 Thread Kok, Arjan

Hello,

Some time ago we at Compuware Amsterdam lab announced a project to integrate
the Struts taglibs in MacroMedia Dreamweaver. The project has finished, and
as promised the Dreamweaver extension can be freely downloaded. Goto
http://javacentral.compuware.com and download OptimalJ Dreamweaver
Integration Kit 1.0.9

With this extension, it becomes possible to view and edit JSP files with
Struts tags in Dreamweaver. This extension supports the MVC (or Model2)
paradigm where JSP files provide the view of the application. 
It is based on the Struts 1.0 tag libraries. Any comments, etc are
appreciated.

Regards, Marjon Luites and Arjan Kok.

http://www.optimalj.com 

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




Reference site for Japanese web site using Struts?

2001-04-05 Thread Kok, Arjan

Hello struts-ers, 

Has anybody already used Struts to build a website using the Japanese
language? I know it is possible to do it, but it would be nice if I could
point to an already build application.

Thanks, Arjan Kok.



RE: Dreamweaver

2001-02-05 Thread Kok, Arjan

Thierry Cools submitted a simple prototype for a Struts Dreamweaver
extension:
http://marc.theaimsgroup.com/?l=struts-user

&m=97445773011774&w=2 
 
Note:A project is started to extend this prototype to get a fully functional
Struts Dreamweaver extension.
http://marc.theaimsgroup.com/?l=struts-user

&m=98112654223407&w=2
 
Regards, Arjan Kok.

-Original Message-
From: Martin Duffy [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 03, 2001 8:21 PM
To: [EMAIL PROTECTED]
Subject: Re: Dreamweaver


I have been looking into the possibility of writing Struts extensions for
UltraDev4 (which is an extension of Dreamweaver itself). I would be
interested in getting such extensions as well if they are available.
 
I will look in the list archives to see of I can find anything there.

- Original Message - 
From: Charles Beckham   
To: Struts-User@Jakarta. Apache. Org   
Sent: Sunday, February 04, 2001 8:07 AM
Subject: Dreamweaver


I seem to recall a mention of DW extensions for 0.5...does anyone know where

I can get such extensions?

 

charles beckham

 




RE: PROPOSAL: Struts Dreamweaver Integration

2001-02-02 Thread Kok, Arjan

I did not know of 'data translator' of Ultra Dev. I'll look into it, thanks.
The posted version of Struts Dreamweaver extension (17 Nov) will be used as
a starting point.

Arjan Kok.

> -Original Message-
> From: Rob Leland [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 4:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: PROPOSAL: Struts Dreamweaver Integration
> 
> 
> Why not use the 'data translator' or the 'Translation Manager'
> of Ultra Dev to create the necessary javascript to visually edit
> your tags ? Someone else did a version for struts based on 0.5
> of the libraries, and posted a version back about 17 November
> to this list. I don't use Ultra Dev myself but would if one
> existed for 1.0. 
> 
> -Rob
> 
> "Kok, Arjan" wrote:
> > 
> > Hello,
> > 
> > We (Compuware Amsterdam Lab) will start a project to 
> integrate the Struts
> > taglibs in MacroMedia Dreamweaver. It will become possible 
> to edit JSP files
> > with Struts tags using Dreamweaver, with all the advantages of a Web
> > Authoring tool.
> > 
> > We are planning to publish the Struts Dreamweaver extension to the
> > Macromedia Dreamweaver site, hopefully  somewhere in June this year.
> > 
> > We will use the Struts .tld files as input for the 
> extension module, so the
> > extension module knows what tags and tag attributes to expect.
> > 
> > Any help, ideas, and comments are welcome.
> > 
> > Regards, Marjon Luites and Arjan Kok.
> 



PROPOSAL: Struts Dreamweaver Integration

2001-02-02 Thread Kok, Arjan

Hello,

We (Compuware Amsterdam Lab) will start a project to integrate the Struts
taglibs in MacroMedia Dreamweaver. It will become possible to edit JSP files
with Struts tags using Dreamweaver, with all the advantages of a Web
Authoring tool.

We are planning to publish the Struts Dreamweaver extension to the
Macromedia Dreamweaver site, hopefully  somewhere in June this year.

We will use the Struts .tld files as input for the extension module, so the
extension module knows what tags and tag attributes to expect.

Any help, ideas, and comments are welcome. 

Regards, Marjon Luites and Arjan Kok.



nested properties and null values

2000-12-18 Thread Kok, Arjan

Hello Strutsers,

I noticed an inconsistency in the Struts Taglib about handling nulls in
property attributes of the various tags. 
Consider the following examples using the bean:write name="bean"
property="property" tag as example:

1. If name = null, the bean:write tag will raise an exception. OK
2. If property = null, the bean:write tag is silent. OK
3. If property is nested, then if one of the nested beans is null, an
exception will be raised.  Not OK.

In example 3 I would expect the bean:write tag to be silent like example 2. 

What do you all think?

At least I would like to have the opportunity in Struts to check if there's
a nested bean null by e.g. extending the logic:present tag.
Ofcourse, these remarks also apply for indexed properties, or a combination
of the two.

Arjan Kok.



RE: form initialization

2000-12-18 Thread Kok, Arjan

Hello,

The Struts way to initialize a form with values retrieved in an Action is to
populate an ActionForm with the values that were retrieved (e.g. by using
PropertyUtils:copyProperties()) in the Action (viewDocument.do) itself. 

So not in the reset() method, as the main purpose of this method is to deal
with checkboxes.

Arjan Kok.




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 15, 2000 3:47 PM
> To: [EMAIL PROTECTED]
> Subject: form initialization
> 
> 
> 
> Hi
> 
> I've read through the mailing list, and I see that there are several
> different threads that seams to be related to the issue of how to
> initialize a form with values. I'm sorry, but I don't find answers to
> my problems in these threads.
> 
> My problem :
> I have a .jsp page with about 10 . The form is used to view
> attributes for a document. Now I'm working on implementing 
> "view document
> attributes", which should bring up a form with the attributes 
> for a document.
> 
> Here is what I though would work :
> An Action viewdocument.do which takes as a request parameter the id of
> the document to view the attributes for. This Action 
> successfully retrieves
> the attributevalues for the document. Then I store a Document 
> object in
> the request (I've also tried storing it in the session), and 
> then forward
> to the .jsp page with  and a corresponding 
> ViewForm ActionForm.
> 
> In the ActionForm I have the reset method(), and in this method I get
> the Document object stored in the request, and populate the 
> form properties with the correct values. So when the Struts 
> framework calls
> the get methods, the values I've retrieved in the 
> viewdocument Action should show up.
> 
> Why I think the solution doesn't work :
> In the struts-config.xml file I've added the viewdocument 
> action to the
> action-mappings, and also associated the ViewForm class.
> But then the reset method is called before the perform of the Action..
> 
> I've also tried without associating the Action with the 
> ViewForm, but then
> the reset method is never called..
> 
> My question :
> Since I seem to have run out of good ideas this week (We've 
> made some good progress on an application using Struts this 
> week), I need some help.
> 
> How can I initialize a form with values retrieved in an Action ?
> 
> You might ask why I want to use a Form to view document 
> attributes. The point is that I also have to make a edit.jsp, 
> which obviously needs to be a form, and I want to use the 
> same mechanism for both.
> 
> My environment :
> Tomcat 3.2.1, Struts 1.0 (build 05122000)
> 
> Have a nice weekend !
> 
> Regards
> Alf Hogemark
> 



Problem using current validate scheme

2000-11-30 Thread Kok, Arjan

Hello,

I have a problem using the current validate scheme. 

Scenario:
I have a Struts action that adds a bean B in the request, also populates a
form bean. Next, the Struts controller forwards the request to a jsp page P.
Then the next request is made, but the validate method on the form bean
failes, and the Struts controller forwards the request again the jsp page P.
However, bean B is now missing in the request. How to solve this problem?

I can think of two solutions:
1. Add bean B in session scope. I do not like adding beans in session scope
which have no functional meaning
2. If validate fails, forward to a special action that adds bean B in the
request, but that does not populate the form bean. I do not like this as
well, as the new action is only needed to deal with validation.

Any ideas?

Thanks, Arjan Kok.



RE: postprocessing hook

2000-11-21 Thread Kok, Arjan

Hello, 

Yes, I had to override the processActionPerform() method indeed :(.
I see the point that you cannot do any postprocessing if the action does its
own forwarding.
However, if the post processing hook is only called if the Action class
returns an ActionForward instance (which is usually the case), I still would
be happy.

Arjan Kok. 


> -Original Message-
> From: Mike La Budde [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 20, 2000 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: postprocessing hook
> 
> 
> I'm assuming you already have your own ActionServlet 
> descendant. I believe 
> you will need to use it to override the 
> processActionPerform() method to 
> add your own post processing hook.
> 
> I'm guessing that there is currently no post processing hook, 
> since that 
> would assume that the request and response are still valid. 
> The current 
> architecture allows struts users to do their own 
> forwarding/redirecting 
> within your Action classes and not return an ActionForward 
> instance (but 
> instead, null).
> 
> HTH,
> 
> Mike
> 
> 
> At 11/20/2000 11:18 AM +0100, you wrote:
> >Hello,
> >
> >Struts contains a general purpose preprocessing hook in the 
> ActionServlet
> >that is called before every action. However, there is no 
> postprocessing hook
> >at the moment. I would like to use the preprocessing and 
> postprocessing hook
> >to display some tracing information to the developer, for 
> example the amount
> >of seconds it took to process the action (we make use of a 
> possibly remote
> >EJB tier). Is it a good idea to add a postprocessing hook, 
> or is there
> >another place in the Struts framework for these kind of things?
> >
> >Thanks, Arjan Kok.
> 



postprocessing hook

2000-11-20 Thread Kok, Arjan

Hello,

Struts contains a general purpose preprocessing hook in the ActionServlet
that is called before every action. However, there is no postprocessing hook
at the moment. I would like to use the preprocessing and postprocessing hook
to display some tracing information to the developer, for example the amount
of seconds it took to process the action (we make use of a possibly remote
EJB tier). Is it a good idea to add a postprocessing hook, or is there
another place in the Struts framework for these kind of things?

Thanks, Arjan Kok.



RE: Another Locale problem

2000-11-14 Thread Kok, Arjan

Hello, 
 
What version of struts do you use?
 
If you use the 0.5 version of struts, you have to store the locale key in
your session, like this
 
"<% if (session.getAttribute(Action.LOCALE_KEY) == null)
 session.setAttribute(Action.LOCALE_KEY, request.getLocale()); %>"
This worked fine for me.
 
Later versions of struts allow you doing this by setting the locale
parameter of the controller servlet, like this:
 
  
locale
true
  
 
 
 Arjan Kok.

-Original Message-
From: Laufer, Michael [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 13, 2000 5:31 PM
To: 'Struts'
Subject: Another Locale problem



Hi, 

I've just looked through the mail-archieve of this mailing-list to find a
solution for 
my problem, but I still haven't figured out the solution ... 
I'm running web-applications with Struts and Tomcat. 
Now I wanted to use diffeent resource bundles for different languages
exactly the way it is described in the 
user's guide. But my browser just doesn't handle it correctly. 
E.G. 

the default ressource bundle is called ApplicationResources.properties
(which is set through the web.xml file of the webapplication, am I right??)

and I store different ApplicationResources_XX.properties files in the same
directory. fr for France, ge for Germany and so on ...

But my browsers just display the files the language od the default
properties file or when I adjusted the browser to German the German
properties.

I just haven't figured out, what to do  to see for example the French
version. 
So why am I only able to see default or German ??? I'm using German versions
for my browser, but as I understood it, that shouldn't matter, or ??

I've thought it depends on the adjusted languages in preferences of the
browser ?? 
If not I'm getting something terribly wrong. 

Any help would be appreciated. 

Thanks in advance, 

Mike