Re: struts and applets

2004-11-15 Thread brenmcguire
Ashish Kulkarni wrote:

>Hi
>I am working on a webproject where i have designed a
>applet which communicates with the database using
>applet-servlet communication,
>The applet opens a URL connection to a servlet.
>My Servlet reads the data from applet calls the
>appropriate business classes, get data and returns
>data back to applet.
>
>If i have to replace this servlet part with struts
>Action class, how do i define it in my struts-config
>file and what will be the form and where do i forward
>it after completion.
>
>Ashish

So you use an applet that communicates with an HTTP Servlet? I think you
can use Struts for your purposes, but not the "usual" way in normal web
applications (i.e. HTML+Javascript based).
1) You can still define your action class the usual way, with an URL and a
form-bean connected to it.
2) To find out what your form is, take a look to the parameters that the
applet passes to the servlet. You must know that, in fact, every kind of
HTTP request and parameters are taken to build the form bean. In this form
bean, every parameter is used to set the property that has the same name
of the parameter itself.
3) You have to forward to "null", I think. The thing that, IMHO, is the
best one is to construct manually the HttpServletResponse, just as you do
with your servlet.
Ciao
Antonio Petrelli



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



Re: multiThread, action and Database access

2004-11-15 Thread Andrew Hill
Actions and their corresponding jsps exist to handle requests sent by 
the browser. Its a client pull model, so you cant schedule to push data 
to the client at intervals (I would recommend staying away from trying 
any tricky hacks that involve keeping the http connection open).

What you can do is to set up javascript or some kind of meta refresh tag 
(I forget the syntax, one of these pages should have it though:
http://www.google.com/search?q=automatic+page+refresh+meta+tag
) in your pages html to cause the browser to self-refresh the page every 
30 seconds.

If you go this way you need to be aware of potential load issues (if you 
have many browsers issuing the request every 30 seconds it can bog down 
your server quite a bit - especially where there is db access involved...)

Id recommend you leave it to the user to manually refresh the page 
themselves (you may give them a button to do it).

Ryan julius wrote:
Hi,
 
I have in my project, an action /ReadDataBaseData.do and the corresponding handler :
public ActionForward accessDatabase(ActionMapping, ActionForm, ...) ;
This action forwards to the page displayData.jsp

Problem: The database is populated each 30 seconds by an external server.
Question : How can I setup my action and implementation in order to access the database each 30 seconds.
 
Thanks in advance.


-
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !

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


multiThread, action and Database access

2004-11-15 Thread Ryan julius
Hi,
 
I have in my project, an action /ReadDataBaseData.do and the corresponding 
handler :
public ActionForward accessDatabase(ActionMapping, ActionForm, ...) ;
This action forwards to the page displayData.jsp

Problem: The database is populated each 30 seconds by an external server.
Question : How can I setup my action and implementation in order to access the 
database each 30 seconds.
 
Thanks in advance.


-
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour 
dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !

RE: Actions being executed twice

2004-11-15 Thread David G. Friedman
Owen,

If only certain actions are invoking this double submit, I recommend you log
referer pages and check them for submit buttons using Javascript.  Some
people accidentally have a submit button invoke a Javascript function and
(or within it) call form.submit().  In a submit button, that often causes a
double submit.  When you mentioned that sometimes the same thread and
sometimes different threads invoke it, that doesn't necessarily (from my
point of view) mean anything.  It could just mean the second (i.e. double)
submit was handled by the same HTTP related thread, such as on HTTP1.1
compliant concurrent connections.

Regards,
David

-Original Message-
From: Owen Berry [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 3:35 PM
To: Struts Users Mailing List
Subject: Actions being executed twice


Hi there,

I'm having a problem where certain actions are being executed twice when
a user follows a link. I'm hoping somebody has some input on this, or
some suggestions on how I can figure it out.

I'm running Struts 1.1, Tomcat 5.0.28, J2SE 1.4.2_05 and Fedora Core 2.

As far as I can see this only happens on http posts, not gets. I thought
I had also narrowed it down to only happening on actions that are
straight off the application context (/app/action.do), but I've managed
to find some actions that are off the root of the application but do not
exhibit this behavior. I'm going directly to Tomcat on port 8080 to
avoid any problems with Apache connectors and the like.

The simplest example I can give of this is:





WelcomeAction logs the fact that it was executed and then:

return (mapping.findForward("success"));

When I look in the log file the message gets logged twice. Most of the
time the action is being executed by two different threads, but I have
seen the same thread handle both executions.

Initially I thought it was possible that some part of my code was
calling the execute again, but if I create a stack dump within the
action both stack dumps are identical except for time stamp and thread.

I have my own RequestProcessor class that overrides the standard Struts
one in order to perform authorization checking, but if I remove it from
the Struts config file I still get the same results.

Thus far I haven't been able to replicate the problem using a standard
servlet.

Any suggestions on where I can start looking? BTW, I'm not in a position
to upgrade to Struts 1.2.x at this stage.

Thanks,
Owen Berry



-
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: talking about paradigms

2004-11-15 Thread Frank W. Zammetti
IMHO, you have to be very careful with the XML/XSLT solution.
I worked on a project about two years ago (probably closer to three now 
actually) where we had as a requirement the ability to deliver a fairly 
simple web app via normal HTML, but also WAP-based browsers, and also 
the ability to download data lists as CSVs, and also have the ability to 
download some data to clients in XML but in a format of their choosing. 
 In essence, the app itself never changed, nor did the "data" it spit 
out, but the delivery mechanism was highly varied and had to be flexible 
in the future too.

The solution we decided upon was to have the back end generate only XML, 
then use XSLT to transform it to suite the particular client (really a 
fairly obvious approach!).  To this day it works fantastically well, and 
we continually add new delivery formats to the system for new clients, 
all using the exact same data.

While it does work great, it IS immensely complicated.  XSLT is not a 
simple tool to use, by and large.  When we did it we were coding it by 
hand, there are of course tools to help you along today.  Even still, I 
cringe every time a junior developer calls me because they are trying to 
create a new delivery format and I have to remember all the intricacies 
of this thing.  I mean, I hate remembering details of things I coded 
that I haven't touched in a long while in general, but this app in 
particular is painful to try and recall, and it's because of the overall 
complexity of XSLT.  Power and flexibility always come at costs in this 
line of work, and XML/XSLT-based solutions I think are a prime example 
of this.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Dakota Jack wrote:
Yet, Bill, that is not the problem of the XML/XSLT model, is it?  That
model is really cool in separating the model from the view.  Indeed,
that model is great at separating the view data from the view
presentation.  I am not sure what the app you worked on did, but I
think the idea behind the XML/XSLT model is terrific.  Essentially, as
I undestand it, the XML is sent and is in some "language" that the
client may or may not understand.  So, the XSLT contains a crash
course in the language.  That is way cool from my perspective.
Jack
P.S.  I really liked Eddie Bush's Jedi Knight take on development. 
That is quite true in my experience.  Usually these metaphors break
down pretty fast.  That one held up pretty good.  Probably due to the
master Campbell being behind the mythology of Star Wars.

On Mon, 15 Nov 2004 09:43:19 -0500, Bill Siggelkow
<[EMAIL PROTECTED]> wrote:
Sorry, I haven't been following this thread, but I tend to agree with
you. I worked on an app that used XML/XSLT to achieve "purity" -- and
what resulted was a lot of this "view helper" data coded into the "pure"
XML document; defeating the premise behind separation of the model and view.
-Bill Siggelkow

Daniel Perry wrote:
I think the idea that MVC architecture should have a 'dumb view' is totally
wrong.  The view should be as smart as possible.
MVC should separate the M, V and C.  With a really smart view you dont have
to do any preparation for the view in the controller.  If you have a dumb
view then you have to prepare the data in the model/controller so that the
view can cope with it.  Surely this is wrong as you are doing view
processing outside of the view. Personally i think ALL view processing
should be done in the view: the view code (be it jsps, java, xml/xsl, etc)
should take model data, and produce a view of that data - and it should be
flexible.
The problem with a smarter (or better worded: more capable) view is that
people start doing things in the view which shouldnt be done there, such as
database access.  I dont think this is down to a problem with the view
technology, just a lack of education on the users part.  Arguing that the
view should dumbed down to stop this problem arising is like saying that
cars should only be able to do 70mph because that's all they can legally do.
For example, a poject i am responsible has a lot of code in the model beans
that was put there pre jstl for formatting things like dates, or text.  So
you have getStartDate() which returns a date, and getFormattedStartDate()
which returns a formatted string.  This code should be in the view as it is
purely for view purposes, but i made the decision to bodge it into the model
as it was nicer than using java code in the jsps.  There are various other
methods - such as retrieving chunks of text with \n into , which can now
mostly be handled with jstl.
Daniel.



-Original Message-
From: Rosenberg, Leon [mailto:[EMAIL PROTECTED]
Sent: 15 November 2004 13:44
To: Struts Users Mailing List
Subject: AW: talking about paradigms



No, but what about
 ?
(not sure about the syntax).
whats the problem?
MVC usually allows 'read-only access to model' for the view
Also the question is, what you expose to the view.
If you are 

Re: talking about paradigms

2004-11-15 Thread Dakota Jack
Yet, Bill, that is not the problem of the XML/XSLT model, is it?  That
model is really cool in separating the model from the view.  Indeed,
that model is great at separating the view data from the view
presentation.  I am not sure what the app you worked on did, but I
think the idea behind the XML/XSLT model is terrific.  Essentially, as
I undestand it, the XML is sent and is in some "language" that the
client may or may not understand.  So, the XSLT contains a crash
course in the language.  That is way cool from my perspective.

Jack

P.S.  I really liked Eddie Bush's Jedi Knight take on development. 
That is quite true in my experience.  Usually these metaphors break
down pretty fast.  That one held up pretty good.  Probably due to the
master Campbell being behind the mythology of Star Wars.


On Mon, 15 Nov 2004 09:43:19 -0500, Bill Siggelkow
<[EMAIL PROTECTED]> wrote:
> Sorry, I haven't been following this thread, but I tend to agree with
> you. I worked on an app that used XML/XSLT to achieve "purity" -- and
> what resulted was a lot of this "view helper" data coded into the "pure"
> XML document; defeating the premise behind separation of the model and view.
> 
> -Bill Siggelkow
> 
> 
> 
> Daniel Perry wrote:
> > I think the idea that MVC architecture should have a 'dumb view' is totally
> > wrong.  The view should be as smart as possible.
> >
> > MVC should separate the M, V and C.  With a really smart view you dont have
> > to do any preparation for the view in the controller.  If you have a dumb
> > view then you have to prepare the data in the model/controller so that the
> > view can cope with it.  Surely this is wrong as you are doing view
> > processing outside of the view. Personally i think ALL view processing
> > should be done in the view: the view code (be it jsps, java, xml/xsl, etc)
> > should take model data, and produce a view of that data - and it should be
> > flexible.
> >
> > The problem with a smarter (or better worded: more capable) view is that
> > people start doing things in the view which shouldnt be done there, such as
> > database access.  I dont think this is down to a problem with the view
> > technology, just a lack of education on the users part.  Arguing that the
> > view should dumbed down to stop this problem arising is like saying that
> > cars should only be able to do 70mph because that's all they can legally do.
> >
> > For example, a poject i am responsible has a lot of code in the model beans
> > that was put there pre jstl for formatting things like dates, or text.  So
> > you have getStartDate() which returns a date, and getFormattedStartDate()
> > which returns a formatted string.  This code should be in the view as it is
> > purely for view purposes, but i made the decision to bodge it into the model
> > as it was nicer than using java code in the jsps.  There are various other
> > methods - such as retrieving chunks of text with \n into , which can now
> > mostly be handled with jstl.
> >
> > Daniel.
> >
> >
> >
> >
> >
> >>-Original Message-
> >>From: Rosenberg, Leon [mailto:[EMAIL PROTECTED]
> >>Sent: 15 November 2004 13:44
> >>To: Struts Users Mailing List
> >>Subject: AW: talking about paradigms
> >>
> >>
> >>
> >>
> >>
> No, but what about
> 
>  ?
> (not sure about the syntax).
> >>>
> >>>whats the problem?
> >>> MVC usually allows 'read-only access to model' for the view
> >>>Also the question is, what you expose to the view.
> >>>If you are afraid that somebody will misuse the library entries -
> >>
> >>don't
> >>
> >>>expose them.
> >>>I suppose MVC was the reason for JSP EL not to allow arbitrary method
> >>>invocations. But I'd love to have such anyway ;)
> >>>
> >>>
> ...
> And what about database access tags?
> >>>
> >>>You mean the jstl tags? They are there for quick and dirty.
> >>>If you don't change anything in the database though, it still okay to
> >>
> >>MVC.
> >>
> >>>If you don't want it, don't expose your database in the first place ;)
> >>>
> >>>
> >>
> >>The problem is, that if you give a user the possibility to misuse your
> >>framework - he will.
> >>And EL gives jsps more power than a dumb view should have. And if your
> >>view isn't just layouting out the data, but performing nearly complex
> >>operations, it's not dumb anymore, and a smart view doesn't fit into the
> >>MVC.
> >>
> >>If the user is allowed to break the paradigm he will.
> >>If you have an architecture, which is built on a paradigm (and any good
> >>architecture is) you can't allow the developers to break the paradigm,
> >>or
> >>the architecture will stop working one day, without obvious reasons.
> >>It's probably why there are no pointers in java, even pointers adds cool
> >>features to the language.
> >>
> >>Regards
> >>Leon
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> 
> --

Re: talking about paradigms

2004-11-15 Thread Eddie Bush
AMEN TO THAT.  What a PITA ... UGH I don't like that!  PAIN!
Try to debug that mess!
- Original Message - 
From: "Bill Siggelkow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 15, 2004 8:43 AM
Subject: Re: talking about paradigms


Sorry, I haven't been following this thread, but I tend to agree with you. 
I worked on an app that used XML/XSLT to achieve "purity" -- and what 
resulted was a lot of this "view helper" data coded into the "pure" XML 
document; defeating the premise behind separation of the model and view.

-Bill Siggelkow
Daniel Perry wrote:
I think the idea that MVC architecture should have a 'dumb view' is 
totally
wrong.  The view should be as smart as possible.

MVC should separate the M, V and C.  With a really smart view you dont 
have
to do any preparation for the view in the controller.  If you have a dumb
view then you have to prepare the data in the model/controller so that 
the
view can cope with it.  Surely this is wrong as you are doing view
processing outside of the view. Personally i think ALL view processing
should be done in the view: the view code (be it jsps, java, xml/xsl, 
etc)
should take model data, and produce a view of that data - and it should 
be
flexible.

The problem with a smarter (or better worded: more capable) view is that
people start doing things in the view which shouldnt be done there, such 
as
database access.  I dont think this is down to a problem with the view
technology, just a lack of education on the users part.  Arguing that the
view should dumbed down to stop this problem arising is like saying that
cars should only be able to do 70mph because that's all they can legally 
do.

For example, a poject i am responsible has a lot of code in the model 
beans
that was put there pre jstl for formatting things like dates, or text. 
So
you have getStartDate() which returns a date, and getFormattedStartDate()
which returns a formatted string.  This code should be in the view as it 
is
purely for view purposes, but i made the decision to bodge it into the 
model
as it was nicer than using java code in the jsps.  There are various 
other
methods - such as retrieving chunks of text with \n into , which can 
now
mostly be handled with jstl.

Daniel.


-Original Message-
From: Rosenberg, Leon [mailto:[EMAIL PROTECTED]
Sent: 15 November 2004 13:44
To: Struts Users Mailing List
Subject: AW: talking about paradigms


No, but what about
 ?
(not sure about the syntax).
whats the problem?
MVC usually allows 'read-only access to model' for the view
Also the question is, what you expose to the view.
If you are afraid that somebody will misuse the library entries -
don't
expose them.
I suppose MVC was the reason for JSP EL not to allow arbitrary method
invocations. But I'd love to have such anyway ;)

...
And what about database access tags?
You mean the jstl tags? They are there for quick and dirty.
If you don't change anything in the database though, it still okay to
MVC.
If you don't want it, don't expose your database in the first place ;)

The problem is, that if you give a user the possibility to misuse your
framework - he will.
And EL gives jsps more power than a dumb view should have. And if your
view isn't just layouting out the data, but performing nearly complex
operations, it's not dumb anymore, and a smart view doesn't fit into the
MVC.
If the user is allowed to break the paradigm he will.
If you have an architecture, which is built on a paradigm (and any good
architecture is) you can't allow the developers to break the paradigm,
or
the architecture will stop working one day, without obvious reasons.
It's probably why there are no pointers in java, even pointers adds cool
features to the language.
Regards
Leon
-
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]

---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0447-0, 11/15/2004
Tested on: 11/15/2004 8:29:42 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: talking about paradigms

2004-11-15 Thread Eddie Bush
Leon,
Being a developer is like ... being a Jedi Knight.  You seek the good and 
thrive on it, but are forever tempted by the dark side.  Eventually, you 
give in to it and learn why it's evil and then go back to the light.  That 
is, unless you're so enthralled by the dark side that you become consumed by 
it.  Such actions my well lead to one's demise though - especially if a 
Skywalker is around.

To put it different, it's like being a woodworker.  The machines you use are 
stupid and emotionless.  They have guards in place for a reason.  The 
woodworker can remove the guards because they're "in the way", but he has 
nobody but himself to blame when he cuts his finger off.

I've heard this argument too many times.  "The language should ... "
Yes, I realize that there are folks who'd probably kill themselves in an 
afternoon if they were the woodworker above, but that's their business. 
Some people like living on the edge and think it's cool to write obfuscated 
code.  Their reward will be dismissal if they don't mend their ways before 
someone comes along that can write clean implementations that people can 
come behind and maintain.

Shift responsibility to where it belongs - to the critter that has grey 
matter keeping its skull from collapsing - the developer.  Yes, yes, make 
use of the tools a language gives you to write better, cleaner, more 
maintainable code ... but having the power to slit your wrists can actually 
come in handy sometimes.  Pointer arithmetic (the one feature missing from 
Java.  Yes, java has pointers, and please don't bore me by trying to prove 
otherwise :-) is the one feature I miss from the old "C days", and it can be 
a very elegant solution to certain problems --- just like recursion (which I 
try to use sparingly as well).

Enough :-)  I like power.  Java has enough, and makes up for what it doesn't 
have by adding other cool functionality.  In the end, it's the 
responsibility of the developer to do what's right.

Peace All,
Eddie
- Original Message - 
From: "Rosenberg, Leon" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 15, 2004 7:44 AM
Subject: AW: talking about paradigms



> No, but what about
>
>  ?
> (not sure about the syntax).
whats the problem?
 MVC usually allows 'read-only access to model' for the view
Also the question is, what you expose to the view.
If you are afraid that somebody will misuse the library entries -
don't
expose them.
I suppose MVC was the reason for JSP EL not to allow arbitrary method
invocations. But I'd love to have such anyway ;)
>...
> And what about database access tags?
You mean the jstl tags? They are there for quick and dirty.
If you don't change anything in the database though, it still okay to
MVC.
If you don't want it, don't expose your database in the first place ;)

