Hi
First of all: Please direct these types of questions to the proper maillisting
for Tomcat.
Tomcat is as I stated, first and foremost a Servlet engine (Reference
implementation), and is as such tuned for that. My guess is that if you are
having performance problems, that these are due to har
I seem to have a issue using 's onclick. My value of onclick is a
javascript performing form.submit(), but I found out this is not working.
However if I chang my button to then the javascript is working.
Why this is the case? Thanks.
-
Yahoo! M
George
Could you explain on how MVC patterns are fractal?
Thanks,
Martin-
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Tuesday, October 18, 2005 4:49 PM
Subject: RE: What's wrong with DTOs?
From: Leon Rosenberg
P.S. Have you ever considered, that the View itself can be a
On 10/18/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> Michael,
>
> I like your code alot but a couple of things prevent me from purloining
> it for my own purposes:
>
> firstly, I like to allocate my base class to sort out user, locale,
> msgKeys, and messages objects for use in the subclass. It do
Michael,
I like your code alot but a couple of things prevent me from purloining
it for my own purposes:
firstly, I like to allocate my base class to sort out user, locale,
msgKeys, and messages objects for use in the subclass. It doesn't seem
to be possible to sandwich a subclass in-betwee
Natalie,
Your question isn't clear
If you're dealing with multiple checkboxes, the
property backing them should be a String[] so you can
capture all the values selected.
If you're dealing with multiple options of a radio
group, only one option will ever be selected.
Paul
This action class is inspired by LookupDispatchAction, but it does not
use property file and does not tie button caption to property name.
Actually, it supports "parameter" to be compatible with original
DispatchAction.
On the other hand, if you think that hashmap brings an unnecessary
overhead, t
> From: Leon Rosenberg
>
> P.S. Have you ever considered, that the View itself can be an
> MVC as well?
Yes, patterns are fractal.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Only fair to mark this thread OT by now, hope no one minds...
Talking about the view that considers what goes on in Struts Actions to be
part of the view, here's why I don't agree with that perception...
In that view, if I have a webapp and later want to make it a Swing-based
app, I would be thro
+1.
.V
Christian Bollmeyer wrote:
[EMAIL PROTECTED] schrieb:
+1. The first thing I always preach new developers
on my team is that they should think the entire web
tier away and replace it (mentally) with a Swing or
whatever client, without changing anything in the
subsequent layers, and the
On 10/18/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> > > I can't answer for Ted, but I consider *all* of MVC to be
> > part of the
> > > view tier. The Model is just the presentation layer's view of the
> > > business system. It should be abstract and opaque and
> > contain all of
> > > th
[EMAIL PROTECTED] schrieb:
+1. The first thing I always preach new developers
on my team is that they should think the entire web
tier away and replace it (mentally) with a Swing or
whatever client, without changing anything in the
subsequent layers, and the application still has to
work as usual
Michael
Without a doubt this is the most intuitive page I have ever seen
I take it the lack of support for orphaned 'parameter' action attribute is
overcome with inserting map events to method handlers via HashMap such as
this example
protected Map getKeyMethodMap() {
Map map = new HashMap(
> -Original Message-
> From: Dave Newton
> I'm still not clear on how the entirety of MVC is the V
It's not. MVC is a View Tier pattern, though. Within the pattern it
separates the Model, an abstraction of the business logic, the View,
which displays a representation of the Model, and th
Thank you so much, as soon as I removed the execute method it worked
perfectly
Wendy Smoak wrote:
From: "Troy Bull" <[EMAIL PROTECTED]>
public ActionForward execute( ... ) {
SearchForm s = (SearchForm) form;
String dispatchString = s.getDispatch();
System.out.println("Main Dispatc
[EMAIL PROTECTED] wrote:
On 10/18/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
I can't answer for Ted, but I consider *all* of MVC to be part of the view
tier. The Model is just the presentation layer's view of the business system.
It should be abstract and opaque and contain all o
> From: Leon Rosenberg
> On 10/18/05, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > > -Original Message-
> > > From: Frank W. Zammetti
> > [snip]
> > >
> > > Ted, this seems to be saying that you consider the Actions to be
> > > part of the view... is that what you intended?
Since I always seem to be asking questions and receiving help, I thought I
would let you know how I finally solved this problem.
What was wrong was in the naming of my jsps (the view-ids). I changed my
faces-config.xml from:
loggedOff
/failure.jsp
to
loggedOff
On 10/18/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Frank W. Zammetti
> [snip]
> >
> > Ted, this seems to be saying that you consider the Actions to
> > be part of the view... is that what you intended?
>
> I can't answer for Ted, but I conside
May be you could use "validWhen". I'm not sure if this works, may be you
could give it a try
test
((*this*==null) or ((*this*!=null) and (sub1.x!=null
)))
On 10/18/05, Ashutosh Satyam <[EMAIL PROTECTED]> wrote:
>
> Hi,
> > Is there a way to perform 'requiredif' validation on nested objects ?
On 10/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi. I am using struts 1.2.7. My struts-config-xml file has the following:
>
> name="wizardForm"
> scope="session"
> type="edu.nmsu.psl.userwizard.AddPSLUserWizardAction"
> input="/step1
> -Original Message-
> From: Frank W. Zammetti
[snip]
>
> Ted, this seems to be saying that you consider the Actions to
> be part of the view... is that what you intended?
I can't answer for Ted, but I consider *all* of MVC to be part of the
view tier. The Model is just the pres
Ramesh;
That was it... I had overlooked the property attribute of the errors
tag...
thanks for your help!
Regards,
Chris
>>> [EMAIL PROTECTED] 10/18/2005 9:24:23 AM >>>
Hi there,
Say u hv a with the property name
"custName". U can use right below the .
So, when an action error occurs,
On Tue, October 18, 2005 11:05 am, Ted Husted said:
> The question is whether we want to stop transfering the data when we
> get to the servlet (or filter or Action), or continue to transfer the
> data on to the model. If we stop at the Action layer, and start
> making model calls there, we elimin
On 10/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> You may ask now what's the place for HttpServletRequest and its company. I
> think its natural place is inside the document itself, hidden inside its
> code, so that the interface is independent from the use of servlet
> technology. In fac
From: "Troy Bull" <[EMAIL PROTECTED]>
public ActionForward execute( ... ) {
SearchForm s = (SearchForm) form;
String dispatchString = s.getDispatch();
System.out.println("Main Dispatch String : " + dispatchString);
// manually dispatching works but is ugly
//if ("run_main_search
Troy Bull wrote:
Hello
I am trying to get my form to dispatch to different functions inside
my action handler class. I followed this tip exactly :
http://www.husted.com/struts/tips/002.html (except i fixed a couple
type o's).
The problem is my dispatch parameter is not being recognized.
-Messaggio originale-
Da: Troy Bull [mailto:[EMAIL PROTECTED]
Inviato: martedì 18 ottobre 2005 14.35
A: user@struts.apache.org
Oggetto: trouble with dispatching on a paramter
Hello
I am trying to get my form to dispatch to different functions inside my
action handler class. I followe
Hi,
I'm not serving any static content; everything is dynamic out of a database.
Neil
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: 18 October 2005 03:14 PM
To: Struts Users Mailing List
Subject: Re: Clever trick required
Hermod-
Currently I am currently ru
Here is the class declaration :
public class DoSearchAction extends DispatchAction
{
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws
IOException, ServletException
{
SearchForm s = (SearchForm) form;
Hi Natalie,
Are you using String[] for the options in the ActionFormBean?
HTH,
Dharmendra
ps: have a nice day!
-Original Message-
From: Rassmann, Natalie D [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 18, 2005 8:27 AM
To: struts-user@jakarta.apache.org
Subject: Default va
Hi there,
Say u hv a with the property name
"custName". U can use right below the .
So, when an action error occurs, it will be displayed
right below the corresponding to the
property.
Regards,
Ramesh M.
--- Christopher Becker <[EMAIL PROTECTED]>
wrote:
>
> I have a form in a Struts app
I have a form in a Struts app (v1.2.7) that I am attempting to use in conjunction with the validator framework. I wish to associate the error messages directly with the input field that caused them (e.g. additional row in a table, etc.) I am using the tag and can see that the errors are being
Hermod-
Currently I am currently running tomcat 5.5.7 and not using any HTTP server
for front end
If I have no legacy CGI / Perl scripts or static content to server up would
I need to front end Tomcat with an HTTP Server?
What are the performance considerations for Tomcat standalone vs FrontEnd
From: "Troy Bull" <[EMAIL PROTECTED]>
The problem is my dispatch parameter is not being recognized. I have
the following code in my ActionForward execute method:
SearchForm s = (SearchForm) form;
String dispatchString = (String) request.getAttribute("dispatch");
Try request.getParameter(
At 1:44 PM +0800 10/18/05, Tony Lu wrote:
I need to create an internationalized Web application by struts,mysql and
hibernate.
Each component Character Encoding is utf8.
It runs well when I run a pure servlet to save 'Chinese Character' to
database and load it from database.
But when I implement
Hello
I am trying to get my form to dispatch to different functions inside my
action handler class. I followed this tip exactly :
http://www.husted.com/struts/tips/002.html (except i fixed a couple type
o's).
The problem is my dispatch parameter is not being recognized. I have
the followi
Hi -
I am trying to get the default values for a multiple select to work
when more than one option is selected. It seems as though I only can
get one of the options marked as selected when several are actually
selected.Has anyone run into this before? Can anyone help me?
Natalie Rassmann
Hi,
> Is there a way to perform 'requiredif' validation on nested objects ?
> I would like to check for the value of an object only if the object
> containing
> it is not null.
>
> In the following example scenario:
>
> Class A{
> String x;
> String y;
> }
>
> Class Obj{
> A
Hi
i'm thinking about loading struts-config datasources configuration
directly to my business classes, but i appears to be necesary to use
action clases (by calling getDataSource method). is it possible to
use a load-on-startup servlet to get struts configured datasources (or
something similar, in
Hi All!
I am Shailesh.This is my first Post on this group.I working on an B2B Web
application which uses Struts,Hibernate .My task is to allow an administrator
to change the messages list(Containing various Error Messages) on a JSP page
which is enabled by a particular action.I have to access
Emmanuel.Leguy a écrit :
Yes name is specified. I think it needs more explanations. My action
sequence is:
jsp0 ---> Action1> jsp1 -> Action2 > jsp2
| |
Formbean1
Hi
Your running Tomcat as an HTTP Server? Why? Tomcat is a Servlet engine and is
not optimized for serving static content. You should put Apache Http server in
front of it, serving static content.
I have Tomcat running on servers, and have seen more that 1200 concurrent
sessions on it without
1) Don't high-jack threads. Start a new one if you really want an answer.
2) This is hardly a topic for the struts-user list. mail to
[EMAIL PROTECTED]
3) What is tomcat 5.1???
leon
On 10/18/05, Neil Meyer <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I know this is probably of topic but I have huge prob
Hi,
I know this is probably of topic but I have huge problems with my webserver.
We are running struts on this server under Tomcat 5.1. It seems like the
tomcat server can't handle load.
Any comment or recommendations will really be appreciated. I'm looking at Sun
web server now.
Regards
Neil M
Laurie Harper a écrit :
Sure.
DynaActionForm dForm = (DynaActionForm) form;
dForm.set( "name", person.getName() );
You can also use BeanUtils to copy properties from the Person to the
Form bean:
BeanUtils.copyProperties( dForm, person );
Il get this error:
javax.servlet.ServletException: I
I wish to tell you a story, to show because I changed my mind about DTOs.
Once upon a time I used to write GUIs (i.e. Swing GUIs). I have to tell
that I used to mix controller code with model. But when I think about that
"era" I noticed that it was pretty easy to write code. Why now is it so
diffic
47 matches
Mail list logo