SV: Tiles:displaying document with tiles

2004-11-30 Thread hermod . opstvedt
Hi

There is a simple solution for this : in your Tiles jsp file where you
want the document displayed, add an IFrame. Then target your link to
this. Any word enabled browser (IE) will then open it as a Word document
within the IFrame

Hermod

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sendt: 1. desember 2004 08:29
Til: [EMAIL PROTECTED]
Emne: Re: Tiles:displaying document with tiles


How many times should I say it? TILES ARE NOT FRAMES! It is only a way
to
share common code in different pages. PAGES NOT FRAMESETS!!!
Uh, sorry for this yell.
Anyway, you cannot display a word document as a tile. If you want to do
it, you surely have to transform it into HTML, but I think it is not the
case, too much complex.
Maybe you could just use frames TOGETHER with Tiles, maybe using the
 tag.
Ciao
Antonio Petrelli

rose maria wrote:

>Hi,
>Iam converting an existing frames based WebApp to
>tiles based WebApp.
>I have a requirement where i need to show a word
>document in the browser when the user clicked on a
>link.
>In the old application it was a hard link to the
>document.(href="../documents/termsConditions.doc>View terms)
>so when the user clicks the link it will dispaly the
>document in the body area(including the menu and
>header frame).
>I tried the same with tiles.
>In the definition i mentioned like the following
>athen it displayed text along with some junk
>charecters in the browser.
>I even tried by mentioning a  a temporary jsp page and
>then redirecting to the document
>I got  the following exception.
>java.lang.IllegalStateException: Response has already
>been
>committed
>at
>   .
>   .
>Can any body suggest a solution to this problem.I
>appreciate your greate help.
>Thanks
>Maria
>


-
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 the DnB NOR Group
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: Tiles:displaying document with tiles

2004-11-30 Thread brenmcguire
How many times should I say it? TILES ARE NOT FRAMES! It is only a way to
share common code in different pages. PAGES NOT FRAMESETS!!!
Uh, sorry for this yell.
Anyway, you cannot display a word document as a tile. If you want to do
it, you surely have to transform it into HTML, but I think it is not the
case, too much complex.
Maybe you could just use frames TOGETHER with Tiles, maybe using the
 tag.
Ciao
Antonio Petrelli

rose maria wrote:

>Hi,
>Iam converting an existing frames based WebApp to
>tiles based WebApp.
>I have a requirement where i need to show a word
>document in the browser when the user clicked on a
>link.
>In the old application it was a hard link to the
>document.(href="../documents/termsConditions.doc>View terms)
>so when the user clicks the link it will dispaly the
>document in the body area(including the menu and
>header frame).
>I tried the same with tiles.
>In the definition i mentioned like the following
>athen it displayed text along with some junk
>charecters in the browser.
>I even tried by mentioning a  a temporary jsp page and
>then redirecting to the document
>I got  the following exception.
>java.lang.IllegalStateException: Response has already
>been
>committed
>at
>   .
>   .
>Can any body suggest a solution to this problem.I
>appreciate your greate help.
>Thanks
>Maria
>


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



RE: Automatic logging

2004-11-30 Thread Kinjal Sonpal
> But realistically, I'm with Eddie -- what logging can you really
> apply consistently and automatically in a way that is more useful
> than noisy?  If you have a bunch of fairly repetitive stuff
> spit out, then finding the real information is fairly tedious.

I also agree with it. I'm only looking for a temporary solution before
I implement a fine grained and well thought of logging for the
application.

> On the other hand, I don't find it all that burdensome to
> establish a
> static log instance for each class and toss around a few
> log.debug(...) lines, especially when I'm working on figuring out
> someone elses ill-documented code!

Hmm.. It appears to me that there are no frequently used or
established patterns for my requirements. May be I should also divert
my efforts into the same directions as mentioned by you. Can you or
someone suggest something for my requirements? My experience with
struts is relatively intermediate and we do not have any Tech.
consultants or Architects for my project.

Thanks and Regards,
Kinjal Sonpal

"In the real world, the right thing never happens in the right place
at the right time. It is the task of journalists and historians to
rectify this error."
--Mark Twain




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



OT - Open Source Forum

2004-11-30 Thread Richard
Hi Guys,

I am tasked to create a sort of forum website for our product support.
I hope you guys dont mind if I ask for your opinions.

Thanks
Richard

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



Re: caching large data in web application

2004-11-30 Thread Shih-gian Lee
Well, if the data is read only, then you can just cache the data in a
Hashtable and make it accessible through out the application.

If your data is volatile, then you may consider writing a simple time
based caching service -
http://www.javaworld.com/javaworld/jw-07-2001/jw-0720-cache_p.html

Hibernate provides two levels of caching. By default, Hibernates uses
first level caching. Hibernate also provides plugin for other cache
provider like JBoss. This is the second level caching. In first level
caching, Hibernate will check if data in a persistence class has
changed when saving a persistence class. If the related data is being
modified, Hibernate will update the modified data. Of course, this is
just one simple example. For more information, please visit Hibernate
reference document -
http://www.hibernate.org/hib_docs/reference/en/html/

HTH

Lee

On Mon, 29 Nov 2004 07:36:43 -0800 (PST), Ashish Kulkarni
<[EMAIL PROTECTED]> wrote:
> Hi
> The data which i want to cache has about 1 rows
> and i want to cache it in may be servlet context, what
> is the best way to cache it, do i just create a java
> bean and cache it or some kind of mechanism already
> exist like Hibernation (i am not sure what is does)
> 
> Ashish
> 
> 
> --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:
> 
> > What kind of data is it?  Is it a read-only set of
> > data?  How often is
> > it updated?  Who or what can update it?
> >
> > There's any number of ways to do things like this,
> > which is the best
> > option depends on the particulars of your use case.
> >
> > You might be able to cache the data in Javascript
> > arrays in the user's
> > browser in a hidden frame.  This is a fantastic
> > approach for data that
> > doesn't change frequently and that is read-only.
> > Removes potentially a
> > lot of data being passed in different spots
> > throughout the app, but it
> > does complicate your front-end a little more.
> >
> > You might be able to cache it in the session.  This
> > can be good if the
> > data set is small, read-only and needed for server
> > processing at various
> > points.  This can lead to problems in distributed
> > environments though,
> > so you need to be careful.
> >
> > You might be able to have a small cache database
> > server running along
> > side your app server, something like MySQL for
> > example, that has temp
> > copies of the data.  The benefit to this is you have
> > the full power of
> > the RDBMS to work with, so you might be able to do
> > triggers to update
> > the DB2 database when appropriate if it's a one-way
> > sort of thing.
> >
> > As for the idea of update triggers, sure, you can
> > almost certainly put
> > something together to do this.  I haven't done a
> > whole lot with DB2, but
> > I'd bet there's some mechanism you could use to
> > notify your cache server
> > of the update.  I'd suspect the best approach would
> > be to notify it a
> > change took place but DON'T send the updated data...
> > Let the cache
> > server do a query to DB2 and get the updated data
> > set.  Writing a
> > well-constructed stored procedure to do this would
> > probably be the best
> > bet.  You could also just poll DB2 for changes if
> > your application can
> > tolerate some lag in updates to the cached data.
> >
> > Really though, the first question to ask is whether
> > what you want to
> > cache is read-only or has to support updates.  If
> > it's the former, you
> > have a lot of options.  It it's the later, things
> > get a little trickier.
> >   By the way, I think I've done some variation of
> > all these approaches
> > at one time or other, so I can try and expand on
> > things if you need me to.
> >
> > --
> > Frank W. Zammetti
> > Founder and Chief Software Architect
> > Omnytex Technologies
> > http://www.omnytex.com
> >
> > Dakota Jack wrote:
> > > Whatever code updates the database will have to
> > somewhere and somehow
> > > notify the code that updates the cache.  It is
> > that simple.
> > >
> > > Jack
> > >
> > >
> > >
> > >
> > > On Sun, 28 Nov 2004 15:25:56 -0800 (PST), Ashish
> > Kulkarni
> > > <[EMAIL PROTECTED]> wrote:
> > >
> > >>Hi
> > >>what is the best way to cache data in web
> > application,
> > >>I have a table in AS400 DB2 database which i want
> > to
> > >>cache in application server to improve
> > performance,
> > >>Also is it possible to have a external trigger
> > which
> > >>will update the cache if the data base is updated
> > by
> > >>some external process
> > >>
> > >>Ashish
> > >>
> > >>__
> > >>Do you Yahoo!?
> > >>Meet the all-new My Yahoo! - Try it today!
> > >>http://my.yahoo.com
> > >>
> >
> >>-
> > >>To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >>For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mai

Re: RE: MVC initialization

2004-11-30 Thread jeichels
Thank you both much!!!   I guess I will try using the ServletContextListener 
because I am using Servlet 2.3 as found in Tomcat 4.1.  I have tried hard on 
staying away from having a common initilization, but the scope of the service 
platform I created requires the ability now...so that each product can have its 
own specific interface callbacks as need be.   Guess this is the only way to 
achieve a generic platform and have specific service interfaces that sit on top.

Thank you for the help.   Now I just have to figure how to implement it.




- Original Message -
From: Joe Germuska <[EMAIL PROTECTED]>
Date: Tuesday, November 30, 2004 6:10 pm
Subject: RE: MVC initialization

> At 6:02 PM -0500 11/30/04, Robert Taylor wrote:
> >A standardized approach would be to implement a 
> >ServletContextListener and define it
> >in your web.xml for the web app. It will be invoked before the 
> web 
> >app accepts any requests
> >and when the web app is shutdown.
> >
> >A more "Struts" approach would be to use a PlugIn and define it 
> in 
> >your struts-config.xml file.
> 
> Note that the only compelling reason to use a PlugIn would be if 
> you 
> were still only on Servlet 2.2 (when it hadn't yet been 
> introduced) 
> or if you needed your PlugIn to have a reference to the 
> ModuleConfig 
> object corresponding to the Module in which the PlugIn was defined.
> 
> Just wanted to point out that just because it's a "more 'Struts'" 
> approach, it's not necessarily better.
> 
> Then again, I keep writing PlugIns myself, just out of habit.  
> They work.
> 
> Joe
> -- 
> Joe Germuska
> [EMAIL PROTECTED]  
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 


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



Re: nested tiles

2004-11-30 Thread Bill Keese
Yeah, I also wish there was more documentation on this.
I think I found the flaw in your original design.  In layout.jsp you 
want to take the "body" attribute defined in tiles-def.xml and pass it 
on to bodyFrame.jsp as "bodypage".  So you need to use beanName, right?

tiles-def.xml:
---
  
  
  
  

layout.jsp
--
  
 
  

bodyFrame.jsp

  
Does that work for you?
Stefan Clos wrote:
thanks Bill,
your way to make nested tiles works fine. (After i changed "extends" 
to "template" in the second definition).

It has the advantage that the jsp´s are smaller and easier to 
understand, but at the cost you
need 2 definitions for each page. If you are only use one BodyFrame, 
you need a little more code i think.

I hope there are coming a better documentation about nested tiles with 
some best practics in future.

Stefan
Bill Keese schrieb:
Interesting.  I'm not sure why your code doesn't work.  Maybe the 
value attribute in  should 
be /WEB-INF/pgs/startpage.jsp.

Anyway, I haven't done nested tiles in the same way as you do.  This 
is how I do nested tiles.  Maybe someone can comment on which way is 
better.

  
  
  
  
  

  
  
  
  

   
  
  
  
Bill
Stefan Clos wrote:
hi,
i have a problem with nested tiles. I found not much about it in the 
struts doc.
the problem is that it not displays the correct body page.I get a 
directory listing there.
At the definition startpage i have the value "/startpage.jsp"
This should be displayed at my page. But it doesn´t  :(

I am using Struts 1.2 with Tomcat 5.
Thank you all very much for your answers, a link to helpful 
documentation in the internet,
is also welcome.

Stefan Clos
tiles-def.xml:
---
   
   
   
   
   

   
  <--- put the 
page here
   

layout.jsp
--
   <%-- Header incl.  --%>
   
   <%-- complete navigation --%>
   
   <%-- Rest of the Page (everything after the navigation) --%>
   
 
< put it here
   

bodyFrame.jsp

   
   
   Community
   
   
 <- should 
be at this point, but tomcat show me a directory listing there, 
funny but not what i want
   
   


---


-
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: Struts training

2004-11-30 Thread M. Bitner
You're right - I should have looked more closely. Sorry about that.


On Tue, 30 Nov 2004 19:38:15 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote:
> 
> You will be introduced to Struts, the primary MVC framework for building
> Java Web Applications.
> 
> 
> Doesn't sound like they go into it very deeply.  It may be a very good class
> for a person that hasn't done any web development using Java technologies
> though.
> 
> 
> You should have approximately three months Java experience. No web
> development or XML experience is necessary, but would be useful. 
> 
> 
> A person really needs to know web development fairly decently before they
> can be introduced to, and expected to understand, Struts.  That's a lot to
> fit into five days, especially considering they expect to start the course
> with people being relatively ignorant of the things they're teaching.
> 
> I'm not knocking them :-)  Just saying that it sounds as though that
> particular course is aimed more at POSAs (Plain Ol'e Servlet Applications)
> with a sprinkling of Struts.
> 
> Eddie
> 
> 
> 
> - Original Message -
> From: "M. Bitner" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 30, 2004 7:15 PM
> Subject: Re: Struts training
> 
> > DevelopMentor offers a Struts class:
> >
> > http://www.develop.com/us/training/course.aspx?id=202
> >
> > I haven't taken this particular class but I've gone to two of their
> > other classes and was really impressed with them.
> >
> > Melissa
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> ---
> avast! Antivirus: Outbound message clean.
> Virus Database (VPS): 0449-0, 11/30/2004
> Tested on: 11/30/2004 7:38:17 PM
> avast! - copyright (c) 2000-2004 ALWIL Software.
> http://www.avast.com
> 
>

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



Re: Struts training

2004-11-30 Thread Eddie Bush

You will be introduced to Struts, the primary MVC framework for building 
Java Web Applications.


Doesn't sound like they go into it very deeply.  It may be a very good class 
for a person that hasn't done any web development using Java technologies 
though.


You should have approximately three months Java experience. No web 
development or XML experience is necessary, but would be useful. 


A person really needs to know web development fairly decently before they 
can be introduced to, and expected to understand, Struts.  That's a lot to 
fit into five days, especially considering they expect to start the course 
with people being relatively ignorant of the things they're teaching.

I'm not knocking them :-)  Just saying that it sounds as though that 
particular course is aimed more at POSAs (Plain Ol'e Servlet Applications) 
with a sprinkling of Struts.

Eddie
- Original Message - 
From: "M. Bitner" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 30, 2004 7:15 PM
Subject: Re: Struts training


DevelopMentor offers a Struts class:
http://www.develop.com/us/training/course.aspx?id=202
I haven't taken this particular class but I've gone to two of their
other classes and was really impressed with them.
Melissa
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0449-0, 11/30/2004
Tested on: 11/30/2004 7:38:17 PM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com

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


Re: Struts training

2004-11-30 Thread M. Bitner
DevelopMentor offers a Struts class:

http://www.develop.com/us/training/course.aspx?id=202

I haven't taken this particular class but I've gone to two of their
other classes and was really impressed with them.

Melissa

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



RE: Newbie question regarding

2004-11-30 Thread David G. Friedman
Marcio,

To know the ID of the user, you could change your options line to:


That only works if your users collection has a getId method along with your
[assumed] getName() method.  When you submit it, if you need the name you
will probably have to look it up in your Action since you'll only have the
ID submitted, not the name.

Regards,
David

-Original Message-
From: admin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 4:14 PM
To: [EMAIL PROTECTED]
Subject: Newbie question regarding 


Hello folks.

I have a Bean called users with two properties (Id and Name)





When a choose a name in this selection i need to know the ID of the
selected user. How can i do that?

Thanks for any help.

Marcio Lima



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



RE: Tiles and Forms

2004-11-30 Thread David G. Friedman
Heh, hey.  Substitute "sight" for "site".
in the first sentence of the below letter.
Too much time spent on web development for
me, don't you think?

-David "right sound, wrong spelling" Friedman

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 6:29 PM
To: Struts Users Mailing List
Subject: RE: Tiles and Forms


Grasshopper! The solution is in plain site in the userGuide for the HTML
Taglib.

Use the name="someBeanName" attribute available to many html:taglib fields.
Hopefully, you are using a version of Struts which is recent enough to
support that attribute (should be supported in 1.0, definitely in 1.1 and
up).

In my test, one of the JSP's used the html:form tag with an action.  A JSP
INSERTED into that tile had 2 lines:

<[EMAIL PROTECTED] uri="struts-html" prefix="html" %>




All attributes from all beans (I put them all in scope at each previous
setup Action) showed up in the correct parts of the correct tile pieces.

If you need to start changing the form's submit action depending on which
button in which tile was touched, email me off-list (i.e. directly) and I'll
show you how to use document.getElementById(...) in JavaScript to change the
form's submit location/path/action/URL.

Regards,
David "Try that Tile question out!" Friedman

-Original Message-
From: Graeme Miller [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 9:16 PM
To: [EMAIL PROTECTED]
Subject: Tiles and Forms


What is the correct pattern for placing a struts html:form tag in a
layout where
- the controls may be in a different location (and hence different
tiles) from the buttons that submit the form
- where you want the action the form submits to to be customisable by
whatever jsp uses this form?

If anyone could give a simple example of using this pattern I would
appreciate it.

For example here's a simplification of what I am currently trying

Simple Layout

<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean";
prefix="bean"%>

  

  
  





  


Simple Use of the above layout (using the body wrap pattern for ease of
readability)

<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>

  
  
  
  Save


Unfortunately while the form action gets correctly rendered with the
right action passed from the jsp that uses the layout, the checkbox
rendering fails with the message "Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope".  As far as I
understand this means the html form tag is not being put in scope for
the checkbox to find.

Any wise words appreciated.

Graeme

-
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: Tiles and Forms

2004-11-30 Thread David G. Friedman
Grasshopper! The solution is in plain site in the userGuide for the HTML
Taglib.

Use the name="someBeanName" attribute available to many html:taglib fields.
Hopefully, you are using a version of Struts which is recent enough to
support that attribute (should be supported in 1.0, definitely in 1.1 and
up).

In my test, one of the JSP's used the html:form tag with an action.  A JSP
INSERTED into that tile had 2 lines:

<[EMAIL PROTECTED] uri="struts-html" prefix="html" %>




All attributes from all beans (I put them all in scope at each previous
setup Action) showed up in the correct parts of the correct tile pieces.

If you need to start changing the form's submit action depending on which
button in which tile was touched, email me off-list (i.e. directly) and I'll
show you how to use document.getElementById(...) in JavaScript to change the
form's submit location/path/action/URL.

Regards,
David "Try that Tile question out!" Friedman

-Original Message-
From: Graeme Miller [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 9:16 PM
To: [EMAIL PROTECTED]
Subject: Tiles and Forms


What is the correct pattern for placing a struts html:form tag in a
layout where
- the controls may be in a different location (and hence different
tiles) from the buttons that submit the form
- where you want the action the form submits to to be customisable by
whatever jsp uses this form?

If anyone could give a simple example of using this pattern I would
appreciate it.

For example here's a simplification of what I am currently trying

Simple Layout

<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean";
prefix="bean"%>

  

  
  





  


Simple Use of the above layout (using the body wrap pattern for ease of
readability)

<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>

  
  
  
  Save


Unfortunately while the form action gets correctly rendered with the
right action passed from the jsp that uses the layout, the checkbox
rendering fails with the message "Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope".  As far as I
understand this means the html form tag is not being put in scope for
the checkbox to find.

Any wise words appreciated.

Graeme

-
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: MVC initialization

2004-11-30 Thread Joe Germuska
At 6:02 PM -0500 11/30/04, Robert Taylor wrote:
A standardized approach would be to implement a 
ServletContextListener and define it
in your web.xml for the web app. It will be invoked before the web 
app accepts any requests
and when the web app is shutdown.

A more "Struts" approach would be to use a PlugIn and define it in 
your struts-config.xml file.
Note that the only compelling reason to use a PlugIn would be if you 
were still only on Servlet 2.2 (when it hadn't yet been introduced) 
or if you needed your PlugIn to have a reference to the ModuleConfig 
object corresponding to the Module in which the PlugIn was defined.

Just wanted to point out that just because it's a "more 'Struts'" 
approach, it's not necessarily better.

Then again, I keep writing PlugIns myself, just out of habit.  They work.
Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

Re: Tiles and Forms

2004-11-30 Thread Dakota Jack
If you want a  across Tiles is one thing.  If you want a
 across Tiles is another.  Do you have to have the
 ?  If so, you can fairly easily write a custom sub-tag for
 that would allow you to open the tag and close it part way
through on one tile and open it again and finally close it in another.
 I cannot see why you would possibly want to do this, but it seems to
be quite possible.  In the end, all we are doing is creating a
response object.  Right?

Jack


On Tue, 30 Nov 2004 14:44:55 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Graeme Miller" <[EMAIL PROTECTED]>
> 
> > How do I make it so that the
> > html:form tag is scoped across both tiles as I want to be able to
> > put controls in one tile and buttons to submit in another?
> 
> A search of the list archives turned up very little discussion of splitting
> forms across different tiles.  I only found one person stating that you can
> split a form across tiles.  Curiously, it was in reply to my stating that
> you can't, but it was not a thread I wished to continue, so the question was
> never resolved. ;)
> 
> Can we entice a Tiles expert to comment?  Can you have  in one
> tile, and  in another?
> 
> Graeme, as a workaround I would try one of the JSP includes:  <%@ include,
> or  
> --
> Wendy Smoak
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

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



RE: MVC initialization

2004-11-30 Thread Robert Taylor
A standardized approach would be to implement a ServletContextListener and 
define it
in your web.xml for the web app. It will be invoked before the web app accepts 
any requests
and when the web app is shutdown.

A more "Struts" approach would be to use a PlugIn and define it in your 
struts-config.xml file.

Both of these methods provide you with bootstrapping your web app.

robert

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 30, 2004 5:43 PM
> To: Struts Users Mailing List
> Subject: MVC initialization
>
>
> I know this is a bit off topic, but I figured I could get a better answer 
> here.
>
> I am using Tomcat 4.1 and the latest production build for Struts in an MVC 
> setup and have a large application already in
> production on the web.
>
> I need to enhance the model, but this enhancement will require me to have 
> individual products/services register their
> interfaces with a common model hashmap.
>
> I would like this initialization to be done once at startup, but I am not 
> sure where would be appropriate or where to do
> this.   I don't need to include any properties files or anything, just need 
> to do some initial setup and thought that
> static blocks for each service might be a bad route?
>
> What might be a good approach for this that people who do MVC use?  I know it 
> is a bit off topic, but though you might have ideas.
>
>
>
>
> -
> 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]



MVC initialization

2004-11-30 Thread jeichels
I know this is a bit off topic, but I figured I could get a better answer here.

I am using Tomcat 4.1 and the latest production build for Struts in an MVC 
setup and have a large application already in production on the web.

I need to enhance the model, but this enhancement will require me to have 
individual products/services register their interfaces with a common model 
hashmap.

I would like this initialization to be done once at startup, but I am not sure 
where would be appropriate or where to do this.   I don't need to include any 
properties files or anything, just need to do some initial setup and thought 
that static blocks for each service might be a bad route?

What might be a good approach for this that people who do MVC use?  I know it 
is a bit off topic, but though you might have ideas.




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



RE: Applicaton-specific logging in Struts

2004-11-30 Thread Allen Day
Thanks for your helpful advice Joe & Graeme!  

Allen


>>> [EMAIL PROTECTED] 11/30/2004 2:35:59 PM >>>
At 10:30 AM +1300 12/1/04, Graeme Miller wrote:
>Firstly make sure you have no spaces after the commas and that the
>struts entry is on a separate line from the rootlogger entry
>
>Try something like
>
>log4j.rootCategory=DEBUG,stdout
>log4j.logger.org.apache.struts=FATAL

Note that Struts uses a few libraries (particularly digester and 
beanutils) which are fairly verbose.  I'd advise setting the root 
logger to a higher threshold, and then relaxing the threshold only 
for your loggers.

Joe



>-Original Message-
>From: Allen Day [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, 1 December 2004 10:24 a.m.
>To: [EMAIL PROTECTED] 
>Subject: RE: Applicaton-specific logging in Struts
>
>
>I'm new to Struts.  I would also like to reduce (or turn off) the
Struts
>logging.
>
>Currently I'm using Struts 1.2.4, and I'm using log4j-1.2.9.
>
>In addition to the first line, I added the second line to my
>'log4j.properties' file, but nothing changed -
>
>log4j.rootLogger=DEBUG, stdout, wlout
>log4j.logger.org.apache.struts=FATAL, stdout
>
>Any suggestions?
>
>Thanks,
>   Allen Day
>   Intermountain Health Care
>
>
  [EMAIL PROTECTED] 11/26/2004 6:59:10 AM >>>
>log4j.logger.com.myapp=DEBUG,A1
log4j.logger.org.apache.struts=FATAL,A2
>
>where A1 and A2 are different console or file appenders.
>
>
>-
>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] 


-- 
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com 
"Narrow minds are weapons made for mass destruction"  -The Ex

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



RE: Applicaton-specific logging in Struts

2004-11-30 Thread Graeme Miller
Yes it is possible

Firstly you might want to make sure your log4j properties is on the
classpath.  Run a simple java test where you set log4 root level to
various levels and check that a simple java application logging levels
change appropriately

Secondly I don't actually do it the way you are doing it.  What I do is
explicitely set my default logging level to WARN then turn on debugging
for each individual package I want to check.  It means that I don't get
spam from random open source frameworks that I don't care about.  

In my experience most open source frameworks (struts and hibernate
included) use logger.debug for useless information that only makes sense
to the programmer who wrote it, and use logger.info for stuff that
should clearly be debug etc.  My attitude is that debugging should be
helpful to a person *using* your code and trying to track down errors
and only *significant* events should make up to info level.  If it only
makes sense to someone reading the source it should not make it into
source control at all.

-Original Message-
From: Allen Day [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 1 December 2004 10:40 a.m.
To: [EMAIL PROTECTED]
Subject: RE: Applicaton-specific logging in Struts


That didn't make any difference, but it was worth a try so thanks!

Is there a way to turn off the Struts logging?


>>> [EMAIL PROTECTED] 11/30/2004 2:30:54 PM >>>
Firstly make sure you have no spaces after the commas and that the
struts entry is on a separate line from the rootlogger entry

Try something like

log4j.rootCategory=DEBUG,stdout log4j.logger.org.apache.struts=FATAL

-Original Message-
From: Allen Day [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 1 December 2004 10:24 a.m.
To: [EMAIL PROTECTED] 
Subject: RE: Applicaton-specific logging in Struts


I'm new to Struts.  I would also like to reduce (or turn off) the Struts
logging.

Currently I'm using Struts 1.2.4, and I'm using log4j-1.2.9.

In addition to the first line, I added the second line to my
'log4j.properties' file, but nothing changed -

log4j.rootLogger=DEBUG, stdout, wlout
log4j.logger.org.apache.struts=FATAL, stdout

Any suggestions?

Thanks,
  Allen Day
  Intermountain Health Care


>>> [EMAIL PROTECTED] 11/26/2004 6:59:10 AM >>>
log4j.logger.com.myapp=DEBUG,A1 log4j.logger.org.apache.struts=FATAL,A2

where A1 and A2 are different console or file appenders.


-
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: Tiles and Forms

2004-11-30 Thread Wendy Smoak
From: "Graeme Miller" <[EMAIL PROTECTED]>

> How do I make it so that the
> html:form tag is scoped across both tiles as I want to be able to
> put controls in one tile and buttons to submit in another?

A search of the list archives turned up very little discussion of splitting
forms across different tiles.  I only found one person stating that you can
split a form across tiles.  Curiously, it was in reply to my stating that
you can't, but it was not a thread I wished to continue, so the question was
never resolved. ;)

Can we entice a Tiles expert to comment?  Can you have  in one
tile, and  in another?

Graeme, as a workaround I would try one of the JSP includes:  <%@ include,
or 

RE: Applicaton-specific logging in Struts

2004-11-30 Thread Joe Germuska
At 10:30 AM +1300 12/1/04, Graeme Miller wrote:
Firstly make sure you have no spaces after the commas and that the
struts entry is on a separate line from the rootlogger entry
Try something like
log4j.rootCategory=DEBUG,stdout
log4j.logger.org.apache.struts=FATAL
Note that Struts uses a few libraries (particularly digester and 
beanutils) which are fairly verbose.  I'd advise setting the root 
logger to a higher threshold, and then relaxing the threshold only 
for your loggers.

Joe

-Original Message-
From: Allen Day [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 December 2004 10:24 a.m.
To: [EMAIL PROTECTED]
Subject: RE: Applicaton-specific logging in Struts
I'm new to Struts.  I would also like to reduce (or turn off) the Struts
logging.
Currently I'm using Struts 1.2.4, and I'm using log4j-1.2.9.
In addition to the first line, I added the second line to my
'log4j.properties' file, but nothing changed -
log4j.rootLogger=DEBUG, stdout, wlout
log4j.logger.org.apache.struts=FATAL, stdout
Any suggestions?
Thanks,
  Allen Day
  Intermountain Health Care

 [EMAIL PROTECTED] 11/26/2004 6:59:10 AM >>>
log4j.logger.com.myapp=DEBUG,A1 log4j.logger.org.apache.struts=FATAL,A2
where A1 and A2 are different console or file appenders.
-
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]

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

RE: Tiles and Forms

2004-11-30 Thread Joe Germuska
At 10:02 AM +1300 12/1/04, Graeme Miller wrote:
Simple question with no helpful responses so far.
I must therefore conclude either
a)Noone uses tiles because they are broken
b)Noone understands tiles
c)The way I am proposing to use tiles is so dramatically wrong at a
design level that noone has a clue what I am asking.
or d) members of this list are people who have things to do, so 
sometimes they don't read every message or devote time to answering 
every question.

Tiles are certainly not broken; lots of people use them all the time, 
and even use them without using Struts.  As for whether or not they 
understand what they're using... you've got me.

Unfortunately while the form action gets correctly rendered with the
right action passed from the jsp that uses the layout, the checkbox
rendering fails with the message "Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope".  As far as I
understand this means the html form tag is not being put in scope for
the checkbox to find.
Actually, this means that the checkbox tag is not finding the form 
bean, not the form tag.  The form bean object is looked up  according 
to the action mapping associated with the value of the form tag's 
"action" attribute, and the object is placed into request scope, 
explicitly so that it would be available to other JSP fragments 
besides the one in which the opening form tag is invoked.  If it is 
not found, an error is thrown by the form tag before the checkbox tag 
is ever executed.

Have you ensured that this works in the simplest case, where you have 
a single JSP rather than tiles?  If so, then we'd need more to go on 
- in theory, this is something which can be done.  I've worked on 
applications which include form fragments using jsp:include, which 
should be similar enough for these purposes.  I can't think of any 
offhand which use tiles instead.

At 4:20 PM -0500 11/30/04, Bill Siggelkow wrote:
I don't think it is possible to "split" a form across multiple Tiles 
because the Tile is a complete (translated) response. A form must be 
complete on a Tile.
I don't think this is true.  If you look at the 
TilesRequestProcessor's implementation of doForward, it checks to see 
if the response has been committed yet, and if it has, then it uses 
requestDispatcher.include(...), which should mean that the tiles all 
have access to the same request scope.

http://svn.apache.org/viewcvs.cgi/struts/core/trunk/src/share/org/apache/struts/tiles/TilesRequestProcessor.java?view=markup
Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

AW: UTF-8 encoding in html form

2004-11-30 Thread Otto, Frank
Hello,

thanks for your answer, but how can I do that the polish characters submitted 
correctly?

f.e.: character ę (\u0119).

How can I convert this character to unicode. In the same way, that native2ascii 
do this. Is there any possibility?

I use a servlet filter too.

kind regards,

Frank

-Originalnachricht-
Von: Joe Germuska
An: Struts Users Mailing List
Gesendet: 30.11.2004 17:10
Betreff: Re: UTF-8 encoding in html form

>  > Also note that Struts' multipart processing currently is rather
clumsy
>  > in handling form encoding.  If the request object returns null from
>  > "getCharacterEncoding()", then Struts assumes ISO-8859-1.  I was
>
>Isn't it Tomcat itself? This is a behaviour per servlets
>specifications (see page 41 of 2.4 specs).

There's a specific chunk of code in CommonsMultipartRequestHandler 
which has "ISO-8859-1" hard-coded as the fallback encoding if 
request.getCharacterEncoding() returns null.  I brought this up on 
one of the struts lists when I encountered it a few months ago, but 
didn't feel satisfied of a correct way to expose the value as a 
configuration parameter.  My concern was making it clear that setting 
it would only impact the request handler, because any configuration 
name I could think of might lead people to believe that Struts was 
also taking responsibility for calling 
request.setCharacterEncoding(...).

In the last couple of days, we've been talking a bit about possible 
changes to Struts configuration, and I think Martin has some pretty 
big plans for file upload handling in Struts 1.3, and this hasn't 
been a big issue for many people, so we'll probably let it float a 
while longer still.


>  > setting the request encoding with a custom command in a
chain-request
>>  processor, but the request was still returning a null value in
>  > CommonsMultipartRequestHandler where the non-uploaded fields were
>>  being processed.  Of course, this may have nothing to do with your
>>  situation.
>
>As far as I know, this is a behaviour per specifications. Page 41
>and 198 of servlets 2.4 specs: changing the character encoding
>must be done prior to reading request parameters or reading
>input. Odds are high there is something which reads input before
>you set the request encoding.

yes, you're probably right.  Next time I turn to the issue, I'll use 
a servlet filter.
-- 
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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



RE: Applicaton-specific logging in Struts

2004-11-30 Thread Allen Day
That didn't make any difference, but it was worth a try so thanks!

Is there a way to turn off the Struts logging?


>>> [EMAIL PROTECTED] 11/30/2004 2:30:54 PM >>>
Firstly make sure you have no spaces after the commas and that the
struts entry is on a separate line from the rootlogger entry

Try something like

log4j.rootCategory=DEBUG,stdout
log4j.logger.org.apache.struts=FATAL

-Original Message-
From: Allen Day [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 1 December 2004 10:24 a.m.
To: [EMAIL PROTECTED] 
Subject: RE: Applicaton-specific logging in Struts


I'm new to Struts.  I would also like to reduce (or turn off) the
Struts
logging.

Currently I'm using Struts 1.2.4, and I'm using log4j-1.2.9.

In addition to the first line, I added the second line to my
'log4j.properties' file, but nothing changed -

log4j.rootLogger=DEBUG, stdout, wlout
log4j.logger.org.apache.struts=FATAL, stdout

Any suggestions?

Thanks,
  Allen Day
  Intermountain Health Care


>>> [EMAIL PROTECTED] 11/26/2004 6:59:10 AM >>>
log4j.logger.com.myapp=DEBUG,A1
log4j.logger.org.apache.struts=FATAL,A2

where A1 and A2 are different console or file appenders.


-
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: nested tiles

2004-11-30 Thread Stefan Clos
thanks Bill,
your way to make nested tiles works fine. (After i changed "extends" to 
"template" in the second definition).

It has the advantage that the jsp´s are smaller and easier to 
understand, but at the cost you
need 2 definitions for each page. If you are only use one BodyFrame, you 
need a little more code i think.

I hope there are coming a better documentation about nested tiles with 
some best practics in future.

Stefan
Bill Keese schrieb:
Interesting.  I'm not sure why your code doesn't work.  Maybe the 
value attribute in  should 
be /WEB-INF/pgs/startpage.jsp.

Anyway, I haven't done nested tiles in the same way as you do.  This 
is how I do nested tiles.  Maybe someone can comment on which way is 
better.

  
  
  
  
  

  
  
  
  

   
  
  
  
Bill
Stefan Clos wrote:
hi,
i have a problem with nested tiles. I found not much about it in the 
struts doc.
the problem is that it not displays the correct body page.I get a 
directory listing there.
At the definition startpage i have the value "/startpage.jsp"
This should be displayed at my page. But it doesn´t  :(

I am using Struts 1.2 with Tomcat 5.
Thank you all very much for your answers, a link to helpful 
documentation in the internet,
is also welcome.

Stefan Clos
tiles-def.xml:
---
   
   
   
   
   

   
  <--- put the page 
here
   

layout.jsp
--
   <%-- Header incl.  --%>
   
   <%-- complete navigation --%>
   
   <%-- Rest of the Page (everything after the navigation) --%>
   
 
< put it here
   

bodyFrame.jsp

   
   
   Community
   
   
 <- should be 
at this point, but tomcat show me a directory listing there, funny 
but not what i want
   
   


---


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


RE: Applicaton-specific logging in Struts

2004-11-30 Thread Graeme Miller
Firstly make sure you have no spaces after the commas and that the
struts entry is on a separate line from the rootlogger entry

Try something like

log4j.rootCategory=DEBUG,stdout
log4j.logger.org.apache.struts=FATAL

-Original Message-
From: Allen Day [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 1 December 2004 10:24 a.m.
To: [EMAIL PROTECTED]
Subject: RE: Applicaton-specific logging in Struts


I'm new to Struts.  I would also like to reduce (or turn off) the Struts
logging.

Currently I'm using Struts 1.2.4, and I'm using log4j-1.2.9.

In addition to the first line, I added the second line to my
'log4j.properties' file, but nothing changed -

log4j.rootLogger=DEBUG, stdout, wlout
log4j.logger.org.apache.struts=FATAL, stdout

Any suggestions?

Thanks,
  Allen Day
  Intermountain Health Care


>>> [EMAIL PROTECTED] 11/26/2004 6:59:10 AM >>>
log4j.logger.com.myapp=DEBUG,A1 log4j.logger.org.apache.struts=FATAL,A2

where A1 and A2 are different console or file appenders.


-
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: Applicaton-specific logging in Struts

2004-11-30 Thread Allen Day
I'm new to Struts.  I would also like to reduce (or turn off) the Struts
logging.

Currently I'm using Struts 1.2.4, and I'm using log4j-1.2.9.

In addition to the first line, I added the second line to my
'log4j.properties' file, but nothing changed -

log4j.rootLogger=DEBUG, stdout, wlout
log4j.logger.org.apache.struts=FATAL, stdout

Any suggestions?

Thanks,
  Allen Day
  Intermountain Health Care


>>> [EMAIL PROTECTED] 11/26/2004 6:59:10 AM >>>
log4j.logger.com.myapp=DEBUG,A1
log4j.logger.org.apache.struts=FATAL,A2

where A1 and A2 are different console or file appenders.


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



Re: Tiles and Forms

2004-11-30 Thread Bill Siggelkow
I don't think it is possible to "split" a form across multiple Tiles 
because the Tile is a complete (translated) response. A form must be 
complete on a Tile.

However, you can achieve the desired behavior by using the JSP include 
directive -- the included fragment will can be a portion of the form; it 
will be included as part of the translation phase; prior to compilation 
of your JSP.

-Bill Siggelkow
Graeme Miller wrote:
Simple question with no helpful responses so far.
I must therefore conclude either 
a)Noone uses tiles because they are broken
b)Noone understands tiles
c)The way I am proposing to use tiles is so dramatically wrong at a
design level that noone has a clue what I am asking.

Just as a quick summary if I have a html:form tag that wraps two tiles
and put a html control in one of the tiles that requires a html:form tag
(such as html:checkbox, html:text etc) I get an error saying that could
not find the form (see message below).  How do I make it so that the
html:form tag is scoped across both tiles as I want to be able to put
controls in one tile and buttons to submit in another?
Please don't make post a bug on the Struts bugzilla just to get an
answer.  Without some "words from the wise" I don't see how its behaving
in a correct manner.
Thanks,
Graeme.
-Original Message-
From: Graeme Miller [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 30 November 2004 3:16 p.m.
To: [EMAIL PROTECTED]
Subject: Tiles and Forms

What is the correct pattern for placing a struts html:form tag in a
layout where 
- the controls may be in a different location (and hence different
tiles) from the buttons that submit the form
- where you want the action the form submits to to be customisable by
whatever jsp uses this form?

If anyone could give a simple example of using this pattern I would
appreciate it.
For example here's a simplification of what I am currently trying
Simple Layout
<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean";
prefix="bean"%>

  

  
  





  

Simple Use of the above layout (using the body wrap pattern for ease of
readability)
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>

  
  
  
  Save

Unfortunately while the form action gets correctly rendered with the
right action passed from the jsp that uses the layout, the checkbox
rendering fails with the message "Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope".  As far as I
understand this means the html form tag is not being put in scope for
the checkbox to find. 

Any wise words appreciated.
Graeme 

-
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]


Getting ActionMessages from session

2004-11-30 Thread Wes Kubo
Hi.

I noticed that Struts 1.2.x has a new method saveMessages(HttpSession
session, ActionMessages messages) that allows the ActionMessages to be
stored in the session instead of the request. This is very helpful for
displaying messages after a redirect. However, it doesn't seem like
html:messages will display messages in the session (after my cursory
test). The javadoc does mention that the messages are stored for use in
html:messages.

So all I'm doing right now is getting the message from the session in my
action and then putting them in the request for subsequent display and
then removing them for the session. I was hoping for cleaner
integrattion. Are the tags supposed to display ActionMessages in the
session (preferably removing them afterwards)? Alternatively, what
approach should I take here?

Thanks.

Wes


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



RE: Tiles and Forms

2004-11-30 Thread Graeme Miller
Simple question with no helpful responses so far.

I must therefore conclude either 
a)Noone uses tiles because they are broken
b)Noone understands tiles
c)The way I am proposing to use tiles is so dramatically wrong at a
design level that noone has a clue what I am asking.