The problem is, that if you give a user the possibility to misuse your
framework - he will.
And EL gives jsps more power than a dumb view should have. And if your
view isn't just layouting out the data, but performing nearly complex
operations, it's not dumb anymore, and a smart view doesn't fit into the
MVC.
If the user is allowed to break the paradigm he will.
If you have an architecture, which is built on a paradigm (and any good
architecture is) you can't allow the developers to break the paradigm,
or
the architecture will stop working one day, without obvious reasons.
It's probably why there are no pointers in java, even pointers adds cool
features to the language.
Regards
Leon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0447-0, 11/15/2004
Tested on: 11/15/2004 8:26:28 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: JerichoFaces ?

2004-11-15 Thread Craig McClanahan
Jack,

Two things you might want to do ...

* Note that several of the Struts developers are currently
  at ApacheCon in Las Vegas this week (not me, alas, due
  to scheduling conflicts).

* Migrate discussions like this over to the developer list,
  since that's where decisions on the future will actually
  be made.

Personally, I'm underwhelmed by the technical arguments made against a
View Helper design pattern so far, so I'm not particularly interested
(personally) in Jericho or JerichoFaces as a solution to anything --
but who knows, some of the other developers might be.

Craig


On Mon, 15 Nov 2004 16:42:16 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
> Instead of having the Java ServerFaces controller handle both the
> relationship to the controller and to the model from the view, what if
> we employed the Jericho update to Struts 2.0 and added as an option a
> JerichoFaces that only interfaced with the model, having a view
> controller that did not take over the controller function of the "MVC"
> pattern, e.g.
> 
>view <==> contoller <==> model <==> view <==> etc. or
> 
>controller
> 
> view  model
> 
> See http://131.191.32.112:8080/ for a diagram.
> 
> Jack
> 
> --
> "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]
> 
>

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



Re: AW: using multiple action forms in one action. Best practice?

2004-11-15 Thread Bill Keese
Hi Martin,
From this JSP I want to access a (hopefully) generic module to
get the access points. This "module" has to get some information (e. g. a
region to prefilter the addresses or access points already existing) from
JSP1.
I think you should  generate the input to the generic module, rather 
than passing the ActionForm directly:

  // get data from ActionForm1 needed to look up addresses
  AddressLookupInfo info = getAddressInfoFromActionForm1(AF1);
  // lookup addresses
  List res = AddressLookup.getAddresses(info);
   ...
Then your module can still be generic.
I could take the necessary information from AF1 to some POJO (or bean) on
model level (or controller level) and transfer it to AF2. This is 
probably
the "cleanest" solution but means to split each action into two, just 
to do
the data transfer.
 

You shouldn't need to split each action into two.  Action1's job is to 
handle the input from ActionForm1, and then do the setup to display 
JSP2, right?  So, just create the ActionForm2 manually inside Action1:

 // Create AF2 as an input/output form
 ActionForm2 af2 = new ActionForm2();
 session.setAttribute("actionForm2", af2);
 // ... and pre-populate it with the data the user has already input
 ActionForm1 af1 =
  (ActionForm1) getActionForm(mapping, form, request, session);
 af2.loadDataFromAF1(af1);
 // forward control to JSP2
 return (mapping.findForward("jsp2"));
My current solution simply accesses both action forms, AF1 and AF2 
(getting
the one not available as the "form"-parameter by MyForm mf = 
(MyForm)session.getAttribute("AFi");
but my feeling is that this is not really good style.
 

I guess it depends on whether you consider the two forms to represent 
one logical command or two logical commands.

The other thing to consider, though, is whether or not you want to store 
the ActionForms at session scope.   Session scope is problematic because 
you might end up accessing old data (if the user previously quit in the 
middle of a wizard).  Also, I imagine things would fail in a distributed 
application where the user's requests are randomly routed to multiple 
servers.The alternative is to use request level scope, but in this 
case the information entered in Form#1 has to be embedded in the output 
of JSP2 as hidden HTML variables.

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


Re: AW: using multiple action forms in one action. Best practice?

2004-11-15 Thread Bill Keese
Hi Martin,
From this JSP I want to access a (hopefully) generic module to
get the access points. This "module" has to get some information (e. g. a
region to prefilter the addresses or access points already existing) from
JSP1.
I think you should  generate the input to the generic module, rather 
than passing the ActionForm directly:

   // get data from ActionForm1 needed to look up addresses
   AddressLookupInfo info = getAddressInfoFromActionForm1(AF1);
   // lookup addresses
   List res = AddressLookup.getAddresses(info);
...
Then your module can still be generic.
I could take the necessary information from AF1 to some POJO (or bean) on
model level (or controller level) and transfer it to AF2. This is probably
the "cleanest" solution but means to split each action into two, just to do
the data transfer.
 

You shouldn't need to split each action into two.  Action1's job is to 
handle the input from ActionForm1, and then do the setup to display 
JSP2, right?  So, just create the ActionForm2 manually inside Action1:

  // Create AF2 as an input/output form
  ActionForm2 af2 = new ActionForm2();
  session.setAttribute("actionForm2", af2);
  // ... and pre-populate it with the data the user has already input
  ActionForm1 af1 =
   (ActionForm1) getActionForm(mapping, form, request, session);
  af2.loadDataFromAF1(af1);
  // forward control to JSP2
  return (mapping.findForward("jsp2"));
My current solution simply accesses both action forms, AF1 and AF2 (getting
the one not available as the "form"-parameter by 
MyForm mf = (MyForm)session.getAttribute("AFi");
but my feeling is that this is not really good style.
 

I guess it depends on whether you consider the two forms to represent 
one logical command or two logical commands.

The other thing to consider, though, is whether or not you want to store 
the ActionForms at session scope.   Session scope is problematic because 
you might end up accessing old data (if the user previously quit in the 
middle of a wizard).  Also, I imagine things would fail in a distributed 
application where the user's requests are randomly routed to multiple 
servers.The alternative is to use request level scope, but in this 
case the information entered in Form#1 has to be embedded in the output 
of JSP2 as hidden HTML variables.

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


JerichoFaces ?

2004-11-15 Thread Dakota Jack
Instead of having the Java ServerFaces controller handle both the
relationship to the controller and to the model from the view, what if
we employed the Jericho update to Struts 2.0 and added as an option a
JerichoFaces that only interfaced with the model, having a view
controller that did not take over the controller function of the "MVC"
pattern, e.g.

   view <==> contoller <==> model <==> view <==> etc. or 


   controller

view  model

See http://131.191.32.112:8080/ for a diagram.

Jack

-- 
"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: Actions being executed twice

2004-11-15 Thread Erik Weber
I had some bad JavaScript before that caused a form to submit twice.
Erik

Owen Berry wrote:
Good suggestion. I didn't think this was happening as there are
different thread descriptors in my logs, but I thought I would try
something to test this theory, just in case. Printing something out on
System.out should verify that this is not a logging problem, right?
Well, it still looks like the action is being called twice - printed the
date and time and a message out twice for each execution.
Something interesting that I did note is that about 1 in 20 times the
action is only called once. Almost looks like a race condition.
Thanks for the suggestion. Will post more details of the configuration
files tomorrow morning (have to dash now), but it really is not much
more than what I detailed in my original email - the action is currently
a stub for future use.
Owen
On Mon, 2004-11-15 at 16:59, Hubert Rabago wrote:
 

There's been a case like this before reported here on the user list
where the person thought the action was executing twice, when in fact
the log was just being called twice because of the logging
configuration.
Make sure that this isn't what you're seeing.
If that doesn't do it, maybe posting your actual link, the web.xml
mapping, and the action code would help.
On Mon, 15 Nov 2004 15:35:10 -0500, Owen Berry <[EMAIL PROTECTED]> wrote:
   

Hi there,
I'm having a problem where certain actions are being executed twice when
a user follows a link. I'm hoping somebody has some input on this, or
some suggestions on how I can figure it out.
I'm running Struts 1.1, Tomcat 5.0.28, J2SE 1.4.2_05 and Fedora Core 2.
As far as I can see this only happens on http posts, not gets. I thought
I had also narrowed it down to only happening on actions that are
straight off the application context (/app/action.do), but I've managed
to find some actions that are off the root of the application but do not
exhibit this behavior. I'm going directly to Tomcat on port 8080 to
avoid any problems with Apache connectors and the like.
The simplest example I can give of this is:

  

WelcomeAction logs the fact that it was executed and then:
return (mapping.findForward("success"));
When I look in the log file the message gets logged twice. Most of the
time the action is being executed by two different threads, but I have
seen the same thread handle both executions.
Initially I thought it was possible that some part of my code was
calling the execute again, but if I create a stack dump within the
action both stack dumps are identical except for time stamp and thread.
I have my own RequestProcessor class that overrides the standard Struts
one in order to perform authorization checking, but if I remove it from
the Struts config file I still get the same results.
Thus far I haven't been able to replicate the problem using a standard
servlet.
Any suggestions on where I can start looking? BTW, I'm not in a position
to upgrade to Struts 1.2.x at this stage.
Thanks,
Owen Berry
 


-
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: Can't find property - but it's there

2004-11-15 Thread Wendy Smoak
From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
> This has nothing to do with the scriptlet variables, the scriptlet was
there
> to demonstrate that the object the JSTL tag is supposed to access is
there,
> and has the required property. The JSTL should be able to access the
request
> attribute "SeasAdjBean" and get the property "seasAdjs" by accessing the
> method "getSeasAdjs()". The scriptlet proves that the proper object
> containing the proper method was in the right place. So why can't the JSTL
> tag find it?

Any chance the misbehaving server has a different JSTL implementation?  Are
you using the one from Jakarta, or possibly one that came with WebLogic?

I have had a few things act differently on my Win2000 workstation vs. the
HP-UX web server, though we usually end up blaming it on the JVM.

-- 
Wendy Smoak


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



Re: Actions being executed twice

2004-11-15 Thread Owen Berry
Good suggestion. I didn't think this was happening as there are
different thread descriptors in my logs, but I thought I would try
something to test this theory, just in case. Printing something out on
System.out should verify that this is not a logging problem, right?
Well, it still looks like the action is being called twice - printed the
date and time and a message out twice for each execution.

Something interesting that I did note is that about 1 in 20 times the
action is only called once. Almost looks like a race condition.

Thanks for the suggestion. Will post more details of the configuration
files tomorrow morning (have to dash now), but it really is not much
more than what I detailed in my original email - the action is currently
a stub for future use.

Owen

On Mon, 2004-11-15 at 16:59, Hubert Rabago wrote:
> There's been a case like this before reported here on the user list
> where the person thought the action was executing twice, when in fact
> the log was just being called twice because of the logging
> configuration.
> Make sure that this isn't what you're seeing.
> If that doesn't do it, maybe posting your actual link, the web.xml
> mapping, and the action code would help.
> 
> 
> On Mon, 15 Nov 2004 15:35:10 -0500, Owen Berry <[EMAIL PROTECTED]> wrote:
> > Hi there,
> > 
> > I'm having a problem where certain actions are being executed twice when
> > a user follows a link. I'm hoping somebody has some input on this, or
> > some suggestions on how I can figure it out.
> > 
> > I'm running Struts 1.1, Tomcat 5.0.28, J2SE 1.4.2_05 and Fedora Core 2.
> > 
> > As far as I can see this only happens on http posts, not gets. I thought
> > I had also narrowed it down to only happening on actions that are
> > straight off the application context (/app/action.do), but I've managed
> > to find some actions that are off the root of the application but do not
> > exhibit this behavior. I'm going directly to Tomcat on port 8080 to
> > avoid any problems with Apache connectors and the like.
> > 
> > The simplest example I can give of this is:
> > 
> >  >type="actions.WelcomeAction">
> >
> > 
> > 
> > WelcomeAction logs the fact that it was executed and then:
> > 
> > return (mapping.findForward("success"));
> > 
> > When I look in the log file the message gets logged twice. Most of the
> > time the action is being executed by two different threads, but I have
> > seen the same thread handle both executions.
> > 
> > Initially I thought it was possible that some part of my code was
> > calling the execute again, but if I create a stack dump within the
> > action both stack dumps are identical except for time stamp and thread.
> > 
> > I have my own RequestProcessor class that overrides the standard Struts
> > one in order to perform authorization checking, but if I remove it from
> > the Struts config file I still get the same results.
> > 
> > Thus far I haven't been able to replicate the problem using a standard
> > servlet.
> > 
> > Any suggestions on where I can start looking? BTW, I'm not in a position
> > to upgrade to Struts 1.2.x at this stage.
> > 
> > Thanks,
> > Owen Berry
> >



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



Re: Actions being executed twice

2004-11-15 Thread Hubert Rabago
There's been a case like this before reported here on the user list
where the person thought the action was executing twice, when in fact
the log was just being called twice because of the logging
configuration.
Make sure that this isn't what you're seeing.
If that doesn't do it, maybe posting your actual link, the web.xml
mapping, and the action code would help.


On Mon, 15 Nov 2004 15:35:10 -0500, Owen Berry <[EMAIL PROTECTED]> wrote:
> Hi there,
> 
> I'm having a problem where certain actions are being executed twice when
> a user follows a link. I'm hoping somebody has some input on this, or
> some suggestions on how I can figure it out.
> 
> I'm running Struts 1.1, Tomcat 5.0.28, J2SE 1.4.2_05 and Fedora Core 2.
> 
> As far as I can see this only happens on http posts, not gets. I thought
> I had also narrowed it down to only happening on actions that are
> straight off the application context (/app/action.do), but I've managed
> to find some actions that are off the root of the application but do not
> exhibit this behavior. I'm going directly to Tomcat on port 8080 to
> avoid any problems with Apache connectors and the like.
> 
> The simplest example I can give of this is:
> 
> type="actions.WelcomeAction">
>
> 
> 
> WelcomeAction logs the fact that it was executed and then:
> 
> return (mapping.findForward("success"));
> 
> When I look in the log file the message gets logged twice. Most of the
> time the action is being executed by two different threads, but I have
> seen the same thread handle both executions.
> 
> Initially I thought it was possible that some part of my code was
> calling the execute again, but if I create a stack dump within the
> action both stack dumps are identical except for time stamp and thread.
> 
> I have my own RequestProcessor class that overrides the standard Struts
> one in order to perform authorization checking, but if I remove it from
> the Struts config file I still get the same results.
> 
> Thus far I haven't been able to replicate the problem using a standard
> servlet.
> 
> Any suggestions on where I can start looking? BTW, I'm not in a position
> to upgrade to Struts 1.2.x at this stage.
> 
> Thanks,
> Owen Berry
>

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



struts and applets

2004-11-15 Thread Ashish Kulkarni
Hi
I am working on a webproject where i have designed a
applet which communicates with the database using
applet-servlet communication, 
The applet opens a URL connection to a servlet.
My Servlet reads the data from applet calls the
appropriate business classes, get data and returns
data back to applet.

If i have to replace this servlet part with struts
Action class, how do i define it in my struts-config
file and what will be the form and where do i forward
it after completion.

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]



RE: Can't find property - but it's there

2004-11-15 Thread Slattery, Tim - BLS
> > <%
> > gov.bls.idcf.ppi.struts.SeasAdjBean xx = 
> > 
> (gov.bls.idcf.ppi.struts.SeasAdjBean)request.getAttribute("SeasAdjBean
> > ");
> > %>
> >  > varStatus="stat">
> > The scriptlet accesses the getSeasAdjs property, and simply 
> dumps its size
> > as a comment on the page. Then the c:forEach tag tries to 
> access the same
> > property. And fails.
> 
> I believe that's the intended behavior.  JSTL can't "see" 
> scriptlet variables.  In the JSTL 1.0 specification, it's 
> section 2.2 that talks about scoped variables:

This has nothing to do with the scriptlet variables, the scriptlet was there
to demonstrate that the object the JSTL tag is supposed to access is there,
and has the required property. The JSTL should be able to access the request
attribute "SeasAdjBean" and get the property "seasAdjs" by accessing the
method "getSeasAdjs()". The scriptlet proves that the proper object
containing the proper method was in the right place. So why can't the JSTL
tag find it?

--
Tim Slattery
[EMAIL PROTECTED]


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



Re: Can't find property - but it's there

2004-11-15 Thread Wendy Smoak
From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
> <%
> gov.bls.idcf.ppi.struts.SeasAdjBean xx =
> (gov.bls.idcf.ppi.struts.SeasAdjBean)request.getAttribute("SeasAdjBean");
> %>
>  varStatus="stat">
> The scriptlet accesses the getSeasAdjs property, and simply dumps its size
> as a comment on the page. Then the c:forEach tag tries to access the same
> property. And fails.

I believe that's the intended behavior.  JSTL can't "see" scriptlet
variables.  In the JSTL 1.0 specification, it's section 2.2 that talks about
scoped variables:

"Because JSTL supports an expression language, the need for scripting
variables is significantly reduced. This is why all the JSTL tags expose
information only as JSP scoped attributes (no scripting variable exposed)"

Usually one sees people attempting to access something they've created with
 in a scriptlet, and you seem to be doing it the other way around,
but I think you're running into the same issue.

HTH,
-- 
Wendy Smoak


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



Re: Actions being executed twice

2004-11-15 Thread Owen Berry
On Mon, 2004-11-15 at 15:46, Matt Bathje wrote:
> Owen Berry wrote:
> > Hi there,
> > 
> > I'm having a problem where certain actions are being executed twice when
> > a user follows a link. I'm hoping somebody has some input on this, or
> > some suggestions on how I can figure it out.
> > 
> > I'm running Struts 1.1, Tomcat 5.0.28, J2SE 1.4.2_05 and Fedora Core 2.
> > 
> > As far as I can see this only happens on http posts, not gets. I thought
> > I had also narrowed it down to only happening on actions that are
> > straight off the application context (/app/action.do), but I've managed
> > to find some actions that are off the root of the application but do not
> > exhibit this behavior. I'm going directly to Tomcat on port 8080 to
> > avoid any problems with Apache connectors and the like.
> > 
> > The simplest example I can give of this is:
> > 
> >  > type="actions.WelcomeAction">
> > 
> > 
> > 
> > WelcomeAction logs the fact that it was executed and then:
> > 
> > return (mapping.findForward("success"));
> > 
> > When I look in the log file the message gets logged twice. Most of the
> > time the action is being executed by two different threads, but I have
> > seen the same thread handle both executions.
> > 
> > Initially I thought it was possible that some part of my code was
> > calling the execute again, but if I create a stack dump within the
> > action both stack dumps are identical except for time stamp and thread.
> > 
> > I have my own RequestProcessor class that overrides the standard Struts
> > one in order to perform authorization checking, but if I remove it from
> > the Struts config file I still get the same results.
> > 
> > Thus far I haven't been able to replicate the problem using a standard
> > servlet.
> > 
> > Any suggestions on where I can start looking? BTW, I'm not in a position
> > to upgrade to Struts 1.2.x at this stage.
> > 
> 
> 
> Owen - I had this problem right after I upgraded to Tomcat 5. It turned 
> out that our webapp was being deployed twice, once as "/" and once as 
> "/pub". I had to turn off autoDeploy and deployOnStartup in my tomcat 
> configs, and it fixed the problem.
> 
> If you are able to execute some actions that don't exhibit this behavior 
> than it is a long shot, but something to look for anyway I guess.
> 
> Matt
> 

Matt,

Thanks for the suggestion. I actually did have my application deployed
in this fashion at one stage. Just to make sure I had not broken
something when doing that (or undoing it), I made a fresh install of
Tomcat, but no luck on the problem. With your suggestion in mind, I just
did a double check of Tomcat and the default root is still in place.

Owen



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



Re: Actions being executed twice

2004-11-15 Thread Matt Bathje
Owen Berry wrote:
Hi there,
I'm having a problem where certain actions are being executed twice when
a user follows a link. I'm hoping somebody has some input on this, or
some suggestions on how I can figure it out.
I'm running Struts 1.1, Tomcat 5.0.28, J2SE 1.4.2_05 and Fedora Core 2.
As far as I can see this only happens on http posts, not gets. I thought
I had also narrowed it down to only happening on actions that are
straight off the application context (/app/action.do), but I've managed
to find some actions that are off the root of the application but do not
exhibit this behavior. I'm going directly to Tomcat on port 8080 to
avoid any problems with Apache connectors and the like.
The simplest example I can give of this is:



WelcomeAction logs the fact that it was executed and then:
return (mapping.findForward("success"));
When I look in the log file the message gets logged twice. Most of the
time the action is being executed by two different threads, but I have
seen the same thread handle both executions.
Initially I thought it was possible that some part of my code was
calling the execute again, but if I create a stack dump within the
action both stack dumps are identical except for time stamp and thread.
I have my own RequestProcessor class that overrides the standard Struts
one in order to perform authorization checking, but if I remove it from
the Struts config file I still get the same results.
Thus far I haven't been able to replicate the problem using a standard
servlet.
Any suggestions on where I can start looking? BTW, I'm not in a position
to upgrade to Struts 1.2.x at this stage.

Owen - I had this problem right after I upgraded to Tomcat 5. It turned 
out that our webapp was being deployed twice, once as "/" and once as 
"/pub". I had to turn off autoDeploy and deployOnStartup in my tomcat 
configs, and it fixed the problem.

If you are able to execute some actions that don't exhibit this behavior 
than it is a long shot, but something to look for anyway I guess.

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


Re: Java.net exception when using ValidatorPlugIn

2004-11-15 Thread Niall Pemberton
It does work without any connection to the net, my guess is that you still
have something configured wrong...do all your validation.xml files have the
correct DTD at the top - including the validation-rules.xml (theres a new
version that ships with Struts for the 1.1.3 validatior dtd).

When you say Struts 1.2 - is that version 1.2.4 (earlier 1.2 versions had
problems and only 1.2.4 is considered GA quality).

Ar you sure you've deployed the right jar version - when you upgraded to
Struts 1.2.4, did you remember to upgrade the Commons Validator jar for the
new 1.1.3 version?

This thread had the same issue..

http://article.gmane.org/gmane.comp.jakarta.struts.user/96304

Check the 1.2.4 upgrade notes to make sure you haven't missed anything:

http://wiki.apache.org/struts/StrutsUpgradeNotes11to124


Niall

- Original Message - 
From: "Flemming G. Jensen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 15, 2004 8:23 PM
Subject: Re: Java.net exception when using ValidatorPlugIn


>
> On Sun, 14 Nov 2004 14:01:52 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
>
> >> I have a rather annoying problem with the ValidatorPlugIn in a project
> >> using Struts:
> >
> > Can you look at this message (and its thread) and see if you are having
> > the same problem?
> >
> > http://article.gmane.org/gmane.comp.jakarta.struts.user/96302
>
> Thanks for the hit. We have upgrade to Struts 1.2 and use
> validator_1_1_3.dtd now. However, thiz does not solve the problem.
>
> A collegua has point out, that one can force the sax parser not to
> validate externally.
>
> --Flemming
>
> >
> > Joe
> >
>
>
>
> -- 
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> -
> 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]



Actions being executed twice

2004-11-15 Thread Owen Berry
Hi there,

I'm having a problem where certain actions are being executed twice when
a user follows a link. I'm hoping somebody has some input on this, or
some suggestions on how I can figure it out.

I'm running Struts 1.1, Tomcat 5.0.28, J2SE 1.4.2_05 and Fedora Core 2.

As far as I can see this only happens on http posts, not gets. I thought
I had also narrowed it down to only happening on actions that are
straight off the application context (/app/action.do), but I've managed
to find some actions that are off the root of the application but do not
exhibit this behavior. I'm going directly to Tomcat on port 8080 to
avoid any problems with Apache connectors and the like.

The simplest example I can give of this is:





WelcomeAction logs the fact that it was executed and then:

return (mapping.findForward("success"));

When I look in the log file the message gets logged twice. Most of the
time the action is being executed by two different threads, but I have
seen the same thread handle both executions.

Initially I thought it was possible that some part of my code was
calling the execute again, but if I create a stack dump within the
action both stack dumps are identical except for time stamp and thread.

I have my own RequestProcessor class that overrides the standard Struts
one in order to perform authorization checking, but if I remove it from
the Struts config file I still get the same results.

Thus far I haven't been able to replicate the problem using a standard
servlet.

Any suggestions on where I can start looking? BTW, I'm not in a position
to upgrade to Struts 1.2.x at this stage.

Thanks,
Owen Berry



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



Re: Java.net exception when using ValidatorPlugIn

2004-11-15 Thread Flemming G. Jensen
On Sun, 14 Nov 2004 14:01:52 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
I have a rather annoying problem with the ValidatorPlugIn in a project  
using Struts:
Can you look at this message (and its thread) and see if you are having  
the same problem?

http://article.gmane.org/gmane.comp.jakarta.struts.user/96302
Thanks for the hit. We have upgrade to Struts 1.2 and use  
validator_1_1_3.dtd now. However, thiz does not solve the problem.

A collegua has point out, that one can force the sax parser not to  
validate externally.

--Flemming
Joe

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Request Parameters Not Showing up in Struts Form

2004-11-15 Thread Dhruva B. Reddy
I figured out why this is happening.

I use the html:rewrite tag to create the URLs.  The problem is, it
expands the "&" parameter separator into "&", which is not parsed
properly.

Is there any way to get the tag not to do this (again this is Struts
1.1)?  Failing that, is there another easy way to create the URL?

Thanks,
Dhruva

--- Rick Reumann <[EMAIL PROTECTED]> wrote:

> Dhruva B. Reddy wrote the following on 11/12/2004 12:12 PM:
> > I am using Struts 1.1, and I need to get to an Action with a GET
> > request (with parameters in the URL, as opposed to an HTML form). 
> If I
> > dump the query string in the Action, I can see that all the
> parameters
> > are getting through.  However, the Action's form is not populated
> > properly--I only get the first parameter.
> 
> Things to check...
> 
> 1) You sure you have proper set/get methods
> 2) You sure the names match (your request params and the field names
> in 
> the form)
> 3) You are using the correct form bean name for the action mapping 
> defined in your struts-config
> 
> How are you sure the ActionForm's first field is being populated? Do
> you 
> have some debugging in the form to make sure it's being set? Are you 
> testing for the vars being set in the Action that you submit to? You 
> sure the form doesn't have session scope and the field you think is 
> being set isn't being carried over from being set somewhere else in
> the app?
> 
> -- 
> Rick
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



