Good Day,
Thanks for the great looking datepicker control.
Is it possible to post the source code for the Java classes because I am
trying to create my own plugin for some the Open Flash Chart component and
would like to do it in a similar way to your YUI plug-in.
Thank you in advance.
Mark P
Very nice! Thank you Musachy!
Just one question: The label for the date field is empty..
the JSP:
...
[EMAIL PROTECTED] prefix=yui uri=/struts-yui-tags%
yui:head datepicker=true/
yui:datepicker id=toDate name=toDate value=%{'2006-10-20'} /
...
the generated HTML:
...
tr
td
Chris,
Thanks a lot, these changes really did help, now MySQL reports that only one
connection is used all over the website.
I really do appreciate your help.
Regards,
MB
- Original Message
From: Christopher Schultz [EMAIL PROTECTED]
To: Struts Users Mailing List
Well as you said it was an xml config issue. But worked that out, i got an
class not found exception in the log.
The interface MapAdaptable could not be found. After a little investigation
i found that the interface is in the spring-binding-1.0.3.jar. Once included
the jar i got your example up
Hi,
I have been to www.ognl,org and can only find the source for 2.6.9 where
are the struts 2 team getting the new releases from as it seems to be a
dead site?
Thanks
Dave.
__
Ufi Limited
Registered in England No. 3980770
In order to better understand the ValueStack I wrote the following code to
explore it:
ValueStack myStack = ActionContext.getContext().getValueStack();
out.println(Stack size + myStack.size() + br/);
java.util.Map myMap = myStack.getContext();
for (Object pollo :
[arenselist] Hopefully this entry serves as some search engine
friendly documentation on how one might unit test Struts 2 actions
configured using Spring, something I would think many, many people
want to do. This used to be done using StrutsTestCase in the Struts
1.x days but Webwork/Struts
Try messages.add(Globals.MESSAGE_KEY,new ActionMessage(invalid.login));
ie use Globals.MESSAGE_KEY instead of ActionMessages.GLOBAL_MESSAGE
--
Yoge,
AdventNet, Inc.
925-965-6430
[EMAIL PROTECTED]
site24x7.com http://www.site24x7.com/
On 6/20/07, Aleksandar Matijaca [EMAIL PROTECTED] wrote:
Another alternative,
Move all the images/css specific to abc.com to a subdirectory named
/abc/...
Let all the images related to xyz.com be in another sub-directory /xyx/
Change path of images in your application to /abc or /xyz based on the
request.*getRemoteHost*() .
--
Yoge,
AdventNet, Inc.
First of all, thank you all for replying. Jeff you are right, invalid.login
was put into the WRONG PROPERTIES file. I moved the projects
around, and a new Properties file was created, however, the
struts-config.xml
was not updated with the location of the new properties file, instead,
the old
Hello,
We have a client using Struts 1.2.9. They are experiencing a problem when
trying to use client side validation on a struts page that is using
html:xhtml. It's the exact problem described in this bug report:
http://issues.apache.org/struts/browse/STR-2482
The above link leads me to
Hi. I created an interceptor which extends AbstractInterceptor and implements
StrutsStatics. Also I added it in the applicationcontext.xml of the Spring
framework. My problem is the following and I don't know where to get the
missing class:
Jun 20, 2007 2:32:16 PM
Good Day,
I have a custom tag that I am developing and I am trying to figure out where
the parameter.id values come from. For example,
lt;#if parameters.align?existsgt;
align=${parameters.align?html}
lt;/#ifgt;
This is used in the graph.ftl that is in template.simple.
My tag has those
I am developing a web page which contains two layouts (left right).
On the
left side, there are some buttons. And the right side, it is a DIV which use
s:div/ to create. It will invoke the JavaScript to send a request to one
specific S2 action and updates the div with the return page
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Balazs,
Balazs Michnay wrote:
Thanks a lot, these changes really did help, now MySQL reports that
only one connection is used all over the website. I really do
appreciate your help.
No problem. Another good tip is to set your connection pool size
Does your s:div.../ have executeScripts=true?
d.
--- FanCo [EMAIL PROTECTED] wrote:
I am developing a web page which contains two
layouts (left right). On the
left side, there are some buttons. And the right
side, it is a DIV which use
s:div/ to create. It will invoke the
On 6/20/07, David Harland [EMAIL PROTECTED] wrote:
Hi,
I have been to www.ognl,org and can only find the source for 2.6.9 where
are the struts 2 team getting the new releases from as it seems to be a
dead site?
http://www.opensymphony.com/ognl/
Niall
Thanks
Dave.
I'm not really sure about limitations, if you have specific questions, I
could help. Just one word of advise, stay away from the datetimepicker tag
until 2.1.
regards
musachy
On 6/20/07, tom tom [EMAIL PROTECTED] wrote:
Hi,
Can someone let us know the limitations of using DOJO
library with
You need to set the label with the label attribute, just like the other
Struts tags.
regards
musachy
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
Very nice! Thank you Musachy!
Just one question: The label for the date field is empty..
the JSP:
...
[EMAIL PROTECTED] prefix=yui
On 6/20/07, lextest [EMAIL PROTECTED] wrote:
Hello,
We have a client using Struts 1.2.9. They are experiencing a problem when
trying to use client side validation on a struts page that is using
html:xhtml. It's the exact problem described in this bug report:
Hi Mark,
The code is proprietary, so I can't give it away. Just kidding, go here:
http://code.google.com/p/struts2yuiplugin/
and click on the source tab, the license is Apache 2 ;)
//anyone can host a project at googlecode : http://code.google.com/hosting/
regards
musachy
On 6/20/07, Mark P
I'm using the spring id only.
On 6/19/07, Adam Ruggles [EMAIL PROTECTED] wrote:
Are you specifying the entire class name in the action mapping
definition instead of using the spring bean id?
[EMAIL PROTECTED] wrote:
It appears as though I am not getting a new Action instance created
for
I'm using Spring 2.x and the attribute scope=prototype
On 6/19/07, Zarar Siddiqi [EMAIL PROTECTED] wrote:
It sounds to me like your Action class might be configured as a singleton.
If that's the case the action class' constructor would only be called once
on startup. Make sure you have
I replaced the spring bean id in my action mapping with the fully qualified
class name to rule Spring out completely. I am still never seeing the log4j
output in the constructor of my action class! I have double checked my
log4j.properties and the debug output would be written out if the
Yes - They are seeing id instead of name in the generated form tag. You
are correct about the commons jar. They had an old version of that. I just
tested with 1.3.1 and it works fine.
Thanks for your help and the speedy reply.
Regards
-Original Message-
From: Niall Pemberton
Oooop! The struts.xml change did not force the context to reload! Now that
I have changed the class in the action mapping to the fully qualified class
name, it *is* being instantiated on each request! So why is it not working
with the Spring bean id?
On 6/20/07, [EMAIL PROTECTED] [EMAIL
How would one iterate a bean's collectionhashmap row values by key
of bean's collectionstring columnName? Here's what I have on the
jsp:
s:iterator id=row value=bean.tableColumnData status=rowStatus
s:iterator id=columnName value=bean.tableColumns
status=status
s:property
Assuming Spring is your AOP framework
Logging is now an Advised entity
to be injected at compile time or runtime via 'pointcut'
details on implementation are located here
http://www.devx.com/Java/Article/30799/0/page/1
to quote
'Because this FactoryBean concept is how Spring wraps beans and then
?!
--- Martin Gainty [EMAIL PROTECTED] wrote:
Assuming Spring is your AOP framework
Logging is now an Advised entity
to be injected at compile time or runtime via
'pointcut'
details on implementation are located here
http://www.devx.com/Java/Article/30799/0/page/1
to quote
'Because
Quick follow up to correct myself. This works:
s:property value=#row[(#columnName)]/
I referenced the following documentation
http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/expressionEva
luation.html
James
-Original Message-
From: Hartrich, James CTR USTRANSCOM J6
--- Hartrich, James CTR USTRANSCOM J6 wrote:
s:property value=#row.columnName/
I'd probably try something like #row[#columnName] (or
maybe #row[(#columnName)] to force OGNL to eval
again); I'm doing something similar but I don't have
the example in front of me at the moment.
d.
I didn't set the executeScripts attribute for the DIV. So the default value
should be false. What is the function of this attribute if it is true?
newton.dave wrote:
Does your s:div.../ have executeScripts=true?
d.
--- FanCo [EMAIL PROTECTED] wrote:
I am developing a web page
--- Hartrich, James CTR USTRANSCOM J6 wrote:
Quick follow up to correct myself. This works:
s:property value=#row[(#columnName)]/
Yeah, that ;)
d.
Fussy? Opinionated? Impossible to please? Perfect.
I discussed the problem with the freemarker team and I used a
suggestion that PARTIALLY resolved.
They said :
=
You can use the code below to enable the model cache, assuming
myConfiguration is the reference to your Configuration object:
Spring is my IOC container. So are you suggesting Spring is *not*
instantiating action classes on each request? I am confused that it would
be creating the beans used by the actions on each invocation but not the
action itself. Also, I am not sure how Spring could advise which methods to
call
Scripts in the html returned will be executed (script.../script)
http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-ExecuteJavaScriptinthereturnedcontent
musachy
On 6/20/07, FanCo [EMAIL PROTECTED] wrote:
I didn't set the executeScripts attribute for
On 20/06/07, Dave Newton [EMAIL PROTECTED] wrote:
?!
I didn't understand a word of that either :-)
--- Martin Gainty [EMAIL PROTECTED] wrote:
Assuming Spring is your AOP framework
Logging is now an Advised entity
to be injected at compile time or runtime via
'pointcut'
details on
That should be it, and scope=prototype has always done the trick for me,
why don't you post relevant parts of the spring conf file?
regards
musachy
On 6/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Oooop! The struts.xml change did not force the context to reload! Now
that
I have
!-- Actions --
bean id=pufAction class=actions.PayrollUpdateAction
scope=prototype
property name=payrollUpdate ref=anUpdate/
/bean
!-- Add actions here --
action name=PayrollUpdate_* method={1} class=pufAction
result name=inputPayrollUpdate/result
Hello.
I have an action with a getter for a List.
In the execute method of the action I can verify the list is not empty.
But in the jsp view, at times it reports an empty list.
the action:
public class StorySearch extends ActionSupport {
private ListStory stories = null;
...
If you are trying to load your list by using a parameter passed in.. say
and Id from a link or another page, you might need to use the
paramsPrepareParamsStack interceptor and implement Preparable in you
action.
I ran into a similar problem the other day. You would need to put your
code to
Hello Scott.
..but.. the list is a property of the action, and it's populated in
the execute method.. the JSP, should be rendered after
the execute method has returned, and so at that time it
should be safe to get the stories from the action, as
by now it should be set and ready.
Do I miss
This is most probably not related to Struts.
I can't claim to know the intrinsics of your setup but it looks like you're
missing some jars need for JSF.
It might be that you're running an older version of the J2EE stack.
javax.el.ExpressionFactory comes with J2EE 5, and is part of JSF 1.2
Hi all,
HDIV project is an Apache-licensed Struts' Security extension that adds security
functionalities to Struts, maintaining the API and Struts specification.
This implies that we can use HDIV in applications developed in Struts in a
transparent way to the programmer and without adding any
I have a couple of actions with validation configuration. The
validation works fine for most of them, except for one in which case
all the fields are always invalidated even when I fill them correctly.
Also, I noticed that, after submitting the form, the values of the
fields are not preserved. I
Hi again Scott.
I tried anyways adding
default-interceptor-ref name=paramsPrepareParamsStack/
to my struts.xml but it doesn't help..
Any more hints?
Roberto Nunnari wrote:
Hello Scott.
..but.. the list is a property of the action, and it's populated in
the execute method.. the JSP, should
If you do the following I am pretty sure it would work, assuming you are
pasing in the id for dataManager.searchStories(id) .
Action class:
public class StorySearch extends ActionSupport implements Preparable {
private ListStory stories = null;
private String id;
That looks right to me :)
musachy
On 6/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
!-- Actions --
bean id=pufAction class=actions.PayrollUpdateAction
scope=prototype
property name=payrollUpdate ref=anUpdate/
/bean
!-- Add actions here --
action
Hi,
I am using struts 1.3.8 for my application. Can anybody please help me how
to restrict access to jsp pages directly in struts. I am not having any of
jsp in web-inf, so I need to restrict direct access to JSP. Any suggestion
will be a great help to me.
--
Regards
Archer
Archer wrote:
Hi,
I am using struts 1.3.8 for my application. Can anybody please help me how
to restrict access to jsp pages directly in struts. I am not having any of
jsp in web-inf, so I need to restrict direct access to JSP. Any suggestion
will be a great help to me.
Too many ways to do
Hello,
I got an exception that my action mappings cannot be located... eg.
namespace /program
action name viewInvoices. - [UNKNOWN LOCATION] ... etc.
so i gave my action an incorrect name eg. (viewInvoice)
and guess what my action was suddenly located, even tough I triple checked
that the
s:url
Hello, i had a similar problem,
u may need a concrete implementation for your
property
something like:
private ListStory stories = new LinkedListStory();
public ListStory getStories() { return stories; }
and make sure to override toString() in your Story class...
don't know what else to tell
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
In the execute method of the action I can verify the list is not empty.
But in the jsp view, at times it reports an empty list.
Are you saying that 'sometimes' when the search actually brings back
results (and you output it via that for
Thank you for the input Manos.I am new to struts and security
implementation. So I am trying different things.
My present implemetation has restricted access to JSP pages depending on
role. I thought of restricting complete access to JSP pages itself as the
jsp pages get the input from action
Fellows,
I am unable to start apache tomcat server running simple application. The
reason is that it cannot find mappings as given below, any input is
appreciated.
thanks
Munwar Soomro
Log messages:
WARNING: Unable to load config class
Fellows,
I am unable to start apache tomcat server running simple application. The
reason is that it cannot find mappings as given below, any input is
appreciated.
thanks
Munwar Soomro
Log messages:
WARNING: Unable to load config class
Hi there,
May be someone has already solved this problem. I need to implement a wizard
like page flow in my strut web application.
This is what I've done:
1. Created one big action form and put it in session scope.
2. Created action class extending DispatchAction
3. Created several jsps.
I
Hi Jeff.
Jeff Amiel wrote:
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
In the execute method of the action I can verify the list is not empty.
But in the jsp view, at times it reports an empty list.
Are you saying that 'sometimes' when the search actually brings back
results (and
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
Yes. That's it. It happens at random times.. not always.
When it happens, all I get instead of the table in the browser is:
Nothing found to display.
makes no sensesure you don't have a local variable inside the
execute method called
Thanks anyway for your answer.
I have to say there are a great bunch of good guys on this forum.
The thing is that I am not using intentionally the JSF framewrok. I just
added an interceptor to the application. What is the problem here ?
cilquirm wrote:
This is most probably not related to
Did you see what happens when you take out the interceptor?
As I see it, you should still be getting this error ( since I postulate they
are unrelated :) )
If not, then this indeed is a mystery.
GEDA wrote:
Thanks anyway for your answer.
I have to say there are a great bunch of good
Good Day,
I thought I would post a reply in case anyone needs to find the answer.
Well it seems that the UIBean has an evaluateParams and so to get my
parameters visible in the template is to do something like...
public void evaluateParams() {
super.evaluateParams();
if(width
cilquirm wrote:
Did you see what happens when you take out the interceptor?
As I see it, you should still be getting this error ( since I postulate
they are unrelated :) )
I am sure they are unrelated ...
I will try to rule it out from the struts.xml file
If not, then this
I have discovered an optimized (very little code) solution to CRUD using
S2. My next question has to do with CRUD across a 1:M domain model. I have
the Preparable and ModelDriven technique working nicely with the id (PK)
being set in the BaseAction class. What I would like to work through next
What plugin libs are you using vs. having in
WEB-INF/lib? For example, do you have the JSF plugin?
d.
--- GEDA [EMAIL PROTECTED] wrote:
cilquirm wrote:
Did you see what happens when you take out the
interceptor?
As I see it, you should still be getting this
error ( since I
Good Day,
The first beta release of Connext Graphs is ready. This release provides a
Struts 2 plug-in so that pages can use the Open Flash Chart library. The
next release will focus on the data model so that actions can easily create
the data source that the chart uses to render.
The library
Jeff Amiel wrote:
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
Yes. That's it. It happens at random times.. not always.
When it happens, all I get instead of the table in the browser is:
Nothing found to display.
makes no sensesure you don't have a local variable inside the
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
humm...
If it's truly 'random' like that there are only 4 things that could be
happening.
1. Display tag is broken (not likely)
2. You occasionally have another element in some other scope with the
same name that is being picked up
I am trying to write a page that views and updates values from MBeans.
My Action class has a method that exposes a Map of MBean client objects
which mostly contain properties from the MBean. I am using the
Preparable interface where the prepare() method populates the map. The
view portion is
Adding and entry in the plugin registry will help users find it:
http://cwiki.apache.org/S2PLUGINS/home.html
regards
musachy
On 6/20/07, Mark P Ashworth [EMAIL PROTECTED] wrote:
Good Day,
The first beta release of Connext Graphs is ready. This release provides a
Struts 2 plug-in so that
Hi,
Im trying to use list conversions. I was testing the example in Type
Conversion guide
(http://struts.apache.org/2.0.8/docs/type-conversion.html). I had the
example running, but when I tried to change the attribute id from MyBean to
type String, it wont work when using big strings, or
On 6/20/07, cilquirm [EMAIL PROTECTED] wrote:
This is most probably not related to Struts.
I can't claim to know the intrinsics of your setup but it looks like you're
missing some jars need for JSF.
It might be that you're running an older version of the J2EE stack.
javax.el.ExpressionFactory
Jeff Amiel wrote:
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
humm...
If it's truly 'random' like that there are only 4 things that could be
happening.
1. Display tag is broken (not likely)
don't think so.. the same thing happens also with another action that
puts a list
When it comes to custom widgets, what is the support
from the S2 framework, what is the best way to access
those via S2
Thanks
--- Musachy Barroso [EMAIL PROTECTED] wrote:
I'm not really sure about limitations, if you have
specific questions, I
could help. Just one word of advise, stay away
Struts doesn't add anything on top of dojo except for a few custom widgets
(bind, and binddiv), an others that extend the dojo ones to add
functionality (autocompleter, datepicker, timepicker, tree, treenode)
musachy
On 6/20/07, tom tom [EMAIL PROTECTED] wrote:
When it comes to custom
Is there a way to use the s:action tag to call actions of other
webapps deployed on the same container?
Is there a way to get the result of an action from inside another action class?
On 6/20/07, Asaf Paris Mandoki [EMAIL PROTECTED] wrote:
I'm trying to make a web application that organizes a
What is the best way(best practice) to have the
widgets that doesn't supported by the Struts2,
Should I write a custom tag or call natively?
--- Musachy Barroso [EMAIL PROTECTED] wrote:
Struts doesn't add anything on top of dojo except
for a few custom widgets
(bind, and binddiv), an
There is a trade off, I guess, but using javascript directly, ala dojo will
be easier.
musachy
On 6/20/07, tom tom [EMAIL PROTECTED] wrote:
What is the best way(best practice) to have the
widgets that doesn't supported by the Struts2,
Should I write a custom tag or call natively?
---
Hi,
I have a action class which get called by two ways in
two different pages.
1) As a href
2)As part of a form submission
In the action class I forward to another action
instead of a jsp via the forward, hence struts.xml
looks as follows.
(note: testSetup action defined in the struts.xml)
If just for presenting data, so far as I tried, almost all dojo widgets can
be used directly in the VIEW (eg. JSP pages) ... so it doesnt matter if S2
support or not ...
On 6/21/07, Musachy Barroso [EMAIL PROTECTED] wrote:
There is a trade off, I guess, but using javascript directly, ala dojo
Yes I agree but dont you think if we can provide a
custom tag on top of the widget, it can be reused with
minimal coding and also the better way to do it.
e.g customized business widget which can be reused.
Let me know your thougts as well.
Thanks
--- Li [EMAIL PROTECTED] wrote:
If just for
Hi Tom,
It would be ok to create custom tag and reuse them at many pages. So I guess
you may have to deal with data in your tag handler, I am not sure how dojo
can be combined with your tag handler effectively and make them S2
awareable.
For me, widgets are just used for presenting data. I have
Hi musachy,
Thanks for your reply. It doesn’t work even I set the executeScripts to
true. One thing I didn’t mention is I set the “href” attribute of the DIV to
an action that will return the form page. So after the page load, the div
will request and show the form page asynchronously. In
Musachy, is this the https://issues.apache.org/struts/browse/WW-1766 issue. I
recall you made a partial fix in 2.0.8/2.0.9 but in 2.0.6 I used a work-around.
FanCo wrote:
Hi musachy,
Thanks for your reply. It doesn’t work even I set the executeScripts to
true. One thing I didn’t
One more thing. The Connector JavaScript is included in the parent page(jsp
that contains the div), not at the form page. So my form page doesn't
contain any javascript(maybe there are some in the future) . So I don't
think the value of executeScripts will affect the result. Moreover I found
out
yes, it does sound like the same scenario.
musachy
On 6/20/07, Jeromy Evans [EMAIL PROTECTED] wrote:
Musachy, is this the https://issues.apache.org/struts/browse/WW-1766issue. I
recall you made a partial fix in
2.0.8/2.0.9 but in 2.0.6 I used a work-around.
FanCo wrote:
Hi musachy,
I found this article very useful:
Developing J2EE Applications Using Hibernate Annotations and Spring MVC
http://www.developer.com/java/ent/article.php/10933_3577101_1
On 6/19/07, hezjing [EMAIL PROTECTED] wrote:
Hi!
What is the difference between a Model object and DAO?
In Struts 2 +
Hi!
When we have the Struts configuration below:
package name=person extends=struts-default
action name=list method=execute class=personAction
resultpages/persons.jsp/result
/action
/package
We can invoke the action by /list.action.
Why do we want to create a
You should add a name space for person and product package, as following:
package name=person extends=struts-default namespace=/person
action name=list method=execute class=personAction
resultpages/persons.jsp/result
/action
/package
package name=product
89 matches
Mail list logo