Just as a quick summary if I have a html:form tag that wraps two tiles
and put a html control in one of the tiles that requires a html:form tag
(such as html:checkbox, html:text etc) I get an error saying that could
not find the form (see message below).  How do I make it so that the
html:form tag is scoped across both tiles as I want to be able to put
controls in one tile and buttons to submit in another?

Please don't make post a bug on the Struts bugzilla just to get an
answer.  Without some "words from the wise" I don't see how its behaving
in a correct manner.

Thanks,

Graeme.

-Original Message-
From: Graeme Miller [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 30 November 2004 3:16 p.m.
To: [EMAIL PROTECTED]
Subject: Tiles and Forms


What is the correct pattern for placing a struts html:form tag in a
layout where 
- the controls may be in a different location (and hence different
tiles) from the buttons that submit the form
- where you want the action the form submits to to be customisable by
whatever jsp uses this form?

If anyone could give a simple example of using this pattern I would
appreciate it.

For example here's a simplification of what I am currently trying

Simple Layout

<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean";
prefix="bean"%>

  

  
  

  



  


Simple Use of the above layout (using the body wrap pattern for ease of
readability)

<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>

  
  
  
  Save


Unfortunately while the form action gets correctly rendered with the
right action passed from the jsp that uses the layout, the checkbox
rendering fails with the message "Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope".  As far as I
understand this means the html form tag is not being put in scope for
the checkbox to find. 

Any wise words appreciated.

Graeme 

-
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: Want to reject all-whitespace text input.

2004-11-30 Thread Joe Germuska
At 3:40 PM -0500 11/30/04, Dahnke, Eric (Company IT) wrote:

I think you missed some other discussion on this -- Frank wants a 
completely blank value to be accepted, but not a value which consists 
only of one-or-more whitespace characters.

This is impossible in the current system, as the mask validator only 
executes if the value it is testing against is non-empty.  That seems 
like a bug to me, but it's how it works.

Joe

Cheers, Eric

 -Original Message-
 From: Frank Burns [mailto:[EMAIL PROTECTED]
 Sent: Sunday, November 21, 2004 8:23 AM
 To: Struts Users Mailing List
 Subject: Want to reject all-whitespace text input.
 Hi,
 I am trying to write a regular expression for a mask, for use in the
 validation.xml file, that will reject input text that consists of all
 whitespace characters. But, no matter what pattern I try, an
 all-whitespace
 entry is always accepted.
 Is there some strange rule, as part of the Validator's
 validation process,
 that always accepts whitespace? Or is there something else going on?
 Do I have to resort to accepting the all-whitespace input,
 detecting it in
 the ActionForm's validate method and manually setting a message in
 ActionErrors?
 Thanks,
 Frank.
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


NOTICE: If received in error, please destroy and notify sender. 
Sender does not waive confidentiality or privilege, and use is 
prohibited.

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

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

RE: Want to reject all-whitespace text input.

2004-11-30 Thread Dahnke, Eric (Company IT)



Cheers, Eric


> -Original Message-
> From: Frank Burns [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, November 21, 2004 8:23 AM
> To: Struts Users Mailing List
> Subject: Want to reject all-whitespace text input.
> 
> 
> Hi,
> 
> I am trying to write a regular expression for a mask, for use in the 
> validation.xml file, that will reject input text that consists of all 
> whitespace characters. But, no matter what pattern I try, an 
> all-whitespace 
> entry is always accepted.
> 
> Is there some strange rule, as part of the Validator's 
> validation process, 
> that always accepts whitespace? Or is there something else going on?
> 
> Do I have to resort to accepting the all-whitespace input, 
> detecting it in 
> the ActionForm's validate method and manually setting a message in 
> ActionErrors?
> 
> Thanks,
> 
> Frank. 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited. 
 

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



RE: request between actions

2004-11-30 Thread Ram Venkataswamy
Set to "true" if a redirect instruction should be issued to the user-agent so 
that a new request is issued for this forward's resource. If true, 
RequestDispatcher.Redirect is called. If "false", RequestDispatcher.forward is 
called instead. [false]. 

 

The culprit is redirect=true - check the definition above 

 

 

-Original Message-
From: Morales de Frías, David [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 30, 2004 12:17 PM
To: [EMAIL PROTECTED]
Subject: request between actions

 

Hi all¡¡

 

I need your help, please.

 

I have an action that forwards to another action, and i'm loosing request 
parameters.

 

I have in struts-config this lines:

 



 

but it doesn't work.

 

Can you help me?



Re: request between actions

2004-11-30 Thread Lee Harrington
redirect="false"

:)

Lee


On Tue, 30 Nov 2004 21:17:08 +0100, moralesdefrías  wrote:
> Hi all¡¡
> 
> I need your help, please.
> 
> I have an action that forwards to another action, and i'm loosing request 
> parameters.
> 
> I have in struts-config this lines:
> 
> 
> 
> but it doesn't work.
> 
> Can you help me?
> 
>

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



request between actions

2004-11-30 Thread Morales de Frías, David
Hi all¡¡

I need your help, please.

I have an action that forwards to another action, and i'm loosing request 
parameters.

I have in struts-config this lines:



but it doesn't work.

Can you help me?


Newbie question regarding

2004-11-30 Thread admin
Hello folks.

I have a Bean called users with two properties (Id and Name)





When a choose a name in this selection i need to know the ID of the 
selected user. How can i do that?

Thanks for any help.

Marcio Lima



RE: Validator question

2004-11-30 Thread Ram Venkataswamy
Or if you want custom msg for required validator then name attribute of
msg element should match that specified for depends attribute
 
 
-Original Message-
From: Ram Venkataswamy 
Sent: Tuesday, November 30, 2004 9:57 AM
To: Struts Users Mailing List
Subject: RE: Validator question

Check "required" validator in your validator-rules file - the message
takes one argument {0} is required - whereas in validation file you are
passing two values for 1 argument





try removing  - it should work 


 
-Original Message-
From: Vinicius Caldeira Carvalho
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 30, 2004 5:44 AM
To: Struts Users Mailing List
Subject: Validator question

Hi there! I'm trying to make my validator projetct work on oc4j (oracle 
10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the 
application runs it complains about some attributes being used but not 
declared: " XML-0149: (Error) Element 'arg0' used but not declared."
well this doesn't seem to be affecting the application though.

But when I submit a form that uses validation nothin happens, I'm 
submitted to a null page with this error on the stack:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Objec
t, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Objec
t, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(Valida
torAction.java:627)
at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(Val
idatorAction.java:557)
at
org.apache.commons.validator.Field.validateForRule(Field.java:811)
at org.apache.commons.validator.Field.validate(Field.java:890)
at org.apache.commons.validator.Form.validate(Form.java:174)
at
org.apache.commons.validator.Validator.validate(Validator.java:367)
at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:11
2)
at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcess
or.java:921)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
206)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestD
ispatcher.java:765)
at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Servle
tRequestDispatcher.java:317)
at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHa
ndler.java:790)
at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
270)
at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
112)
at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Releasab
leResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)