RE: [OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Mathew, Manoj

Dell Dimension 3000 P4 2.8GHz, 512MB, 40GB, 48x CD-RW, 17" LCD Flat Panel, 2 
yr's Basic Warranty, FREE Dell 720 Color Printer  >> for $598 at Dell.com

http://www1.us.dell.com/content/products/features.aspx/outrageous_desktops?c=us&cs=04&l=en&s=bsd

Click on Customize button the one price shows $369 after discounts

Select Monitors to "17 in E173FP Flat Panel Display [add $229"

then keep continue and add to cart for $698 

-$100 Mail-in Rebate 

Final Price  :  $698 - $100 = $598 + Free Shipping  +  Tax




...
Dell Dimension 4700 P4 2.8GHz, 256MB, 40GB, 48x CD-ROM, 17" LCD Flat Panel, 2 
yr's Basic Warranty, FREE Dell 720 Color Printer  >> for $549 at Dell.com
.
Even Better one

Dell Dimension 8400 P4 3.2GHz, 512MB, 40GB, 48x CD-ROM, 19" LCD Flat Panel, 2 
yr's Basic Warranty, FREE Dell 720 Color Printer  >> for $749 at Dell.com




hope you find this helpful
Manoj Mathew



-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 1:19 PM
To: Struts Users Mailing List
Subject: Re: [OT] [Way OT] recommended site to pick up a cheap computer
and flat panel?


www.dell.com
Home & Home Office
Desktops -> Dimension 4700
Customize It

Looks like a bunch of discounts that end Wednesday...

Quoting Rick Reumann <[EMAIL PROTECTED]>:

> Kris Schneider wrote the following on 11/15/2004 1:47 PM:
> > Depending on what cheap means, you might be interested in a brandy-new
> Dell
> > Dimension 4700 with:
> > 
> > P4 530 (3.00GHz, 800 FSB)
> > WinXP Pro
> > 512MB RAM
> > 40GB SATA HD
> > 16X DVD-ROM
> > Integrated Video
> > Integrated 5.1 Channel Audio
> > Integrated 10/100 Ethernet
> > 17" Flat Panel Display
> > (plus other cruft)
> > 
> > for $716
> 
> Wow? Where did you see that on Dell's site? that's 716 with a flat 
> panel? I had looked there yesterday and didn't see that deal. That above 
> deal sounds sweet.
> 
> 
> -- 
> Rick

-- 
Kris Schneider 
D.O.Tech   

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



-Message Disclaimer-

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to [EMAIL PROTECTED] and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act ("E-Sign")
unless a specific statement to the contrary is included in this message.

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



Re: Request.setCharacterEncoding question

2004-11-15 Thread Craig McClanahan
If you're going to do this inside Struts, then processPreprocess(), in
a subclass of RequestProcessor, does indeed seem like a reasonable
place to do so.

Craig


On Mon, 15 Nov 2004 11:43:34 -0800, Randy Eckhoff <[EMAIL PROTECTED]> wrote:
> I was hoping to avoid filters for a bunch of reasons (not going to get
> into them here).
> 
> Does anyone if the below technique of subclassing RequestProcessor is
> the "right" way to go in struts? Or can I do something in the action
> handler before RequestProcessor is called?
> 
> Randy
> 
> 
> 
> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 15, 2004 9:57 AM
> To: Struts Users Mailing List
> Subject: Re: Request.setCharacterEncoding question
> 
> If you've got a copy of Tomcat installed, look at:
> 
> $CATALINA_HOME/webapps/servlets-examples/WEB-INF/classes/filters/SetChar
> acterEncodingFilter.java
> 
> Quoting Randy Eckhoff <[EMAIL PROTECTED]>:
> 
> > With the 2.3 servet API, there is a new method:
> >
> >   request.setCharacterEncoding(String encoding)
> >
> > This lets you tell the server a request's character encoding. It is
> > critical that setCharacterEncoding is called BEFORE any
> > request.getParameter is called (or getReader). Otherwise, you are at
> > the mercy of the appserver for what you get back on the getParameter
> > call. For example, if setCharacterEncoding is not called, you could
> > get a null value back on getParameter("foo").
> >
> > When you post directly to a jsp (MVC 1), the "entry point" for
> > servicing the page is ultimately the page itself. So JspCompilers have
> 
> > request.setCharacterEncoding("whatever"); in the generated java code
> > as one of the first things that get done.
> >
> > But with Struts, the entry point is not the JSP but rather the action.
> 
> > You eventually forward to the view but by that point, you've already
> > processed the request.
> >
> > So my question is this: For struts actions and forms and anything else
> 
> > struts, is there 1 common place where we can override something to
> > call request.setCharacterEncoding(). Is
> > RequestProcessor.processPreprocess
> > the place to do it? I grepped the struts 1.2.4 source code and only
> > found a setCharacterEncoding on upload\MultipartRequestWrapper.java.
> > That method is a no-op. Ideally, we only want to override 1 method
> that
> > will handle the request's encoding for form validation and the action
> > handlers, etc. If processPreprocess is NOT the place to do this,
> > where/how should we do this? The ActionServlet instance perhaps that
> > calls RequestProcessor.process()? The action handler knows what
> encoding
> > to use so somehow, I would have to tell the request processor the
> > "encoding" unless I can override something in the ActionServlet before
> > process() gets called.
> >
> > I did *some* searching through the struts source code and in
> > RequestProcessor, the call to processPopulate does a getParameter:
> > if ((request.getParameter(Constants.CANCEL_PROPERTY) != null)
> ||
> > (request.getParameter(Constants.CANCEL_PROPERTY_X) !=
> > null)) {
> >
> > So calling setCharacterEncoding has to be done before
> > processPopulate().
> >
> > Thanks!
> >
> > Randy
> 
> --
> Kris Schneider 
> D.O.Tech   
> 
> -
> 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]



[Commons Validator] Version 1.1.4 (Alpha) Available for Testing

2004-11-15 Thread Niall Pemberton
Version 1.1.4 (Alpha) of the Commons Validator component is now available
for download and testing here:

http://cvs.apache.org/dist/jakarta/commons/validator/v1.1.4/

This new version has minor changes from Version 1.1.3 and is a maintenance
release that adds a few new methods whose absence was preventing all the
attributes defined in the Validator DTD from being supported. Details of the
changes in this version can be found here:

http://jakarta.apache.org/commons/validator/changes-report.html

The changes in this version are a pre-requisite to fixing some outstanding
bugs in Struts and until there is "GA" quality version of Validator that
Struts can depend on, work on these issues cannot begin. Any help in testing
this version would be appreciated and will help to speed up the availability
of a new "GA" quality release of Validator.

No difference in behaviour between this new 1.1.4 (alpha) version and
Version 1.1.3 should be experienced (well, not until Struts is changed to
take advantage of the fixes). This version of Commons Validator uses the
same DTD as Version 1.1.3 - the only requirement to upgrade is to deploy the
new Commons Validator jar.

Related Bugzilla reports are here:

http://issues.apache.org/bugzilla/show_bug.cgi?id=18169
http://issues.apache.org/bugzilla/show_bug.cgi?id=21760
http://issues.apache.org/bugzilla/show_bug.cgi?id=29452

Niall



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



Re: talking about paradigms

2004-11-15 Thread Dakota Jack
The whole discussion about MVC and web frameworks is important, I
think, because not many cash it out when to do so (cash it out) would
be helpful for discussion.  We might try some way of refering to this
such as WEBMVC.  Anyway, the MVC pattern, taken literally, is
impossible in a web framework.  What is possible is something like the
following where the arrows indicate where there is a coupling:

  View <==> Controller <==> Model

Here the Model and the View are completely decoupled.  But, even this
is almost a total representation of what is really going on.  What is
really going on is that the response object is ultimately HTML and
that the JSP pages are part of creating the response object, so that
JSP pages inherently provide a smart-serverside View.  This all is not
simple to cash out.  I have a sample beginning of cashing this out at
http://131.191.32.112:8080/ , which, if others want to provide
alternative way of viewing this I will show them all.  The most
important thing, I think, is to distinguish between the View data and
the Model data.  That is the distinction, I think, that Craig makes in
JSTL between iteration and sql statements in JSP.

Jack


-- 
"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~

> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > since we started talking about paradigms... how does JSTL and especially
> > EL fit into MVC paradigm?
> >

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



Re: [OT] access Microsoft Access database from remote machine

2004-11-15 Thread fzlists

Access is a file-based database, and really it's just a data file in the end, 
the driver is what services queries and such.  So, as Lee said, you'll need 
something to service the requests in between your client (i.e., your 
application) and the .MDB file.  A remote server process could do this as Lee 
suggests.

Depending on how thing are for you, it might also be possible to set up the DSN 
on the server and point to a network drive on the remote machine.  The 
Microsoft Access driver does support that, so if your environment is such that 
you could do that, there you go.

Otherwise, your going to have to roll your own solution along the lines of what 
Lee suggested.  You could probably write your own primitive JDBC driver to 
interact with the remote application that locally accesses the .MDB, so at 
least from the perspective of your client application it's transparent access.  
Writing JDBC drivers isn't terribly difficult, if you don't need to implement 
all the possible functionality.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, November 15, 2004 1:34 pm, Lee Harrington said:
> Microsoft Access is not a "database server" -- it is not designed to
> be run on a local machine and process sql sent to it.
> 
> However, you could set up tomcat on the same machine as the access
> databaseset a local connection from that tomcat...and call a java
> procedure on the remote tomcat, which will locally access the Access
> database...and return data to you.
> 
> Lee
> 
> 
> On Mon, 15 Nov 2004 10:25:46 -0800 (PST), Ashish Kulkarni
> <[EMAIL PROTECTED]> wrote:
>> Hi
>> Has any one accessed Microsoft access database from
>> remote machine, currently if i have to use JDBC-ODBC
>> brige i have to create a system DSN and then use this
>> to access data,
>> but if i dont have the database on my local machine,
>> or any drive mapped to my machine how do i access it
>> using JDBC
>>
>> Ashish
>>
>> __
>> Do you Yahoo!?
>> Check out the new Yahoo! Front Page.
>> www.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: Request.setCharacterEncoding question

2004-11-15 Thread Randy Eckhoff
I was hoping to avoid filters for a bunch of reasons (not going to get
into them here).

Does anyone if the below technique of subclassing RequestProcessor is
the "right" way to go in struts? Or can I do something in the action
handler before RequestProcessor is called?

Randy

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 9:57 AM
To: Struts Users Mailing List
Subject: Re: Request.setCharacterEncoding question


If you've got a copy of Tomcat installed, look at:

$CATALINA_HOME/webapps/servlets-examples/WEB-INF/classes/filters/SetChar
acterEncodingFilter.java

Quoting Randy Eckhoff <[EMAIL PROTECTED]>:

> With the 2.3 servet API, there is a new method:
> 
>   request.setCharacterEncoding(String encoding)
> 
> This lets you tell the server a request's character encoding. It is 
> critical that setCharacterEncoding is called BEFORE any 
> request.getParameter is called (or getReader). Otherwise, you are at 
> the mercy of the appserver for what you get back on the getParameter 
> call. For example, if setCharacterEncoding is not called, you could 
> get a null value back on getParameter("foo").
> 
> When you post directly to a jsp (MVC 1), the "entry point" for 
> servicing the page is ultimately the page itself. So JspCompilers have

> request.setCharacterEncoding("whatever"); in the generated java code 
> as one of the first things that get done.
> 
> But with Struts, the entry point is not the JSP but rather the action.

> You eventually forward to the view but by that point, you've already 
> processed the request.
> 
> So my question is this: For struts actions and forms and anything else

> struts, is there 1 common place where we can override something to 
> call request.setCharacterEncoding(). Is 
> RequestProcessor.processPreprocess
> the place to do it? I grepped the struts 1.2.4 source code and only
> found a setCharacterEncoding on upload\MultipartRequestWrapper.java.
> That method is a no-op. Ideally, we only want to override 1 method
that
> will handle the request's encoding for form validation and the action
> handlers, etc. If processPreprocess is NOT the place to do this,
> where/how should we do this? The ActionServlet instance perhaps that
> calls RequestProcessor.process()? The action handler knows what
encoding
> to use so somehow, I would have to tell the request processor the
> "encoding" unless I can override something in the ActionServlet before
> process() gets called.
> 
> I did *some* searching through the struts source code and in 
> RequestProcessor, the call to processPopulate does a getParameter:
> if ((request.getParameter(Constants.CANCEL_PROPERTY) != null)
||
> (request.getParameter(Constants.CANCEL_PROPERTY_X) != 
> null)) {
> 
> So calling setCharacterEncoding has to be done before 
> processPopulate().
> 
> Thanks!
> 
> Randy

-- 
Kris Schneider 
D.O.Tech   

-
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: [OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Kris Schneider
www.dell.com
Home & Home Office
Desktops -> Dimension 4700
Customize It

Looks like a bunch of discounts that end Wednesday...

Quoting Rick Reumann <[EMAIL PROTECTED]>:

> Kris Schneider wrote the following on 11/15/2004 1:47 PM:
> > Depending on what cheap means, you might be interested in a brandy-new
> Dell
> > Dimension 4700 with:
> > 
> > P4 530 (3.00GHz, 800 FSB)
> > WinXP Pro
> > 512MB RAM
> > 40GB SATA HD
> > 16X DVD-ROM
> > Integrated Video
> > Integrated 5.1 Channel Audio
> > Integrated 10/100 Ethernet
> > 17" Flat Panel Display
> > (plus other cruft)
> > 
> > for $716
> 
> Wow? Where did you see that on Dell's site? that's 716 with a flat 
> panel? I had looked there yesterday and didn't see that deal. That above 
> deal sounds sweet.
> 
> 
> -- 
> Rick

-- 
Kris Schneider 
D.O.Tech   

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



Can't find property - but it's there

2004-11-15 Thread Slattery, Tim - BLS
I'm still struggling with this problem. The latest twist is that I've put
some debug code into the JSP page. The relevant code looks like this:

<%
gov.bls.idcf.ppi.struts.SeasAdjBean xx =
(gov.bls.idcf.ppi.struts.SeasAdjBean)request.getAttribute("SeasAdjBean");

if (xx == null)
{
%>

<%
}
else
{
ArrayList qq = xx.getSeasAdjs();
%>

<%
}
%>


The scriptlet accesses the getSeasAdjs property, and simply dumps its size
as a comment on the page. Then the c:forEach tag tries to access the same
property. And fails. The scriptlet generates this line in the page source:



And that's the last line generated. The wl-domain.log (Weblogic system log)
shows this:

javax.servlet.jsp.JspException: An error occurred while evaluating custom
action attribute "items" with value "${SeasAdjBean.seasAdjs}": Unable to
find a value for "seasAdjs" in object of class
"gov.bls.idcf.ppi.struts.SeasAdjBean" using operator "." (null)

Which does not seem possible given that the "12 elements" line appeared.
Using  gets the same result. What gives?




--
Tim Slattery
[EMAIL PROTECTED]


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



Re: [OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Rick Reumann
Kris Schneider wrote the following on 11/15/2004 1:47 PM:
Depending on what cheap means, you might be interested in a brandy-new Dell
Dimension 4700 with:
P4 530 (3.00GHz, 800 FSB)
WinXP Pro
512MB RAM
40GB SATA HD
16X DVD-ROM
Integrated Video
Integrated 5.1 Channel Audio
Integrated 10/100 Ethernet
17" Flat Panel Display
(plus other cruft)
for $716
Wow? Where did you see that on Dell's site? that's 716 with a flat 
panel? I had looked there yesterday and didn't see that deal. That above 
deal sounds sweet.

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


RE: SEVERE: reflection:

2004-11-15 Thread Charles . Gouin-Vallerand
It's look like you don't have the method validateRequired in your files.
Check if you got the right validator-rules.xml file and the good jar file.
And like Mr. Rabago said, for the validate file, you need to put all yours
validation about a field in the same form "scope".

 Charles Gouin-Vallerand

-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: November 15, 2004 12:51 PM
To: Struts Users Mailing List
Subject: Re: SEVERE: reflection:


Make sure you're using the update jar files.  It looks like your jar
files could be getting mixed up.  Make sure your WAR contains the jar
files that were included in the struts version you're using.


On Mon, 15 Nov 2004 16:35:18 -, John McCosker
<[EMAIL PROTECTED]> wrote:
> hi,
> 
> I changed my validation.xml, rebuilt the project, deployed to tomcat,
> deleted cache, restarted server,
> unfortunately I get the same stack trace error. My Bean still gets called
> which connects to the dsn
> for actual existence of username and password, but it was doing that
before
> anyway.
> 
> 
> 
> 
>  Validator Rules Configuration 1.0.1//EN"
> "http://jakarta.apache.org/commons/dtds/validator_1_0_1.dtd";>
> 
>
>
>
>
>
>
> depends="required,minlength">
>
> name="minlength" resource="false"/>
>
>minlength
>5
>
> 
> 
> name="maxlength" resource="false"/>
>
>maxlength
>8
>
>
>
>
> 
> 
> 
> Stack Trace
> 
> 
> 
> 
> SEVERE: reflection:
> org.apache.struts.validator.FieldChecks.validateRequired(jav
> a.lang.Object, org.apache.commons.validator.ValidatorAction,
> org.apache.commons.
> validator.Field, org.apache.struts.action.ActionMessages,
> javax.servlet.http.Htt
> pServletRequest)
> java.lang.NoSuchMethodException:
> org.apache.struts.validator.FieldChecks.validat
> eRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction,
> org.ap
> ache.commons.validator.Field, org.apache.struts.action.ActionMessages,
> javax.ser
> vlet.http.HttpServletRequest)
>at java.lang.Class.getMethod(Class.java:986)
>at
> org.apache.commons.validator.Validator.validateFieldForRule(Validator
> .java:401)
>at
> org.apache.commons.validator.Validator.validateField(Validator.java:5
> 44)
>at
> org.apache.commons.validator.Validator.validate(Validator.java:582)
>at
> org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java
> :152)
>at
> org.apache.struts.action.RequestProcessor.processValidate(RequestProc
> essor.java:942)
>at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:255)
>at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
>at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:247)
>at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:193)
>at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:256)
>at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:191)
>at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2416)
>at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:180)
>at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
> rValve.java:171)
>

