Thanks, Brad!
Having said all of that, I've been able to get the zero
config/codebehind working and (in Spring 2.5) component scanned Spring
beans so that newly written Actions and DAOs require few annotations and
no xml configuration. What other kind of problems have you had?
How do I
I have an action with a ListMessage messages. The
Message class has a Date senddate. In my jsp I am
iterating over the messages and want to create a s:url
with a param of formatedDate but I want to set the
value as a formatted version of senddate. I am
presently adding a getFormattedDate method
It looks right.
Turn on debugging with s:head
s:head theme=ajax debug=true/
and use the FireFox FireBug plugin to determine if it failed to find any
resources.
The template for the calendar is loaded via an ajax request. If that
request fails you see nothing.
tristan_colson wrote:
I am
It looks like you're doing everything okay (and well explained) If you
enable debugging do you get any useful feedback ?
s:head theme=ajax debug=true/
The complexity here is that Dojo must parse the response, extract the
scripts, insert the html in the dom and then execute the scripts. If
Hi All,
i have downloaded the 'Struts
2.0.11.1http://struts.apache.org/download.cgi#struts20111'
distribution and trying to deploy application by following apache struts
tutorial document . I got this exception due to var attribute missing in the
url tag.*
org.apache.jasper.JasperException*:
David Harland wrote:
I have an action with a ListMessage messages. The
Message class has a Date senddate. In my jsp I am
iterating over the messages and want to create a s:url
with a param of formatedDate but I want to set the
value as a formatted version of senddate. I am
presently adding a
my application uses container managed security , j_security_check,
we create session before user login so i dont want to call
session.invalidate
if users wants to logout is there anything i can do to logout user ?
-
Be a better friend, newshound, and
Hi,
My project has the requirement to display the records
in table and when i click on a particular row, the
data would be displayed in the text boxes.
I have applied Struts frame work and data is displayed
in table, now any body can help how to show that data
in textboxes on click to a record in
Hi,
My project has the requirement to display the records
in table and when i click on a particular row, the
data would be displayed in the text boxes.
I have applied Struts frame work and data is displayed
in table, now any body can help how to show that data
in textboxes on click to a record in
Rishi
Do not hijack others thread please. Create a new e-mail.
Antonio
2008/4/17, Rishi Deepak [EMAIL PROTECTED]:
Hi,
My project has the requirement to display the records
in table and when i click on a particular row, the
data would be displayed in the text boxes.
I have applied Struts
I have the same trouble. Has anyone solve this problem ?
Thanks,
niels-15 wrote:
I want to pass a value to my fielderror.ftl
lik this:
s:fielderror
s:param name=foo value=bar/
/s:fielderror
Does someone knows how to retrief the value in de template?
${parameters.foo}
Hi,
what is also wierd, if I put that array in the session in my Action class like
this (in prepare method):
Map session = ActionContext.getContext().getSession();
session.put(allRoles, allRoles);
and then I change my .jsp to use this array from session:
...
s:select
id = roleChoose
Thanks for input,
Yes, I have debug on. Interestingly enough, with firefox it gives me just
this:
DEBUG: Error running scripts from content
However, I just noticed that with IE, I get this:
DEBUG: Error running scripts from content:Could not complete the operation
due to error 80020101
At the
I solved the problem. It seems that I didn't called this action by using full
URL with namespace.
--
Sorry, Milan Milanovic
- Original Message
From: Milan Milanovic [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, April 17, 2008 3:03:35 PM
I need to set a runtime tiles definition attribute using a value from the
valuestack. From my research, the tiles-plugin result does not allow
attributes to be configured.
action name=wizard_* class=acme.action.wizard.Wizard method={1}
result${nextPage}/result
is there a way my application gets notified of successful login using
j_security_check ?
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Hi Alex,
You can declare your different interceptor stacks in different packages and
then declare the parent package on the action like this:
@ParentPackage(packageWithEmptyStack)
public class FooAction ...
Aside from bug WW-2170 and the repeated use of the @ParentPackage
annotation, I prefer
The easiest solution is to simply return a ServletActionRedirectResult
instance from your action method.
Don
On Wed, Apr 16, 2008 at 4:33 PM, Alex Shneyderman
[EMAIL PROTECTED] wrote:
I am using 2.0.11 it seems that I can not use action-redirect result
type. I need to tag along a request
2008/4/17, stanlick [EMAIL PROTECTED]:
definition name=wizardPage extends=baseLayout
put-attribute name=body value=???{nextPage}??? /
/definition
Use a ViewPreparer:
http://tiles.apache.org/tutorial/advanced/preparer.html
Antonio
You can simply create a javascript function that is called when the onClick
or onSelect event of the table triggered.
Saludos
Lalchandra
-Original Message-
From: Rishi Deepak [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 17, 2008 5:05 AM
To: user@struts.apache.org
Subject: How to
You can declare your different interceptor stacks in different
packages and then declare the parent package on the action like
this:
@ParentPackage(packageWithEmptyStack)
public class FooAction ...
Guillaume is right. In 2.0.x when Actions are auto-discovered (via the
actionPackages
Hi,
in some cases I redirect after one action instead to a jsp to another
action.
This works fine, but the action messages and action errors I want to display
are lost.
How can I store them over this action chain?
Best regards,
Marc
Hi Ian,
First let me congratulate you on your Struts2 book, I honestly think it's
one of the best technical books I've read in a while: it's thorough,
practical and tackles every day issues. Kudos to you!
About that WebWork flash interceptor, it seems to me that it's not that
useful. AFAICT
Most posts arrive to my mailbox twice. Does anybody know why?
Saludos
Lalchandra
--- Lalchandra Rampersad [EMAIL PROTECTED] wrote:
Most posts arrive to my mailbox twice. Does anybody know why?
I don't know why, but I also get an unusual number of duplicate messages
(same IDs).
Dave
-
To unsubscribe,
Your right. The flash interceptor is more for the benefit of the next
JSP page (i.e. redirect after post pattern) and not for accessing data
in the current action. For this scenario you can use the chaining
interceptor/result type - match setters on the current action with
getters from the
What would be great is if an interceptor would inject all
properties that are shared by the previous and the current
action (by name? by type?) in the current action, in a similar
fashion to HTTP parameter injection.
If you use an ActionChainResult it will automatically do this, but
action
On Fri, Apr 18, 2008 at 1:22 AM, Brad A Cupit [EMAIL PROTECTED] wrote:
I've tried that myself as it seemed a very clean way of returning a
result, but I get a NullPointerException since the ActionMapper isn't
set on the Result.
snip /
Can you think of any way that the actionMapper could
Right on Antonio! Can you tell me how to fish the web context root from the
Preparer? I need to construct the page location from this and the nextPage
itself. Is there a list of key names someplace? Finding this bit of data
or that on the stack is typically where productivity takes a nosedive.
Hi Friends,
I have tried jasperreports in simple web application using jsp, servlets, it
works fine.
Now I need to implement jasperreports in struts2 application but its not
working. Currently it is displaying blank report.
Please guide me in this regard. Any gud reference related to
Looks like a simple versioning error to me; you're doctype declaration:
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration
1.3//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd;
But you said:
But, the
--- aum strut [EMAIL PROTECTED] wrote:
Now I need to implement jasperreports in struts2 application but its not
working. Currently it is displaying blank report.
Any exceptions?
Without *any* information, as usual, it's impossible to help.
temp temp wrote:
my application uses container managed security , j_security_check,
we create session before user login so i dont want to call session.invalidate
if users wants to logout is there anything i can do to logout user ?
If you don't invalidate the session, it will still contain
Ah, good point. Yes, please file this as a request, as it
should be pretty easy to do and would make things much easier.
done, thanks!
automatically set ActionMapper for ServletRedirectResult
https://issues.apache.org/struts/browse/WW-2598
Brad Cupit
Louisiana State University - UIS
I tried adding the debug=true, and got the following error when it
rendered my JSP:
FATAL exception raised: Could not load 'struts.widget.Bind'; last tried
'__package__.js'
Googling this leads me to believe that perhaps some libraries aren't playing
well together.
Here are the other libraries
In my example the popup window didn't do any processing because it is a
ForwardAction (org.apache.struts.actions.ForwardAction), the view just got
some values that were either in the session or passed on the query string.
If your form bean is configured properly the values from the query string
Prototype doesn't play nicely with much of anything.
You'll most likely need to load Prototype last and hope for the best; an
older application of mine used both and that was how I worked around it.
That said, I don't particularly recommend mixing Prototype with much of
anything else because of
im using lastest struts 2.1 test release and pre test release and the
problem is the same, im getting errors in console like :
Could not find property [.freemarker.RequestParameters]
Could not find property [templateDir]
Could not find property [org.apache.catalina.jsp_file]
etc my project starts
2008/4/17, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Right on Antonio! Can you tell me how to fish the web context root from the
Preparer? I need to construct the page location from this and the nextPage
itself. Is there a list of key names someplace? Finding this bit of data
or that on the
2008/4/17, Marc Eckart [EMAIL PROTECTED]:
This works fine, but the action messages and action errors I want to display
are lost.
How can I store them over this action chain?
You can store them in the request scope, just as a normal attribute.
Antonio
I'm aware of the chain result but I'd prefer to stick to the redirect result.
This hypothetical flash result could list the properties that should survive
the redirect, so I think we would avoid the problem with the CGLIB proxy.
I'll investigate writing such a result / interceptor pair. I
I think the tiles definition attributes should be exposed through the
tiles-plugin XML file. My Wizard action is setting the nextPage so this
would eliminate the need to write a ViewPreparer to set the jsp in the tiles
definition. I am now meddling around in the Preparer trying to construct
the
This hypothetical flash result could list the properties
that should survive the redirect
snip/
I'll investigate writing such a result / interceptor pair.
Wouldn't that be the same as the ServletActionRedirectResult, where
param values can be ognl expressions? (assuming a version of struts
Thanks Sir, I will apply..
--- Lalchandra Rampersad
[EMAIL PROTECTED] wrote:
You can simply create a javascript function that is
called when the onClick
or onSelect event of the table triggered.
Saludos
Lalchandra
-Original Message-
From: Rishi Deepak [mailto:[EMAIL PROTECTED]
44 matches
Mail list logo