No matter if I entered a value or not on the field:

here's my validation.xml













Any ideas?

-
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: Validator question

2004-11-30 Thread Ram Venkataswamy
Check "required" validator in your validator-rules file - the message
takes one argument {0} is required - whereas in validation file you are
passing two values for 1 argument





try removing  - it should work 


 
-Original Message-
From: Vinicius Caldeira Carvalho
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 30, 2004 5:44 AM
To: Struts Users Mailing List
Subject: Validator question

Hi there! I'm trying to make my validator projetct work on oc4j (oracle 
10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the 
application runs it complains about some attributes being used but not 
declared: " XML-0149: (Error) Element 'arg0' used but not declared."
well this doesn't seem to be affecting the application though.

But when I submit a form that uses validation nothin happens, I'm 
submitted to a null page with this error on the stack:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Objec
t, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Objec
t, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(Valida
torAction.java:627)
at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(Val
idatorAction.java:557)
at
org.apache.commons.validator.Field.validateForRule(Field.java:811)
at org.apache.commons.validator.Field.validate(Field.java:890)
at org.apache.commons.validator.Form.validate(Form.java:174)
at
org.apache.commons.validator.Validator.validate(Validator.java:367)
at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:11
2)
at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcess
or.java:921)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
206)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestD
ispatcher.java:765)
at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Servle
tRequestDispatcher.java:317)
at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHa
ndler.java:790)
at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
270)
at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
112)
at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Releasab
leResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)