Re: Use JSTL with html:multibox tag

2004-11-15 Thread Rick Reumann
andy wix wrote the following on 11/15/2004 12:58 PM:
Hi,
Thanks for the input Robert, but the array will be shorter than the 
arraylist whenever a checkbox is not selected.

I've had a look at Rick Reumann's Struttin with Struts lesson 3 which 
does something similar and now have:


 
   
   
   
 

 

This is a step in the right direction but still doesn't work (the 
checkboxes aren't checked when viewing the page even though they should 
be set).  The service.status field in the service class is a byte - does 
this have to be a String?
What does the source code of the resulting HTML look like? I probably 
shouldn't have used status a property of service since it looks 
confusing since I'm using "status" to represent the index status also 
for the varStatus attribute. I 'should' change the service property to 
something other than status.

Or you positive you have your Collection of "selectedServices" being set 
before you get to the JSP?

I'm also not sure about a byte comparison either.
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Kris Schneider
Depending on what cheap means, you might be interested in a brandy-new Dell
Dimension 4700 with:

P4 530 (3.00GHz, 800 FSB)
WinXP Pro
512MB RAM
40GB SATA HD
16X DVD-ROM
Integrated Video
Integrated 5.1 Channel Audio
Integrated 10/100 Ethernet
17" Flat Panel Display
(plus other cruft)

for $716

Another Dell option is to try the "Dell Outlet" (go to the "Home & Home Office"
area) for refurbished/rebuilt systems. It looks like they've got 4700s with
512MB starting at ~$520 (no monitor, I believe).

Quoting Rick Reumann <[EMAIL PROTECTED]>:

> Vic wrote the following on 11/15/2004 1:01 PM:
> 
> > Don't you love her? :-)
> 
> Yea, that's why I'm also suckered into getting her a new Canon digital 
> camera and a good photo quality printer (although each credit card 
> purchase dampens the 'love' I feel a bit:).
> 
> -- 
> Rick

-- 
Kris Schneider 
D.O.Tech   

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



RE: [OT] access Microsoft Access database from remote machine

2004-11-15 Thread Daniel Perry
Or, set up filesharing and access then set up a system dsn on the machine
you want to use it on.  Can get a bit messy though with concurrent access :)

Daniel.

> -Original Message-
> From: Lee Harrington [mailto:[EMAIL PROTECTED]
> Sent: 15 November 2004 18:34
> To: Struts Users Mailing List
> Subject: Re: [OT] access Microsoft Access database from remote machine
>
>
> Microsoft Access is not a "database server" -- it is not designed to
> be run on a local machine and process sql sent to it.
>
> However, you could set up tomcat on the same machine as the access
> databaseset a local connection from that tomcat...and call a java
> procedure on the remote tomcat, which will locally access the Access
> database...and return data to you.
>
> Lee
>
>
> On Mon, 15 Nov 2004 10:25:46 -0800 (PST), Ashish Kulkarni
> <[EMAIL PROTECTED]> wrote:
> > Hi
> > Has any one accessed Microsoft access database from
> > remote machine, currently if i have to use JDBC-ODBC
> > brige i have to create a system DSN and then use this
> > to access data,
> > but if i dont have the database on my local machine,
> > or any drive mapped to my machine how do i access it
> > using JDBC
> >
> > Ashish
> >
> > __
> > Do you Yahoo!?
> > Check out the new Yahoo! Front Page.
> > www.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: Use JSTL with html:multibox tag

2004-11-15 Thread Robert Taylor
Yep. Scratch the indexed properties comment.
On each iteration, Struts will iterate over the
selectedServices comparing the selectedServices value
to the service.status value. If it finds a match, then it
will render the checkbox as checked. So, the fact that the
data structures are not the same size isn't a factor.

In Rick's example, he compares String to String. You may be 
able to compare int to String or boolean to String because I think BeanUtils 
performs
simple conversions for you, but byte to String... I don't know.


robert

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 15, 2004 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Use JSTL with html:multibox tag
> 
> 
> Hi,
> 
> Thanks for the input Robert, but the array will be shorter than the 
> arraylist whenever a checkbox is not selected.
> 
> I've had a look at Rick Reumann's Struttin with Struts lesson 3 which does 
> something similar and now have:
> 
> 
>   
> 
>   value="${service.status}"/>
>   
> 
>   
> 
> 
> This is a step in the right direction but still doesn't work (the checkboxes 
> aren't checked when viewing the page even though they should be set).  The 
> service.status field in the service class is a byte - does this have to be a 
> String?
> 
> Cheers
> Andy
> 
> _
> It's fast, it's easy and it's free. Get MSN Messenger today! 
> http://www.msn.co.uk/messenger
> 
> 
> -
> 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: [OT] access Microsoft Access database from remote machine

2004-11-15 Thread Lee Harrington
Microsoft Access is not a "database server" -- it is not designed to
be run on a local machine and process sql sent to it.

However, you could set up tomcat on the same machine as the access
databaseset a local connection from that tomcat...and call a java
procedure on the remote tomcat, which will locally access the Access
database...and return data to you.

Lee


On Mon, 15 Nov 2004 10:25:46 -0800 (PST), Ashish Kulkarni
<[EMAIL PROTECTED]> wrote:
> Hi
> Has any one accessed Microsoft access database from
> remote machine, currently if i have to use JDBC-ODBC
> brige i have to create a system DSN and then use this
> to access data,
> but if i dont have the database on my local machine,
> or any drive mapped to my machine how do i access it
> using JDBC
> 
> Ashish
> 
> __
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.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: [OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Rick Reumann
Vic wrote the following on 11/15/2004 1:01 PM:
Don't you love her? :-)
Yea, that's why I'm also suckered into getting her a new Canon digital 
camera and a good photo quality printer (although each credit card 
purchase dampens the 'love' I feel a bit:).

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


[OT] access Microsoft Access database from remote machine

2004-11-15 Thread Ashish Kulkarni
Hi
Has any one accessed Microsoft access database from
remote machine, currently if i have to use JDBC-ODBC
brige i have to create a system DSN and then use this
to access data,
but if i dont have the database on my local machine,
or any drive mapped to my machine how do i access it
using JDBC

Ashish



__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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



Re: [OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Vic
Don't you love her? :-)
Of course, you can get anything on ebay, find somone seling a pc in your 
city and drive over to check it out before you bid.
.V

Rick Reumann wrote:
Vic wrote the following on 11/15/2004 12:05 PM:
http://tinyurl.com/5soa3

ha ha good one vic:) I mentioned "cheap" or at least relatively so:) 
Macs, although nice, are anything but cheap.


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


RE: Use JSTL with html:multibox tag

2004-11-15 Thread andy wix
Hi,
Thanks for the input Robert, but the array will be shorter than the 
arraylist whenever a checkbox is not selected.

I've had a look at Rick Reumann's Struttin with Struts lesson 3 which does 
something similar and now have:


 
   
   
   
 

 

This is a step in the right direction but still doesn't work (the checkboxes 
aren't checked when viewing the page even though they should be set).  The 
service.status field in the service class is a byte - does this have to be a 
String?

Cheers
Andy
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

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


Re: [OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Rick Reumann
Vic wrote the following on 11/15/2004 12:05 PM:
http://tinyurl.com/5soa3
ha ha good one vic:) I mentioned "cheap" or at least relatively so:) 
Macs, although nice, are anything but cheap.

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


Re: SEVERE: reflection:

2004-11-15 Thread Hubert Rabago
Make sure you're using the update jar files.  It looks like your jar
files could be getting mixed up.  Make sure your WAR contains the jar
files that were included in the struts version you're using.


