You got it right. I was facing same problem some time back. It was
happening because of submission of form twice, with Javascript and form
action.
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 3:43 AM
To: Struts Users Mailing L
Hi Tim,
Could you please send me your code with nested tag so I can get
something from it.
Thank you,
Vijay Prajapati
-Original Message-
From: Tim Williams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 8:39 PM
To: Struts Users Mailing List
Subject: Re: Regarding dynam
Sri,
]
If you're still having problems with Tiles in Struts 1.x, I have a demo
app I used for a Struts class at UCLA Extension. It has lots of things
going on besides Tiles, but I use Tiles exclusively for all pages, and
it is fairly easy to follow. If you or anyone would like it, I'd be
hap
Don't forget that DateFormat and any of its subclasses (ie
SimpleDateFormat) are NOT thread-safe. This means that you can't create
a static class instance of a SimpleDateFormat object that can be used by
different threads without creating a threading issue. If you need to use
a date formatter, chec
Dear all,
Just try to use doubleCssClass of optiontransferselect, but it does not
work.
I am using 2.0.6 now.
Is it a bug?
Regards,
Zheng Shuai
You can try this:
1, try to get a SimpleDateFormat instance from action or stack
2, use the OGNL syntax to format it:
This works for my case.
But I feel maybe it does not work for all the tags. You can try this
approach.
Regards,
Zheng Shuai
On 2/20/07, Bruno Melloni < [EMAIL PROTECTED]> w
My only point is that I don't recall there being any
more TilesController information in that book (I
actually don't recall *any*, but it's been awhile
since I've looked at a non-Lisp Apress book) than
there is in the tutorial link, and going over the
tutorial is free.
--- Andrew Pliszka wrote:
>
On 2/18/07, Rodrigo Pereira <[EMAIL PROTECTED]> wrote:
Is there any way of passing parameters to the action instead of form fields?
I mean, I have a value on a managed bean and I'd like to pass it to
the action, how can I do that?
If the managed bean has been created already, and you know what
I do not want to start flame war, but one developer hour might be easly
worth $1000 or more to the company, so spending $25 on a book is very
resonable. If you have a team of developers working with Struts they
should have full library avaliable to them.
I am just efficiency freak, and yes I u
Hi Dave,
Thanks for pointing me towards the link, it was of great help. Here is
what i did. And i am also pasting the error i am getting.
Step1: I created the following definition in my tiles-defs.xml
tiles-defs.xml
--- Andrew Pliszka wrote:
> Get this book, is is only $25 as pdf,
>
> http://www.apress.com/book/bookDisplay.html?bID=228
I'm not aware that it covers Tiles controllers to a
greater extent than the tutorial I posted, and the
tutorial is cheaper.
d.
__
1) Check the tiles-defs XML config against DTD.
2) Check if the DTD is avaliable.
Brian Long wrote:
more helpful logging:
2007-02-16 11:05:48,529 ERROR [org.apache.struts.action.ActionServlet]
Unable to initialize Struts ActionServlet due to an unexpected exception
or error thrown, so marking
more helpful logging:
2007-02-16 11:05:48,529 ERROR [org.apache.struts.action.ActionServlet]
Unable to initialize Struts ActionServlet due to an unexpected exception
or error thrown, so marking the servlet as unavailable. Most likely,
this is due to an incorrect or missing library dependency.
j
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rambir,
Rambir Singh wrote:
> In the above setting the Action is going to be called two times because of
> that the performance of application is getting slow.
Are you using javascript to submit a form? If so, don't forget that you
should add a "retu
Get this book, is is only $25 as pdf,
http://www.apress.com/book/bookDisplay.html?bID=228
Andrew Pliszka
Dave Newton wrote:
--- [EMAIL PROTECTED] wrote:
I trying to implement "Tile Controllers" concept in
Struts 1.3.5 and i am
not able to find enough documentation like any
sample example
hi folks.
I have code that works just fine under jboss 4.0.4GA that is blowing up
attempting to load the ear in jboss 4.0.5
2007-02-16 11:05:48,526 ERROR [org.apache.struts.tiles.TilesPlugin]
Can't create Tiles definition factory for module ''.
2007-02-16 11:05:48,529 ERROR [org.apache.struts.
--- [EMAIL PROTECTED] wrote:
> I trying to implement "Tile Controllers" concept in
> Struts 1.3.5 and i am
> not able to find enough documentation like any
> sample examples, etc. about
> it. Can any of you please direct towards a resource
> which has some sample
> applications using tile contro
Hi,
I trying to implement "Tile Controllers" concept in Struts 1.3.5 and i am
not able to find enough documentation like any sample examples, etc. about
it. Can any of you please direct towards a resource which has some sample
applications using tile controllers.
Thank you
Sri
--- "C. Adams" <[EMAIL PROTECTED]> wrote:
> I was just going directly to the jsp with the form,
> like I used to in struts 1.x. It looks like the
> preferred way to do it now is to wildcard the action
> name, add a input result, and then access the form
> via myActionName_input.action
>
> This is
I was just going directly to the jsp with the form, like I used to in struts
1.x. It looks like the preferred way to do it now is to wildcard the action
name, add a input result, and then access the form via
myActionName_input.action
This is working fine. Is this the preferred method?
On 2/20/0
The main reason was the ability to serve static files from the jar
(dojo, Javascript, images, etc). It also lets you intercept JSP calls
as necessary.
Don
On 2/20/07, bob <[EMAIL PROTECTED]> wrote:
I was just curious about the use of a servlet filter instead of a servlet as
the entry poin
Dear All,
I am trying to upgrade my project to 2.0.6.
I am using the default setting of struts 2.
There are always some errors occurs in DefaultWorkflowInterceptor (but some
of the pages no problem).
I do the debug, the code segment is here:
if (action instanceof ValidationAware) {
Hi,
I'm building a web application and I would like to know what would be the
best approach to create dynamic menus (data comming from database).
Thanks
--
View this message in context:
http://www.nabble.com/Dynamic-menus-tf3262000.html#a9066200
Sent from the Struts - User mailing list archive
I was just curious about the use of a servlet filter instead of a servlet as
the entry point into the struts2 framework. Does anyone have any knowledge
about this design decision? I'm just interested in what the pros and cons are
of doing it with a servlet or a filter. Thanks ahead of tim
Found nothing better than:
listValue="dateTime.toString().substring(0, 16)+' - '+((sector == null) ? ''
: sector +' - ')"
Bruno Melloni-2 wrote:
>
> There probably is a better "struts" way of doing this, but here is one
> way that gets the job done:
>
> - Use a list of string-formatted datetim
Hi,
I'm using Tiles from Struts 1.1 and JSF and I have a problem handling
exceptions.
In my JSP pages, when an exception is thrown I saw it in the text of the
page instead of catching it with servlet filters.
>From what I saw in the source code, the method processException in
InsertTag.java
--- "C. Adams" <[EMAIL PROTECTED]> wrote:
> Maybe it should, but it doesn't. The value of test
> is always blank, and a println I put in the getter
> does not show up in the log. I don't thing the
> action is being instantiated until after the form is
> submitted.
Actions are instantiated per-req
On 2/20/07, Vijay Prajapati <[EMAIL PROTECTED]> wrote:
I am using Struts2.0.1.
I have created groups of 3 dynamic radiobuttons through iterator(Array List)
tag. But I have to give different names to these groups. I am here giving code
which I have been written in my jsp.
Maybe it should, but it doesn't. The value of test is always blank, and a
println I put in the getter does not show up in the log. I don't thing the
action is being instantiated until after the form is submitted.
On 2/17/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
Mailing Lists wrote:
> How d
I am using Struts2.0.1.
I have created groups of 3 dynamic radiobuttons through iterator(Array
List) tag. But I have to give different names to these groups. I am here
giving code which I have been written in my jsp.
Here groupname is collection(ArrayList which store grou
There probably is a better "struts" way of doing this, but here is one
way that gets the job done:
- Use a list of string-formatted datetimes. Format the dates before
putting them on the list.
- For formatting, review the classes java.util.Date, java.util.Calendar,
java.text.DateFormat, java.tex
Hi everybody,
I am aware that this is totally OT, but I'd be really grateful for any
answers, hints, best practices, links, whatever. My problem is as
follows:
I am using Hibernate/Spring to load domain objects (DOM) from my
database, then I use these DOMs to display information on the web.
Great
Can any bosy has sample jsp , bean , action
To handle this Multiple formfile uploads - howto? =
Thanks in advance
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi!
Using Struts2
has output:
2009-09-27 00:00:00.0 0.01
2009-09-27 00:00:00.0 null
How to set dateTime (java.util.Date) format? (e.g. to show only date)
How hide null values, if price is null?
Thanks!
--
View this message in context:
http://www.nabble.com/s%3Aselect---format-date
speaking to
2007/2/15, Ted Husted <[EMAIL PROTECTED]>:
http://www.apple.com/getamac/
... As seen on Comedy Central.
-Ted.
On 2/15/07, Greg Reddin <[EMAIL PROTECTED]> wrote:
> I didn't see the Mac ad, but I saw several others. I guess they never
> rolled around to it, probably because I'm on
35 matches
Mail list logo