No matter if I entered a value or not on the field:

here's my validation.xml













Any ideas?

-
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: Validator question

2004-11-30 Thread Vinicius Caldeira Carvalho
Duncan Mills wrote:
It might be worth enabling logging on the digester classes to see 
what's happening on the XML.
I run validator using apps  with Struts 1.1 in OC4J with no problem so 
there's not a fundamental issue here.  Are you using OC4J inside 
JDeveloper or deploying to it from an external IDE? / Manually

Regards
Duncan Mills

Vinicius Caldeira Carvalho wrote:
Bill Siggelkow wrote:
Make sure you are using the latest release of Struts 
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator 
that caused this problem.

-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I'm trying to make my validator projetct work on oc4j 
(oracle 10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the 
application runs it complains about some attributes being used but 
not declared: " XML-0149: (Error) Element 'arg0' used but not 
declared."
well this doesn't seem to be affecting the application though.

But when I submit a form that uses validation nothin happens, I'm 
submitted to a null page with this error on the stack:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
   at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627) 

   at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557) 

   at 
org.apache.commons.validator.Field.validateForRule(Field.java:811)
   at org.apache.commons.validator.Field.validate(Field.java:890)
   at org.apache.commons.validator.Form.validate(Form.java:174)
   at 
org.apache.commons.validator.Validator.validate(Validator.java:367)
   at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112) 

   at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921) 

   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206) 

   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) 

   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) 

   at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) 

   at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) 

   at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) 

   at java.lang.Thread.run(Thread.java:534)