On Mon, 15 Nov 2004 16:35:18 -, John McCosker
<[EMAIL PROTECTED]> wrote:
> hi,
> 
> I changed my validation.xml, rebuilt the project, deployed to tomcat,
> deleted cache, restarted server,
> unfortunately I get the same stack trace error. My Bean still gets called
> which connects to the dsn
> for actual existence of username and password, but it was doing that before
> anyway.
> 
> 
> 
> 
>  Validator Rules Configuration 1.0.1//EN"
> "http://jakarta.apache.org/commons/dtds/validator_1_0_1.dtd";>
> 
>
>
>
>
>
>
> depends="required,minlength">
>
> name="minlength" resource="false"/>
>
>minlength
>5
>
> 
> 
> name="maxlength" resource="false"/>
>
>maxlength
>8
>
>
>
>
> 
> 
> 
> Stack Trace
> 
> 
> 
> 
> SEVERE: reflection:
> org.apache.struts.validator.FieldChecks.validateRequired(jav
> a.lang.Object, org.apache.commons.validator.ValidatorAction,
> org.apache.commons.
> validator.Field, org.apache.struts.action.ActionMessages,
> javax.servlet.http.Htt
> pServletRequest)
> java.lang.NoSuchMethodException:
> org.apache.struts.validator.FieldChecks.validat
> eRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction,
> org.ap
> ache.commons.validator.Field, org.apache.struts.action.ActionMessages,
> javax.ser
> vlet.http.HttpServletRequest)
>at java.lang.Class.getMethod(Class.java:986)
>at
> org.apache.commons.validator.Validator.validateFieldForRule(Validator
> .java:401)
>at
> org.apache.commons.validator.Validator.validateField(Validator.java:5
> 44)
>at
> org.apache.commons.validator.Validator.validate(Validator.java:582)
>at
> org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java
> :152)
>at
> org.apache.struts.action.RequestProcessor.processValidate(RequestProc
> essor.java:942)
>at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:255)
>at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
>at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:247)
>at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:193)
>at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:256)
>at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:191)
>at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2416)
>at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:180)
>at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
> rValve.java:171)
>at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:172)
>at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>at
> org.apache.catalina.core.ContainerBase.invoke(Conta

AW: using multiple action forms in one action. Best practice?

2004-11-15 Thread Martin Kindler
Hi Bill,

thanks for the advice.

See below for comments to your mail:

> -Ursprüngliche Nachricht-
> Von: Bill Keese [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 15. November 2004 01:21
> An: Struts Users Mailing List
> Betreff: Re: using multiple action forms in one action. Best practice?
> 
> 
> Martin Kindler wrote:
> 
> >in my application I have a rather complex object to deal 
> with. I have 
> >split the process in several jsps (JSP1, ..., JSPn) using different 
> >ActionForms (AF1, ..., AFm)...
> >
> >2. merge all ActionForms to one big mega ActionForm
> >Pro: works
> >Con: no modularization; if I need to use one (partial) ActionForm in 
> >another place, I have to take everything or replicate the needed part
> >  
> >
> You are talking about a wizard, right?  IE, one logical form 
> split over 
> several JSP pages.  
Technically speaking one could probably call it a wizard, but conceptually I
don't see it like one.
I would like to have several modules ("forms") for getting input from a
user, which should play together, possibly in various contexts.
I am dealing with geographical objects, so I have some base information (id,
textual description, region, etc.).
Then I want to add several "access points" to an object, which are
effectively addresses with a name. These addresses come from a data base
with thousands of addresses while an object can just have a few access
points.
So I have a JSP (say JSP1) with a form (say AF1) to acquire the base
information. From this JSP I want to access a (hopefully) generic module to
get the access points. This "module" has to get some information (e. g. a
region to prefilter the addresses or access points already existing) from
JSP1. The address module (in the view another JSP , JSP2 using another
action form AF2) accesses the data base, presents the addresses to the user
and lets him select the right ones. On finish the selected addresses are
transferred to the object and presented in JSP1 again where the user can end
the editing process causing the objects to be saved.
This address module might be useful in other places of my application where
I need to select some addresses.
Also I need a number of supporting information (e.g. the filter
specification) which is not needed to be known by JSP1. 
Therefore I do not like putting all the information into one big ActionForm.

I could take the necessary information from AF1 to some POJO (or bean) on
model level (or controller level) and transfer it to AF2. This is probably
the "cleanest" solution but means to split each action into two, just to do
the data transfer.

My current solution simply accesses both action forms, AF1 and AF2 (getting
the one not available as the "form"-parameter by 
MyForm mf = (MyForm)session.getAttribute("AFi");
but my feeling is that this is not really good style.


>In that case, I think you should just use one 
> ActionForm with the data from all the JSP pages.  I think the manual 
> says something to the same effect.   You can either:
> 
>   1. make the ActionForm a session level form (see 
> http://www.ajug.org/archive/ajug-members/10203/msg00066.html)
>   2. (or) make the ActionForm request level, in which case 
> all your JSP 
> pages must have hiden fields representing the data that has 
> already been 
> input on the previous JSP pages.
> 
> I'm not sure how to do the forwarding from one JSP page to 
> the next page 
> (preserving the contents of the partially filled ActionForm).  Do you 
> need to write a dummy Action for each JSP page,  or can 
> you/should you 
> forward directly from one JSP page to the next one, like 
> this?  Try it 
> out and let me know, if you can.
> 
>  path="/wizardPage1"
> name="wizardForm"
> forward="/wizardPage2.jsp"
> 
>  path="/wizardPage2"
> name="wizardForm"
> forward="/wizardPage3.jsp"
> 

I tested it. It works, but I can't use it, as I have to do a bit more
complex things (e. g. data base access) during the switch to the second
form.


> 
> Bill
> 
> -
> 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: [OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Vic
http://tinyurl.com/5soa3
.V
Rick Reumann wrote:
I need to pick up a computer for my wife. It doesn't need to be anything 
all that awesome. 2.6-2.8 ghz, 512MB ram is fine. I haven't shopped for 
PCs in a while. Was thinking a refurbished one on tigerdirect would be a 
good bet, but if you guys can recommend some other sites I'd appreciate 
it. My wife also insists on a 17 or 19'' flat panel (women:), so if you 
can throw any sites for deals on these you know of, it'd be much 
appreciated.

Offlist is fine if you want to keep down traffic. Thanks and sorry for 
the lazy OT post, but I need to order this stuff real soon.


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


Re: [OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Guillaume Cottenceau
Rick Reumann  writes:

> I need to pick up a computer for my wife. It doesn't need to be
> anything all that awesome. 2.6-2.8 ghz, 512MB ram is fine. I haven't
> shopped for PCs in a while. Was thinking a refurbished one on
> tigerdirect would be a good bet, but if you guys can recommend some
> other sites I'd appreciate it. My wife also insists on a 17 or 19''
> flat panel (women:), so if you can throw any sites for deals on these
> you know of, it'd be much appreciated.
> 
> Offlist is fine if you want to keep down traffic. Thanks and sorry for
> the lazy OT post, but I need to order this stuff real soon.

You want us to select a site which runs Struts?

-- 
Guillaume Cottenceau

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



[OT] [Way OT] recommended site to pick up a cheap computer and flat panel?

2004-11-15 Thread Rick Reumann
I need to pick up a computer for my wife. It doesn't need to be anything 
all that awesome. 2.6-2.8 ghz, 512MB ram is fine. I haven't shopped for 
PCs in a while. Was thinking a refurbished one on tigerdirect would be a 
good bet, but if you guys can recommend some other sites I'd appreciate 
it. My wife also insists on a 17 or 19'' flat panel (women:), so if you 
can throw any sites for deals on these you know of, it'd be much 
appreciated.

Offlist is fine if you want to keep down traffic. Thanks and sorry for 
the lazy OT post, but I need to order this stuff real soon.

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


Re: OT: hosting recommendations?

2004-11-15 Thread Dakota Jack
lunarpages.com $9.95/month

Jack


On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuck
<[EMAIL PROTECTED]> wrote:
> hihi all,
> 
> can anyone recommend hosters that are Tomcat/Java friendly and offer
> private JVMs for cheap monthly cost?  (cheap to me is $0 - $20/month
> range)
> 
> i went to servlets.com and visited many of the hosters on their list
> but most of them seem to still have the legacy offerings that are
> stingy on space and transfer allowances.  it was either that or they
> charge a lot ($50+/month) for private JVMs.
> 
> thanks in advance,
> woodchuck
> 
> __
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.yahoo.com
> 
> -
> 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: SEVERE: reflection:

2004-11-15 Thread John McCosker
hi,

I changed my validation.xml, rebuilt the project, deployed to tomcat,
deleted cache, restarted server,
unfortunately I get the same stack trace error. My Bean still gets called
which connects to the dsn
for actual existence of username and password, but it was doing that before
anyway.


http://jakarta.apache.org/commons/dtds/validator_1_0_1.dtd";>











minlength
5



maxlength
8







Stack Trace


SEVERE: reflection:
org.apache.struts.validator.FieldChecks.validateRequired(jav
a.lang.Object, org.apache.commons.validator.ValidatorAction,
org.apache.commons.
validator.Field, org.apache.struts.action.ActionMessages,
javax.servlet.http.Htt
pServletRequest)
java.lang.NoSuchMethodException:
org.apache.struts.validator.FieldChecks.validat
eRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction,
org.ap
ache.commons.validator.Field, org.apache.struts.action.ActionMessages,
javax.ser
vlet.http.HttpServletRequest)
at java.lang.Class.getMethod(Class.java:986)
at
org.apache.commons.validator.Validator.validateFieldForRule(Validator
.java:401)
at
org.apache.commons.validator.Validator.validateField(Validator.java:5
44)
at
org.apache.commons.validator.Validator.validate(Validator.java:582)
at
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java
:152)
at
org.apache.struts.action.RequestProcessor.processValidate(RequestProc
essor.java:942)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:255)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:601)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConn

Re: SEVERE: reflection:

2004-11-15 Thread Hubert Rabago
Well, maybe the obvious solution will work.  See inline:

On Mon, 15 Nov 2004 15:46:35 -, John McCosker
<[EMAIL PROTECTED]> wrote:
> 
> 
>  Validator Rules Configuration 1.0.1//EN"
> "http://jakarta.apache.org/commons/dtds/validator_1_0_1.dtd";>
> 
>
>
>
>
>
>
> depends="required.minlength">

maybe you mean: depends="required,minlength" 

>
> name="minlength" resource="false"/>
>
>minlength
>5
>
>
>

I don't think you should/can include multiple validation rule nodes
for the same property; just declare it once and put the validation
rules there.

>
> name="maxlength" resource="false"/>
>
>maxlength
>8
>
>
>
>
> 

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



SEVERE: reflection:

2004-11-15 Thread John McCosker
Hi,

new to struts,
I am slowly getting there, beginning to really understand the architecture
and loving it,
except errors are slowing me down a little,

I am looking at plugin's at the moment, I have a class called LoginForm and
it extends ValidatorForm, its very basic,
My LoginForm class originally extended ActionForm and I had a public method
ActionErrors with my own custom validation in there.
That worked fine, but now I'm trying to validate with the ValidatorForm
plugin.

when I login I get this huge stackTrace,

Iam using tomcat 4.1.27 and Jakarta Struts 1.2.4,

any help would be greatly appreciated.

I am really sorry for inluding so much, I have included stack trace,
LoginClass, struts-config.xml and validation.xml

SEVERE: reflection:
org.apache.struts.validator.FieldChecks.validateRequired(jav
a.lang.Object, org.apache.commons.validator.ValidatorAction,
org.apache.commons.
validator.Field, org.apache.struts.action.ActionMessages,
javax.servlet.http.Htt
pServletRequest)
java.lang.NoSuchMethodException:
org.apache.struts.validator.FieldChecks.validat
eRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction,
org.ap
ache.commons.validator.Field, org.apache.struts.action.ActionMessages,
javax.ser
vlet.http.HttpServletRequest)
at java.lang.Class.getMethod(Class.java:986)
at
org.apache.commons.validator.Validator.validateFieldForRule(Validator
.java:401)
at
org.apache.commons.validator.Validator.validateField(Validator.java:5
44)
at
org.apache.commons.validator.Validator.validate(Validator.java:582)
at
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java
:152)
at
org.apache.struts.action.RequestProcessor.processValidate(RequestProc
essor.java:942)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:255)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:601)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:619)
at java.lang.Thread.run(Thread.java:534)
15-Nov-2004 14:51:57 org.apache.commons.validator

Re: Can't get modules to work in struts

2004-11-15 Thread Bill Siggelkow
Well, what exactly are you trying to do? I assumed you wanted to create 
something like a link that takes you to the admin module. You cannot 
just specify the module name for the path of a global forward .. you 
have to specify a valid URL; for modules, you need to make sure that 
control goes through Struts so you the path needs to be an action.

marc wrote:
I can't follow that, can you explain that a bit more. Thank you.
Bill Siggelkow wrote:
You need the path of the global forward to be an action in your /admin 
module. Something like:

 
-Bill Siggelkow
marc wrote:
I'm trying to get modules to work in struts but with no luck.
First I made a standard struts app. And It works fin, but now I what 
it to be a module.

So I made a default module, then the plan is that this module will 
point  at my first working module.

I get the default module to work, but can not get i't to forward to 
the working module, just get at invalid path.

You can see the web.xml and struts-default.xml(default module).
Will not post the working app, because it's to long.

WEB.XML
 
action

org.apache.struts.action.ActionServlet

  config
  /WEB-INF/config/struts-default.xml


  config/admin
  /WEB-INF/config/struts-admin.xml


  debug
  2


  detail
  2

2
  


  
action
/
  
* 

STRUTS-DEFAULT.XML




 path="/admin"
 redirect="true"
 contextRelative="true"/>



forward="/jsp/home.jsp"/>


* 


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


Re: Can't get modules to work in struts

2004-11-15 Thread marc
I can't follow that, can you explain that a bit more. Thank you.
Bill Siggelkow wrote:
You need the path of the global forward to be an action in your /admin 
module. Something like:

 
-Bill Siggelkow
marc wrote:
I'm trying to get modules to work in struts but with no luck.
First I made a standard struts app. And It works fin, but now I what 
it to be a module.

So I made a default module, then the plan is that this module will 
point  at my first working module.

I get the default module to work, but can not get i't to forward to 
the working module, just get at invalid path.

You can see the web.xml and struts-default.xml(default module).
Will not post the working app, because it's to long.

WEB.XML
 
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/config/struts-default.xml


  config/admin
  /WEB-INF/config/struts-admin.xml


  debug
  2


  detail
  2

2
  

  
action
/
  
*
STRUTS-DEFAULT.XML









*

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


Re: Can't get modules to work in struts

2004-11-15 Thread Bill Siggelkow
You need the path of the global forward to be an action in your /admin 
module. Something like:

 
-Bill Siggelkow
marc wrote:
I'm trying to get modules to work in struts but with no luck.
First I made a standard struts app. And It works fin, but now I what it 
to be a module.

So I made a default module, then the plan is that this module will point 
 at my first working module.

I get the default module to work, but can not get i't to forward to the 
working module, just get at invalid path.

You can see the web.xml and struts-default.xml(default module).
Will not post the working app, because it's to long.

WEB.XML
 
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/config/struts-default.xml


  config/admin
  /WEB-INF/config/struts-admin.xml


  debug
  2


  detail
  2

2
  

  
action
/
  
*
STRUTS-DEFAULT.XML









*

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


Re: Request.setCharacterEncoding question

2004-11-15 Thread Kris Schneider
If you've got a copy of Tomcat installed, look at:

$CATALINA_HOME/webapps/servlets-examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java

Quoting Randy Eckhoff <[EMAIL PROTECTED]>:

> With the 2.3 servet API, there is a new method:
> 
>   request.setCharacterEncoding(String encoding)
> 
> This lets you tell the server a request's character encoding. It is
> critical that setCharacterEncoding is called BEFORE any
> request.getParameter is called (or getReader). Otherwise, you are at the
> mercy of the appserver for what you get back on the getParameter call.
> For example, if setCharacterEncoding is not called, you could get a null
> value back on getParameter("foo"). 
> 
> When you post directly to a jsp (MVC 1), the "entry point" for servicing
> the page is ultimately the page itself. So JspCompilers have
> request.setCharacterEncoding("whatever"); in the generated java code as
> one of the first things that get done.
> 
> But with Struts, the entry point is not the JSP but rather the action.
> You eventually forward to the view but by that point, you've already
> processed the request.
> 
> So my question is this: For struts actions and forms and anything else
> struts, is there 1 common place where we can override something to call
> request.setCharacterEncoding(). Is RequestProcessor.processPreprocess
> the place to do it? I grepped the struts 1.2.4 source code and only
> found a setCharacterEncoding on upload\MultipartRequestWrapper.java.
> That method is a no-op. Ideally, we only want to override 1 method that
> will handle the request's encoding for form validation and the action
> handlers, etc. If processPreprocess is NOT the place to do this,
> where/how should we do this? The ActionServlet instance perhaps that
> calls RequestProcessor.process()? The action handler knows what encoding
> to use so somehow, I would have to tell the request processor the
> "encoding" unless I can override something in the ActionServlet before
> process() gets called.
> 
> I did *some* searching through the struts source code and in
> RequestProcessor, the call to processPopulate does a getParameter:
> if ((request.getParameter(Constants.CANCEL_PROPERTY) != null) ||
> (request.getParameter(Constants.CANCEL_PROPERTY_X) != null))
> {
> 
> So calling setCharacterEncoding has to be done before processPopulate().
> 
> Thanks!
> 
> Randy

-- 
Kris Schneider 
D.O.Tech   

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



RE: Use JSTL with html:multibox tag

2004-11-15 Thread Robert Taylor
Andy, 

try this:

>
   
 
 
   


If the selectedServices is an array of Strings in your form, 
and service.status == selectedServices[n], then the the checkbox
should be checked or atleast the tag should render the appropriate
HTML such that the checkbox should be checked.

I believe the problem is that the selectedServices is an indexed property.
If your container support JSP2.0 spec, then the above should work. If not,
then you will have to use the equivalent Struts-EL tag.

I think you see most examples using  because it supports
and "indexed hook" into indexed tags by setting its indexed attribute to true.
But the whole indexed property thing is hard to get your head around. 

This link may give you some more insight.
http://struts.apache.org/faqs/indexedprops.html

hth

robert

BTW, the above code has not been tested.
If your selectedServices array is not the same length as your services 
ArrayList,
then things are going to get ugly.




> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 15, 2004 9:34 AM
> To: [EMAIL PROTECTED]
> Subject: Use JSTL with html:multibox tag
> 
> 
> Hi,
> 
> All the examples I've seen of using the above tag use the logic:iterate tag 
> to output to the page.
> Does anyone have an example of how to this with JSTL?
> 
> My attempt is:
> 
> 
>   
> 
>  value="${service.status}"property="selectedServices">
>   
> 
> 
> where services is an ArrayList in session with all available services and 
> selectedServices is the array of Strings in my form class.
> 
> The above displays all the values in services correctly but doesn't exhibit 
> any interaction between the checkboxes on the page and the selectedServices 
> array.
> 
> Thanks,
> Andy
> 
> _
> Get ready for school! Find articles, homework help and more in the Back to 
> School Guide! http://special.msn.com/network/04backtoschool.armx
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Request.setCharacterEncoding question

2004-11-15 Thread Randy Eckhoff
With the 2.3 servet API, there is a new method:

request.setCharacterEncoding(String encoding)

This lets you tell the server a request's character encoding. It is
critical that setCharacterEncoding is called BEFORE any
request.getParameter is called (or getReader). Otherwise, you are at the
mercy of the appserver for what you get back on the getParameter call.
For example, if setCharacterEncoding is not called, you could get a null
value back on getParameter("foo"). 

When you post directly to a jsp (MVC 1), the "entry point" for servicing
the page is ultimately the page itself. So JspCompilers have
request.setCharacterEncoding("whatever"); in the generated java code as
one of the first things that get done.

But with Struts, the entry point is not the JSP but rather the action.
You eventually forward to the view but by that point, you've already
processed the request.

So my question is this: For struts actions and forms and anything else
struts, is there 1 common place where we can override something to call
request.setCharacterEncoding(). Is RequestProcessor.processPreprocess
the place to do it? I grepped the struts 1.2.4 source code and only
found a setCharacterEncoding on upload\MultipartRequestWrapper.java.
That method is a no-op. Ideally, we only want to override 1 method that
will handle the request's encoding for form validation and the action
handlers, etc. If processPreprocess is NOT the place to do this,
where/how should we do this? The ActionServlet instance perhaps that
calls RequestProcessor.process()? The action handler knows what encoding
to use so somehow, I would have to tell the request processor the
"encoding" unless I can override something in the ActionServlet before
process() gets called.

I did *some* searching through the struts source code and in
RequestProcessor, the call to processPopulate does a getParameter:
if ((request.getParameter(Constants.CANCEL_PROPERTY) != null) ||
(request.getParameter(Constants.CANCEL_PROPERTY_X) != null))
{

So calling setCharacterEncoding has to be done before processPopulate().

Thanks!

Randy

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



Can't get modules to work in struts

2004-11-15 Thread marc
I'm trying to get modules to work in struts but with no luck.
First I made a standard struts app. And It works fin, but now I what it 
to be a module.

So I made a default module, then the plan is that this module will point 
 at my first working module.

I get the default module to work, but can not get i't to forward to the 
working module, just get at invalid path.

You can see the web.xml and struts-default.xml(default module).
Will not post the working app, because it's to long.

WEB.XML
 
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/config/struts-default.xml


  config/admin
  /WEB-INF/config/struts-admin.xml


  debug
  2


  detail
  2

2
  

  
action
/
  
*
STRUTS-DEFAULT.XML









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


Re: talking about paradigms

2004-11-15 Thread Bill Siggelkow
Sorry, I haven't been following this thread, but I tend to agree with 
you. I worked on an app that used XML/XSLT to achieve "purity" -- and 
what resulted was a lot of this "view helper" data coded into the "pure" 
XML document; defeating the premise behind separation of the model and view.

-Bill Siggelkow
Daniel Perry wrote:
I think the idea that MVC architecture should have a 'dumb view' is totally
wrong.  The view should be as smart as possible.
MVC should separate the M, V and C.  With a really smart view you dont have
to do any preparation for the view in the controller.  If you have a dumb
view then you have to prepare the data in the model/controller so that the
view can cope with it.  Surely this is wrong as you are doing view
processing outside of the view. Personally i think ALL view processing
should be done in the view: the view code (be it jsps, java, xml/xsl, etc)
should take model data, and produce a view of that data - and it should be
flexible.
The problem with a smarter (or better worded: more capable) view is that
people start doing things in the view which shouldnt be done there, such as
database access.  I dont think this is down to a problem with the view
technology, just a lack of education on the users part.  Arguing that the
view should dumbed down to stop this problem arising is like saying that
cars should only be able to do 70mph because that's all they can legally do.
For example, a poject i am responsible has a lot of code in the model beans
that was put there pre jstl for formatting things like dates, or text.  So
you have getStartDate() which returns a date, and getFormattedStartDate()
which returns a formatted string.  This code should be in the view as it is
purely for view purposes, but i made the decision to bodge it into the model
as it was nicer than using java code in the jsps.  There are various other
methods - such as retrieving chunks of text with \n into , which can now
mostly be handled with jstl.
Daniel.


-Original Message-
From: Rosenberg, Leon [mailto:[EMAIL PROTECTED]
Sent: 15 November 2004 13:44
To: Struts Users Mailing List
Subject: AW: talking about paradigms


No, but what about
 ?
(not sure about the syntax).
whats the problem?
MVC usually allows 'read-only access to model' for the view
Also the question is, what you expose to the view.
If you are afraid that somebody will misuse the library entries -
don't
expose them.
I suppose MVC was the reason for JSP EL not to allow arbitrary method
invocations. But I'd love to have such anyway ;)

...
And what about database access tags?
You mean the jstl tags? They are there for quick and dirty.
If you don't change anything in the database though, it still okay to
MVC.
If you don't want it, don't expose your database in the first place ;)

The problem is, that if you give a user the possibility to misuse your
framework - he will.
And EL gives jsps more power than a dumb view should have. And if your
view isn't just layouting out the data, but performing nearly complex
operations, it's not dumb anymore, and a smart view doesn't fit into the
MVC.
If the user is allowed to break the paradigm he will.
If you have an architecture, which is built on a paradigm (and any good
architecture is) you can't allow the developers to break the paradigm,
or
the architecture will stop working one day, without obvious reasons.
It's probably why there are no pointers in java, even pointers adds cool
features to the language.
Regards
Leon
-
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: talking about paradigms

2004-11-15 Thread Robert Taylor
+1.

I have to agree with Daniel.
JSTL has allowed me to move a lot of view formatting
code outside of my page prep tasks. 

In J2EE, .jsp pages are ViewComponents and custom
tags are ViewHelpers. 

I think that JSTL gives you enought rope to hang yourself
with as well, especially with the . But I understand
the business/marketing motivation behind them...CFML competition.

I mean, look at CFML applications, the use of the database access ViewHelper
is pervasive. But their business model is to enable page authors to easily
create business applications using a tag based model. I'm sure many of you
already are aware that there are large numbers of enterprise applications 
written entirely in CFML. Personally, I would never want to develop nor
maintain such applications. 

Anyhow, I digress...

I think the point is that the ViewHelpers used with regard for best practices
help move view logic into the ViewComponents and out of the controller and that
disciplined use of such technologies can provide better architectural 
separation.

robert



> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 15, 2004 9:14 AM
> To: Struts Users Mailing List
> Subject: RE: talking about paradigms
> 
> 
> I think the idea that MVC architecture should have a 'dumb view' is totally
> wrong.  The view should be as smart as possible.
> 
> MVC should separate the M, V and C.  With a really smart view you dont have
> to do any preparation for the view in the controller.  If you have a dumb
> view then you have to prepare the data in the model/controller so that the
> view can cope with it.  Surely this is wrong as you are doing view
> processing outside of the view. Personally i think ALL view processing
> should be done in the view: the view code (be it jsps, java, xml/xsl, etc)
> should take model data, and produce a view of that data - and it should be
> flexible.
> 
> The problem with a smarter (or better worded: more capable) view is that
> people start doing things in the view which shouldnt be done there, such as
> database access.  I dont think this is down to a problem with the view
> technology, just a lack of education on the users part.  Arguing that the
> view should dumbed down to stop this problem arising is like saying that
> cars should only be able to do 70mph because that's all they can legally do.
> 
> For example, a poject i am responsible has a lot of code in the model beans
> that was put there pre jstl for formatting things like dates, or text.  So
> you have getStartDate() which returns a date, and getFormattedStartDate()
> which returns a formatted string.  This code should be in the view as it is
> purely for view purposes, but i made the decision to bodge it into the model
> as it was nicer than using java code in the jsps.  There are various other
> methods - such as retrieving chunks of text with \n into , which can now
> mostly be handled with jstl.
> 
> Daniel.
> 
> 
> 
> 
> > -Original Message-
> > From: Rosenberg, Leon [mailto:[EMAIL PROTECTED]
> > Sent: 15 November 2004 13:44
> > To: Struts Users Mailing List
> > Subject: AW: talking about paradigms
> >
> >
> >
> >
> > > > No, but what about
> > > >
> > > >  ?
> > > > (not sure about the syntax).
> > > whats the problem?
> > >  MVC usually allows 'read-only access to model' for the view
> > > Also the question is, what you expose to the view.
> > > If you are afraid that somebody will misuse the library entries -
> > don't
> > > expose them.
> > > I suppose MVC was the reason for JSP EL not to allow arbitrary method
> > > invocations. But I'd love to have such anyway ;)
> > >
> > > >...
> > > > And what about database access tags?
> > > You mean the jstl tags? They are there for quick and dirty.
> > > If you don't change anything in the database though, it still okay to
> > MVC.
> > > If you don't want it, don't expose your database in the first place ;)
> > >
> > >
> >
> > The problem is, that if you give a user the possibility to misuse your
> > framework - he will.
> > And EL gives jsps more power than a dumb view should have. And if your
> > view isn't just layouting out the data, but performing nearly complex
> > operations, it's not dumb anymore, and a smart view doesn't fit into the
> > MVC.
> >
> > If the user is allowed to break the paradigm he will.
> > If you have an architecture, which is built on a paradigm (and any good
> > architecture is) you can't allow the developers to break the paradigm,
> > or
> > the architecture will stop working one day, without obvious reasons.
> > It's probably why there are no pointers in java, even pointers adds cool
> > features to the language.
> >
> > Regards
> > Leon
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscri

Use JSTL with html:multibox tag

2004-11-15 Thread andy wix
Hi,
All the examples I've seen of using the above tag use the logic:iterate tag 
to output to the page.
Does anyone have an example of how to this with JSTL?

My attempt is:

 
   
   
 


where services is an ArrayList in session with all available services and 
selectedServices is the array of Strings in my form class.

The above displays all the values in services correctly but doesn't exhibit 
any interaction between the checkboxes on the page and the selectedServices 
array.

Thanks,
Andy
_
Get ready for school! Find articles, homework help and more in the Back to 
School Guide! http://special.msn.com/network/04backtoschool.armx

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


RE: talking about paradigms

2004-11-15 Thread Daniel Perry
I think the idea that MVC architecture should have a 'dumb view' is totally
wrong.  The view should be as smart as possible.

MVC should separate the M, V and C.  With a really smart view you dont have
to do any preparation for the view in the controller.  If you have a dumb
view then you have to prepare the data in the model/controller so that the
view can cope with it.  Surely this is wrong as you are doing view
processing outside of the view. Personally i think ALL view processing
should be done in the view: the view code (be it jsps, java, xml/xsl, etc)
should take model data, and produce a view of that data - and it should be
flexible.

The problem with a smarter (or better worded: more capable) view is that
people start doing things in the view which shouldnt be done there, such as
database access.  I dont think this is down to a problem with the view
technology, just a lack of education on the users part.  Arguing that the
view should dumbed down to stop this problem arising is like saying that
cars should only be able to do 70mph because that's all they can legally do.

For example, a poject i am responsible has a lot of code in the model beans
that was put there pre jstl for formatting things like dates, or text.  So
you have getStartDate() which returns a date, and getFormattedStartDate()
which returns a formatted string.  This code should be in the view as it is
purely for view purposes, but i made the decision to bodge it into the model
as it was nicer than using java code in the jsps.  There are various other
methods - such as retrieving chunks of text with \n into , which can now
mostly be handled with jstl.

Daniel.




> -Original Message-
> From: Rosenberg, Leon [mailto:[EMAIL PROTECTED]
> Sent: 15 November 2004 13:44
> To: Struts Users Mailing List
> Subject: AW: talking about paradigms
>
>
>
>
> > > No, but what about
> > >
> > >  ?
> > > (not sure about the syntax).
> > whats the problem?
> >  MVC usually allows 'read-only access to model' for the view
> > Also the question is, what you expose to the view.
> > If you are afraid that somebody will misuse the library entries -
> don't
> > expose them.
> > I suppose MVC was the reason for JSP EL not to allow arbitrary method
> > invocations. But I'd love to have such anyway ;)
> >
> > >...
> > > And what about database access tags?
> > You mean the jstl tags? They are there for quick and dirty.
> > If you don't change anything in the database though, it still okay to
> MVC.
> > If you don't want it, don't expose your database in the first place ;)
> >
> >
>
> The problem is, that if you give a user the possibility to misuse your
> framework - he will.
> And EL gives jsps more power than a dumb view should have. And if your
> view isn't just layouting out the data, but performing nearly complex
> operations, it's not dumb anymore, and a smart view doesn't fit into the
> MVC.
>
> If the user is allowed to break the paradigm he will.
> If you have an architecture, which is built on a paradigm (and any good
> architecture is) you can't allow the developers to break the paradigm,
> or
> the architecture will stop working one day, without obvious reasons.
> It's probably why there are no pointers in java, even pointers adds cool
> features to the language.
>
> Regards
> Leon
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



AW: talking about paradigms

2004-11-15 Thread Rosenberg, Leon


> > No, but what about
> >
> >  ?
> > (not sure about the syntax).
> whats the problem?
>  MVC usually allows 'read-only access to model' for the view
> Also the question is, what you expose to the view.
> If you are afraid that somebody will misuse the library entries -
don't
> expose them.
> I suppose MVC was the reason for JSP EL not to allow arbitrary method
> invocations. But I'd love to have such anyway ;)
> 
> >...
> > And what about database access tags?
> You mean the jstl tags? They are there for quick and dirty.
> If you don't change anything in the database though, it still okay to
MVC.
> If you don't want it, don't expose your database in the first place ;)
> 
> 

The problem is, that if you give a user the possibility to misuse your
framework - he will. 
And EL gives jsps more power than a dumb view should have. And if your
view isn't just layouting out the data, but performing nearly complex
operations, it's not dumb anymore, and a smart view doesn't fit into the
MVC. 

If the user is allowed to break the paradigm he will. 
If you have an architecture, which is built on a paradigm (and any good
architecture is) you can't allow the developers to break the paradigm,
or 
the architecture will stop working one day, without obvious reasons.
It's probably why there are no pointers in java, even pointers adds cool
features to the language.

Regards
Leon


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



RE: STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-15 Thread Daffin, Miles (Company IT)
Hi Craig,

I shall do so. Nice to see you are still around around.

-Miles

> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED] 
> Sent: 12 November 2004 17:00
> To: Struts Users Mailing List
> Subject: Re: STRUTS Application still appears viable even 
> though ActionServlet has failed to initialize.
> 
> On Fri, 12 Nov 2004 16:23:24 -, Daffin, Miles (Company 
> IT) <[EMAIL PROTECTED]> wrote:
> > [snip]
> > One assumes that the ActionServlet did not load the 
> ModuleConfig, and 
> > that the application is *not* therefore really viable - although it 
> > seems to think it is...
> > 
> > So. My question is: is this a struts bug? Should the application be 
> > attempting to service requests if its central component 
> failed to boot 
> > correctly?
> > 
> 
> The servlet container is allowed to put the app into 
> production if an individual servlet fails to initialize (but 
> not if a listener or filter fails -- don't you just love 
> backwards compatibility on decisions you wish you could 
> change? :-).  Therefore, it is indeed a bug for Struts to 
> allow a failed startup to be put into production. 
> We should really be checking for that situation on subsequent 
> requests, and giving a more intelligible response.
> 
> Could you please file a bug on this into our issue tracking system:
> 
>   http://issues.apache.org/bugzilla/
> 
> Craig
> 
> -
> 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: Tiles : setting Styles and

2004-11-15 Thread Axel Groß
hi!

I don't quite get your question I'm afraid.
Why you want to have a submit in your menu??

What you normally do is, you tie 
 
to a specific action/submit. Usually you have different actions to submit
to, so you'd need a different  tag.
This is rather specific, so it should go into the specific fragment
(e.g. body.jsp ).


hth,
axel

On 2004-10-29 at 16:06:47 +0200, Ryan julius wrote:
> Hi,
>  
> I have build my web UI using Tiles. Each part of the rootLayout.jsp, let say, 
> lhsMenu.jsp, body.jsp, could contain , general scripts, etc 
> The resulting page is intended to be populated when opened at the first time. 
>  
> Putting a form tag on each part of the layout could complicate the handling 
> at submission. Putting this tag at the top of the rootLayout could complicate 
> the switch to another layout if needed.
>  
> What do you advise me to do? Is there any other alternative?
>  
> Thanks.
> 
> 
> 
>   
> -
> Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
> Créez votre Yahoo! Mail
> 
> Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour 
> dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !

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



Re: talking about paradigms

2004-11-15 Thread Axel Groß
On 2004-11-11 at 11:24:14 +0100, Rosenberg, Leon wrote:
> 
> 
> > -Ursprüngliche Nachricht-
> > Von: Mark Lowe [mailto:[EMAIL PROTECTED]
> > Gesendet: Donnerstag, 11. November 2004 11:04
> > An: Struts Users Mailing List
> > Betreff: Re: talking about paradigms
> > 
> > I don't think EL breaks the MVC pattern. Although it leaves you free
> > to do so if you so wish. I don't see a world appart from using
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ${person.name}
> 
> 
> No, but what about 
> 
>  ? 
> (not sure about the syntax).
whats the problem?
 MVC usually allows 'read-only access to model' for the view
Also the question is, what you expose to the view. 
If you are afraid that somebody will misuse the library entries - don't
expose them.
I suppose MVC was the reason for JSP EL not to allow arbitrary method
invocations. But I'd love to have such anyway ;)

> 
> 
>...
> And what about database access tags?
You mean the jstl tags? They are there for quick and dirty.
If you don't change anything in the database though, it still okay to MVC.
If you don't want it, don't expose your database in the first place ;)


>.. 
> Leon 
>..

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



RE: Are there Struts Applications in real life out there?

2004-11-15 Thread Daniel Perry
Over the weekend i came accross a couple of high profile (in the uk at
least) sites using struts:
www.smile.co.uk (internet banking app uses struts)
www.vodafone.co.uk (uses portal software from broadvision which uses struts)

Daniel.


> -Original Message-
> From: Axel Gro? [mailto:[EMAIL PROTECTED]
> Sent: 10 November 2004 19:21
> To: Struts Users Mailing List
> Subject: Re: Are there Struts Applications in real life out there?
>
>
> 'One,' one of austria's telco companies uses struts for their one portal.
>  (know one of the one portal's programmers)
>
>  http://www.one.at
>
> i hope one got the idea ;)
>
> yaa (yet another Axel)
>
> -
> 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]



Contrib tld files on ibiblio ?

2004-11-15 Thread Bishop, Keith
Hi,

Could anyone direct me to the location of the contrib tld files ( i.e.
struts-html-el.tld etc etc) on www.ibilio.org/maven/ ?

The only tld files that I can see in the repository (under
www.ibiblio.org/maven/struts ) are the runtime ones and not the el ones.

Thanks 

Keith


The Newspaper Marketing Agency:  Opening Up Newspapers:

www.nmauk.co.uk

This e-mail and all attachments are confidential and may be privileged. If you 
have received this e-mail in error, notify the sender immediately. Do not use, 
disseminate, store or copy it in any way. Statements or opinions in this e-mail 
or any attachment are those of the author and are not necessarily agreed or 
authorised by News International (NI). NI Group may monitor emails sent or 
received for operational or business reasons as permitted by law. NI Group 
accepts no liability for viruses introduced by this e-mail or attachments. You 
should employ virus checking software. News International Limited, 1 Virginia 
St, London E98 1XY, is the holding company for the News International group and 
is registered in England No 81701



RE: OT: hosting recommendations?

2004-11-15 Thread Daniel Perry
Php is a small (in terms of memory footprint) interpreted language.  Php
(running as an apache module) is kept in memory, but doesnt use anywhere as
much memory as your typical tomcat jvm. Each page is processed separately -
so you dont have the 'web-app' hanging around in memory.

You generally tend to get very page-centric coding, with little structure
(as far as i'm aware there's no MVC solution like struts available). Php is
easy to learn - it's much like c or javascript, but with no enforced typing.
Because of this you get a lot of sloppy php code with huge security holes!

Costs for php are low as you can run a few hundred/thousand sites on a basic
server e.g.(512mb ram) tomcat on my dev machine has 512mb allocated for
half a dozen apps!

If you want cheap hosting, get the basic dedicated linux server from
uk2.net - ?30 per month.

Daniel.

> -Original Message-
> From: Woodchuck [mailto:[EMAIL PROTECTED]
> Sent: 12 November 2004 21:14
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: OT: hosting recommendations?
>
>
> rackspace must be some serious hosting... they start at a whopping
> $350/month... lol, if i win the lottery i will sign up with them! :)
>
> you're right, there seems to be very economical hosting for php.  why
> is that?  i don't know anything about php, can it do everything that
> struts can?  is it difficult to learn?  what is the differences, pros
> and cons between php and struts?  (other than i can get php hosting
> plans for less than $10/month!!!)  :)
>
> thanks,
> woodchuck
>
>
> --- bryan <[EMAIL PROTECTED]> wrote:
>
> > Get some friends together and get yourselves a linux box hosted on
> > rackspace, jave is too resource hungry to get cheap virtual server
> > type offerings for it. That is why the world uses php or if you just
> > wanna demo your stuff why not get ADSL
> >
> > --b
> >
> >
> > On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuck
> > <[EMAIL PROTECTED]> wrote:
> > > hihi all,
> > >
> > > can anyone recommend hosters that are Tomcat/Java friendly and
> > offer
> > > private JVMs for cheap monthly cost?  (cheap to me is $0 -
> > $20/month
> > > range)
> > >
> > > i went to servlets.com and visited many of the hosters on their
> > list
> > > but most of them seem to still have the legacy offerings that are
> > > stingy on space and transfer allowances.  it was either that or
> > they
> > > charge a lot ($50+/month) for private JVMs.
> > >
> > > thanks in advance,
> > > woodchuck
> > >
> > > __
> > > Do you Yahoo!?
> > > Check out the new Yahoo! Front Page.
> > > www.yahoo.com
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > http://www.revoltingdigits.com
> > https://jestate.dev.java.net
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>
> __
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.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: AW: problem with unicode

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

> Thanks for your answer. The right character is a polish character: ?

You're sending your mail in latin1. The polish character was
converted to the question mark.
 
> The charset in the document header is:
> 
> 

That should be correct with what you explain.
 
> My character table says \u0119 is ? and not ê. My
> test-html-file contains ê, but ? was displayed. But if I use
> message tag it is wrong.

Please note that "ê" was just an example in latin1.

-- 
Guillaume Cottenceau

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



AW: AW: problem with unicode

2004-11-15 Thread Otto, Frank
It's a good tip, I will test it this evening.

Thanks for your help.

