hello,
i am using mysql as a datasource in the app,everything
is working fine but when make changes in the class
files and reload the application the application
ceazes to work and i got the followng messages in my
log file. can some one help me figure out where am i
going wrong. am a newbie.
thank
search for favicon in google, u may get the answer!!
-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 11:43 AM
To: Struts Users Mailing List
Subject: Re: Icon?
On Mon, 2003-09-08 at 03:27, Max Cooper wrote:
> Two things come to mind:
Since I had to look it up, maybe others did too:
POJO = Plain Old Java Object.
I'm guessing that means a Java object that doesn't need to know how it
is persisted in order to be stored? I.e., in Matt's case, the object
isn't modified to take ResultSet as an argument to the constructor.
K.C.
Dear Friends,
Could anyone suggests which is best among the
Struts tags and
JSTL tags
for I18n of struts based application.
Thanks,
Sivakumar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
On Mon, 2003-09-08 at 03:27, Max Cooper wrote:
> Two things come to mind:
>
> 1. Do you want an icon that will show up in a browser when a user accesses
> your application/site? If so, you need to do something else -- the
> part of the servlet spec seems to indicate that it is for GUI tools (like
I'm creating a struts application and I would like to have all of my
constants in a single file, perhaps my application's resource bundle.
I'd like this data to contain such info as the maximum length of various
input fields (eg cityLengthMax = 100) and be able to refer to this in my
validation.xml
Hi gurus,
I wanna know that ActionForm's reset method is invoked twice ?
There's an action tag in my struts-config.xml.
and I got a jsp named test.jsp
With my application, seems that both when I visite the test.jsp
and I click the submit button, reset method is invoked.
Is it a n
Well Mike, my problem is not to avoid user from accessing JSP directly, but
to show her a list of links with a meaning as a result of a search action.
The problem is even worst, if you think that I'm using Tiles, with the
actual web content in JSPs which are never accessed directly neither by a
Str
Hi All,
I have a problem redisplaying form fields a user enters within a html form.
I use the validate method to validate form entry fields through ActionForms.
and validate business logic in LookupDispatchAction classes.
Has anyone experienced this problem, and is there any solution to this
mat
Hi All,
I have a problem in focusing the cursor into text box.
I can focus if i have the property in particular formbean.
like this
But My bean contains another instance of a another bean and that
contains "groups" Vector .
I want to focus the cursor into group name???
my bean is in
That is kind of an open-ended question, but here are two alternatives
and some problems associated with them:
1. Filter -- some containers require that a request really does map to a
resource, so even if the Filter mapping matched the request you could
end up with 404 errors in the case where the
+1
Regards
Sreekant G
@ 98404-65630
"Andrew Hill"
Dear All,
I have a simple doubt,
Why servlet is considered as controller in in MVC framework,
Can any one please answer..
Regards,
viru
What's in addimporteddlist.jsp?
Are you using a static include anywhere?
robert
> -Original Message-
> From: Nate Drake [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2003 5:19 PM
> To: Struts Users Mailing List
> Subject: RE: Create new nested bean instance
>
>
> Thanks a millio
Hi Andrew,
All of my struts actions have the redirect flag as false.
Here is more of my configurtion code which is used to run the application I am running.
Would be most appreciative if you could have a look.
Cheers
Rodney
CODE:
Below the code you see is part of an application I am building.
T
The following article seems to differ in approach from how the posters
to this forum implement indexed properties in struts:
http://www.developer.com/java/other/article.php/2233591
In this article, the author uses a DynaActionForm which automatically
builds an array of "normal" beans. By "norm
Addition ...Extends to ActionForm ..
Regards
Rohit Aeron
-Original Message-
From: Fumitada Hattori [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 3:16 PM
To: Struts Users Mailing List
Subject: Why is "No getter method for property" happening... damn.
Hi gurus,
I got a sim
Try extending ur bean to ActionBean class
Regards
Rohit
-Original Message-
From: Fumitada Hattori [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 3:16 PM
To: Struts Users Mailing List
Subject: Why is "No getter method for property" happening... damn.
Hi gurus,
I got a simpl
i don't think that's it because it works fine when i import just the bean
taglib
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
or just the c taglib
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
but not both
thanks for the lead though,
Loren
-Original Message-
From: Paul
Hmmm I am putting it in copse like this
Request.setAttribute("blah" , new LinkedList());
When I iterate over this it causes the page to crash
H
I will chack the code for simple mistakes but htats why I was wondering
What the correct behavior in this instance is???
-Original Me
Thanks to all for your suggestions. I did some number comparisons b/w the
"standard" way (rs.next() ... set, set, set), ibatis, and
ResultSetUtils.getCollection() from scaffold. Here's what I found:
1. Standard way - 0.24 seconds
2. ibatis - 5+ seconds (ugh! - maybe I'm doing something wrong,
Thanks a million, Robert! I got it 99% working the way you described.
The object in the list (PhoneNumber) has an
org.apache.struts.upload.FormFile property. When I go to the
AddNewPhoneNumber.jsp I get:
java.lang.NoClassDefFoundError: org/apache/struts/upload/FormFile
I tried adding a <@page
Thanks a million, Robert! I got it 99% working the way you described.
The object in the list (PhoneNumber) has an
org.apache.struts.upload.FormFile property. When I go to the
AddNewPhoneNumber.jsp I get:
java.lang.NoClassDefFoundError: org/apache/struts/upload/FormFile
I tried adding a <@pag
In my case "name" is not an array... 53 is an int passed to the method
getName(int size) from my JSP through tag. Input exactly means
that i want 53 chars of the String.
-Original Message-
From: Slattery.Tim [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 2:13 PM
To: struts-u
--- "Paananen, Tero" <[EMAIL PROTECTED]> wrote:
> > +1 on the new option but I think the allowed characters should be
> >
> > a-zA-Z0-9_.-
>
> -999
>
> That's missing several perfectly valid characters
> in Email addresses, like a space, +, single quote,
> et
Some time ago I needed an e-mail regular expression, and found this in a
book on JavaScript. Seemed to work OK at the time.
/^\w(\.?[\w-])[EMAIL
PROTECTED](\.?[-\w])*\.([a-z]{3}(\.[a-z]{2})?|[a-z]{2}(\.[a-z]{2})?)
$/i
Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Ren
clear enought, is not it?
-- El siguiente carßcter debe ser ">" cerrando comentario .
There is a tag in your struts-config that is not closed. Or maybe a comment
is not properly closed.
Check for wellformedness in struts-config.
Adolfo.
From: Mariano García <[EMAIL PROTECTED]>
Reply-To
> +1 on the new option but I think the allowed characters should be
>
> a-zA-Z0-9_.-
-999
That's missing several perfectly valid characters
in Email addresses, like a space, +, single quote,
etc.
The RFC defines the valid characters for a reason.
--- Robert Leland <[EMAIL PROTECTED]> wrote:
> David Graham wrote:
>
> >--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Is there a published specification on e-mail addresses?
> >>
> >>
> >
> >I believe it's RFC 822.
> >
> >
> >
> >>The reason I
> >>ask is
> >>that we are using
> We recently ported the weblogic server from SP1 to SP4 and
> came accross the following problem while displaying the JSP
> pages. This was working fine on SP1. Can anyone tell me the
> possible reason.
> The line of code in the jsp is :
>
> where 53 is an input parameter of getName(int siz
+1. Simplest method I've seen to go from a ResultSet to a Collection of
JavaBeans
Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]
> Sent: Sat
A solid release of Netspread Carrier 2.0 b2 is available today.
The Carrier client, a visual design environment on Internet, is
tested with JRE 1.4.2 with performance surprising my VB
friends.
There are two new things I am very proud of:
1) A Form Token Facility is introduced to automatically pro
David Graham wrote:
--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
Is there a published specification on e-mail addresses?
I believe it's RFC 822.
The reason I
ask is
that we are using the 'email' validator, and it's accepting as valid
e-mail
addresses such as 'u-+-+%^_/[EMAIL PROTECTE
Try this,
ActionForward fwd = null;
StringBuffer path = new StringBuffer(forward.getPath());
path.append("?" + urlQueryString);
fwd = new ActionForward( mapping.findForward("success").getPath() +
path.toString);
return fwd ;
Vangos...
- Original Message -
From: "Srinivas Gunturu" <
Sorry Nate, I can't help you with updating your structures using the
nested taglib. I haven't done it before. Maybe someone else can provide
you some guidance there so that you don't have to jump through the
indexed properties "hoops".
On the other hand, using indexed properties:
Your form must h
Hi,
I need to pass parameters depending on user action to my findForward.
I have tried the following but does not seem to be working.
String urlQueryString = getURLParameters(nextURL);
if ( urlQueryString != null && urlQueryString.length() > 0 ) {
ActionForward forward = aMapping.findForwa
For documentation - I'd create a "docs" folder at the basedir level. Maven
is a very slick tool, and I like their directory structure, I just haven't
migrated my AppFuse project to use it yet.
Matt
-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08
You want to make sure that formBean you compiled has only the simple bean
class itself and nothing more, i.e. there is no other BeanInfo class compile
with it. This once time my co-worker accidentally hit some bean wizard in
Jbuilder and it generate some BeanInfo class that get compiled and he has
Hi All,
We recently ported the weblogic server from SP1 to SP4 and came accross the
following problem while displaying the JSP pages. This was working fine on SP1.
Can anyone tell me the possible reason.
The line of code in the jsp is :
where 53 is a input parameter of getName(int size) metho
How about documentation folder and jsp files, where would you put them?
BTW, I was studying a tool called Maven on Apache. I think it's more relevant
to project structure than Ant. Ant is more related to building a project, isn't
it? Is there a standard project model/pattern out there we can ju
Hide your .jsp files in /WEB-INF/foo (I use /WEB-INF/pages) so that the user
cannot navigate directly to them. Alternatively hide them ANYWHERE so they
cannot directly link to them.
-Original Message-
From: Marco Tedone [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 2:03 PM
T
Ok, the thing I don't understand now is how to setup the
AddNewPhoneNumber jsp so that is uses the lazy list to create a new
PhoneNumber instance bean.
I'm trying to use the nested taglib, but I don't really understand how
to set the top level object to be a new instance out of the list.
I've tri
Here's what I do - based on Erik Hatcher's recommendations in his "Java
Development with Ant" book:
MyProject
| - lib (third party jars, etc.)
| src (.java files)
| test (junit, cactus, webtest tests)
| web
| images
| styles
| scripts
| WEB-INF
| clas
On Fri, 5 Sep 2003, tum curtin wrote:
> Date: Fri, 05 Sep 2003 08:59:01 -0400
> From: tum curtin <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: TMC Petshop, java performance tuning, struts
>
> I have recently read the results paper
Is there any example of using these utility tags?
Amar
-Original Message-
From: Peter Smith [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 10:09 AM
To: Struts Users Mailing List
Subject: Re: image property
You might try using an ImageButtonBean. A lot of the work you are do
What a well defined struts project structure would look like? I am always a bit
hesitant with where to put things
Right now, I have:
MyProject
|- documentation
|- images
|- jsps
|- styles
|- javascript
|- WEB-INF
|- classes
|- bin
s
David Graham <[EMAIL PROTECTED]> wrote:
> --- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> > Is there a published specification on e-mail addresses?
>
> I believe it's RFC 822.
> Unfortunately, I think that's a valid email address as defined in the RFC.
You're better off writing your own. RFC 82
You sure? 'cause normally what I got is just nothing if the list is empty.
If the collection you are iterating over contain null values, the loop will
still be performed but no page scope attribute (named by the id attribute)
will be created for that loop iteration. You can use the and
tags
David / Tero -
Thanks for the guidance. The RFC822 spec is what I was looking for
Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
> -Original Message-
> From: Paananen, Tero [mailto:[EMAIL PROTECTED]
> Sen
Hi all
I have JSP code which used to work with older struts versions (1.1 beta xy).
Now I use struts 1.1 stable release.
I have two jsp pages. I want to nest JSPPage2 into JSPPage1 with
( see JSPCode ). All I get is "[ServletException
in:/WEB-INF/pages/JSPPage2.jsp] Cannot find bean in any scop
What you are doing should be fine (as long as your collection is not too terribly big).
You use an ActionForm when you want to collect input from the user.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 9:45 AM
To: [EMAIL PROTECTED]
Su
I have recently read the results paper from the
second benchmark test run by The Middleware
Company (TMC) comparing the performance of the
Petshop application using Java solution
and .NET solutions.
(http://www.middleware-company.com/casestudy/tmc-performance-study-jul-2003.pdf)
This paper would be
> Is there a published specification on e-mail addresses? The
> reason I ask is
> that we are using the 'email' validator, and it's accepting
> as valid e-mail
> addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'. I didn't
> think Validator
> would accept these, but apparently is it. If there's n
--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> Is there a published specification on e-mail addresses?
I believe it's RFC 822.
> The reason I
> ask is
> that we are using the 'email' validator, and it's accepting as valid
> e-mail
> addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'. I didn't thin
Yep. You could create the new lazy list in the form reset().
robert
> -Original Message-
> From: Nate Drake [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2003 9:29 AM
> To: Struts Users Mailing List
> Subject: RE: Create new nested bean instance
>
>
> Robert,
>
> Thanks for the
Is there a published specification on e-mail addresses? The reason I ask is
that we are using the 'email' validator, and it's accepting as valid e-mail
addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'. I didn't think Validator
would accept these, but apparently is it. If there's not an established
--- Joe Germuska <[EMAIL PROTECTED]> wrote:
> At 7:40 -0700 9/8/03, David Graham wrote:
> >Plugins are really only helpful to people using a Servlet 2.2
> container.
> >If you're using Servlet 2.3 you should use a ServletContextListener.
>
> I don't know (but I doubt) that there is a determinate o
+1
Ive always found plugins by far the more convienient of the various methods
of initialising stuff at startup.
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Monday, 8 September 2003 22:51
To: Struts Users Mailing List
Subject: Re: Plug-in API
At 7:40 -0700 9/8/0
At 7:40 -0700 9/8/03, David Graham wrote:
Plugins are really only helpful to people using a Servlet 2.2 container.
If you're using Servlet 2.3 you should use a ServletContextListener.
I don't know (but I doubt) that there is a determinate order to how
containers process "contextInitialized" On th
Struts Plug-In is useful any time you have a resource that needs to be
initialized with the web application. In the past you would have needed
to extend the ActionServlet and override init(), now you declare a
plug-in in your struts-config.xml
Troy
Mohan Radhakrishnan wrote:
Hi
I am ju
--- Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote:
> Hi
> I am just trying to learn about the Plug-in API.
>
> When exactly is this useful ? How would it be helpful if I want to
> plug-in a custom-user authentication facility instead of using the
> vendorspecific XML file ( JDBC realm in t
Hi all,
I am a newbie in struts, and I am having some problems with them.
I am trying to execute tomcat, but I get this exception:
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
08-sep-2003 16:11:24 org.apache.struts.util.PropertyMessageResources
INFO: Initial
Yes. This is a normal approach.
ActionForms are used only if you want to pre-populate data. i.e If you have
to show default values in a text field you can pre-populate the Action Form
and forward to a JSP.
You can also store a Collection directly in one of the scopes and show
that but Custom be
Hi
I am just trying to learn about the Plug-in API.
When exactly is this useful ? How would it be helpful if I want to
plug-in a custom-user authentication facility instead of using the
vendorspecific XML file ( JDBC realm in tomcat for example ).
Mohan
-
Jing sums up the situation well.
One point to add :- if it (the functionality) is applicable to all the
actions today and you decide to go with the RP approach, that doesnt mean
that tomorrow you wont suddenly need to add an action to which it should NOT
be applied - at which point you will then ei
You might try using an ImageButtonBean. A lot of the work you are doing is
done in this bean. Here is the documentation:
http://jakarta.apache.org/struts/api/org/apache/struts/util/ImageButtonBean.
html
HTH, Peter
--
Peter Smith
Software Engineer
InfoNow Corporation
> From: "Das, Amar" <[EMA
Hi all,
I think I have a relative easy question.
I have a J2EE application which has some entitybeans. I want to display
the values of these entitybeans in my JSP pages (using Struts).
I have made value objects of the entitybeans.
In my ListAllCategoriesAction.java, I do something like the fol
Thanks Mike. It is working now.
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 5:37 PM
To: Struts Users Mailing List
Subject: RE: Failing to get an answer,can it be done?
Are you sure the value isn't getting reset before it gets to yo
Hi,
The struts documentation of attribute "property" for image tag says that
"The property name of this image tag. The parameter names for the request
will appear as "property.x" and "property.y", the x and y representing the
coordinates of the mouse click for the image. A way of retrieving these
Hi,
I know this is a bit OT, but here it is: any help is much appreciated.
This relates to the Hibernate Plugin for Struts..
How do I get a handle on the SessionFactory that is stored in the ServletContext??
(From a SessionBean, that is)
The following is a shortened (an uncompiled!) version
The action class that handles the saving of your data returns an
ActionForward - your execute() code determines what that forward is.
To go to sample2.jsp you want to end your execute() with:
return mapping.findForward("sample2");
Paul
-Original Message-
From: Rick Col [mailto:
There is no *drawbacks* or *advantage* design in regard to
extending Action or RequestProcessor. It depends.
The key is how you actually interpret the word "common":
-If the *common* functionality is applicable to *all* action
mappings in a given application module, you do it by
extending Request
Robert,
Thanks for the links. I already read the Indexed Property FAQ (and I
just re-read it again), but I didn't really see anything in it that
relates to my problem.
The lazyList stuff looks more promising. I have a question about it,
though. Where do I create the new LazyList? In the Acti
Hi,
If I have a go button like this:
once I click on this button on sample1.jsp, I want to
save some data to
database, then go to another jsp page sample2.jsp. I
definne
an action class to handle data saving.
Thus, once user clicks on go button, user should be
directed to
the data saving actio
+1
On 09/08/2003 10:53 AM [EMAIL PROTECTED] wrote:
Hi All,
Please give me your comments/suggestions on the below design.
I need to perform some common functionality across all the application
action classes, so I have written an abstract MyOwnAction class inheriting
from STRUTS Action class. All
Nate, you may want to look into indexed properties:
http://jakarta.apache.org/struts/faqs/indexedprops.html
and ListUtils.lazyList():
http://jakarta.apache.org/commons/collections/api/org/apache/commons/collect
ions/ListUtils.html
robert
> -Original Message-
> From: Nate Drake [mailto:[E
I'm interested in folks response to this also. This is the approach I have
used on 2 different projects and seems to work very nicely. In addition, I
modified the signature of my abstract method (in this case executeTask) to
take a custom ActionForm with some additional functionality. It seems t
I've been exploring the co-mingling of container-based security and struts
actions through FORM-based authentication. While many options have been
presented and discussed (including subclassing the Action and directly
calling container-managed security methods), it seems to me (a newbie) that
one
The difficulty with extending the RP occurs if not ALL the actions need this
common functionality. Where this is the case your design is a good one. (I
have used it to great effect in my own apps already).
Id suggest you continue with this method. If you have other developers on
the project make su
- Original Message -
From: "Rick Col" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 06, 2003 4:12 PM
Subject: two actionForms for one action class?
> Hi,
>
> Is there any way to use two action forms for one
> action class.
>
> I have the following situation: on
I did look into the subclassing the RequestProcessor class as well. I am
not sure if it can do the following
-- throw Exceptions.
-- NOT call the corresponding action class (instead return to a default
page) depending on some conditions.
Is there any advantage subclassing the RequestProcessor cla
This is a common approach that many application use.
The only possible "drawback" would be that a developer could bypass the
common functionality by extending Action instead of your base Action
class. But, in some cases, that might be preferable.
As mentioned, extending the RequestProcessor is
Better extend the RequestProcessor class.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 2:24 PM
To: [EMAIL PROTECTED]
Subject: Any potential drawbacks with this design
Hi All,
Please give me your comments/suggestions on the below
Hi Adam,
Thanks, but it doesn´t work. Now I´m writing
in my jsp with the frames, but this is translated in this waay:
http://localhost:8988/application/WEB-INF/jsp/fsPage.jsp";>
So, the base tag is translated with directory information, And of course
it doesn´t work.
W
Hi All,
Please give me your comments/suggestions on the below design.
I need to perform some common functionality across all the application
action classes, so I have written an abstract MyOwnAction class inheriting
from STRUTS Action class. All application action classes will be extending
MyOwnA
This can happen if you have included the bean taglib twice.
Is the page with which you get an error included via an <%@ include
statement?
Paul
-Original Message-
From: Loren Hall [mailto:[EMAIL PROTECTED]
Sent: 06 September 2003 00:13
To: Struts Users Mailing List
Subject: RE: Combinin
86 matches
Mail list logo