No matter if I entered a value or not on the field:
here's my validation.xml


   
   
   
   
   
   
   


Any ideas?


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

well, problem is... I'm using struts 1.1 is this inconsitence present 
in this release as well?

-
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]

Hi there Duncan, I'm using the second option. We use eclipse + ant to 
deploy our app. I'll try to log the errors to see what's going wrong.

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


RE: Searching pattern/best-practise for forms

2004-11-30 Thread Hollaway, Shedrick L CIV TRIREFFAC
And if you really like DispatchAction go a step further an try
LookupDispatchAction.

Shed.

-Original Message-
From: McDonnell, Colm (MLIM) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 3:41
To: Struts Users Mailing List
Subject: RE: Searching pattern/best-practise for forms



> I've tried some ways to do this and ended up with three actions for
one 
> form: one for setting it up, one for displaying and validating it and 
> one for the selected backend action. I just wonder if that is a good
way 
> or if I'm introducing some problems into my applications.

The Struts DispatchAction is a neat way of combining multiple operations
on a single entity into one Action class. See
http://husted.com/struts/tips/002.html for more details on this
approach.


-Original Message-
From: Alexander Czernay [mailto:[EMAIL PROTECTED] 
Sent: 30 November 2004 08:31
To: Struts Users Mailing List
Subject: Re: Searching pattern/best-practise for forms


Hollaway, Shedrick L CIV TRIREFFAC wrote:
> Alexander,
> This should help you understand applying DAO/DTO patterns in a Struts
> app: http://javaboutique.internet.com/tutorials/ApacheDAOs/
> 
> Shed.
> 

Thanks for all your replys and suggestions, but I'm afraid I didn't ask 
the right question. What I really wanted to know was, how you would 
organize the controller/view in Struts for handling those standard 
create/update/delete actions. Like you have a database containing an 
address-book in the backend and want to display it as a list to the 
user, so he can select entries for editing/deletion or create new ones. 
When creating/editing entries you would present those as a form, 
validate it and write it back to the backend.

I've tried some ways to do this and ended up with three actions for one 
form: one for setting it up, one for displaying and validating it and 
one for the selected backend action. I just wonder if that is a good way

or if I'm introducing some problems into my applications.

Alexander


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

 
If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy,
retain or redistribute it. Click here for important additional terms
relating to this e-mail. http://www.ml.com/email_terms/ 

 

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



smime.p7s
Description: S/MIME cryptographic signature


RE: Tiles and Forms

2004-11-30 Thread Hollaway, Shedrick L CIV TRIREFFAC
Graeme, 

What is the attributes of your form (formAction)? Do you have a
getter/setter for "delete"? I believe that this what '' is looking for. 

Shed. 
-Original Message-
From: Graeme Miller [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 21:16
To: [EMAIL PROTECTED]
Subject: Tiles and Forms


What is the correct pattern for placing a struts html:form tag in a
layout where 
- the controls may be in a different location (and hence different
tiles) from the buttons that submit the form
- where you want the action the form submits to to be customisable by
whatever jsp uses this form?

If anyone could give a simple example of using this pattern I would
appreciate it.

For example here's a simplification of what I am currently trying

Simple Layout

<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean";
prefix="bean"%>

  

  
  

  



  


Simple Use of the above layout (using the body wrap pattern for ease of
readability)

<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
prefix="html"%>

  
  
  
  Save


Unfortunately while the form action gets correctly rendered with the
right action passed from the jsp that uses the layout, the checkbox
rendering fails with the message "Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope".  As far as I
understand this means the html form tag is not being put in scope for
the checkbox to find. 

Any wise words appreciated.

Graeme 

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



smime.p7s
Description: S/MIME cryptographic signature


Re: Validator question

2004-11-30 Thread Duncan Mills
It might be worth enabling logging on the digester classes to see what's 
happening on the XML.
I run validator using apps  with Struts 1.1 in OC4J with no problem so 
there's not a fundamental issue here.  Are you using OC4J inside 
JDeveloper or deploying to it from an external IDE? / Manually

Regards
Duncan Mills

Vinicius Caldeira Carvalho wrote:
Bill Siggelkow wrote:
Make sure you are using the latest release of Struts 
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator 
that caused this problem.

-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I'm trying to make my validator projetct work on oc4j 
(oracle 10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the 
application runs it complains about some attributes being used but 
not declared: " XML-0149: (Error) Element 'arg0' used but not 
declared."
well this doesn't seem to be affecting the application though.

But when I submit a form that uses validation nothin happens, I'm 
submitted to a null page with this error on the stack:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
   at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627) 

   at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557) 

   at 
org.apache.commons.validator.Field.validateForRule(Field.java:811)
   at org.apache.commons.validator.Field.validate(Field.java:890)
   at org.apache.commons.validator.Form.validate(Form.java:174)
   at 
org.apache.commons.validator.Validator.validate(Validator.java:367)
   at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112) 

   at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921) 

   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206) 

   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) 

   at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) 

   at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) 

   at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) 

   at java.lang.Thread.run(Thread.java:534)
No matter if I entered a value or not on the field:
here's my validation.xml


   
   
   
   
   
   
   


Any ideas?


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

well, problem is... I'm using struts 1.1 is this inconsitence present 
in this release as well?

-
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: UTF-8 encoding in html form

2004-11-30 Thread Joe Germuska
 > Also note that Struts' multipart processing currently is rather clumsy
 > in handling form encoding.  If the request object returns null from
 > "getCharacterEncoding()", then Struts assumes ISO-8859-1.  I was
Isn't it Tomcat itself? This is a behaviour per servlets
specifications (see page 41 of 2.4 specs).
There's a specific chunk of code in CommonsMultipartRequestHandler 
which has "ISO-8859-1" hard-coded as the fallback encoding if 
request.getCharacterEncoding() returns null.  I brought this up on 
one of the struts lists when I encountered it a few months ago, but 
didn't feel satisfied of a correct way to expose the value as a 
configuration parameter.  My concern was making it clear that setting 
it would only impact the request handler, because any configuration 
name I could think of might lead people to believe that Struts was 
also taking responsibility for calling 
request.setCharacterEncoding(...).

In the last couple of days, we've been talking a bit about possible 
changes to Struts configuration, and I think Martin has some pretty 
big plans for file upload handling in Struts 1.3, and this hasn't 
been a big issue for many people, so we'll probably let it float a 
while longer still.


 > setting the request encoding with a custom command in a chain-request
 processor, but the request was still returning a null value in
 > CommonsMultipartRequestHandler where the non-uploaded fields were
 being processed.  Of course, this may have nothing to do with your
 situation.
As far as I know, this is a behaviour per specifications. Page 41
and 198 of servlets 2.4 specs: changing the character encoding
must be done prior to reading request parameters or reading
input. Odds are high there is something which reads input before
you set the request encoding.
yes, you're probably right.  Next time I turn to the issue, I'll use 
a servlet filter.
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

Re: struts 1.2.2 to 1.2.4 upgrade conflict log4j

2004-11-30 Thread Ian van der Neut
On Tue, 30 Nov 2004 08:37:23 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
>  
> The Category class in log4j has been deprecated for a long time, and I
> recall some recent discussions on the commons-dev list about bringing
> commons-logging "up-to-date" with that.  I don't remember the details, but
> basically you just need to have compatible versions of commons-logging and
> log4j.  The project site for commons-logging or the commons-dev or
> commons-user mailing list archives may have more details. 

My log4j and commons-logging versions are apparently compatible, so it
was not that, however, you put me on the right track to fixing it. I
had in commons-logging.properties the string:

org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategoryLog

Changing that to:

org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

Solved the problem, thank you. :)

Ian.

>  
> At 11:35 AM +0100 11/30/04, Ian van der Neut wrote: 
> 
> 
> Hello all,
>  
>  I downloaded struts 1.2.4 yesterday to replace the 1.2.2 version that
>  I am developping against. However, testing my application with the new
>  jars (I copied all of the jars in the 1.2.4 tarball to the WEB-INF/lib
>  directory of my webapp) generates an exception:
>  
>  [snipped]
>  
>  root cause
>  
>  javax.servlet.ServletException:
> org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
>at org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
>at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
>at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>  
>  [snipped]
>  
>  Is there something special I must do to make this work? I have log4j
>  version 1.2.8 installed. The problem goes away if I replace the
>  commons-logging jar with the one from the struts 1.2.2 distribution.
>  
>  Thanks for any input,
>  
>  Ian.
>  
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED] 
> 
>  
> 
>  
> -- 
> Joe Germuska
>  [EMAIL PROTECTED]  
>  http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex

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



Re: Validator question

2004-11-30 Thread Vinicius Caldeira Carvalho
Bill Siggelkow wrote:
Make sure you are using the latest release of Struts 
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator 
that caused this problem.

-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I'm trying to make my validator projetct work on oc4j 
(oracle 10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the 
application runs it complains about some attributes being used but 
not declared: " XML-0149: (Error) Element 'arg0' used but not declared."
well this doesn't seem to be affecting the application though.

But when I submit a form that uses validation nothin happens, I'm 
submitted to a null page with this error on the stack:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
   at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627) 

   at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557) 

   at org.apache.commons.validator.Field.validateForRule(Field.java:811)
   at org.apache.commons.validator.Field.validate(Field.java:890)
   at org.apache.commons.validator.Form.validate(Form.java:174)
   at 