> -Ursprüngliche Nachricht-
> Von: Jason Lea [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. November 2004 10:33
> An: Struts Users Mailing List
> Betreff: Re: AW: problem with unicode
> 
> 
> I would suggest using UTF-8 encoding on your pages, and 
> follow the the 
> example here so that all your pages have the corrent encoding:
> 
> http://web.archive.org/web/20040114232541/http://www.anassina.
> com/struts/i18n/i18n.html
> 
> Then \u0119 should be rendered correctly as a unicode 
> character on the 
> web page
> 
> 
> Otto, Frank wrote:
> 
> >Thanks for your answer. The right character is a polish character: ?
> >
> >The charset in the document header is:
> >
> >
> >
> >My character table says \u0119 is ? and not ê. My 
> test-html-file contains ê, but ? was displayed. But if I use 
> message tag it is wrong.
> >
> >
> >
> >  
> >
> >>-Ursprüngliche Nachricht-
> >>Von: Guillaume Cottenceau [mailto:[EMAIL PROTECTED]
> >>Gesendet: Montag, 15. November 2004 10:10
> >>An: [EMAIL PROTECTED]
> >>Betreff: Re: problem with unicode
> >>
> >>
> >>"Otto, Frank"  writes:
> >>
> >>
> >>
> >>>I have a problem with display of characters in latin-1.
> >>>
> >>>for example: The properties file contains the unicode \u0119,
> >>>but the character is not displayed.
> >>>
> >>>If I use ę it will be displayed. I use  >>>  
> >>>
> >>key="my.text"/>
> >>
> >>
> >>>Has someone a solution?
> >>>  
> >>>
> >>If you're really trying to display that character in latin1, yes
> >>it will fail because this is not a latin1 character. When
> >>converting to java unicode escapes, first 128 latin1/ascii
> >>characters are unchanged and remaining 128 characters are \u0080
> >>to \u00ff, as you can see with this:
> >>
> >>[EMAIL PROTECTED] /tmp] perl -e 'print chr($_), " " foreach 128..255' > t.p
> >>[EMAIL PROTECTED] /tmp] native2ascii -encoding latin1 t.p
> >>\u0080 \u0081 \u0082 \u0083 \u0084 \u0085 \u0086 \u0087 
> >>\u0088 \u0089 \u008a \u008b \u008c \u008d \u008e \u008f 
> >>\u0090 \u0091 \u0092 \u0093 \u0094 \u0095 \u0096 \u0097 
> >>\u0098 \u0099 \u009a \u009b \u009c \u009d \u009e \u009f 
> >>\u00a0 \u00a1 \u00a2 \u00a3 \u00a4 \u00a5 \u00a6 \u00a7 
> >>\u00a8 \u00a9 \u00aa \u00ab \u00ac \u00ad \u00ae \u00af 
> >>\u00b0 \u00b1 \u00b2 \u00b3 \u00b4 \u00b5 \u00b6 \u00b7 
> >>\u00b8 \u00b9 \u00ba \u00bb \u00bc \u00bd \u00be \u00bf 
> >>\u00c0 \u00c1 \u00c2 \u00c3 \u00c4 \u00c5 \u00c6 \u00c7 
> >>\u00c8 \u00c9 \u00ca \u00cb \u00cc \u00cd \u00ce \u00cf 
> >>\u00d0 \u00d1 \u00d2 \u00d3 \u00d4 \u00d5 \u00d6 \u00d7 
> >>\u00d8 \u00d9 \u00da \u00db \u00dc \u00dd \u00de \u00df 
> >>\u00e0 \u00e1 \u00e2 \u00e3 \u00e4 \u00e5 \u00e6 \u00e7 
> >>\u00e8 \u00e9 \u00ea \u00eb \u00ec \u00ed \u00ee \u00ef 
> >>\u00f0 \u00f1 \u00f2 \u00f3 \u00f4 \u00f5 \u00f6 \u00f7 
> >>\u00f8 \u00f9 \u00fa \u00fb \u00fc \u00fd \u00fe \u00ff 
> >>
> >>You can also verify that trying to convert to latin1 doesn't
> >>change your character:
> >>
> >>[EMAIL PROTECTED] /tmp] echo "\u0119 - \u00ea" > t.p
> >>[EMAIL PROTECTED] /tmp] native2ascii -encoding latin1 -reverse t.p
> >>\u0119 - ê
> >>
> >>
> >>Check the html sourcecode in the browser to see what's actually
> >>being transmitted. Verify the encoding/charset specified in the
> >>document header and how the character is actually encoded in the
> >>page.
> >>
> >>-- 
> >>Guillaume Cottenceau
> >>
> >>
> -
> >>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]
> >
> >
> >  
> >
> 
> -- 
> Jason Lea
> 
> 
> 

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



Re: AW: problem with unicode

2004-11-15 Thread Jason Lea
I would suggest using UTF-8 encoding on your pages, and follow the the 
example here so that all your pages have the corrent encoding:

http://web.archive.org/web/20040114232541/http://www.anassina.com/struts/i18n/i18n.html
Then \u0119 should be rendered correctly as a unicode character on the 
web page

Otto, Frank wrote:
Thanks for your answer. The right character is a polish character: ?
The charset in the document header is:

My character table says \u0119 is ? and not ê. My test-html-file contains ê, 
but ? was displayed. But if I use message tag it is wrong.

 

-Ursprüngliche Nachricht-
Von: Guillaume Cottenceau [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. November 2004 10:10
An: [EMAIL PROTECTED]
Betreff: Re: problem with unicode
"Otto, Frank"  writes:
   

I have a problem with display of characters in latin-1.
for example: The properties file contains the unicode \u0119,
but the character is not displayed.
If I use ę it will be displayed. I use 

key="my.text"/>
   

Has someone a solution?
 

If you're really trying to display that character in latin1, yes
it will fail because this is not a latin1 character. When
converting to java unicode escapes, first 128 latin1/ascii
characters are unchanged and remaining 128 characters are \u0080
to \u00ff, as you can see with this:
[EMAIL PROTECTED] /tmp] perl -e 'print chr($_), " " foreach 128..255' > t.p
[EMAIL PROTECTED] /tmp] native2ascii -encoding latin1 t.p
\u0080 \u0081 \u0082 \u0083 \u0084 \u0085 \u0086 \u0087 
\u0088 \u0089 \u008a \u008b \u008c \u008d \u008e \u008f 
\u0090 \u0091 \u0092 \u0093 \u0094 \u0095 \u0096 \u0097 
\u0098 \u0099 \u009a \u009b \u009c \u009d \u009e \u009f 
\u00a0 \u00a1 \u00a2 \u00a3 \u00a4 \u00a5 \u00a6 \u00a7 
\u00a8 \u00a9 \u00aa \u00ab \u00ac \u00ad \u00ae \u00af 
\u00b0 \u00b1 \u00b2 \u00b3 \u00b4 \u00b5 \u00b6 \u00b7 
\u00b8 \u00b9 \u00ba \u00bb \u00bc \u00bd \u00be \u00bf 
\u00c0 \u00c1 \u00c2 \u00c3 \u00c4 \u00c5 \u00c6 \u00c7 
\u00c8 \u00c9 \u00ca \u00cb \u00cc \u00cd \u00ce \u00cf 
\u00d0 \u00d1 \u00d2 \u00d3 \u00d4 \u00d5 \u00d6 \u00d7 
\u00d8 \u00d9 \u00da \u00db \u00dc \u00dd \u00de \u00df 
\u00e0 \u00e1 \u00e2 \u00e3 \u00e4 \u00e5 \u00e6 \u00e7 
\u00e8 \u00e9 \u00ea \u00eb \u00ec \u00ed \u00ee \u00ef 
\u00f0 \u00f1 \u00f2 \u00f3 \u00f4 \u00f5 \u00f6 \u00f7 
\u00f8 \u00f9 \u00fa \u00fb \u00fc \u00fd \u00fe \u00ff 

You can also verify that trying to convert to latin1 doesn't
change your character:
[EMAIL PROTECTED] /tmp] echo "\u0119 - \u00ea" > t.p
[EMAIL PROTECTED] /tmp] native2ascii -encoding latin1 -reverse t.p
\u0119 - ê
Check the html sourcecode in the browser to see what's actually
being transmitted. Verify the encoding/charset specified in the
document header and how the character is actually encoded in the
page.
--
Guillaume Cottenceau
-
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]
 

--
Jason Lea



Re: OT: hosting recommendations?

2004-11-15 Thread Olivier Croisier
Plus, with a PHP-based solution, CPU and RAM are only used when a request 
occurs, whereas with Java, the JVM and the webapp-server use a fair amount of 
both even when idle.
As a consequence, they can host a much higher number of php accounts on the 
same hardware : hence the prices...
Oh my, life is hard :D
Olivier
On Mon, 15 Nov 2004 10:15:43 +0100, Jesse Alexander (KBSA 21) <[EMAIL 
PROTECTED]> wrote:
I know... I think they are afraid of the setup to make the
single JVM's well-behaving. After all its usually up to
thousands of accounts on one single server! So a JVM using up all the
CPU is a horror vision for them. They trust to have more control over
php-setups...
Dedicated or virtual-dedicated (linux-vm's on a host-klinux-server)
pose the problem for the client to keep the system secured against
hackers...
Well. It's an interesting world we have to deal with...
regards
Alexander
-Original Message-
From: bryan [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 10:01 AM
To: Struts Users Mailing List
Subject: Re: OT: hosting recommendations?
"security issues"  if that's their response then they are clowns,
pure and simple. I wouldn't trust someone like that to change a
lightbulb.
--b
On Mon, 15 Nov 2004 09:50:09 +0100, Jesse Alexander (KBSA 21)
<[EMAIL PROTECTED]> wrote:
most hosting providers I have talked to talk about "security issues"
when you ask them to provide Java-webhosting. ;-)
check out: 

Yes, it is a swiss company... with swiss server placement...
The "Linux business"-package should around 300 US$ (per year), the
"Linux Professional" is about 120US$ (rough estimate)
This is a package similar to those php-webhosting packages. Their
dedicated servers start at about 70$ a month.
Less... then server4free (mentioned in some earlier post in this
mailing list) "might" be the way for you...
good luck
Alexander

-Original Message-
From: Woodchuck [mailto:[EMAIL PROTECTED]
Sent: Friday, November 12, 2004 10:14 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: OT: hosting recommendations?
rackspace must be some serious hosting... they start at a whopping
$350/month... lol, if i win the lottery i will sign up with them! :)
you're right, there seems to be very economical hosting for php.  why
is that?  i don't know anything about php, can it do everything that
struts can?  is it difficult to learn?  what is the differences, pros
and cons between php and struts?  (other than i can get php hosting
plans for less than $10/month!!!)  :)
thanks,
woodchuck
--- bryan <[EMAIL PROTECTED]> wrote:
> Get some friends together and get yourselves a linux box hosted on
> rackspace, jave is too resource hungry to get cheap virtual server
> type offerings for it. That is why the world uses php or if you just
> wanna demo your stuff why not get ADSL
>
> --b
>
>
> On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuck
> <[EMAIL PROTECTED]> wrote:
> > hihi all,
> >
> > can anyone recommend hosters that are Tomcat/Java friendly and
> offer
> > private JVMs for cheap monthly cost?  (cheap to me is $0 -
> $20/month
> > range)
> >
> > i went to servlets.com and visited many of the hosters on their
> list
> > but most of them seem to still have the legacy offerings that are
> > stingy on space and transfer allowances.  it was either that or
> they
> > charge a lot ($50+/month) for private JVMs.
> >
> > thanks in advance,
> > woodchuck
> >
> > __
> > Do you Yahoo!?
> > Check out the new Yahoo! Front Page.
> > www.yahoo.com
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> http://www.revoltingdigits.com
> https://jestate.dev.java.net
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
__
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.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]



--
CROISIER Olivier
Software Engineer
Thales IS - ANS
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Compilation error in jsp. try catch

2004-11-15 Thread Morales de Frías, David
Hello¡¡
My project has been built to use it in Tomcat 5.0, and it really  works... I 
have no problem when i execute it in tomcat. But now, i want to try it in 
weblogic 7.0 and i have some compilation problems.

JSP's in this projects are really one JSP, because i have several include's 
controlled by parameters.
I mean that i've one JSP, and if user wants to view something, an include must 
works...

So, in weblogic, compilation of this big JSP (that contents these others) 
reports this problem:
---
C:\bea\user_projects\dominio70\server70\.wlnotdelete\aunabill_aunabill_12720744\jsp_servlet\_jsp\__principal.java:10641:
 code too large for try statement
probably occurred due to an error in 
/jsp/analisis/consultas/verDetalleConsumo.jsp line 93:
type="es.indra.aunabill.vo.analisis.consultas.ResultadoDetalleConsumoVO" 
indexId="iterador" scope="request">

and line is...
--  



// MORE BEAN DEFINES AND A HTML TABLE TO SHOW RESULTS

   

I can't view what the problem is




AW: problem with unicode

2004-11-15 Thread Otto, Frank
Thanks for your answer. The right character is a polish character: ?

The charset in the document header is:



My character table says \u0119 is ? and not ê. My test-html-file contains ê, 
but ? was displayed. But if I use message tag it is wrong.



> -Ursprüngliche Nachricht-
> Von: Guillaume Cottenceau [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. November 2004 10:10
> An: [EMAIL PROTECTED]
> Betreff: Re: problem with unicode
> 
> 
> "Otto, Frank"  writes:
> 
> > I have a problem with display of characters in latin-1.
> > 
> > for example: The properties file contains the unicode \u0119,
> > but the character is not displayed.
> > 
> > If I use ę it will be displayed. I use  key="my.text"/>
> > 
> > Has someone a solution?
> 
> If you're really trying to display that character in latin1, yes
> it will fail because this is not a latin1 character. When
> converting to java unicode escapes, first 128 latin1/ascii
> characters are unchanged and remaining 128 characters are \u0080
> to \u00ff, as you can see with this:
> 
> [EMAIL PROTECTED] /tmp] perl -e 'print chr($_), " " foreach 128..255' > t.p
> [EMAIL PROTECTED] /tmp] native2ascii -encoding latin1 t.p
> \u0080 \u0081 \u0082 \u0083 \u0084 \u0085 \u0086 \u0087 
> \u0088 \u0089 \u008a \u008b \u008c \u008d \u008e \u008f 
> \u0090 \u0091 \u0092 \u0093 \u0094 \u0095 \u0096 \u0097 
> \u0098 \u0099 \u009a \u009b \u009c \u009d \u009e \u009f 
> \u00a0 \u00a1 \u00a2 \u00a3 \u00a4 \u00a5 \u00a6 \u00a7 
> \u00a8 \u00a9 \u00aa \u00ab \u00ac \u00ad \u00ae \u00af 
> \u00b0 \u00b1 \u00b2 \u00b3 \u00b4 \u00b5 \u00b6 \u00b7 
> \u00b8 \u00b9 \u00ba \u00bb \u00bc \u00bd \u00be \u00bf 
> \u00c0 \u00c1 \u00c2 \u00c3 \u00c4 \u00c5 \u00c6 \u00c7 
> \u00c8 \u00c9 \u00ca \u00cb \u00cc \u00cd \u00ce \u00cf 
> \u00d0 \u00d1 \u00d2 \u00d3 \u00d4 \u00d5 \u00d6 \u00d7 
> \u00d8 \u00d9 \u00da \u00db \u00dc \u00dd \u00de \u00df 
> \u00e0 \u00e1 \u00e2 \u00e3 \u00e4 \u00e5 \u00e6 \u00e7 
> \u00e8 \u00e9 \u00ea \u00eb \u00ec \u00ed \u00ee \u00ef 
> \u00f0 \u00f1 \u00f2 \u00f3 \u00f4 \u00f5 \u00f6 \u00f7 
> \u00f8 \u00f9 \u00fa \u00fb \u00fc \u00fd \u00fe \u00ff 
> 
> You can also verify that trying to convert to latin1 doesn't
> change your character:
> 
> [EMAIL PROTECTED] /tmp] echo "\u0119 - \u00ea" > t.p
> [EMAIL PROTECTED] /tmp] native2ascii -encoding latin1 -reverse t.p
> \u0119 - ê
> 
> 
> Check the html sourcecode in the browser to see what's actually
> being transmitted. Verify the encoding/charset specified in the
> document header and how the character is actually encoded in the
> page.
> 
> -- 
> Guillaume Cottenceau
> 
> -
> 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: OT: hosting recommendations?

2004-11-15 Thread Jesse Alexander (KBSA 21)
I know... I think they are afraid of the setup to make the 
single JVM's well-behaving. After all its usually up to
thousands of accounts on one single server! So a JVM using up all the
CPU is a horror vision for them. They trust to have more control over
php-setups...

Dedicated or virtual-dedicated (linux-vm's on a host-klinux-server) 
pose the problem for the client to keep the system secured against 
hackers... 

Well. It's an interesting world we have to deal with...

regards
Alexander

-Original Message-
From: bryan [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 10:01 AM
To: Struts Users Mailing List
Subject: Re: OT: hosting recommendations?

"security issues"  if that's their response then they are clowns,
pure and simple. I wouldn't trust someone like that to change a
lightbulb.

--b


On Mon, 15 Nov 2004 09:50:09 +0100, Jesse Alexander (KBSA 21)
<[EMAIL PROTECTED]> wrote:
> most hosting providers I have talked to talk about "security issues"
> when you ask them to provide Java-webhosting. ;-)
> 
> check out: 
> 
> Yes, it is a swiss company... with swiss server placement...
> The "Linux business"-package should around 300 US$ (per year), the
> "Linux Professional" is about 120US$ (rough estimate)
> This is a package similar to those php-webhosting packages. Their
> dedicated servers start at about 70$ a month.
> 
> Less... then server4free (mentioned in some earlier post in this
> mailing list) "might" be the way for you...
> 
> good luck
> Alexander
> 
> 
> 
> -Original Message-
> From: Woodchuck [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 12, 2004 10:14 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: OT: hosting recommendations?
> 
> rackspace must be some serious hosting... they start at a whopping
> $350/month... lol, if i win the lottery i will sign up with them! :)
> 
> you're right, there seems to be very economical hosting for php.  why
> is that?  i don't know anything about php, can it do everything that
> struts can?  is it difficult to learn?  what is the differences, pros
> and cons between php and struts?  (other than i can get php hosting
> plans for less than $10/month!!!)  :)
> 
> thanks,
> woodchuck
> 
> --- bryan <[EMAIL PROTECTED]> wrote:
> 
> > Get some friends together and get yourselves a linux box hosted on
> > rackspace, jave is too resource hungry to get cheap virtual server
> > type offerings for it. That is why the world uses php or if you just
> > wanna demo your stuff why not get ADSL
> >
> > --b
> >
> >
> > On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuck
> > <[EMAIL PROTECTED]> wrote:
> > > hihi all,
> > >
> > > can anyone recommend hosters that are Tomcat/Java friendly and
> > offer
> > > private JVMs for cheap monthly cost?  (cheap to me is $0 -
> > $20/month
> > > range)
> > >
> > > i went to servlets.com and visited many of the hosters on their
> > list
> > > but most of them seem to still have the legacy offerings that are
> > > stingy on space and transfer allowances.  it was either that or
> > they
> > > charge a lot ($50+/month) for private JVMs.
> > >
> > > thanks in advance,
> > > woodchuck
> > >
> > > __
> > > Do you Yahoo!?
> > > Check out the new Yahoo! Front Page.
> > > www.yahoo.com
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > http://www.revoltingdigits.com
> > https://jestate.dev.java.net
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> __
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.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]
> 
> 


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

