I am using struts1.1 and the taglib's URI is mapped to
"/web-inf/struts-html.tld" in web.xml
I am wondering when the struts blank tutorial with the same syntaxes is
working then why not this application. NullPointerException indicates that
something is missing. What is it ?
-Original Message-
I'm using Struts 1.2.x and the taglib entries I ALWAYS use are:
<[EMAIL PROTECTED] uri="http://struts.apache.org/tags-bean"; prefix="bean" %>
<[EMAIL PROTECTED] uri="http://struts.apache.org/tags-html"; prefix="html" %>
<[EMAIL PROTECTED] uri="http://struts.apache.org/tags-logic"; prefix="logic" %
Hello.
I am getting the following NullPointerException (error details pasted below)
when I include the struts html tag library thru page directive
(<%@ taglib uri="/tags/struts-html" prefix="html" %>) in any jsp of the web
application. Whereas after removing it and using simple HTML tags in the
j
Seems like struts can't instantiate your action class, so maybe you could post
your code of the action class.
Bjoern
> -Ursprüngliche Nachricht-
> Von: Kam Lung Leung [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 21. September 2005 01:36
> An: Struts Users Mailing List
> Betreff: Ple
Source is available (of course, what did I compile it from ;-) ), but
I need to beatify it a little, add javadocs, stuff like that. I will
be happy to donate it.
Michael.
On 9/20/05, James Mitchell <[EMAIL PROTECTED]> wrote:
> Looks interesting, when you are ready to donate this, I'd be happy
>
Looks interesting, when you are ready to donate this, I'd be happy
to commit it for you. Is the source available now?
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitchtx
Ya
Thanx Craig.
At last I can do TDD :)
On 9/20/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
>
>
> On 9/20/05, Siva Jagadeesan <[EMAIL PROTECTED]> wrote:
> >
> > Where can I find an example for testing View Controller ?
> >
> >
> The source code for the Use Cases example app includes unit te
Thanx Gary.
It is quite impressive. I have started building a prototype using Spring ,
hibernate and Shale. I will let the group how it goes.
The main thing I was lookin for was HTML template (as my cool web designer
gets pissed with my JSPs :) )
I think I will go with Clay ( for record , I d
Yes,
I do have the
Struts Users Mailing List wrote:
>
> Kam Lung Leung wrote:
>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> I don't know anything about the exception you're getting, but do you
>
hi, Jade.
commons-configuration may fit to your needs.
have you checked that out?
2005/9/21, Jadeler <[EMAIL PROTECTED]>:
>
> Is there a way to refresh the application properties
> without redeploying or restarting a web app? I havent
> found a way to do this.
>
> Jade
>
> __
On 9/20/05, Siva Jagadeesan <[EMAIL PROTECTED]> wrote:
>
> Where can I find an example for testing View Controller ?
>
>
The source code for the Use Cases example app includes unit tests for some
of the ViewController implementations. See the following for examples:
src/test/org/apache/shale/u
>Oh that is great !!!
>I never knew we could do these things using Clay.
It's a new feature that Sergey Smirnov requested. It's good to hear
feedback:-)
>But I have some questions about ur example,
>1) basename="com.acme.mywidgets" />
>I guess it is ur custom component.. What is baseName ? Co
Kam Lung Leung wrote:
I don't know anything about the exception you're getting, but do you
have the start tag in your file?
Dave
-
What's the appserver? Jboss or Tomcat?
It seems that you do not have libraries containing javax.ejb.* packages in
server lib directory...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
Where can I find an example for testing View Controller ?
Oh that is great !!!
I never knew we could do these things using Clay.
But I have some questions about ur example,
1)
I guess it is ur custom component.. What is baseName ? Could you explain
this line for me.
2)
(assumed mapping to outputText)
What you mean by "mapping to outputText" ?
Ga
>
> -Original Message-
> From: Letícia Álvares Barbalho [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 20 September 2005 11:03 PM
> To: Struts Users Mailing List
> Subject: Re: Being Lazy with Hibernate
>
> I use struts and Hibernate 3 and lazy initialization works just fine for
me.
> I didn
Hi,
I have a class named UserLoginForm that extend ActionForm. I also have a
UserLoginAction class that extend Action. The UserLoginForm runs to completion.
The problem is that my UserLoginAction class never called by the Struts
RequestProcessor class and the execute method never run. Bu
>Hi Guys:
>
>I am evaluvating Shale for upcoming project. I wanted to use HTML rather
>than JSP like Tapestry. I just want to know what you guys think about Clay
>and Facelets. One thing I liked about Facelets is it doesnt need any extra
>xml file to define jsf components .
This is also true fo
Hi Guys:
I am evaluvating Shale for upcoming project. I wanted to use HTML rather
than JSP like Tapestry. I just want to know what you guys think about Clay
and Facelets. One thing I liked about Facelets is it doesnt need any extra
xml file to define jsf components .
Rgds,
--Siva Jagadeesan
>
> -Original Message-
>From: Bill Schneider [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, 20 September 2005 11:01 PM
>To: user@struts.apache.org
>Subject: Re: Being Lazy with Hibernate
>
>Has anyone been able to get a Struts / Hibernate app to work nicely
with
>Lazy Initialization?
>>
Considering Ted's initiative to create more different implementations
of venerable MailReader and his invitation of non-committeres to
participate, I converted MailReader from standard Struts using Struts
Dialogs.
Here it is: http://www.superinterface.com/mailreader
The tour doc file still needs
How can I set default locale within my JVM (Jboss server instance) ?
Wojtek
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
>
> -Original Message-
> From: David Delbecq [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 20 September 2005 10:28 PM
> To: Struts Users Mailing List
> Subject: Re: Being Lazy with Hibernate
>
> See sections
> 20.1.4. Initializing collections and proxies and 1.4, Playing with cats
> For de
The latest stable Struts, 1.2.7, doesn't support locale-specific numeric
validations. This feature, having been added to Commons Validator 1.2.0,
will be available in Struts 1.3 and is currently available in the source
code repository and probably nightlies.
Don
On 9/20/05, Wojciech Ciesielski
Hi there,
Where can I specify what locale should Validator use? I have problems with
float numbers which in Poland are represented as ##,## while Validator float
rule is complaining about ##.## format...
I have session scope LOCALE set by request filter to pl_PL already but it
doesn't help :-/
T
Thanks Dave and Michael. I've implemented the
UserContainer object as a means of just encapsulating
necessary info that would otherwise be in separate
sessions. I have also used the action forms
accordingly to display necessary info that would be
more natural. For pages that require the form to
Michael Jouravlev wrote:
It still is decoupled, only nested ;-) Nesting it in ActionForm you
keep its state and get it populated from request. You can do the same
for unit test: keep the state and populate.
Hmm, yeah, I suppose. I guess in this case I felt that the stuff in the
object in que
Oh okay I will set my filters accordingly
But I guess it will be better if we Shale has its own mailing list
Thans Geeta
On 9/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Siva Jagadeesan <[EMAIL PROTECTED]> wrote on 09/20/2005 04:21:06 PM:
>
> > Does Shale has its own mailing list?
Siva Jagadeesan <[EMAIL PROTECTED]> wrote on 09/20/2005 04:21:06 PM:
> Does Shale has its own mailing list?
>
Nope, at least not yet... This is it..:) There is a convention to add a
"[Shale]" in the subject line... which most of us remember most times to
follow ;)
Geeta
Does Shale has its own mailing list?
Yep, you can either create a new ActionForward, or you can use
wildcard mapping, if your forwarded location depends on input
parameters in certain pattern:
http://struts.apache.org/userGuide/building_controller.html#action_mapping_wildcards
Michael.
On 9/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED
sorry, figured it out..i was looking at the mapping class...but you can
just create a new ActionForward with the path as the constructor arg.
Marc
> Hi,
>
> I have an Action servlet which at development time doesn't know what it's
> forwards will be. They are determined at runtime (plugin type fr
On 9/20/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Michael Jouravlev wrote:
>
> >Or... you can set Product object as nested property of an ActionForm,
> >and set ActionForm's scope to "session". The result is the same, but
> >seems more natural to me. You can render Product on JSP page, or
> >po
Hi,
I have an Action servlet which at development time doesn't know what it's
forwards will be. They are determined at runtime (plugin type framework is
used).
Is there anyway i can forward to views from the action servlet being
defined at run time? i tried using the request dispatcher's forward(
Michael Jouravlev wrote:
Or... you can set Product object as nested property of an ActionForm,
and set ActionForm's scope to "session". The result is the same, but
seems more natural to me. You can render Product on JSP page, or
populate it from input (Struts will do it for you).
True.
But
Or... you can set Product object as nested property of an ActionForm,
and set ActionForm's scope to "session". The result is the same, but
seems more natural to me. You can render Product on JSP page, or
populate it from input (Struts will do it for you).
Michael
On 9/20/05, Jadeler <[EMAIL PROTE
Hi Dave
Haven't got the time to see how it works. I have worked we JDeveloper 9.0.3
and 10.1.2 with CVS. In this new release after I installed it it stored
every version of my source files, I don't really know how this mechanism
will work with CVS.
Regards,
Néstor Boscán
-Mensaje original-
Jadeler wrote:
To better maintain all the data, I am opting not
having alot of session variables but instead maintain
one object that will contain all data needed and store
that in a session. [...]
Do you guys do something similar or any other recommendations?
I generally do something simil
HI,
I am looking for a tool to layout my forms in conjunction. I am evaluating
two packages
- http://www.common-controls.com/en/index.php
- http://struts.application-servers.com/
Have somebody work with these tools or do you have any other suggestions.
Regards
Richard Markham
Is there a way to refresh the application properties
without redeploying or restarting a web app? I havent
found a way to do this.
Jade
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---
To better maintain all the data, I am opting not
having alot of session variables but instead maintain
one object that will contain all data needed and store
that in a session. For example, instead of having
session.setAttribute("product", product),
session.setAttribute("web_preference", webPrefer
Hi all,
I really need a big help in validation with Struts, I dont know why but
I just cant validate a very simple form I have, with 2 simple fields
(login and password), I have follown all tutorials I got but til now no
success.
I am not able to validate either in server side or client side
Néstor Boscán wrote:
2.- Source Control without the use of CVS.
How does it implement SCM? If you use JDeveloper for SCM does that
preclude other IDE usage?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
> >That is only true for things defined as "component". Things defined as
> "component" are top-level. That really means that they are an entry in the
> Map
> that caches the digested XML file.
> >
> >When you use the jsfid for an "element", it kind of works like and a java
> anonymous clas
It's been there for a while
I've been playing with it for a while and what I've seen is:
1.- Support for JSF (Nice, but waiting that the standard matures to move
from Struts).
2.- Source Control without the use of CVS.
3.- Better refactoring options (at last!).
4.- More memory requirements.
It's
> Hello,
> Actually yes there is a validate method if your actionform extends
> dynaActionform
> the 'bad side' will be that you have declared all properties, (I suppose
> to
> avoid writing java code) and then you end upt writing code for
> validation..
>
> probably It won't be a nice solu
So I have to invent some naming conventions for jsfid to prevent that a child
from one html template won't have the same name as another child ;(
Thanks for clarifications
That is only true for things defined as "component". Things defined as "component" are top-level. That really mea
> i use DynaActionForm and i think there is not validate method.
> Should i use ActionForm ?
I think you may use MyActionForm extends DynaActionForm, just override
validate method and you're OK.
-
To unsubscribe, e-mail: [EMAIL
> I've got a little question regarding the -Tag.
>
> Is it correct when I have this in a jsp:
> paramName="objekt" paramId="objekteId" paramProperty="objekteId">
No, it's not correct. In action parameter should be ONLY the actio (ie
"/admin_objekte_new.do"). NO PARAMS. If you want to add params
From: "Michael Jouravlev" <[EMAIL PROTECTED]>
Ok, I have Struts 1.2.7 distro, which contains META-INF/tlds directory
with the following tld files:
...
*1.1.tld files have older uri in them referring jakarta.struts
(interesting why they have higher version number?).
What do you mean by higher
Sorry I've send too fast...
Hi,
I've got a little question regarding the -Tag.
Is it correct when I have this in a jsp:
and the result looks like this: (?)
asdfasdf ,
I expected something like:
asdfasdf ,
I've got trouble with the '&' at the objekteid I thought it should only
be an '
On 9/20/05, temp temp <[EMAIL PROTECTED]> wrote:
> I have a list in my jsp .For each item in the list I
> have a submit button through which user can remove an
> item in list. When user clicks on remove link I submit
> the form to my action class .Action class removes
> selected item from the co
Hello,
Actually yes there is a validate method if your actionform extends
dynaActionform
the 'bad side' will be that you have declared all properties, (I suppose to
avoid writing java code) and then you end upt writing code for validation..
probably It won't be a nice solution, but that's
> I have a list in my jsp .For each item in the list I
> have a submit button through which user can remove an
> item in list. When user clicks on remove link I submit
> the form to my action class .Action class removes
> selected item from the collection and then sends him
> back to the same pa
Wojciech Ciesielski wrote:
how can i validate an array of Long and check that addNumber[] is > 0
and < 99.99 ?
What kind of validation do you use? FormValidator and XML validation rules?
Still - you can override validate() method, call super.validate() and do
some additional valida
I have a list in my jsp .For each item in the list I
have a submit button through which user can remove an
item in list. When user clicks on remove link I submit
the form to my action class .Action class removes
selected item from the collection and then sends him
back to the same page . After t
> >>
> Another question about html views (since they are more interesting in
> practical use). For example I have main.html component and profile.html
> component. The both have submit buttons - but I want distinguish that
> one button is for main.html and another one - for profi
I'm using Struts 1.2.4. I have an html form with a bunch of fields on it,
including an input file field. I set the max file size in the controller in
the struts config to 1 megabyte.
The problem I'm having is that Struts doesn't populate my action form's
fields when I attempt to upload a file t
Hi,
just wanted to drop some note that finally
Oracle put the EA version of the upcoming
JDeveloper 10g release on OTN. Only had
little time for evaluation so far, but as far
as I can tell by now, the thing really rocks.
http://www.oracle.com/technology/software/products/jdev/index.html
-- Chri
Hi,
I've got a little question regarding the -Tag.
Is it correct when I have this in a jsp:
and the result looks like this: (?)
asdfasdf ,
I expected something like:
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
Gary VanMatre wrote:
Gary VanMatre wrote:
Another question about html views (since they are more interesting in
practical use). For example I have main.html component and profile.html
component. The both have submit buttons - but I want distinguish that
one button is for main.html and a
> Gary VanMatre wrote:
>
> >>Another question about html views (since they are more interesting in
> >>practical use). For example I have main.html component and profile.html
> >>component. The both have submit buttons - but I want distinguish that
> >>one button is for main.html and another on
Gary VanMatre wrote:
Another question about html views (since they are more interesting in
practical use). For example I have main.html component and profile.html
component. The both have submit buttons - but I want distinguish that
one button is for main.html and another one - for profile.htm
> Another question about html views (since they are more interesting in
> practical use). For example I have main.html component and profile.html
> component. The both have submit buttons - but I want distinguish that
> one button is for main.html and another one - for profile.html. In
> rolode
Remember that a Hashtable is a collection of Hashtable.Entry objects.
What you want is something like this (untested):
hi David,
I have got one more problem, this time its related to select box
which is rendered using tag enclosing one or more
or
I have got an ActionForm set as request
I think this would work only when
"ROOMTYPES" is set as request attribute.
But I am not doing that. I have got an ActionForm containg
An ArryList(which itself contains LabelValueBeans)
and this ActionForm is set a request Attribute
not the ArrayList(ROOMTYPES in your case)
> -Original Messa
> how can i validate an array of Long and check that addNumber[] is > 0
> and < 99.99 ?
>
> type="org.apache.struts.action.DynaActionForm">
>
>
What kind of validation do you use? FormValidator and XML validation rules?
Still - you can override validate() method, call super.validate() and
Sorry my mistake. You set the collection value of the options equal to
the request attribute referencing the ArrayList object. Ie ROOMTYPES as
below.
-Original Message-
From: rahul [mailto:[EMAIL PROTECTED]
Sent: 20 September 2005 14:22
To: Struts Users Mailing List
S
I did that, created ArrayList containing LabelValueBean
and this ArrayList is still in a bean as a request attribute.
now what to do with ?
--RahulJoshi
> -Original Message-
> From: Harland, David [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 20, 2005 6:13 PM
> To: Struts Users
I use struts and Hibernate 3 and lazy initialization works just fine for me.
I didn't have to do anything. What's your hibernate version?
On 9/20/05, Bill Schneider <[EMAIL PROTECTED]> wrote:
>
> >>>Has anyone been able to get a Struts / Hibernate app to work nicely
> with
> >>>Lazy Initializat
Has anyone been able to get a Struts / Hibernate app to work nicely with
Lazy Initialization?
Whenever I have things with Lazy set to true I'm getting a "Failed to lazily
initialize a collection" Exception.
The easiest way to do this is to use the "open session in view" pattern.
If you're usin
Hi,
Create an ArrayList object. Iterate through your Hashtable(HashMap is a
better option).
For each iteration create a new org.apache.struts.util.LabelValueBean
object. Populate its label and value attributes and then add it to your
ArrayList object. Then pass the ArrayList object as the property
Hi In my HTML-Form I'm sending a number to a action.
If the number is valid will be decided by a sql-query.
I'm not sure to put this select in the ActionForms validate
method or in the action with a corresponding forward.
What would be the better way?
Thanks for any opinions!
--
You may also find useful this article
http://www.hibernate.org/43.html - or just google for "Open Session in
View" :)
HTH, Sergey
David Delbecq wrote:
See sections
20.1.4. Initializing collections and proxies and 1.4, “Playing with cats”
For details :) (Hibernate 3 documentation)
Martin Rave
See sections
20.1.4. Initializing collections and proxies and 1.4, “Playing with cats”
For details :) (Hibernate 3 documentation)
Martin Ravell a écrit :
>Hi David,
>
>This sounds good but I should have mentioned that I am somewhat new to this
>particular area and as a result I have no idea how to
You can also use JMS to pass an object through a messaging queue. OpenJMS is an open source JMS Engine that works well for me. I have not played with to many of them to know if there is a better one out there (for free). All of the major Application servers (BEA, WebSphere, etc) support the JMS
I'd like to update mass user Data in a form with a dynamic number of rows
(depending on the number of users already available).
I use a dynaform:
Now I use a MappingDispatchAction "UserAction" with two methods:
public ActionForward prepareUpdate(...) {
// static implementation for
Hi David,
This sounds good but I should have mentioned that I am somewhat new to this
particular area and as a result I have no idea how to go about doing what
you have suggested.
I will continue to research but would you be able to help me with a little
more detail on what this entails?
Regard
hi David,
I have got one more problem, this time its related to select box
which is rendered using tag enclosing one or more
or
I have got an ActionForm set as request attribute, which contains
a property of type java.util.Hashtable
I wanted to display the values (only values without keys) in
For lazy initialization to work, at the moment of the lazy initialisation,
(that is the moment you request the data) the hibernate session must
not be closed.
The best way to do this is to store the hibernate session in the user
session and use a servlet filter to connect/disconnect/reconnect the
h
Has anyone been able to get a Struts / Hibernate app to work nicely with
Lazy Initialization?
Whenever I have things with Lazy set to true I'm getting a "Failed to lazily
initialize a collection" Exception.
I'd like to be able to lazily access related objects in my DAO layer,
potentially my Actio
Gary VanMatre wrote:
The only difference is instead of in profile
screen I need profile.html and in main I need main.html components. How
can I do this?
Well... to me, this sounds like a job for Tiles. Gary, what do you think?
Yes, I agree. The role of Clay is to glue togather
Hello,
how can i validate an array of Long and check that addNumber[] is > 0
and < 99.99 ?
type="org.apache.struts.action.DynaActionForm">
--
Mario Nee'
Brescia Italy
[EMAIL PROTECTED]
http://www.xmoon.org
-
To unsub
Hi
Addendum: The "offending" lines:
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sendt: 20. september 2005 09:55
Til: user@struts.apache.org
Emne: SV: [Shale] NullpointerException when running struts-shale-usecas
es
Hi
Well, its th
Hi
Well, its the demo webapp from shale, but heres the version that I have:
http://struts.apache.org/dtds/shale-dialog-config_1_0.dtd";>
Hermod,
Admittedly, the error message you received is not particularly helpful.
However, it is clearly related to a problem parsing your
dialog-config.xmlresource file. Could you please examine the area
around line 41 of this
file, and/or post the entire file for us to take a look at?
Craig
First, Hibernate Mailing List might be a better list to answer your questions.
However, i'll try to answer as am also an Hibernate user.
Le Mardi 20 Septembre 2005 06:30, Murray Collingwood a écrit :
> Hi all
>
> Hibernate is an excellent tool! I managed to get it running quite quickly,
> only a
Hi
The other log4j file is the log4j-sandbox-0.1alpha.jar. This contains
the InitContextListener for Log4J amongst other things.
I added the log4j jar file to the struts-shale-usecases webapps lib
directory and it started ok.
So conclusion is that if log4j is in the common/lib directory it won't
89 matches
Mail list logo