org.apache.commons.validator.Validator.validate(Validator.java:367)
   at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112) 

   at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921) 

   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206) 

   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) 

   at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) 

   at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) 

   at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) 

   at java.lang.Thread.run(Thread.java:534)
No matter if I entered a value or not on the field:
here's my validation.xml


   
   
   
   
   
   
   


Any ideas?

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

well, problem is... I'm using struts 1.1 is this inconsitence present in 
this release as well?

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


Re: UTF-8 encoding in html form

2004-11-30 Thread Guillaume Cottenceau
Joe Germuska  writes:

[...]

> >As far as I know, the most reliable way is to specify
> >"accept-charset" as UTF-8 in the  of the HTML (w3.org's
> >description of this parameter: "This attribute specifies the list
> >of character encodings for input data that is accepted by the
> >server processing this form"). Theoretically, this forces the
> >browser to send the data in UTF-8. As far as I know, tests showed
> >that this should work correctly with current browsers. The
> >problem is that this parameter is not available in 
> >from struts, the reason of it I have no clue about.
> 
> This property was added in Struts 1.2.2, as noted on
> http://struts.apache.org/userGuide/struts-html.html#form

Ah, interesting. I was talking about version 1.1 from which I
haven't upgraded yet, my bad.
 
> In my experience, this is not as well supported by browsers as one
> would wish.  My experience is that the most effective way to coax a
> browser to use a specific encoding when returning data is to send the
> page in the encoding which you want the browser to use when returning
> data.  It looks like that's what's being done -- but be careful not to
> count on a JSP "page" directive in a tile, since only the "outermost"
> tile (the first one which writes to the response stream) has the
> chance to set the page encoding.

Fine. Then the most effective way would be to do both, probably :)

> Also note that Struts' multipart processing currently is rather clumsy
> in handling form encoding.  If the request object returns null from
> "getCharacterEncoding()", then Struts assumes ISO-8859-1.  I was

Isn't it Tomcat itself? This is a behaviour per servlets
specifications (see page 41 of 2.4 specs).

> setting the request encoding with a custom command in a chain-request
> processor, but the request was still returning a null value in
> CommonsMultipartRequestHandler where the non-uploaded fields were
> being processed.  Of course, this may have nothing to do with your
> situation.

As far as I know, this is a behaviour per specifications. Page 41
and 198 of servlets 2.4 specs: changing the character encoding
must be done prior to reading request parameters or reading
input. Odds are high there is something which reads input before
you set the request encoding.

> In the case where I have a non-multipart form, I have consistently
> gotten suitable results simply by making sure that the form page is
> delivered to the browser with the character encoding I want to use.

Good to know!

-- 
Guillaume Cottenceau

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



Re: UTF-8 encoding in html form

2004-11-30 Thread Joe Germuska
At 12:23 PM +0100 11/30/04, Guillaume Cottenceau wrote:
"Otto, Frank"  writes:
 Hi,
 I have a html form. The user can input text in ISO-8859-2 format.
 After submit the form the characters are wrong.  I don't know why.
 I have set
 <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 and there is a filter (filters.SetCharacterEncodingFilter) to encode UTF-8.
 How can I convert the polish character, which the user has inputed?
The problem is, in which encoding the browser is sending the
data, and is it telling so (e.g. does the server has a way to
know the encoding of the data it's receiving).
Theoretically, when sending HTTP POST, browsers should put the
charset= parameter in Content-Type and everything should be fine
if the receiving server decodes that correctly. But, as far as I
know, once, Mozilla tried to put the charset in Content-Type:
field when replying with HTTP POST but had to remove this because
it broke too many existing servers with bad configurations.
However, I can't find the bug in their bugzilla again.
The problem is worse with HTTP GET where there is really nothing
to tell the encoding of the parameters passed.
As far as I know, the most reliable way is to specify
"accept-charset" as UTF-8 in the  of the HTML (w3.org's
description of this parameter: "This attribute specifies the list
of character encodings for input data that is accepted by the
server processing this form"). Theoretically, this forces the
browser to send the data in UTF-8. As far as I know, tests showed
that this should work correctly with current browsers. The
problem is that this parameter is not available in 
from struts, the reason of it I have no clue about.
This property was added in Struts 1.2.2, as noted on 
http://struts.apache.org/userGuide/struts-html.html#form

In my experience, this is not as well supported by browsers as one 
would wish.  My experience is that the most effective way to coax a 
browser to use a specific encoding when returning data is to send the 
page in the encoding which you want the browser to use when returning 
data.  It looks like that's what's being done -- but be careful not 
to count on a JSP "page" directive in a tile, since only the 
"outermost" tile (the first one which writes to the response stream) 
has the chance to set the page encoding.

Also note that Struts' multipart processing currently is rather 
clumsy in handling form encoding.  If the request object returns null 
from "getCharacterEncoding()", then Struts assumes ISO-8859-1.  I was 
setting the request encoding with a custom command in a chain-request 
processor, but the request was still returning a null value in 
CommonsMultipartRequestHandler where the non-uploaded fields were 
being processed.  Of course, this may have nothing to do with your 
situation.

In the case where I have a non-multipart form, I have consistently 
gotten suitable results simply by making sure that the form page is 
delivered to the browser with the character encoding I want to use.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

Re: struts 1.2.2 to 1.2.4 upgrade conflict log4j

2004-11-30 Thread Joe Germuska
The Category class in log4j has been deprecated for a long time, and 
I recall some recent discussions on the commons-dev list about 
bringing commons-logging "up-to-date" with that.  I don't remember 
the details, but basically you just need to have compatible versions 
of commons-logging and log4j.  The project site for commons-logging 
or the commons-dev or commons-user mailing list archives may have 
more details.

Joe
At 11:35 AM +0100 11/30/04, Ian van der Neut wrote:
Hello all,
I downloaded struts 1.2.4 yesterday to replace the 1.2.2 version that
I am developping against. However, testing my application with the new
jars (I copied all of the jars in the 1.2.4 tarball to the WEB-INF/lib
directory of my webapp) generates an exception:
[snipped]
root cause
javax.servlet.ServletException:
org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V
	at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
	at org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
	at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

[snipped]
Is there something special I must do to make this work? I have log4j
version 1.2.8 installed. The problem goes away if I replace the
commons-logging jar with the one from the struts 1.2.2 distribution.
Thanks for any input,
Ian.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

Re: Automatic logging

2004-11-30 Thread bryan
Incidentally I use a HUGE amount of AOP stuff and logging is the only
thing I am not using with it.

I use AOP for the following 

Declarative security management ( down to filtering returned
Collections by an ACL )

Declarative transaction management ( so that I don't have any
transaction management garbage in my code )

Automatically managing hibernate sessions.

In fact anywhere that you find yourself writing more boilerplate than
business code or repeating the same code again and again and again ...
you might find AOP saves you a lot of time and energy.

--b



On Mon, 29 Nov 2004 17:34:29 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> >>Would there be a simpler way of enabling automatic logging across
> >>entire application so that I do not have to modify all of my classes
> >>and JSP pages?
> 
> Sounds like the textbook use case for aspect oriented programming.
> Logging is about the only thing they all talk about!
> 
> But realistically, I'm with Eddie -- what logging can you really
> apply consistently and automatically in a way that is more useful
> than noisy?  If you have a bunch of fairly repetitive stuff spit out,
> then finding the real information is fairly tedious.
> 
> On the other hand, I don't find it all that burdensome to establish a
> static log instance for each class and toss around a few
> log.debug(...) lines, especially when I'm working on figuring out
> someone elses ill-documented code!
> 
> Unfortunately, I don't know a whole lot about AOP, but there has been
> plenty written about it in the last couple of years if you decide to
> look further.
> 
> Joe
> 
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 


-- 
http://www.revoltingdigits.com
https://jestate.dev.java.net

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



Re: Validator question

2004-11-30 Thread Bill Siggelkow
Make sure you are using the latest release of Struts 
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator 
that caused this problem.

-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I'm trying to make my validator projetct work on oc4j (oracle 
10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the 
application runs it complains about some attributes being used but not 
declared: " XML-0149: (Error) Element 'arg0' used but not declared."
well this doesn't seem to be affecting the application though.

But when I submit a form that uses validation nothin happens, I'm 
submitted to a null page with this error on the stack:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
   at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627) 

   at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557) 

   at org.apache.commons.validator.Field.validateForRule(Field.java:811)
   at org.apache.commons.validator.Field.validate(Field.java:890)
   at org.apache.commons.validator.Form.validate(Form.java:174)
   at org.apache.commons.validator.Validator.validate(Validator.java:367)
   at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
   at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921) 

   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206) 

   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) 

   at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) 

   at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) 

   at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) 

   at java.lang.Thread.run(Thread.java:534)
No matter if I entered a value or not on the field:
here's my validation.xml


   
   
   
   
   
   
   


Any ideas?

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


Re: Automatic logging

2004-11-30 Thread bryan
to summarise ... use spring or use log4j with eclipse plugin.

--b


On Mon, 29 Nov 2004 17:34:29 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> >>Would there be a simpler way of enabling automatic logging across
> >>entire application so that I do not have to modify all of my classes
> >>and JSP pages?
> 
> Sounds like the textbook use case for aspect oriented programming.
> Logging is about the only thing they all talk about!
> 
> But realistically, I'm with Eddie -- what logging can you really
> apply consistently and automatically in a way that is more useful
> than noisy?  If you have a bunch of fairly repetitive stuff spit out,
> then finding the real information is fairly tedious.
> 
> On the other hand, I don't find it all that burdensome to establish a
> static log instance for each class and toss around a few
> log.debug(...) lines, especially when I'm working on figuring out
> someone elses ill-documented code!
> 
> Unfortunately, I don't know a whole lot about AOP, but there has been
> plenty written about it in the last couple of years if you decide to
> look further.
> 
> Joe
> 
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 


-- 
http://www.revoltingdigits.com
https://jestate.dev.java.net

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



Re: Automatic logging

2004-11-30 Thread Joe Germuska
Would there be a simpler way of enabling automatic logging across
entire application so that I do not have to modify all of my classes
and JSP pages?
Sounds like the textbook use case for aspect oriented programming. 
Logging is about the only thing they all talk about!

But realistically, I'm with Eddie -- what logging can you really 
apply consistently and automatically in a way that is more useful 
than noisy?  If you have a bunch of fairly repetitive stuff spit out, 
then finding the real information is fairly tedious.

On the other hand, I don't find it all that burdensome to establish a 
static log instance for each class and toss around a few 
log.debug(...) lines, especially when I'm working on figuring out 
someone elses ill-documented code!

Unfortunately, I don't know a whole lot about AOP, but there has been 
plenty written about it in the last couple of years if you decide to 
look further.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

Validator question

2004-11-30 Thread Vinicius Caldeira Carvalho
Hi there! I'm trying to make my validator projetct work on oc4j (oracle 
10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the 
application runs it complains about some attributes being used but not 
declared: " XML-0149: (Error) Element 'arg0' used but not declared."
well this doesn't seem to be affecting the application though.

But when I submit a form that uses validation nothin happens, I'm 
submitted to a null page with this error on the stack:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
   at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627)
   at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
   at org.apache.commons.validator.Field.validateForRule(Field.java:811)
   at org.apache.commons.validator.Field.validate(Field.java:890)
   at org.apache.commons.validator.Form.validate(Form.java:174)
   at org.apache.commons.validator.Validator.validate(Validator.java:367)
   at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
   at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
   at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
   at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
   at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
   at java.lang.Thread.run(Thread.java:534)

No matter if I entered a value or not on the field:
here's my validation.xml


   
   
   
   
   
   
   


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


Re: Every time Refreshing the Screens

2004-11-30 Thread James Mitchell
Was your question answered?

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Srinivas" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Sunday, November 28, 2004 10:55 PM
Subject: Every time Refreshing the Screens


Hi Guys,
I am using the Struts frame work in my application and now working 
perfectly. There is now problem in my application.