-
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: OT: hosting recommendations?

2004-11-15 Thread Jesse Alexander (KBSA 21)
swiss-hoster rarely have limitations on traffic... ;-)
so the problem with this one is their limited traffic which is
included and the relatively high price for additional traffic...
Be sure to use a compression filter for your applications...

But they are quite "leading edge" with Java5 and PHP5 already 
available... 

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 9:58 AM
To: 'Struts Users Mailing List'
Subject: AW: OT: hosting recommendations?

hi,

take a look at www.starline-inc.de, it is a "german jsp hoster".

We work with starline more than 2 years and we are statisfied.

Starline has good prices and features in his packages.


Regards,

Frank


> -Ursprüngliche Nachricht-
> Von: Jesse Alexander (KBSA 21)
> [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. November 2004 09:50
> An: 'Struts Users Mailing List'
> Betreff: RE: OT: hosting recommendations?
> 
> 
> most hosting providers I have talked to talk about "security issues" 
> when you ask them to provide Java-webhosting. ;-)
> 
> check out: 
>  =_dienstleistungen/webhosting_linux>
> Yes, it is a swiss company... with swiss server placement...
> The "Linux business"-package should around 300 US$ (per year), the 
> "Linux Professional" is about 120US$ (rough estimate)
> This is a package similar to those php-webhosting packages. Their 
> dedicated servers start at about 70$ a month.
> 
> Less... then server4free (mentioned in some earlier post in this
> mailing list) "might" be the way for you...
> 
> good luck
> Alexander
> 
> -Original Message-
> From: Woodchuck [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 12, 2004 10:14 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: OT: hosting recommendations?
> 
> rackspace must be some serious hosting... they start at a whopping
> $350/month... lol, if i win the lottery i will sign up with them! :)
> 
> you're right, there seems to be very economical hosting for php.  why
> is that?  i don't know anything about php, can it do everything that
> struts can?  is it difficult to learn?  what is the differences, pros
> and cons between php and struts?  (other than i can get php hosting
> plans for less than $10/month!!!)  :)
> 
> thanks,
> woodchuck
> 
> 
> --- bryan <[EMAIL PROTECTED]> wrote:
> 
> > Get some friends together and get yourselves a linux box hosted on
> > rackspace, jave is too resource hungry to get cheap virtual server
> > type offerings for it. That is why the world uses php or if you just
> > wanna demo your stuff why not get ADSL
> > 
> > --b
> > 
> > 
> > On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuck
> > <[EMAIL PROTECTED]> wrote:
> > > hihi all,
> > > 
> > > can anyone recommend hosters that are Tomcat/Java friendly and
> > offer
> > > private JVMs for cheap monthly cost?  (cheap to me is $0 -
> > $20/month
> > > range)
> > > 
> > > i went to servlets.com and visited many of the hosters on their
> > list
> > > but most of them seem to still have the legacy offerings that are
> > > stingy on space and transfer allowances.  it was either that or
> > they
> > > charge a lot ($50+/month) for private JVMs.
> > > 
> > > thanks in advance,
> > > woodchuck
> > > 
> > > __
> > > Do you Yahoo!?
> > > Check out the new Yahoo! Front Page.
> > > www.yahoo.com
> > > 
> > >
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > -- 
> > http://www.revoltingdigits.com
> > https://jestate.dev.java.net
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Check out the new Yahoo! Front Page. 
> www.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]

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



Re: problem with unicode

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

> I have a problem with display of characters in latin-1.
> 
> for example: The properties file contains the unicode \u0119,
> but the character is not displayed.
> 
> If I use ę it will be displayed. I use 
> 
> Has someone a solution?

If you're really trying to display that character in latin1, yes
it will fail because this is not a latin1 character. When
converting to java unicode escapes, first 128 latin1/ascii
characters are unchanged and remaining 128 characters are \u0080
to \u00ff, as you can see with this:

[EMAIL PROTECTED] /tmp] perl -e 'print chr($_), " " foreach 128..255' > t.p
[EMAIL PROTECTED] /tmp] native2ascii -encoding latin1 t.p
\u0080 \u0081 \u0082 \u0083 \u0084 \u0085 \u0086 \u0087 \u0088 \u0089 \u008a 
\u008b \u008c \u008d \u008e \u008f \u0090 \u0091 \u0092 \u0093 \u0094 \u0095 
\u0096 \u0097 \u0098 \u0099 \u009a \u009b \u009c \u009d \u009e \u009f \u00a0 
\u00a1 \u00a2 \u00a3 \u00a4 \u00a5 \u00a6 \u00a7 \u00a8 \u00a9 \u00aa \u00ab 
\u00ac \u00ad \u00ae \u00af \u00b0 \u00b1 \u00b2 \u00b3 \u00b4 \u00b5 \u00b6 
\u00b7 \u00b8 \u00b9 \u00ba \u00bb \u00bc \u00bd \u00be \u00bf \u00c0 \u00c1 
\u00c2 \u00c3 \u00c4 \u00c5 \u00c6 \u00c7 \u00c8 \u00c9 \u00ca \u00cb \u00cc 
\u00cd \u00ce \u00cf \u00d0 \u00d1 \u00d2 \u00d3 \u00d4 \u00d5 \u00d6 \u00d7 
\u00d8 \u00d9 \u00da \u00db \u00dc \u00dd \u00de \u00df \u00e0 \u00e1 \u00e2 
\u00e3 \u00e4 \u00e5 \u00e6 \u00e7 \u00e8 \u00e9 \u00ea \u00eb \u00ec \u00ed 
\u00ee \u00ef \u00f0 \u00f1 \u00f2 \u00f3 \u00f4 \u00f5 \u00f6 \u00f7 \u00f8 
\u00f9 \u00fa \u00fb \u00fc \u00fd \u00fe \u00ff 

You can also verify that trying to convert to latin1 doesn't
change your character:

[EMAIL PROTECTED] /tmp] echo "\u0119 - \u00ea" > t.p
[EMAIL PROTECTED] /tmp] native2ascii -encoding latin1 -reverse t.p
\u0119 - ê


Check the html sourcecode in the browser to see what's actually
being transmitted. Verify the encoding/charset specified in the
document header and how the character is actually encoded in the
page.

-- 
Guillaume Cottenceau

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



Re: Multibox deselection problem

2004-11-15 Thread Olivier Croisier
Hi !
Thank you for you help, it works fine now !
BTW, it seems like Struts does not support all standart HTML options : I had to use a pure HTML 
 tag because the "readonly" attribute does not exist in Struts, and I 
think this mix is a bit dirty. But it works...
("onLoad" not supported either...)
Olivier Croisier

This is a problem with HTTP: when all the checkboxes are deselected, the
browser doesn't send anything back, so you get the default of what you
started with. To solve this problem you must ensure that at least one box is
always selected.
I solved this problem by creating an additional checkbox that is hidden,
read-only and selected. This will ensure that the browser sends something
back.
String[] defaultEntities = {"A", "B", "C", "D", "filler"};

Wiebe
-Original Message-
From: Olivier Croisier [mailto:[EMAIL PROTECTED]
Sent: Friday, November 12, 2004 6:47 AM
To: [EMAIL PROTECTED]
Subject: Multibox deselection problem
Hi !
I have a problem with the Multibox behaviour. I have checked the online doc
but nothing helped me so far... Here is my problem :
My app workflow is :
prepareImportAction.do  ->  Import.jsp  ->  processImportAction.do
In the prepareImportAction.do, I initialize the "entities" var (of type
String[], in session scope), so that the checkboxes are checked by default
when the jsp page is displayed :
String[] defaultEntities = {"A", "B", "C", "D"};
myform.set("entities", defaultEntities);
In the jsp page, I have a set of :




I also have a small javascript that allows the user to select or deselect
all checkboxes in one click :
function checkAll(field)
{   var i;
for (i=0;i
Now here is my problem. When I de-select all the checkboxes in my jsp page,
by hand or by javascript, my processImport.do receives a String[] array
containing the entities that were defined in preparaImport.do as default,
instead of an empty array.
This only happens only when all entities are deselected : if a single one is
selected, I get the desired behaviour.
May you help me to understand where I am wrong and why it doesn't work
please?
Olivier Croisier

--
CROISIER Olivier
Software Engineer
Thales IS - ANS
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: OT: hosting recommendations?

2004-11-15 Thread bryan
"security issues"  if that's their response then they are clowns,
pure and simple. I wouldn't trust someone like that to change a
lightbulb.

--b


On Mon, 15 Nov 2004 09:50:09 +0100, Jesse Alexander (KBSA 21)
<[EMAIL PROTECTED]> wrote:
> most hosting providers I have talked to talk about "security issues"
> when you ask them to provide Java-webhosting. ;-)
> 
> check out: 
> 
> Yes, it is a swiss company... with swiss server placement...
> The "Linux business"-package should around 300 US$ (per year), the
> "Linux Professional" is about 120US$ (rough estimate)
> This is a package similar to those php-webhosting packages. Their
> dedicated servers start at about 70$ a month.
> 
> Less... then server4free (mentioned in some earlier post in this
> mailing list) "might" be the way for you...
> 
> good luck
> Alexander
> 
> 
> 
> -Original Message-
> From: Woodchuck [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 12, 2004 10:14 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: OT: hosting recommendations?
> 
> rackspace must be some serious hosting... they start at a whopping
> $350/month... lol, if i win the lottery i will sign up with them! :)
> 
> you're right, there seems to be very economical hosting for php.  why
> is that?  i don't know anything about php, can it do everything that
> struts can?  is it difficult to learn?  what is the differences, pros
> and cons between php and struts?  (other than i can get php hosting
> plans for less than $10/month!!!)  :)
> 
> thanks,
> woodchuck
> 
> --- bryan <[EMAIL PROTECTED]> wrote:
> 
> > Get some friends together and get yourselves a linux box hosted on
> > rackspace, jave is too resource hungry to get cheap virtual server
> > type offerings for it. That is why the world uses php or if you just
> > wanna demo your stuff why not get ADSL
> >
> > --b
> >
> >
> > On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuck
> > <[EMAIL PROTECTED]> wrote:
> > > hihi all,
> > >
> > > can anyone recommend hosters that are Tomcat/Java friendly and
> > offer
> > > private JVMs for cheap monthly cost?  (cheap to me is $0 -
> > $20/month
> > > range)
> > >
> > > i went to servlets.com and visited many of the hosters on their
> > list
> > > but most of them seem to still have the legacy offerings that are
> > > stingy on space and transfer allowances.  it was either that or
> > they
> > > charge a lot ($50+/month) for private JVMs.
> > >
> > > thanks in advance,
> > > woodchuck
> > >
> > > __
> > > Do you Yahoo!?
> > > Check out the new Yahoo! Front Page.
> > > www.yahoo.com
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > http://www.revoltingdigits.com
> > https://jestate.dev.java.net
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> __
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.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]
> 
> 


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

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



AW: OT: hosting recommendations?

2004-11-15 Thread Otto, Frank
hi,

take a look at www.starline-inc.de, it is a "german jsp hoster".

We work with starline more than 2 years and we are statisfied.

Starline has good prices and features in his packages.


Regards,

Frank


> -Ursprüngliche Nachricht-
> Von: Jesse Alexander (KBSA 21)
> [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. November 2004 09:50
> An: 'Struts Users Mailing List'
> Betreff: RE: OT: hosting recommendations?
> 
> 
> most hosting providers I have talked to talk about "security issues" 
> when you ask them to provide Java-webhosting. ;-)
> 
> check out: 
>  =_dienstleistungen/webhosting_linux>
> Yes, it is a swiss company... with swiss server placement...
> The "Linux business"-package should around 300 US$ (per year), the 
> "Linux Professional" is about 120US$ (rough estimate)
> This is a package similar to those php-webhosting packages. Their 
> dedicated servers start at about 70$ a month.
> 
> Less... then server4free (mentioned in some earlier post in this
> mailing list) "might" be the way for you...
> 
> good luck
> Alexander
> 
> -Original Message-
> From: Woodchuck [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 12, 2004 10:14 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: OT: hosting recommendations?
> 
> rackspace must be some serious hosting... they start at a whopping
> $350/month... lol, if i win the lottery i will sign up with them! :)
> 
> you're right, there seems to be very economical hosting for php.  why
> is that?  i don't know anything about php, can it do everything that
> struts can?  is it difficult to learn?  what is the differences, pros
> and cons between php and struts?  (other than i can get php hosting
> plans for less than $10/month!!!)  :)
> 
> thanks,
> woodchuck
> 
> 
> --- bryan <[EMAIL PROTECTED]> wrote:
> 
> > Get some friends together and get yourselves a linux box hosted on
> > rackspace, jave is too resource hungry to get cheap virtual server
> > type offerings for it. That is why the world uses php or if you just
> > wanna demo your stuff why not get ADSL
> > 
> > --b
> > 
> > 
> > On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuck
> > <[EMAIL PROTECTED]> wrote:
> > > hihi all,
> > > 
> > > can anyone recommend hosters that are Tomcat/Java friendly and
> > offer
> > > private JVMs for cheap monthly cost?  (cheap to me is $0 -
> > $20/month
> > > range)
> > > 
> > > i went to servlets.com and visited many of the hosters on their
> > list
> > > but most of them seem to still have the legacy offerings that are
> > > stingy on space and transfer allowances.  it was either that or
> > they
> > > charge a lot ($50+/month) for private JVMs.
> > > 
> > > thanks in advance,
> > > woodchuck
> > > 
> > > __
> > > Do you Yahoo!?
> > > Check out the new Yahoo! Front Page.
> > > www.yahoo.com
> > > 
> > >
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > -- 
> > http://www.revoltingdigits.com
> > https://jestate.dev.java.net
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Check out the new Yahoo! Front Page. 
> www.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: OT: hosting recommendations?

2004-11-15 Thread Jesse Alexander (KBSA 21)
most hosting providers I have talked to talk about "security issues" 
when you ask them to provide Java-webhosting. ;-)

check out: 

Yes, it is a swiss company... with swiss server placement...
The "Linux business"-package should around 300 US$ (per year), the 
"Linux Professional" is about 120US$ (rough estimate)
This is a package similar to those php-webhosting packages. Their 
dedicated servers start at about 70$ a month.

Less... then server4free (mentioned in some earlier post in this
mailing list) "might" be the way for you...

good luck
Alexander

-Original Message-
From: Woodchuck [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 12, 2004 10:14 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: OT: hosting recommendations?

rackspace must be some serious hosting... they start at a whopping
$350/month... lol, if i win the lottery i will sign up with them! :)

you're right, there seems to be very economical hosting for php.  why
is that?  i don't know anything about php, can it do everything that
struts can?  is it difficult to learn?  what is the differences, pros
and cons between php and struts?  (other than i can get php hosting
plans for less than $10/month!!!)  :)

thanks,
woodchuck


--- bryan <[EMAIL PROTECTED]> wrote:

> Get some friends together and get yourselves a linux box hosted on
> rackspace, jave is too resource hungry to get cheap virtual server
> type offerings for it. That is why the world uses php or if you just
> wanna demo your stuff why not get ADSL
> 
> --b
> 
> 
> On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuck
> <[EMAIL PROTECTED]> wrote:
> > hihi all,
> > 
> > can anyone recommend hosters that are Tomcat/Java friendly and
> offer
> > private JVMs for cheap monthly cost?  (cheap to me is $0 -
> $20/month
> > range)
> > 
> > i went to servlets.com and visited many of the hosters on their
> list
> > but most of them seem to still have the legacy offerings that are
> > stingy on space and transfer allowances.  it was either that or
> they
> > charge a lot ($50+/month) for private JVMs.
> > 
> > thanks in advance,
> > woodchuck
> > 
> > __
> > Do you Yahoo!?
> > Check out the new Yahoo! Front Page.
> > www.yahoo.com
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> http://www.revoltingdigits.com
> https://jestate.dev.java.net
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.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: Using non struts-config.xml MessageResource in the Validator

2004-11-15 Thread Christian Bjørnbak
Hi James
Thanks for your answer.
I have already tried that solution, but I need the PathInfo to know 
which MessageResource to pull from the db...

In the meantime I've made the following progress on my own:
I realized the it isn't the Validator which is the problem; It's the 
JavascriptValidatorTag and ErrorsTag which uses a MessageResource from 
ServletContext to generate the error messages.

I've figured out that the MessageResource is placed on the 
ServletContext in an attribute named by Globals.MESSAGES_KEY.

I have (just for testing) replaced the struts-config.xml MessageResource 
with another MessageResource in my code - it works, but leaves a major 
thread synchronization issue...

If I could only make Struts look for the MessageResource on the request 
or session...

I have also found out that I can easily extend JavascriptValidatorTag to 
use another ServletContext attribute than standard and less easily use a 
request/session attribute...

The name of the attribute is in a protected String so by extending 
JavascriptValidatorTag and adding a setter I can use custom attributes 
on the ServletContext.

If I want to use a request/session attribute I have to override 2/3 of 
the extended JavascriptValidatorTag, because the oneliner of code is in 
a private method which again uses private method's NO GO - a 
nightmare at all Struts upgrades..

In the ErrorsTag it's even easier to use a custom ServletContext 
attribute because it already have the setter for the MessageResource 
attribute name.

So I guess I have to place the MessageResources under custom names on 
the ServletContext and use so kind of LRU algoritm to remove them again.

Thanks,
Christian Bjørnbak

James Mitchell wrote:
The validator pulls it from the request.
So, you need a custom impl of MessageResources.  Then, you just 
configure your message resource factory in the struts-config and you 
are done.

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - From: "Christian Bjørnbak" 
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 11, 2004 3:17 AM
Subject: Using non struts-config.xml MessageResource in the Validator


Hi
I'm currently migrating a system from some homemade XML framework to 
Struts.

The system is an application service provider where lots of companies 
have the own db driven ResourceBundle for i18n.

All the companies use the same struts-config.xml as they all share 
the same Actions, Forms and jsps, and servlet's PathInfo decide which 
company's pages is requested..

The i18n for the texts on the pages is solved by extending the JSTL 
messageTag to use our own ResourceBundle.

Now the problem is the texts used at validation of errors...
I would like to be able to use the Struts Validator, but how do I 
tell the Validator to use a custom ResourceBundle/MessageResource 
instead of the one from struts-config.xml??

I've figured that extending the ValidatorPlugin is the entrence, but 
I can't find where the errors converted to texts..

Any pointers??
/Christian Bjørnbak
-
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]


problem with unicode

2004-11-15 Thread Otto, Frank
Hi,

I have a problem with display of characters in latin-1.

for example: The properties file contains the unicode \u0119, but the character 
is not displayed.

If I use ę it will be displayed. I use 

Has someone a solution?


Regards,

Frank

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