David Graham wrote:
Actually I wasn't referring to "OLE" as in M$ speak, Ole is just a short
version of "Old" :)
By "short", do you mean "the same amount of characters" ;-) ?
For some reason the "POJO" term really irritates me. I'm not sure why
we need a special nomenclature for Java objects
David,
would you happen to have an example app or at least an action where you
have implemented the Mapper ?
Unfortunately, I just committed this and don't have example apps. The
javadoc is pretty good (I think) but there's not much else at this point.
Here's what you need to get started:
1. Cr
From: "David Graham" <[EMAIL PROTECTED]>
> For some reason the "POJO" term really irritates me. I'm not sure why we
> need a special nomenclature for Java objects.
Well, that said, why do you think guys the term POJO was invented for ?
I was told that it was invented because some people only swe
Hi,
You may put all your jsp under the WEB-INF directory, so
they are not available for user. But the application still
work, because all navigation is done by the struts
controler. It is simple and work fine with all app server.
You must change your struts-config.xml to reflect the
changes of ta
Laurent PETIT wrote:
From: "David Graham" <[EMAIL PROTECTED]>
For some reason the "POJO" term really irritates me. I'm not sure why we
need a special nomenclature for Java objects.
Well, that said, why do you think guys the term POJO was invented for ?
I was told that it was invented because s
Then are you interested in checking for an action button in the validate() to just
return null()?this way you control when you want to validate right in the form
class.
-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 1:24 PM
To: [EMAIL
I can see your problems now. It seems to me that
the dispatch action can *consolidate* different
CRUD operations into one action mapping, but
it fails to *consolidate* the corresponding input
attribute for each of the CRUD operations.
I just get an idea to *fix* the problem so that
you have one ac
Hi,
I found a thread related to this: subject: Protecting JSPs using
security-constraint
Basically, the solution suggested was:
SecureAllJSPs
*.jsp
nobody
You are correct, my choice of words inadvertently changed
the problem statement to something that I didn't mean. Very
sharp eyes there.
>An integer validation is not the same as a "are all characters numeric"
>validation. I don't think the validator currently has a numeric check but
>patches are
Actually I am starting to think this is appropriate behaviour. After I sent
the original e-mail I realized that the ActionForm was NOT being
instantiated by Action1; in struts-config Action1 simply pre-populated some
beans and then forwarded to JSP2. It was when JSP2 was being rendered that
I was
Hi everybody, ive got the next problem.
Ive got a 404 when I click on the link that I show below. The action
retrieve the data from model(and it is called), but when redirect it
doesnt show the jsp.
Persistencia.jsp is on the root , with inicio.jsp
This is my struts-config.xml
..
Thank you Robert & Markus for your mask suggestions
will work beautifully. I would have seen it before I
suppose if I were more comfortable with regexp notation.
Thank you again,
Brad
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
I do not want to validate when page loads, so how can I avoid it unless
I give validate=false in the action mapping?
>>> [EMAIL PROTECTED] 06/19/03 01:49PM >>>
Then are you interested in checking for an action button in the
validate() to just return null()?this way you control when you want
to
Are you by chance using a dispatch action? From appearances you might be.
In the case of DispatchActions when it can't find the method you named, it
calls a supplied method named "unspecified()". The default implementation of
this method returns a 404 I believe.
-Original Message-
From: ru
Hold on, I don't think I used multiple action-mapping for any of my jsp pages.
Let me check what I did there. This is interesting, because I don't know how
you would avoid the server-side check when you load the page for the first time.
Oh, it's simple. You don't call ActionValidateForm.valida
Sashi wrote:
> I do not want to validate when page loads, so how can I avoid it unless I
give
> validate=false in the action mapping?
Override the validate method in your Form bean, and only call
super.validate() when appropriate. How to decide that is up to you. I use
a LookupDispatchAction, s
Thanks Mike,
But i think that it find it because it do the work of the method
muestra, I mean, it call the EJB, and do the work of this DispatchAction
method, it redirect to a 404 for target mostrado.
-Mensaje original-
De: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19
Our WAS Admin have the following opinion. Since reflection is used in
Struts is this an accurate statement?
Struts usage of memory.
It appears that Jakarta Struts utilizes more of the Permanent Generation
memory space within a JVM then non-struts applications. Reflection
objects are stored wit
If you're referring to setting an ActionForward path at runtime, that could
be a problem.
I have wanted to do this as well, however it appears that when initializing
all the configurations in the ActionServlet.init() upon startup the paths
are set once and then locked, or "frozen". See ModuleConf
All,
We continue to introduce the phased validation model.
In the last tip, we have shown that the configuration
effort in phase one validations is reduced to a checkbox
on each of property descriptors.
The phase two validations in Carrier is controlled by
the Struts framework with extended capab
Thanks!
[EMAIL PROTECTED] wrote:
You are assigning your console appender twice.
log4j.rootLogger=WARN,Console
log4j.logger.org.apache.struts.action.RequestProcessor=DEBUG,Console
log4j.logger.app=DEBUG,Console
log4j.logger.app will inherit the appender from rootLogger, so you can just
do
Okey, I could use same actions which would be ok (for wml/jsp pages actions
will contain a little bit too much locig).
But how about returning the proper jsp page's name (wml or html generation)
from action class.
First I should check which type of client is requesting the page (wap or
browser)
I am working on integrating struts-tiles-JSF using the struts-faces.jar v4
I noticed the following issue
The response ends up as committed the first time you hit a page with faces
in it when you are accessing it using struts-Tiles. That is, even if you are
accessing a page with just a image on it
StrutsCX offers this kind of capability where content is returned by the
request's header details (wml vs. html)
The other thing is to still use JSP's for rendering, but then use
ServletFilters from your Web Container to modify the response headers for
the client device.
Jacob Hookom
Sen
You can check the User-Agent, and acceptable content types, using the same
URL, and then apply a stylesheet based on that determination.
-Original Message-
From: Mike Landis [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 3:10 PM
To: [EMAIL PROTECTED]
Subject: Re: WAP/WML support t
I am integrating Struts - Faces - Tiles in one of my applications and i ran
into the following issue. A temporary fix is given below:
Here's an example:
I have a form and the action on the form is "/b.do"
In the struts-config.xml , "/b.do" is mapped to a tiles definition of
"doc.mainLayout"
In t
But I should change the code in current html based application.
One of the major difficulties are that customer does not want that xslt or
stylesheets are used
and current html based application is also made by third party vendor.
So, I should use 'tradional ways' (using different jsps for both ht
I tried this within my WSAD 4.0.3 test environment, it doesn't work, no
any effect to any jsp files.
I don't know if I need to configure my WSAD but I thought this is a
normal J2EE standard, which is not true in WSAD.
David
- Original Message -
From: "Pingili, Madhupal" <[EMAIL PROTECT
The two approaches that work for me are:
1). All JSPs (except maybe a welcome page) in a subdirectory of WEB-INF (not all
containers support this).
2). All JSPs (except maybe a welcome page) in a subdirectory of the app root and
the following :
Pages
/pages/*
Personally, I'd
I have a Tiles controller that has been simplified to write to the log. This
controller is attached to the tiles definiton used for my login page (no
other controllers are used anywhere). What I don't understand is that as I
navigate accross the site, every time I am forwarded to a new page (create
Hello everyone,
I am a little new at using Struts, so my apologies if this is a newbie
question. I did check the archives and even found a similar query, but
unfortunately no posted solution.
In any event, this is what I have:
1) An iterate loop that loops through a list of selected classes (th
I sometimes setup a security constraint (like the others shown on this
thread) to block access to JSPs -- thought, not to block access from
users but to block access from page authors!
If your application is following the Struts best practice of putting all
JSPs behind actions, your users neve
Tin Pham wrote:
Hi,
Individually these all work
deleteBusiness.confirm.p1 = Confirm company {0} is correct.
Instead of using a literal of esso we want to use the value taken from our
formBean, deleteOganizationForm.
We have tried various combinations. Can somebody please provide an example?
Y
Hi all,
I did some load testing with my struts application (with tomcat) with
around 40 simulated concurrent users. The following exception occurs in
the tomcat log for the app. When there is only one or a few users, this
exception doesn't pop up.
2003-06-19 14:34:38 StandardWrapperValve[action
Oh, forgot to post the actual question. Did anyone experienced this before when they
are doing load testing
with their application ?
Louis Leung wrote:
> Hi all,
>
> I did some load testing with my struts application (with tomcat) with
> around 40 simulated concurrent users. The following excep
Jing,
I like your idea. We are going to try a slightly modified version (we
have "framework" issues that aren't ironed out) that will take advantage
of your idea and keep us from having new problems.
We'll have a primary mapping, where we do the initial processing for a
given user action. There
The trigger for form-bean creation is the tag in your JSP. If a form
bean is not found in the proper scope when the tag is encountered duting
the JSP parsing, Struts will create one. The other option is to explicitly create a
form bean (in a "form initializer" action) and invoke the action be
This could be one way:
..Hrishi
--
__
Hrishi Dixit
Finaplex
415-490-2236 work
415-297-2722 cell
[EMAIL PROTECTED]
> -Original Message-
> From: Tin Pham [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 19, 2003 6:04 AM
> To: [EMAIL PROTECTED]
> Subjec
The struts tiles guide
(http://jakarta.apache.org/struts/userGuide/dev_tiles.html) mentions
multi-channel tiles as a feature to load different tiles according to
some arbitrary key. Is there any documentation or examples demonstration
this?
-
I have looked at this again, and in 1.1 rc2 on tomcat 4.1.18 the reset
is called for each action of a multi action sequence sharing a form bean
even though the form bean is in session scope and only created once - I
have written a demo app with logging that shows this behaviour - should
I submi
On Thu, 19 Jun 2003, Paul Harrison wrote:
> Date: Thu, 19 Jun 2003 23:29:32 +0100
> From: Paul Harrison <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: R
hi!
its funny how this thing comes up every two weeks on the list =)
i got to admit that at first the solution of having value objects/dtos
in an actionform sounded great and making things easy in the
action.. no more endless accessor calling..
but after thinking about it for a while and some p
hello... i just recently deployed a war file in my tomcat's /webapps
directory and it exploded into its own subdirectories.. (in:
/tc/webapps/ex2) which is what it should be normally be doing.
what it is not doing, or maybe i'm not fully understand how it all works..
is why i'm getting a 404 when
as far as I am concerned, there is nothing wrong with having two action
mappings. It is alot easier than coding something in the form class. I
have heard of projects with many hundreds of action mappings, with no
adverse impact on the project.
Wendy Smoak wrote:
Sashi wrote:
I do not want to v
Hello,
I'm new to tiles and can't make it work. I'm trying to display users list
(body - users.jsp) and get an error:
[ServletException in:/users.jsp] Cannot find bean usersList in scope
request' . I'm populating 'usersList' bean and put it into request in my
Action class.
It displays header and f
Is there a way to set up different JDK for different
projects in Eclipse 2.1? I have to use a different
version of JDK for certain projects, because of
dependency on some old packages.
Thanks.
__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.
Did you add Tiles plugin in your struts-config.xml ?
- Original Message -
From: "Mykola Ostapchuk" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2003 6:48 PM
Subject: Tiles question
> Hello,
> I'm new to tiles and can't make it work. I
Sure I did:
It works fine for header and footer. I think there's a problem (mostly I'm
doing something wrong) with action forwarding.
- Original Message -
From: "Sergey Smirnov" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Mykola
Ostap
Hi,
The action DoFirst.java isn't putting the userList bean into the request.
It should be doing something like
request.setAttribute("userList", userListBean);
It is also using the 'perform()' method, if you are using the latest
struts then you should be using the 'execute()' method instead.
I have request.setAttribute("userList", userListBean); string in execute()
method.
My Action class works well without tiles - it returns a bean to users.jsp
and I see the users list.
I'm wandering if I'm using DoFirst action forward class in a right way?
Maybe because of this "additional" forwardin
Is there a way to set up different JDK for different
projects in Eclipse 2.1? I have to use a different
version of JDK for certain projects, because of
dependency on some old packages.
Right click the project > Properties > Java Compiler
David
Thanks.
There was a change to the implementation of the RewriteTag in RC2
regarding the way RequestUtils.computeURL() is called. Rather than
passing redirect as false, redirect is now passed as !this.isXhtml().
WebSphere has a clear implementation of encodeURL() vs.
encodeRedirectURL(). encodeRedirectURL
Mykola Ostapchuk wrote:
I have request.setAttribute("userList", userListBean); string in execute()
method.
My Action class works well without tiles - it returns a bean to users.jsp
and I see the users list.
I'm wandering if I'm using DoFirst action forward class in a right way?
Maybe because of thi
I am in the process of fixing this problem right now (and that comment was
mine not Craig's :-).
David
There was a change to the implementation of the RewriteTag in RC2
regarding the way RequestUtils.computeURL() is called. Rather than
passing redirect as false, redirect is now passed as !this.
Thanks. Does a redirect property on the Link Tag make sense, so that
for any Link tag, one can determine whether encodeURL or
encodeRedirectURL is called?
s.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 11:31 PM
To: [EMAIL PROTECTED]
Subj
Thanks. Does a redirect property on the Link Tag make sense, so that
for any Link tag, one can determine whether encodeURL or
encodeRedirectURL is called?
I'm not sure, the link tag seems to work fine as it is. It would be a post
1.1 enhancement regardless.
David
s.
-Original Message-
Yeah, it would be an additional feature, not a bug fix. Thanks for your
speedy replies.
Best wishes,
Shawn
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 11:43 PM
To: [EMAIL PROTECTED]
Subject: RE: Problem with RewriteTag RC2 and Websphere
Thank you for help - now it works. I just changes mapping class to the
actual one.
I was looking for an example of using tiles - and found one at
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html
There in "Solution 6" is actually what I was trying to implement in my case.
Hi, Hrishi,
Thank you for your reply. Yes, I had
To: "Duan Qiang" <[EMAIL PROTECTED]>; "Struts Users Mailing List"
<[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 5:59 AM
Subject: RE: how to get the formbean in script
>
> The trigger for form-bean creation is the tag in your JSP.
If a form be
I am getting this problem and unfortunatelly search
tool for the list is off line right now.
So, I am trying to populate the form with general
options before submitting. I am doing something like
this, right off the struts HOW TO
where colorSelected is a String with getter and
Hello,
I was trying to use a Tile Definition like:
path="/WEB-INF/pages/tiles/framesetLayout.jsp">
with a framesetLayout.jsp that looks like:
" name="heading" scrolling="NO" noresize>
Thanks. However, I didn't see any place to specify
different JDK home paths. Can you give more details?
Thanks again.
--- David Graham <[EMAIL PROTECTED]> wrote: > >
> >Is there a way to set up different JDK for
> different
> >projects in Eclipse 2.1? I have to use a different
> >version of JDK
Hi, Kandi,
Thx for the message. What I wanted to do is to get the formbean in script so
that I can use the formbean in java codes in JSP. From Hrishi's reply I
understand that when I use , it must
be after the
Cheers,
dq
- Original Message -
From: "Kandi Potter" <[EMAIL PROTECTED]>
To:
Hi All,
I'm currently using WSAD 5.0 and in my Web Project Struts jars are available
and it compiles fine. But when i try to execute the same in a server, i get
following error.
[6/20/03 9:54:32:938 IST] 13ad2d27 WebGroup E SRVE0026E: [Servlet
Error]-[org/apache/struts/taglib/html/TextTag]:
Hello All
Can somebody pls explain how to use
I am using following code
What I understood from the documents is myCollection element will be create when
in doStartTag of logic:iterate. And it will be stored in pageContext so that WriteTag
will access it. But I got the
Thanks! I really appreciate your help.
I guess JSTL will eventually replace struts custom tags?
"Jason Lea" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Tin Pham wrote:
> > Hi,
> >
> > Individually these all work
> >
> > deleteBusiness.confirm.p1 = Confirm company {0} is correct.
HI,
where is ur "list" coming from??
---Original Message---
From: Struts Users Mailing
List
Date: Friday, June 20,
2003 11:22:39 AM
To: Struts Users Mailing
List
Subject:
Logic:itera
You don't "specify the jdk path", you choose to "include a particular jre"
in your project. This gives you project-level jre selection.
Here's something I threw together for you:
http://www.struts-atlanta.org/help.do
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atla
I have set the list attribute list as follows. result.getArticleListDate returns
ArrayList of ValueObjects com.dl.bi.vo.ArticleVo
pageContext.setAttribute("list", result.getArticleListData(), PageContext.PAGE_SCOPE);
And then I did the following
But i got the error myCollectionElement not
Yeah I'm reading the same too.
I would recommend getting both if you are serious about learning Struts.
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hello Vijay,
> i am currently referring two books on Struts
> one of them is by Ted Husted (Manning Publications and the other o
Hmm, interesting, it works fine if colorOptions is
returned as array of Strings, however ArrayList still
not working and comes back with this exception, any
ideas how to make ArrayList or other Collection work?
Thanks,
Fedor
--- Fedor Smirnoff <[EMAIL PROTECTED]> wrote:
> I am getting this proble
Hi,
Just for fun I set up a little test app. It demonstrates that the bug
is definitely in Common Beanutils. Normal Java relfection can call a
method derived from a protected nested class without problems. The
problem seems to be in o/a/c/b/MethodUtils.java : line 442ish where
Beanutils c
101 - 172 of 172 matches
Mail list logo