But the problem is if we can access the application from the Static IP 
Address it's working perfectly, but the problem is, if we can access the 
application through the Proxy it's displaying the previous screen after 
refreshing the screen it's display the original values on the screen.

That's why we refresh the screens(jsp's) every time before the displaying 
the data...

Is there any solution to avoid the refresh work every time..
Please give me the solutions to solve the problem..
Thanks a lot.
Srinivas
-
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today! 

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


RE: Subclassing RequestProcessor

2004-11-30 Thread McDonnell, Colm (MLIM)
The answer is in the error message  

> The content of element type "struts-config" must match 
> "(display-name?,description?,data-sources?,form-beans?,
> global-exceptions?,global-forwards?,action-mappings?,controller?,
> message-resources*,plug-in*)".

The order of the struts-config elements is important so put the
controller entry after action-mappings and before message-resources e.g.


  






Oh, and remove the trailing ";" from the controller element.

-Original Message-
From: Brij Naald [mailto:[EMAIL PROTECTED] 
Sent: 30 November 2004 12:55
To: [EMAIL PROTECTED]
Subject: Subclassing RequestProcessor


Hi,
I'm trying to work with a subclass of requestprocessor. Therefore I add
 in the 
struts-config.xml.
How simple this looks, it doesn't work.
When I add this line to the struts-blank config-file, the end of the
file 
looks like this:


  

  
  ;




But when I start tomcat, it gives an exception (see ERROR 1). Note that
line 
203 column 17 isn't the controller-tag, but the   tag.
When I try to put it in another application I also get ERROR2.

What am i doing wrong?

thanks!





**
* ERROR 1 *
**
SEVERE: Parse Error at line 203 column 17: The content of element type 
"struts-config" must match "(display-name?,descri
ption?,data-sources?,form-beans?,global-exceptions?,global-forwards?,act
ion-mappings?,controller?,message-resources*,plu
g-in*)".
org.xml.sax.SAXParseException: The content of element type
"struts-config" 
must match "(display-name?,description?,data-
sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings
?,controller?,message-resources*,plug-in*)".
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPar
seException(ErrorHandlerWrapper.java:
236)
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorH
andlerWrapper.java:172)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XML
ErrorReporter.java:382)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XML
ErrorReporter.java:316)
at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndEle
ment(XMLDTDValidator.java:2048)
at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(X
MLDTDValidator.java:932)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEnd
Element(XMLNSDocumentScannerImpl.java
:713)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
ragmentContentDispatcher.dispatch(XML
DocumentFragmentScannerImpl.java:1685)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canDocument(XMLDocumentFragmentScanne
rImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:834)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:764)
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.jav
a:148)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstr
actSAXParser.java:1242)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:708)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:670)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1053)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3817)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4079
)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:755)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:777)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:672)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
0)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.jav

Re: Subclassing RequestProcessor

2004-11-30 Thread Duncan Mills
The  element should appear above the   (& 
) elements in the config XML

Regards
Duncan Mills

Brij Naald wrote:
Hi,
I'm trying to work with a subclass of requestprocessor. Therefore I add
 in the 
struts-config.xml.
How simple this looks, it doesn't work.
When I add this line to the struts-blank config-file, the end of the 
file looks like this:


 
   
 
 ;

But when I start tomcat, it gives an exception (see ERROR 1). Note 
that line 203 column 17 isn't the controller-tag, but the  
 tag.
When I try to put it in another application I also get ERROR2.

What am i doing wrong?
thanks!


**
* ERROR 1 *
**
SEVERE: Parse Error at line 203 column 17: The content of element type 
"struts-config" must match "(display-name?,descri
ption?,data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plu 

g-in*)".
org.xml.sax.SAXParseException: The content of element type 
"struts-config" must match "(display-name?,description?,data-
sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)". 

   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java: 

236)
   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172) 

   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382) 

   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) 

   at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2048) 

   at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:932) 

   at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java 

:713)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XML 

DocumentFragmentScannerImpl.java:1685)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne 

rImpl.java:368)
   at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) 

   at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) 

   at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) 

   at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) 

   at org.apache.commons.digester.Digester.parse(Digester.java:1548)
   at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:708) 

   at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670) 

   at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053) 

   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3817) 

   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755) 

   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:777)
   at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:672)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) 

   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 

   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

Re: Struts training

2004-11-30 Thread Vic
I teach it for $ on client site and you can google for 12 more places. 
Email offline if you need more.
.V

> Hi,
> Could somebody recommend a good, advanced Struts
> classroom training course in the US,that covers
topics
> like Tiles/JSTL, JSF et al?
>
> Thanks,
> Shyam
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
protection around
> http://mail.yahoo.com
>
>
-
> 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]



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
-
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: Struts training

2004-11-30 Thread James Mitchell
Sounds like there are only a few interested parties.
Doing something like this would be a major investment of my time and money. 
Since I do not have the infrastructure or materials in place, I probably 
won't embark on that journey.

There are many great resources out there for doing your own self study and 
training.  I tech edited two of the latest Struts books that are out there 
(or soon to be out there) and they both have excellent coverage.  Both serve 
a slightly different audience and are by different publishers, but I'm sure 
you will enjoy either one.or BOTH!!

Struts: The Complete Reference
http://isbn.nu/0072231319
Jakarta Struts Cookbook
http://isbn.nu/059600771X
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Shyam Anand" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, November 28, 2004 2:10 PM
Subject: Re: Struts training


James,
Thanks for the info...Look forward to your training
course.
Shyam
--- James Mitchell <[EMAIL PROTECTED]> wrote:
Was your question ever answered?
There was talk about this among the Struts-Atlanta
(Struts users group)
members and I have considered putting something like
this together, but like
everything else, it has taken a back seat to other
plans.
If there is enough "real" interest in this, I will
bump it up on my priority
list.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Shyam Anand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 23, 2004 12:17 PM
Subject: Struts training

> Hi,
> Could somebody recommend a good, advanced Struts
> classroom training course in the US,that covers
topics
> like Tiles/JSTL, JSF et al?
>
> Thanks,
> Shyam
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
protection around
> http://mail.yahoo.com
>
>
-
> 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]



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
-
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]


Subclassing RequestProcessor

2004-11-30 Thread Brij Naald
Hi,
I'm trying to work with a subclass of requestprocessor. Therefore I add
 in the 
struts-config.xml.
How simple this looks, it doesn't work.
When I add this line to the struts-blank config-file, the end of the file 
looks like this:


 
   
 
 ;

But when I start tomcat, it gives an exception (see ERROR 1). Note that line 
203 column 17 isn't the controller-tag, but the   tag.
When I try to put it in another application I also get ERROR2.

What am i doing wrong?
thanks!


**
* ERROR 1 *
**
SEVERE: Parse Error at line 203 column 17: The content of element type 
"struts-config" must match "(display-name?,descri
ption?,data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plu
g-in*)".
org.xml.sax.SAXParseException: The content of element type "struts-config" 
must match "(display-name?,description?,data-
sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:
236)
   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
   at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2048)
   at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:932)
   at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java
:713)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XML
DocumentFragmentScannerImpl.java:1685)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne
rImpl.java:368)
   at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
   at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
   at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
   at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
   at org.apache.commons.digester.Digester.parse(Digester.java:1548)
   at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:708)
   at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
   at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3817)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:777)
   at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:672)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
  

Re: data caching in web application

2004-11-30 Thread Mark Benussi
I was going to say something along those lines as well.
Create a class that represents a row in your table.
Create an associated class that has knowledge of how to persist the data to 
the table i.e. CRUD methods.
Populate the data's primary key (Or keys) and read it with a passed database 
connection.

i.e
TableRow tableRow = new TableRow(new TableRowPersister());
tableRow.setKey(1);
tableRow.read(conn);
Then you could do this via a Struts Plugin for all of the data you require 
to cache.

If you Make TableRow extend a class that handles cahcing i.e. reads simply 
return the last copy of the data but all the other methods effect the table 
then you have what I think you need. The O'reilly book on Java Database Best 
Practices talks about it.

I have a feeling that there is some framework that may do all that I have 
described. I would be interested to know if there is.


Original Message Follows
From: Vic <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: data caching in web application
Date: Tue, 30 Nov 2004 03:01:51 -0800
A more MVC approach is to do DATA chacing in the DATA layer.
It is recomended that you do datacaching via a DAO. (iBatis, Hibrenate, 
etc.)
.V


Jesse Alexander (KBSA 21) wrote:
concerning the actual access, that Javaworld article about sql in Java 
sounds a cool way to do it...

about the initializing:
- create a standard servlet that fetches the data and sets up a JavaBean
  (aka POJO) and stores that in the servlet-context
- define this servlet in the web.xml and add the "load-on-startup"   
parameter. Then the container will load it automatically for you
  and only afterwards your webapp will be enabled

hope this helps
Alexander
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Monday, 
November 29, 2004 9:54 PM
To: [EMAIL PROTECTED]
Subject: data caching in web application

Hi
I have a table in DB2 on AS400 which has about 1
records, i want to cache this data to improve my web
application performance, I dont want to cache it in session,
I was thinking of loading the data in array or some
class and load it in servlet context, what is the best way to do it?
is there some better way so i can querry this cached
data using keys as if using primary key in SQL
statment
Ashish

__ Do you Yahoo!? Meet the all-new My 
Yahoo! - Try it today! http://my.yahoo.com

-
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: UTF-8 encoding in html form

2004-11-30 Thread Guillaume Cottenceau
"Otto, Frank"  writes:

> Hi,
> 
> I have a html form. The user can input text in ISO-8859-2 format. 
> 
> After submit the form the characters are wrong.  I don't know why.
> 
> I have set 
> 
> <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
> 
> and there is a filter (filters.SetCharacterEncodingFilter) to encode UTF-8.
> 
> How can I convert the polish character, which the user has inputed?

The problem is, in which encoding the browser is sending the
data, and is it telling so (e.g. does the server has a way to
know the encoding of the data it's receiving).

Theoretically, when sending HTTP POST, browsers should put the
charset= parameter in Content-Type and everything should be fine
if the receiving server decodes that correctly. But, as far as I
know, once, Mozilla tried to put the charset in Content-Type:
field when replying with HTTP POST but had to remove this because
it broke too many existing servers with bad configurations.
However, I can't find the bug in their bugzilla again.

The problem is worse with HTTP GET where there is really nothing
to tell the encoding of the parameters passed.

As far as I know, the most reliable way is to specify
"accept-charset" as UTF-8 in the  of the HTML (w3.org's
description of this parameter: "This attribute specifies the list
of character encodings for input data that is accepted by the
server processing this form"). Theoretically, this forces the
browser to send the data in UTF-8. As far as I know, tests showed
that this should work correctly with current browsers. The
problem is that this parameter is not available in 
from struts, the reason of it I have no clue about.

Something you can try it to specify the encoding of the html page
in which you have your form as UTF-8, it seems that mozilla will
send GET/POST parameters in UTF-8 in such a case, but that's
really a hack and I don't know browser support about it.


And of course, on-the-fly detection of the charset is not
reliable at all :).

-- 
Guillaume Cottenceau

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



Re: Migrating to Struts

2004-11-30 Thread Leon Rosenberg
Hi,

we recently migrated an application, which i consider large (about 100K loc
java code)
from XSLT / XSP / EJB to
JSP / STRUTS / COD

To be true we have not reused a single line of java code. 
We reused much of XSLT code in jsps, because the outgoing html had to look
the same.
We reused some of the javascript, still, we could reduce the amount of
javascript by 50%, since we could move a lot of javascript functions into 
Jsps (things you can't do in xslt)

To give you a more direct answer: It's possible to reuse the code, but you
may take the chance and rewrite / refactor your existing code, since it will
make it better :-) (at least it should in theory).

We had to write a lot of tags missing in struts taglibs (equals with two
parameters for example, or argXName+argXProperty for message tags) and we
are still not really happy with tiles: a) because it's really freaking hard
to debug errors in inserted fragments and b) because it has no fragment
caching strategy (at least we found none). 

What we gained: We have a much clearer application now, we have a
performance increase of nearly 900%, we are able to serve 1.5 more users
with half of machines. 

The project took 6 month (3 iterations, 2 month each). 

If you have concrete questions, feel free to ask :-)

Regards
Leon

P.S. just for the records: there is no such thing as MVC-2. :-)



