Yes, I am talking about one form per request
situation. I don't really see how I can use it as it
is. ActionForm object will be overriden with the
latest one and all previous data will be lost.
Ideally I would prefer to have all data stored in the
session automatically and only when user clicks
"
Hi all,
In my jsp page...
above code works fine.
but doesn't
works.
in GraphStep1Form.java
strTitle --> String
legendsAlignment ---> int
I am getting an exception-:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE at
org.apache.ja
The article "Struts Live Chapter: Nested POJOs" might give one possible
solution
You can find it in:
http://www.theserverside.com/articles/article.tss?l=StrutsLiveCh10
Rivka
**
The contents of this ema
Hi, David,
Thanks for your response.
I forgot to mention that I use the Spring framework
and the xFashion is defined in a Spring configuration
file. I tested its value with another method.
Also, the exception occurs on some of definitons, but
not others. I can't see any difference between them
Vernon,
>From your tiles definition I am just not seeing where you define
"xinhuaFashion" as a definition. I see you define "xFashion" to extend
"news" but not "xinhuaFashion". Did you forget to include this in your
cut/paste request for help? You wrote that "xFashion" was valid according
to yo
Craig beat me to it :) That's exactly what I was going to say.
One point to make... if you do it with a servlet anyway and you read in
your config and store it in a bean as static members, and one of the
fields you set is a boolean configured field, and only populate the bean
if its false, th
On 8/9/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Craig McClanahan wrote:
> > On 8/9/05, Daniel Perry <[EMAIL PROTECTED]> wrote:
> >
> >>>-Original Message-
> >>>From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> >>>PS: It's pretty straightforward to build turbo versions of the Struts
Struts-layout has a Date Tag take a look at
http://struts.application-servers.com/download.html
Or you could get anyone on this list to help you out,
HTH,
Martin-
"C.F. Scheidecker Antunes" <[EMAIL PROTECTED]>
08/09/2005 07:25 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users
That is a nice feature. However, I don't think there's anything special to the
implementation. Looks like JavaScript and HTML to me. View source on the popup
window and you'll see the names of the script files, which should be coming
from their public document root . . .
Erik
-Original M
Craig McClanahan wrote:
On 8/9/05, Daniel Perry <[EMAIL PROTECTED]> wrote:
-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
PS: It's pretty straightforward to build turbo versions of the Struts
HTML tags that have many of the same features described above. But
that
On 8/9/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Dave wrote:
>
> >On my form is a bean named member. I also have a select whose options are
> >created by a method on member. When I access the method it appears that a new
> >member is constructed when the optionsCollection is created.
> >
> >
>
These usually involve JavaScript. Here's a link:
http://www.mattkruse.com/javascript/calendarpopup/
Regards,
Geeta
"C.F. Scheidecker Antunes" <[EMAIL PROTECTED]>
08/09/2005 07:25 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
{Spam?} Avis.com J2
I get quite frustrated with a Tiles problem. After
dealing with it for a few of days, I can't figure out
the cause of this null expection.
In my Tiles definition XML file, I have
On 8/9/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote:
> How do you save something to the Session scope and then access it within
> Struts?
> I pretty much understand how to do it within a Servlet.
You can do this directly, or you can setup your ActionForm class to
have session scope. Acti
Hello all,
This is an interface question. www.avis.com is a J2EE/Struts website for
what I can tell.
They have a nice feature to make a reservation which is the popup
calendar they have for
the pick-up Date and Return Data. Would anyone know how could I have
this kind of interface
for a user t
On 8/9/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Frank W. Zammetti wrote:
>
> > P.S. - Someone else asked if a listener is better than a startup
> > servlet of Struts plug-in... IMO, it's better than a plug-in because
> > it's one less thing that is Struts-specific... Arguably it isn't any
> >
Frank W. Zammetti wrote:
P.S. - Someone else asked if a listener is better than a startup
servlet of Struts plug-in... IMO, it's better than a plug-in because
it's one less thing that is Struts-specific... Arguably it isn't any
better than a startup servlet I suppose.
I'm still using startup
C.F. Scheidecker Antunes wrote:
How do you save something to the Session scope and then access it
within Struts?
I pretty much understand how to do it within a Servlet.
How do you do the same for the Context? I also know how to do it in a
Servlet.
Same way; inside your Actions you can get t
You can save some time by using the AppConfigContextListener in Java Web
Parts:
http://javawebparts.sourceforge.net/javadocs/javawebparts/listener/AppConfigContextListener.html
In it's simplest configuration it should take all of a few minutes to
get it done, there are more advanced modes of o
Hello all,
More newbie questions. I just want to make sure I understand the idea on
how to write a Struts application
properly.
How do you save something to the Session scope and then access it within
Struts?
I pretty much understand how to do it within a Servlet.
How do you do the same for
Search Struts mail archives for keywords: application, servlet,
context, servletContext, global, storing.
On 8/9/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I would like to have a bean with a data structure that gets populated
> when the application starts and then th
At 4:16 PM -0600 8/9/05, C.F. Scheidecker Antunes wrote:
Hello all,
I would like to have a bean with a data structure that gets
populated when the application starts and then this bean is
available to the entire application. The data structure will get
populated via a data base. I need to cal
Wendy Smoak wrote:
Use a ServletContextListener, which will be notified when the context
starts and stops.
Or that ;)
As an aside, is there a good reason why this would be better than a
startup servlet or plugin?
Dave
-
C.F. Scheidecker Antunes wrote:
Hello all,
I would like to have a bean with a data structure that gets populated
when the application starts and then this bean is available to the
entire application. The data structure will get populated via a data
base. I need to call the database just once
From: "C.F. Scheidecker Antunes" <[EMAIL PROTECTED]>
I would like to have a bean with a data structure that gets populated when
the application starts and then this bean is available to the entire
application.
Use a ServletContextListener, which will be notified when the context starts
and s
Hello all,
I would like to have a bean with a data structure that gets populated
when the application starts and then this bean is available to the
entire application. The data structure will get populated via a data
base. I need to call the database just once to populate the data
structure.
Thanks Craig.
Well Mark, I'd be interested in hearing how it turns out. Good luck.
Erik
-Original Message-
From: Craig McClanahan <[EMAIL PROTECTED]>
Sent: Aug 9, 2005 4:42 PM
To: Struts Users Mailing List , [EMAIL PROTECTED]
Subject: Re: Last question on JAAS I promise
On 8/9/05, [EMA
On 8/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I found my login-config.xml. Suddenly I fear that I had this working in JBoss
> but not stand-alone Tomcat, but yet I *know* I was calling isUserInRole. At
> the same time, I remember the propagation problem between Tomcat and JBoss,
> an
I found my login-config.xml. Suddenly I fear that I had this working in JBoss
but not stand-alone Tomcat, but yet I *know* I was calling isUserInRole. At the
same time, I remember the propagation problem between Tomcat and JBoss, and
this config is definitely for JBoss. But isUserInRole would de
Dave wrote:
My apologies if this is a duplicate. I waited at least 30 minutes after sending
the confirming email.
It's a duplicate. Bear in mind that this isn't like a tech support
hotline; it's just a bunch of people that read this when we're not doing
our real work.
On my form is a bean
My apologies if this is a duplicate. I waited at least 30 minutes after sending
the confirming email.
On my form is a bean named member. I also have a select whose options are
created by a method on member. When I access the method it appears that a new
member is constructed when the optionsCol
Mark, when I did this, I had isUserInRole working correctly. I remember that
the problem was, I could either "log in with Tomcat" or "log in with JBoss",
but there was no propagation between the two. At that point I put it on hold.
Also, if the archives go back far enough, I remember a long thre
On my form is a bean called member. member has a method that returns an
optionsCollection. The first value in the collection should start at a value
specified another property of member. However, it appears that a new member
object is being created instead of the pre-existing one on my form. Thi
C.F. Scheidecker Antunes wrote:
My first question is: How to organize that? Shall I have a data
structure with a parentId field so that I can do a SQL select for all
the items with that parent category?
Second question is: Shall I use some sort of data structure like a
list of objects where
Funny you mention this... since apparently this kind of functionality has
been foreseen and built right into JSF..! I don't suppose moving over to
jSF is an option for you, right?
Geeta
"C.F. Scheidecker Antunes" <[EMAIL PROTECTED]>
08/09/2005 02:56 PM
Please respond to
"Struts Users Mai
Hello all,
I need to have a set of categories and subcategories selection on a JSP
page similar to what eBay has when you are selling an item.
When you select a main category the secondary category box is populated
with options and so forth.
My first question is: How to organize that? Shall
On 8/9/05, temp temp <[EMAIL PROTECTED]> wrote:
> I am disabling the browsers chache
>This works fine . Everytime a user clicks
> browsers back or forward button internet explorer
> displaysthis page with the content below .
>A user click refresh button and the page is again
>
Thanks.
Dave Newton wrote:
> Mick Knutson wrote:
>
> >What is this used for though:
> >
> >
> >? I don't know what someOtherParam is for, or where it comes from.
> >
> >
> I believe that would be a parameter replacement for the resource?
>
> Like, say, in your case, if:
>
> label.default.title=Re
I also need to see if anyone has any other nested navigation element
examples as I can't get mine to show up.
I get a resource not available error on the jsp:
On 8/9/05, Jim Kennedy <[EMAIL PROTECTED]> wrote:
> Can anyone give me the name of the source file that handles the serving of
> static content for Tomcat. I have a need to duplicate this function for
> alternate locations and want to make sure I cover all bases in terms of
> security, http heade
Can anyone give me the name of the source file that handles the serving of
static content for Tomcat. I have a need to duplicate this function for
alternate locations and want to make sure I cover all bases in terms of
security, http headers ...
FYI I just downloaded all source files and just ne
Mick Knutson wrote:
What is this used for though:
? I don't know what someOtherParam is for, or where it comes from.
I believe that would be a parameter replacement for the resource?
Like, say, in your case, if:
label.default.title=Replace {0} with the first parameter
then the ${someOth
Mick Knutson wrote:
I have it working with a static jsp, but want to use a more dynamic
tiles creation, but can't figure out how to create dynamic URL's with
the menu.jsp example.
I don't know anything about this menu.jsp example of which you speak,
but I wonder if keying anything off of the
I had a similar problem earlier regarding cache on MSIE. It was only
applicable when using HTTPS. Here's the ms kb article
http://support.microsoft.com/default.aspx?scid=kb;en-us;323308
In effect, you tell MSIE not to keep a copy around, it if you're using
SSL, it doesn't. For stuff that I di
well, yes.. I guess maybe my note seems to suggest otherwise..?
well, I am right now about half way through the second one and it's still
holding up to its initial promise..:)
Geeta
"C.F. Scheidecker Antunes" <[EMAIL PROTECTED]>
08/09/2005 02:18 PM
Please respond to
"Struts Users Mailing L
Well. It seems that all articles were written already.
http://www-128.ibm.com/developerworks/views/java/libraryview.jsp?search_by=nonbelievers:
[EMAIL PROTECTED] wrote:
Hi all:
i know it isn't Friday yet.. ;) but .. in case you have been looking for a
nice and clear introduction to JSF, look
What is this used for though:
? I don't know what someOtherParam is for, or where it comes from.
Wendy Smoak wrote:
> From: "Mick Knutson" <[EMAIL PROTECTED]>
>
> >I have the following tag in my defaultLayout:
> >
> >
> > and I want to show the label.default.title text from my
> > ApplicationR
I have started to use the menu.jsp example to create a dynamic menu for
my application.
But there are certain links that I only want to show if a given
actionForm is present.
I also have a few of the links that are created using the std taglibs
when a given actionForm is present.
I have it working
On 8/9/05, Pilgrim, Peter <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Craig McClanahan [mailto:[EMAIL PROTECTED]
>
> ====
>
> What do you have to do to get on Creator 2 EA?
Sign up and (free) download starting at:
http://developer.sun.com/prodtech/javatools/jscreat
I am disabling the browsers chache using jsp
setHeader method , exact code is below.
response.setHeader( "Expires", "Sat, 6 May 1995
12:00:00 GMT" );
// set standard HTTP/1.1 no-cache headers
response.setHeader( "Cache-Control", "no-store,
no-cache, must-revalidate" );
oh ok I see where you are coming from.. I didn't know about this remote
debugging thing so it's good info..:) However, I didn't think the original
poster had this situation at all.. or maybe i grossly
misunderstood...(been known to happen..;))
Ed Griebel <[EMAIL PROTECTED]>
08/09/2005 01:43
> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]
====
What do you have to do to get on Creator 2 EA?
>
> On 8/8/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> > Craig McClanahan wrote:
> > > And you were so ***good*** about the Maven thread! :-) :-) :-)
No, not at all, it doesn't matter where tomcat is started from. As
long as tomcat was started with JDWP debugging, you can connect up
with any recent java debugger. Your tomcat can be in China and your
debugging session in NYC, it just doesn't matter, and it certainly
doesn't have to be in the same
Well, not only that, if you want eclipse to play nice with tomcat (and
have eclipse obey break points and what not), then you in fact start
tomcat from within eclipse, right? I have been doing this for a while now
so I don't see what the problem could be..?
Would something like this link help:
I haven't used 5.5.9, but my guess is that the gui is just a
pointy-clicky front end for some scripts and one can still launch it
with a shell script or batch file. Maybe take a look in
/bin for launcher scripts.
On 8/9/05, Jay Sheth <[EMAIL PROTECTED]> wrote:
> HI,
> I have a problem here too. I
So what is the problem you are having? I am using eclipse and tomcat 5.5.9
just fine...?
Geeta
Jay Sheth <[EMAIL PROTECTED]>
08/09/2005 01:10 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
{Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() no
HI,
I have a problem here too. I dont understand how to configure this for
tomcat5.5.9 which uses the UI for running it. The link which you
mentioned has remedy for older tomcat, which uses files for
configuration.
Any help would be great.
Jay
On 8/8/05, Ed Griebel <[EMAIL PROTECTED]> wrote:
> Y
From: "Mick Knutson" <[EMAIL PROTECTED]>
I have the following tag in my defaultLayout:
and I want to show the label.default.title text from my
ApplicationResources.properties file instead of my page showing:
"label.default.title"
How can I do this please?
Does this thread from last week hel
Leo Asanov wrote:
Is there any standard ways to manage multiple
instances of one form with Struts? I have application
which is supposed to take theorerically unlimited
number of person's descriptions. Every time user
clicks "add one more person" he/she gets exactly the
same form (with the same va
Well, to expand on Michael's answer a little ;-) You *can* use your DTOs
directly as form beans, but it's generally considered bad practice. One
reason is that you'll want your form beans to use String-typed properties.
That way you can accept invalid data and redisplay it to the user to correct
On 8/9/05, Daniel Perry <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> > PS: It's pretty straightforward to build turbo versions of the Struts
> > HTML tags that have many of the same features described above. But
> > that doesn't
I just had the same questions answered:
http://marc.theaimsgroup.com/?t=11232885381&r=1&w=2
-Mark
> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 09, 2005 8:55 AM
> To: struts
> Subject: get MessageResources Key from tiles
>
> I have the f
You have a variety of options, some of which I'll introduce but I
won't have time right now to go deeply into details. However, if you
ask a specific questions (in this or in new threads), there's a good
chance someone will reply. [As others would expect, I'd be hawking my
own project, FormDef.]
I have the following tag in my defaultLayout:
and I want to show the label.default.title text from my
ApplicationResources.properties file instead of my page showing:
"label.default.title"
How can I do this please?
--
Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk
Do you have some examples of both viewing, and posting of such nested pojo's?
Michael Jouravlev wrote:
> Instead -- no. But you can use them as nested properties.
>
> On 8/8/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > I have many DTO's and do not want to duplicate code my creating
> > Action
What I do is use a Hibernate Servlet Filter that closes the Hibernate
session
at the end of the request. This is used in conjunction with the
HibernateUtils
class that stores the Hibernate session in ThreadLocal storage.
An example of this technique is on the Hibernate site
(http://www.hibernat
> This is very interesting... I need to know more.
>
> My biggest concern (right now) with switching to JSF is having
> to teach our web designers JSF tages.
> They want to work in HTML and Javascript and use there favorite
> Web design tools (e.g. Dreamweaver).
> They also often have to begin d
Before going any further with it on your own, perhaps you can integrate
your JAAS module with sslext.
Mark Benussi on 09/08/05 11:36, wrote:
Um wow so Form authentication works but not my own.
Thats fine then, I can get the Subject that has been authenticated but
how do I place the Princi
Mark,
A year ago I skimmed through SecurityFilter(.sourceforge.net) to
see how they did things like this. I recommend you download the
code and see how they went from a session filter based on their
own forms to putting credentials into Tomcat. I clearly remember
they had a Tomcat (Catalina) con
The most common way to solve this problem is to use the Open Session
In View pattern, which leaves the Hibernate session open until the JSP
has finished rendering. Typically accomplished with a filter, there
is also a Struts plugin to help with this pattern.
Google for "Open Session In View" and
Hello,
I am using Hibernate in my Struts project. A have a problem with Hibernate lazy
option. When I am setting it to true, I get an error in my JSPs:
org.apache.jasper.JasperException: could not initialize proxy - the owning
Session was closed
Of course I know why this error occurs. I am clo
This is very interesting... I need to know more.
My biggest concern (right now) with switching to JSF is having
to teach our web designers JSF tages.
They want to work in HTML and Javascript and use there favorite
Web design tools (e.g. Dreamweaver).
They also often have to begin designing the p
Have a look at the DownloadAction sample app on this Wiki page:
http://wiki.apache.org/struts/StrutsFileDownload
In it you will find a sample app I wrote to demonstrate it, part of which
gets a BLOB field from a database (I think Oracle in this case, but it
should be portable with little or no ch
Peter,
You wrote your tiles:insert tag with 'ignore="true" so
just put a dummy value in for your tiles:insert tag
and if a file by that name doesn't exist, it won't show
anything.
Regarding your directory listing, I've never seen that
but I've also never tried putting a blank entry ("") as
a valu
Mick-
You can use dynaforms and declare them in your struts-config.xml and
as mentioned use BeanUtils.copyProperties to move data between them.
Also, there has been mentioned on this list a library/tool which groks
your DTOs and generates formBeans, but I can't recall now what it's
called.
-ed
Also, remember that your ActionForm properties all should be strings,
while your DTOs should be typed. You can use BeanUtils.copyProperties to
do the conversion.
Say, does anyone have a dynamic AOP-style ActionFormProxy class that you
could use to dynamically decorate a DTO? it would make ints,
Hi,
I recently moved my web application from Struts 1.2.4 to 1.2.7.
Since this, the tag doesn't behave as before because it doesn't
encode sessionid in url specified as href property when session cookies are
disabled.
I compared TagUtils class source code between Struts 1.2.4 and 1.2.7 and
foun
Hi all!
I got confused when I experimented with tiles to learn how it works. Here is
what I have done.
I have created a DeafultLayout.jsp:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
TilesTest
> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> PS: It's pretty straightforward to build turbo versions of the Struts
> HTML tags that have many of the same features described above. But
> that doesn't begin to touch the behavior at input time, where the
> compon
Um wow so Form authentication works but not my own.
Thats fine then, I can get the Subject that has been authenticated but how
do I place the Principals returned from the LoginContext Subject and make
them available to the session so that I can do requst.isUserInRole? Is there
a session va
Hi friends,
After a long discussion about the above subject - I found a related
article, which was very interesting for me (as new to Struts) and I
would like to forward it to you and will be happy to read your comments
to it.
It's called "Struts Live Chapter: Nested POJOs" and you can find
Mark Benussi on 09/08/05 08:39, wrote:
OK I got JAAS working with form authentication. That worked a treat (After a
bit of head banging).
I then moved to invoking the login from Struts (Or a Servlet for Tomcat
users who don't use Struts)
The code still gets invoked correctly.
IBTJAASCallbackHa
OK I got JAAS working with form authentication. That worked a treat (After a
bit of head banging).
I then moved to invoking the login from Struts (Or a Servlet for Tomcat
users who don't use Struts)
The code still gets invoked correctly.
IBTJAASCallbackHandler callbackHandler = new
IBTJAASCallba
On 8/8/05, Leo Asanov <[EMAIL PROTECTED]> wrote:
> Michael,
>
> I don't see the analogy with "Save As" dialog. And
> ActionForm is not a businees object indeed. Don't know
> what to do with this valuable information though...
>
> If there is nothing in Struts which can help me then
> it is the in
Thanks Erik that was a huge help.
I realised that I needed to invoke the LoginModule form a LoginContext. I
have done this but im still missing a trick. My code gets invoked correctly
from an action however it doesnt the next page which display the remote user
etc is now null. Ill keep on digg
85 matches
Mail list logo