Actually I am using same version of tiles: 2.0 as you said i.e
for tiles.xml:
!DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles
Configuration 2.0//EN http://struts.apache.org/dtds/tiles-config_2_0.dtd;
My jsps are simple and don't use tiles tags. I am using tiles just as
We are in the process of upgrading to struts 1.3.5, I have followed the upgrade
guide at http://wiki.apache.org/struts/StrutsUpgradeNotes12to13. Most of the
nested tags now seem to be broken.
For example:
nested:form action=/someAction
nested:iterate property=records id=record
Instead of using investor.name use record.name
Try this will work
-Original Message-
From: Lance Semmens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 2:54 PM
To: 'user@struts.apache.org'
Subject: Upgrading to struts 1.3.5, nested tags are broken
We are in the process of
it works, when i add the jars as external jars (in eclipse), but now i have
another problem. struts starts up without errors, but in runtime i get the
following error:
...
javax.servlet.ServletException: org/jfree/util/PublicCloneable
at
I want record.getInvestor().getName() to be called. My understanding of nested
is that nested:write / does not need to mention record as it implicitly
knows about it.
-Original Message-
From: nagesh.kumar [mailto:[EMAIL PROTECTED]
Sent: 07 March 2007 09:25
To: 'Struts Users Mailing
Hey,
If this is true, then how does one standardly get around this issue when forms
submit? Since I believe there is a separate service which processes the forms
and attempts to get an InputStream and is causing the crash.
I'm really working on a hybrid clickstream tracking filter which reads
Hello
Context :
My company have a special way to determine and to authorize some user.
The url of the application must be :
http://server:port/Context/context_for_user_category/myAction.do
An authorization filter use the context_for_user_category to determine which
authorization server and model
Hey all
I recently decided to evaluate Struts2 for a big project, but am having
difficulties mapping actions. I get the There is no Action mapped... error
when I try running the blank struts2 application.
Here's my example.xml
package name=example namespace=com/bubbleclip/web/example
On 3/7/07, Lance Semmens [EMAIL PROTECTED] wrote:
We are in the process of upgrading to struts 1.3.5, I have followed the upgrade
guide at http://wiki.apache.org/struts/StrutsUpgradeNotes12to13. Most of the
nested tags now seem to be broken.
For example:
nested:form action=/someAction
What version of Struts are you using? From memory I think this was
fixed in more recent versions.
Niall
P.S. Always a good policy to state the version you're talking about
On 3/7/07, MC Moisei [EMAIL PROTECTED] wrote:
Hello,
How do I get rid of the following anying message beside setting the
Try setting namespace=/com/bubbleclip/web/example, in the package, and
access the action:
{...}/com/bubbleclip/web/example/HelloWorld.action
musachy
On 3/7/07, meeboo [EMAIL PROTECTED] wrote:
Hey all
I recently decided to evaluate Struts2 for a big project, but am having
difficulties
Hi im having problems with localization of a jsp page, i call the jsp
directly, not throw an action.
Im using this tag the localize a text s:text
name=%{getText('customer.security.login.title')} /
Any suggestions ??? What im doing wrong ???
Regards,
Juan
--
No virus found in this
P.S. Also the Commons Validator version?
On 3/7/07, Niall Pemberton [EMAIL PROTECTED] wrote:
What version of Struts are you using? From memory I think this was
fixed in more recent versions.
Niall
P.S. Always a good policy to state the version you're talking about
On 3/7/07, MC Moisei [EMAIL
Problem solved... it ended up being one of our own custom tags that wasn't
cleaning up after itself. Have changed the tag to mimic the behavior in the
standard nested tags.
Cheers,
Lance.
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: 07 March 2007 14:22
To:
Thanks for your quick reply, but I get a
HTTP Status 404 - /com/bubbleclip/web/example/HelloWorld.action
When you typed and access the action: you meant by typing
localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action as
the browser URL right?
Musachy Barroso wrote:
Try
yes, that should be it. If you are learning||having problems, you can use
the Struts Config browser plugin:
http://struts.apache.org/2.x/docs/config-browser-plugin.html
to see the mapping of your actions and play around with them.
musachy
On 3/7/07, meeboo [EMAIL PROTECTED] wrote:
Thanks
I found the solution.
My form is working now..
I can submit an Array of objects without any problems.
Thanks to all..
Cisco
Aram Mkhitaryan wrote:
what actually does submit your form???
I don't understand what it does.
could you please send more details about this problem,
I'm
--- Aram Mkhitaryan wrote:
you do something wrong,
That much I had kinda figured out.
There is another constant which enables select full
namespace which means everything before the last
slash will be considered as namespace.
Maybe you have specified that constant?
The error occurs no
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Juan,
Juan Espinosa wrote:
Hi im having problems with localization of a jsp page, i call the jsp
directly, not through an action.
Im using this tag the localize a text s:text
name=%{getText('customer.security.login.title')} /
I'm largely
--- Christopher Schultz wrote:
Juan Espinosa wrote:
Hi im having problems with localization of a jsp
page, i call the jsp
directly, not through an action.
Im using this tag the localize a text s:text
name=%{getText('customer.security.login.title')}
/
I'm largely ignorant of JSP
Laurie:
Here is my doFilter method -
*begin*
public void doFilter( ServletRequest req, ServletResponse res, FilterChain
chain)
throws IOException, ServletException {
HttpServletRequest httpReq = (HttpServletRequest)req;
System.out.println(Req:
This might be well out of your reach, but I did as you said and downloaded
the config browser plugin. Under namespaces I can see
default
/config-browser
/com/bubbleclip/web/example
When I click one of the actions an exception occurs and I am told that
FreeMarker template error!
Expression
It all started when I tried to lazy load a associated object. I have my app
fully integrated with struts, spring and hibernate.
Use Case:
I call a simple action, in my action class, I get the business object
through the dao which has spring transaction boundaries set.
In my jsp I get the
well, something is quite broken :), do you get any error log when you start
the app?
musachy
On 3/7/07, meeboo [EMAIL PROTECTED] wrote:
This might be well out of your reach, but I did as you said and downloaded
the config browser plugin. Under namespaces I can see
default
/config-browser
It all started when I tried to lazy load a associated object. I have my app
fully integrated with struts, spring and hibernate.
Use Case:
I call a simple action, in my action class, I get the business object
through the dao which has spring transaction boundaries set.
In my jsp I get the
Hallo,
I would like to find a struts tag that can do date formatting for me?
I tried to do it within my objects but it keeps on giving me exceptions
Code used.
String date_ = 2007-03-07 00:00:00
SimpleDateFormat formatter = new SimpleDateFormat(dd MMM );
return formatter.format(date_);
--- Ravi Mangalagiri [EMAIL PROTECTED]
wrote:
When I debug . looks like the
OpenSessionInViewFilter
keeps the session open after the jsp is painted. I
don't
understand why the session is not kept open around
the actual
action method executed.
This is a Hibernate issue, not S2.
I am
hi,
you can use, bean:write with the format attribute.
eg:-
bean:write name=order property=createdDate format=dd/MM//
Regards,
Nuwan
- Original Message -
From: Neil Meyer [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, March 07, 2007
Hello,
I am using struts 2.0.6. I wrote an interceptor to use with Acegi
security to place the UserDetails object on the request so I could
access it on my JSP page. However when I tried to access the object on
the page, it was not found.
I then instead placed it on the session
Sorry about that. Here it is...
Struts: 1.3.5
Validator: the version for 1.3.5 (1.3.0 ?)
-- Original message --
From: Niall Pemberton [EMAIL PROTECTED]
P.S. Also the Commons Validator version?
On 3/7/07, Niall Pemberton [EMAIL PROTECTED] wrote:
What
I recently fixed the starter maven archetype, it might be a better
starting point.
/Ian
Musachy Barroso wrote:
well, something is quite broken :), do you get any error log when you
start
the app?
musachy
On 3/7/07, meeboo [EMAIL PROTECTED] wrote:
This might be well out of your reach,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Neil,
Neil Meyer wrote:
Code used.
String date_ = 2007-03-07 00:00:00
SimpleDateFormat formatter = new SimpleDateFormat(dd MMM );
return formatter.format(date_);
SimpleDateFormat.format() is expecting a java.util.Date argument, not a
Well, perhaps dinamically is not the best way to describe it, but
anyway what I need is to load a select field based on the value
selected on another select field. Let's say you have a State field
and also a City field. The user selects a state and the cities of that
state are loaded in the City
I have a problem using JSTL to manipulate objects from the valuestack.
The behavior is erratic.
I have an action TestAction with the following code:
private String test;
public String execute() {
test = toto;
return success;
}
public String getTest() {
return
If you are using S2, the autocompleter tag does that, you can use the
formId attribute to specify a form which will be submitted to the action,
from which you can return the right values. If you are using S1, you will
need an ajax library.
musachy
On 3/7/07, Célio Cidral Junior [EMAIL
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Célio,
Célio Cidral Junior wrote:
[W]hat I need is to load a select field based on the value
selected on another select field. Let's say you have a State field
and also a City field. The user selects a state and the cities of that
state are
2007/3/7, Musachy Barroso [EMAIL PROTECTED]:
If you are using S2, ...
Oh yeah, I'm sorry, I forgot to mark my post as [S2].
Thanks for the replies.
Célio.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
I am unable to get my own example web app working with struts 2.0.6
I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following
jars:
commons-collections-3.2.jar
freemarker-2.3.8.jar
struts2-core-2.0.6.jar
commons-logging-1.0.4.jar
ognl-2.6.11.jar
xwork-2.0.1.jar
Any error on tomcat's log?
musachy
On 3/7/07, ChristopherAngel [EMAIL PROTECTED] wrote:
I am unable to get my own example web app working with struts 2.0.6
I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following
jars:
commons-collections-3.2.jar
freemarker-2.3.8.jar
No nothing.
Musachy Barroso wrote:
Any error on tomcat's log?
musachy
On 3/7/07, ChristopherAngel [EMAIL PROTECTED] wrote:
I am unable to get my own example web app working with struts 2.0.6
I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following
jars:
A 404?
Does the JSP exist at the root level of your
deployment?
--- ChristopherAngel [EMAIL PROTECTED] wrote:
No nothing.
Musachy Barroso wrote:
Any error on tomcat's log?
musachy
On 3/7/07, ChristopherAngel [EMAIL PROTECTED]
wrote:
I am unable to get my own
To be more specific I mean there are no errors:
INFO: Reloading this Context has started
07-Mar-2007 17:54:47
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
07-Mar-2007 17:54:47
Yes it does, I am able to go directly to it
http://localhost:8084/MyProject/StrutsSomething.jsp
Dave Newton-4 wrote:
A 404?
Does the JSP exist at the root level of your
deployment?
--- ChristopherAngel [EMAIL PROTECTED] wrote:
No nothing.
Musachy Barroso wrote:
Any
I did .. same thing
On 3/7/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Ravi Mangalagiri wrote:
Thats what I though initially but it doesn't look
that way...
To me that makes it look even *more* that way since
now the filter is active because you've defined the
filter
Are you sure the application deployed without errors? Is the status
Running in tomcat console?
regards
musachy
On 3/7/07, Dave Newton [EMAIL PROTECTED] wrote:
--- ChristopherAngel [EMAIL PROTECTED] wrote:
Yes it does, I am able to go directly to it
Dave,
I did move OpenSessionInViewFilter all the way up. no luck
Mike,
I don't have any *.do in web.xml . all my actions use *.action suffix
-ravi
On 3/7/07, Ravi Mangalagiri [EMAIL PROTECTED] wrote:
I did .. same thing
On 3/7/07, Dave Newton [EMAIL PROTECTED]
--- ChristopherAngel [EMAIL PROTECTED] wrote:
Yes it does, I am able to go directly to it
http://localhost:8084/MyProject/StrutsSomething.jsp
Hrm... so you get a 404 rather than a Struts error
msg: if it wasn't getting the Action configuration
correct you'd get an S2 error, but it's as though
Dave,
Thats what I though initially but it doesn't look that way...
When I go to my action meaning -
http://localhost:7001/ESS/queryReport/popup/loanReconciliation.action
I get a lazy-load exception.
but then I create a new jsp and goto the same action using s:action as show
--- Ravi Mangalagiri wrote:
Thats what I though initially but it doesn't look
that way...
To me that makes it look even *more* that way since
now the filter is active because you've defined the
filter after the initial Action. When you now call an
Action from within a JSP the filter
just to know : why do you speak about loanReconciliation.action ?
Your web.xml speaks about *.do ...
Mike
Ravi Mangalagiri a écrit :
Dave,
Thats what I though initially but it doesn't look that way...
When I go to my action meaning -
--- Ravi Mangalagiri wrote:
I did move OpenSessionInViewFilter all the way
up. no luck
Did you also try setting the init-params?
What is your current_session_context_class set to?
connection.release_mode? transaction.factory_class?
d.
2007/3/7, Musachy Barroso [EMAIL PROTECTED]:
If you are using S2, the autocompleter tag does that
The bad documentation get on my nerves. It's sad the fact that
fantastic pieces of software like Struts2 doesn't have decent
documentation. Anyway I'm gonna hack around to see if I can find out
GulliGulli Bob wrote:
it works, when i add the jars as external jars (in eclipse), but now i have
another problem. struts starts up without errors, but in runtime i get the following
error:
...
javax.servlet.ServletException: org/jfree/util/PublicCloneable
at
Hi im having problems with localization of a jsp page, i call the jsp
directly, not throw an action.
Im using this tag the localize a text s:text
name=%{getText('customer.security.login.title')} /
Any suggestions ??? What im doing wrong ???
Regards,
Juan
--
No virus found in
--- Célio Cidral Junior wrote:
Anyway I'm gonna hack around to see if I can find
out
how it works.
What does the documentation not tell you?
I will update it if there's something missing, but it
was more than enough to get my use of it going.
d.
2007/3/7, Dave Newton [EMAIL PROTECTED]:
What does the documentation not tell you?
I will update it if there's something missing, but it
was more than enough to get my use of it going.
I'm having difficult to understand how the autocompleter works ...
--- Célio Cidral Junior wrote:
I'm having difficult to understand how the
autocompleter works ...
http://struts.apache.org/2.x/docs/autocompleter.html
... more specifically, how it can help me on the
problem I posted in this thread.
Try http://struts.apache.org/2.x/docs/ajax-tags.html
I think you need to change the struts.properties file to enable .do as
the extension rather than .action - this can also be achieved from the
struts.xml file.
/Ian
ChristopherAngel wrote:
I am unable to get my own example web app working with struts 2.0.6
I am using Netbeans 5.5 and tomcat
--- Ian Roughley [EMAIL PROTECTED] wrote:
I think you need to change the struts.properties
file to enable .do as the extension rather than
.action - this can also be achieved from the
struts.xml file.
Yeah, that too :/
*lol* And I even have had the properties docs open on
my machine for
shame on us :)
On 3/7/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Ian Roughley [EMAIL PROTECTED] wrote:
I think you need to change the struts.properties
file to enable .do as the extension rather than
.action - this can also be achieved from the
struts.xml file.
Yeah, that too :/
*lol*
2007/3/7, Dave Newton [EMAIL PROTECTED]:
The next-to-last example specifically shows how to use
the autocompleter tag to update one select when
another one is changed; I thought that was what you
were asking about.
Thanks!
Again, I or somebody else will be happy to change the
documentation
I am actually doing something similar inside a couple of struts 2
applications I've written and I am able to populate the value stack and or
request just fine.
I do the following,
code
/*
* Interceptor
*/
public String intercept(ActionInvocation _invocation)
--- Matt Filion [EMAIL PROTECTED] wrote:
I really suggst you dont make the ActionContext
final. Because the context changes for each request
(its mutable) and making it final is a misleading
statement.
Making local parameters that will not change 'final'
is a reasonably typical coding
Hi Matt,
Thanks very much, that fixed it.
-Nate
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Is there a trivial way to minorly reformat the dojo
datepicker?
I really *hate* the up/down arrows for choosing
next/prev month/year; I'd much rather use left/right
arrows, which I believe makes a lot more sense. Down
means higher month value?
Meh.
d.
There is a semi-trivial way. This is the template used by dojo to build the
html for the widget:
http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_6/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/templates/DatePicker.html?view=markup
and this is the css:
Dave,
This is all symantics I guess, but I dont mind a good discussion :)
To me with the way the relationship is between the 2 objects,
ActionContext is not a PART of the Interceptor, it is something the
Interceptor uses. So for me it should be neither final or even a member
variable. Just a
--- Matt Filion [EMAIL PROTECTED] wrote:
So for me it should be neither final or even a
member
variable. Just a referance within the scope of the
executed method.
It creates an unatural relationship that could
potential complicate the frameworks control of the
ActionContext.
IIRC as
Dave,
My mistake, I misread it.
Though the different situation seems like overkill. How about expecting
a programmer to look at the code becore they modify it? :)
Matt Filion
CSC - GTS -- Raytheon - ISF
(818) 468-6271
[EMAIL PROTECTED]
--- Matt Filion [EMAIL PROTECTED] wrote:
Though the different situation seems like
overkill.
I don't make my local vars 'final' either, but I know
enough people that do.
How about expecting a programmer to look at the code
becore they modify it? :)
Works great in theory ;)
But seriously,
Alex Wibowo wrote:
Hi all...
I am still in the process of learning Struts 2. As I understand it,
there is
no way in Struts 2 to do something like session scope ActionForm in Struts
1.
The only solution I can find is to use ConversationScopeInterceptor
written here:
Dave,
I completely agree, I guess I'm just much more of an optomist about my
peers :)
Matt Filion
CSC - GTS -- Raytheon - ISF
(818) 468-6271
[EMAIL PROTECTED]
If you really want to have a JavaBean serve as a session-scoped
ActionForm, use this interceptor:
http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html
It allows you to have a single JavaBean as the Action's model
(ActionForm) and will manage storing and retrieving it to/from
Hey guys,
A general question for enterprise based web applications. Is JAAS the standard
authorization and authentication framework to implement a sort of global policy
login system (like LDAP or something?)
I'm not that familiar with such logins methods but at my present office one of
the
Thanks Don, that is exactly what I need.
On 3/8/07, Don Brown [EMAIL PROTECTED] wrote:
If you really want to have a JavaBean serve as a session-scoped
ActionForm, use this interceptor:
http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html
It allows you to have a single
Hi...
I am trying to use validation annotation to achieve the following:
1. I have a Java bean aBean in my action class, and it has a
java.util.ListAnItem as its property.
2. AnItem has the structure as follow:
AnItem{
private String name;
private int quantity;
Hi Chris,
Thanks, for the help.
I changed the my code
Date parsed = format.parse(date_);
return format.format(parsed);
And this works fine for me.
I looked at the format tag for bean:write but I use
c:out value=${orderDetailForm.ordersMasterListData.orderDate}/
And I can not get this
77 matches
Mail list logo