> All Struts Gurus:
> 
> We have a pretty large application which needs to migrate into Struts
> and possibly to Tiles for the UI. The existing application is quite
> similar to MVC-2 model. We have our own Controller and Handlers. The
> Handlers communicate with Session EJB to process data through stored
> process. The UI is presented through JSP in HTML frames. The business
> logic resides in Javascript, Handler Java objects and database objects.
> 
> Proposed migration is to use Struts and Tiles. Have anyone migrated such
> an application framework to Struts? The question is how much code we can
> reuse. Can we use the existing Handlers with the new Struts fwk?
> 
> Any thoughts will be appreciated.
> 
> Thanks,
> Unni
> 
> 
> -
> 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: Migrating to Struts

2004-11-30 Thread Leon Rosenberg
Hi,

we recently migrated an application, which i consider large (about 100K loc
java code)
from XSLT / XSP / EJB to
JSP / STRUTS / COD

To be true we have not reused a single line of java code. 
We reused much of XSLT code in jsps, because the outgoing html had to look
the same.
We reused some of the javascript, still, we could reduce the amount of
javascript by 50%, since we could move a lot of javascript functions into 
Jsps (things you can't do in xslt)

To give you a more direct answer: It's possible to reuse the code, but you
may take the chance and rewrite / refactor your existing code, since it will
make it better :-) (at least it should in theory).

We had to write a lot of tags missing in struts taglibs (equals with two
parameters for example, or argXName+argXProperty for message tags) and we
are still not really happy with tiles: a) because it's really freaking hard
to debug errors in inserted fragments and b) because it has no fragment
caching strategy (at least we found none). 

What we gained: We have a much clearer application now, we have a
performance increase of nearly 900%, we are able to serve 1.5 more users
with half of machines. 

The project took 6 month (3 iterations, 2 month each). 

If you have concrete questions, feel free to ask :-)

Regards
Leon

P.S. just for the records: there is no such thing as MVC-2. :-)



> All Struts Gurus:
> 
> We have a pretty large application which needs to migrate into Struts
> and possibly to Tiles for the UI. The existing application is quite
> similar to MVC-2 model. We have our own Controller and Handlers. The
> Handlers communicate with Session EJB to process data through stored
> process. The UI is presented through JSP in HTML frames. The business
> logic resides in Javascript, Handler Java objects and database objects.
> 
> Proposed migration is to use Struts and Tiles. Have anyone migrated such
> an application framework to Struts? The question is how much code we can
> reuse. Can we use the existing Handlers with the new Struts fwk?
> 
> Any thoughts will be appreciated.
> 
> Thanks,
> Unni
> 
> 
> -
> 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: data caching in web application

2004-11-30 Thread Vic
A more MVC approach is to do DATA chacing in the DATA layer.
It is recomended that you do datacaching via a DAO. (iBatis, Hibrenate, 
etc.)
.V


Jesse Alexander (KBSA 21) wrote:
concerning the actual access, that Javaworld article about sql in Java 
sounds a cool way to do it...

about the initializing:
- create a standard servlet that fetches the data and sets up a JavaBean
  (aka POJO) and stores that in the servlet-context
- define this servlet in the web.xml and add the "load-on-startup" 
  parameter. Then the container will load it automatically for you
  and only afterwards your webapp will be enabled

hope this helps
Alexander
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 29, 2004 9:54 PM
To: [EMAIL PROTECTED]
Subject: data caching in web application

Hi
I have a table in DB2 on AS400 which has about 1
records, i want to cache this data to improve my web
application performance, 
I dont want to cache it in session,
I was thinking of loading the data in array or some
class and load it in servlet context, 
what is the best way to do it?
is there some better way so i can querry this cached
data using keys as if using primary key in SQL
statment
Ashish


		
__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 

-
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.2 to 1.2.4 upgrade conflict log4j

2004-11-30 Thread Ian van der Neut
Hello all,

I downloaded struts 1.2.4 yesterday to replace the 1.2.2 version that
I am developping against. However, testing my application with the new
jars (I copied all of the jars in the 1.2.4 tarball to the WEB-INF/lib
directory of my webapp) generates an exception:

[snipped]

root cause

javax.servlet.ServletException:
org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

[snipped]

Is there something special I must do to make this work? I have log4j
version 1.2.8 installed. The problem goes away if I replace the
commons-logging jar with the one from the struts 1.2.2 distribution.

Thanks for any input,

Ian.

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



RE: Automatic logging

2004-11-30 Thread Kinjal Sonpal
Eddie,

Thanks for your immediate and thorough reply.

> Possible?  Yes ... but you're not going to get much
> meaningful information.
> IMHO, meaningful information comes out of exceptions, and I
> personally trap
> those and cause the app to show meaningful errors to the
> user.  The best
> place to have logging is in your catch statements - be that
> in your actions
> or the classes that make up your model.  It's so trivial to
> put in that
> there really isn't any excuse for not doing it right the first time.

Yes, exceptions truly are vital and I have them caught at almost all
appropriate places. However, what I'm looking at is a non-intrusive,
simple plugin kind of logging mechanism, only for the time being. We
generally work out our own APIs, instead of directly using framework
or technology specific APIS. By the time these are worked out, our
guinea pig users are going have a go at the application for functional
testing. I want to put some quick and dirty logging for them.

> I'll be surprised if there's a better solution that will
> give you meaningful
> feedback out of the logging (which is why you do logging -
> for meaningful
> feedback, that is - right?), but I have been wrong many
> times, and I don't
> think I've seen my last error yet :-)

That's true, but like I said earlier, I'm only looking at a quick and
dirty approach, so that I'll have some additional info alongwith their
feedback. If possible, please throw some more light for this type of
strategy. I'll be eager to hear from you and all the listers.

> Good Luck!
> Eddie Bush

Thanks and regards,
Kinjal Sonpal

"In the real world, the right thing never happens in the right place
at the right time.
It is the task of journalists and historians to rectify this error."
Mark Twain




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



RE: data caching in web application

2004-11-30 Thread Jesse Alexander (KBSA 21)
concerning the actual access, that Javaworld article about sql in Java 
sounds a cool way to do it...

about the initializing:
- create a standard servlet that fetches the data and sets up a JavaBean
  (aka POJO) and stores that in the servlet-context
- define this servlet in the web.xml and add the "load-on-startup" 
  parameter. Then the container will load it automatically for you
  and only afterwards your webapp will be enabled

hope this helps
Alexander

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 29, 2004 9:54 PM
To: [EMAIL PROTECTED]
Subject: data caching in web application

Hi
I have a table in DB2 on AS400 which has about 1
records, i want to cache this data to improve my web
application performance, 
I dont want to cache it in session,
I was thinking of loading the data in array or some
class and load it in servlet context, 
what is the best way to do it?
is there some better way so i can querry this cached
data using keys as if using primary key in SQL
statment
Ashish




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


-
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: validator form not responding properly

2004-11-30 Thread Kinjal Sonpal
Nishant,

Following links may also help you. If you have time, try to read the
entire FAQs. They are really good.

http://struts.apache.org/faqs/newbie.html#avoidValidate and
For Wizard like WorkFlow
http://struts.apache.org/faqs/newbie.html#wizard

HTH.

Kinjal Sonpal

"In the real world, the right thing never happens in the right place
at the right time.
It is the task of journalists and historians to rectify this error."
Mark Twain

> -Original Message-
> From: Nishant [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 19, 2004 12:07 PM
> To: Struts Users Mailing List
> Subject: validator form not responding properly
>
>
>  in my struts application i am goin from one page to
> another by clicking the buttons
> but when i got to particular page which is using
> validatorform it will popup validations on invoking..
> so my problem is how to delay the invocation of
> validatorForm ...
> Regards
> Nishant Patil
> Software Engineer
> Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
> West Avenue, Kalyaninagar
> Pune - 411006
> Ph. +91-20-4044700/4041700 Extn 355
> [EMAIL PROTECTED]
> www.cybage.com
> "There is difference between knowing the Path and walking
> on the Path"




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



RE: Searching pattern/best-practise for forms

2004-11-30 Thread McDonnell, Colm (MLIM)

> I've tried some ways to do this and ended up with three actions for
one 
> form: one for setting it up, one for displaying and validating it and 
> one for the selected backend action. I just wonder if that is a good
way 
> or if I'm introducing some problems into my applications.

The Struts DispatchAction is a neat way of combining multiple operations
on a single entity into one Action class. See
http://husted.com/struts/tips/002.html for more details on this
approach.


-Original Message-
From: Alexander Czernay [mailto:[EMAIL PROTECTED] 
Sent: 30 November 2004 08:31
To: Struts Users Mailing List
Subject: Re: Searching pattern/best-practise for forms


Hollaway, Shedrick L CIV TRIREFFAC wrote:
> Alexander,
> This should help you understand applying DAO/DTO patterns in a Struts
> app: http://javaboutique.internet.com/tutorials/ApacheDAOs/
> 
> Shed.
> 

Thanks for all your replys and suggestions, but I'm afraid I didn't ask 
the right question. What I really wanted to know was, how you would 
organize the controller/view in Struts for handling those standard 
create/update/delete actions. Like you have a database containing an 
address-book in the backend and want to display it as a list to the 
user, so he can select entries for editing/deletion or create new ones. 
When creating/editing entries you would present those as a form, 
validate it and write it back to the backend.

I've tried some ways to do this and ended up with three actions for one 
form: one for setting it up, one for displaying and validating it and 
one for the selected backend action. I just wonder if that is a good way

or if I'm introducing some problems into my applications.

Alexander


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

 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail. http://www.ml.com/email_terms/ 

 

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



Re: Searching pattern/best-practise for forms

2004-11-30 Thread Alexander Czernay
Hollaway, Shedrick L CIV TRIREFFAC wrote:
Alexander,
This should help you understand applying DAO/DTO patterns in a Struts
app: http://javaboutique.internet.com/tutorials/ApacheDAOs/
Shed.
Thanks for all your replys and suggestions, but I'm afraid I didn't ask 
the right question. What I really wanted to know was, how you would 
organize the controller/view in Struts for handling those standard 
create/update/delete actions. Like you have a database containing an 
address-book in the backend and want to display it as a list to the 
user, so he can select entries for editing/deletion or create new ones. 
When creating/editing entries you would present those as a form, 
validate it and write it back to the backend.

I've tried some ways to do this and ended up with three actions for one 
form: one for setting it up, one for displaying and validating it and 
one for the selected backend action. I just wonder if that is a good way 
or if I'm introducing some problems into my applications.

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


Re: Struts and Rational XDE

2004-11-30 Thread Mark Benussi
OK Sanjay. Are you using Websphere Studio Application Developer 5?

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


Re: Struts and Rational XDE

2004-11-30 Thread HG
Hi

With Rose (pre XDE product from Rational), you cound reverse engineer the
relevant Struts jar files and save it in a model/package for reuse. Evrytime
you need it, you just apply the "Struts model" to your existing model.
Dunno, if you can do something alike in XDE, but think so...If it supports
forward and reverse engineering.

/Henrik


- Original Message - 
From: "Sanjay Gupta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 30, 2004 7:40 AM
Subject: Struts and Rational XDE


> Hi Friends,
> How can I use Rational XDE for Struts ?
> If anyone has any idea please share with me.
>
>
> -- 
> Sanjay Gupta
> Research Engineer
> C-DOT, New Delhi
> India
>
> -
> 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: Struts and Rational XDE

2004-11-30 Thread Sanjay Gupta
Hi Mark,
yes, i want to use rational xde with struts.
u told, i need to get hold of model files.
from where can i get these files ?
can u please explain it more ?

thanks
sanjay gupta


On Tue, 30 Nov 2004 07:59:07 +, Mark Benussi
<[EMAIL PROTECTED]> wrote:
> Is there a product called called Rational XDE for Struts? I dont think there
> is. If you mean can you use Rational XDE with Struts then you need to get
> hold of the model files for the version of Struts your using and integrate
> them into your XDE environment.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Sanjay Gupta
Research Engineer
C-DOT, New Delhi
India

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



RE: Struts and Rational XDE

2004-11-30 Thread Mark Benussi
Is there a product called called Rational XDE for Struts? I dont think there 
is. If you mean can you use Rational XDE with Struts then you need to get 
hold of the model files for the version of Struts your using and integrate 
them into your XDE environment.


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