That was a great help.
Thanks a ton for it.
I'll start working right away on that...
Thanks once again,
--
Regards,
Varun Narang.
input name=chkUserId
type=checkbox
value=s:property value=getUserId()//
try this version:
input name=chkUserId
type=checkbox
value=%{userId()}/
you can't use tags in tags.
Best Regards
Johannes Geppert
but,it is giving exception in log
14:51:03,558 WARN [OgnlUtil] Caught OgnlException while setting property
'serviceid' on type 'org.apache.struts2.dispatcher.ServletRedirectResult'.
ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletRedirectResult.service
Do i know what it tries
Hi, i'm using xwork 2.1 with struts 2.1 and Guice to Inject my dependencies.
My struts.xml contains the follow line
constant name=struts.objectFactory value=guice /
and when i start my servlet container the NPE is throwed and aplication is
broken...
When remove or comment the
Hi All,
I am new to struts and wana to learn it.Please suggest me can i start
directly to learn Struts2 or do i need to have prior knowledge of
Struts1.Any help or suggestion in this regard is much appriciated.
Thanks,
Aum
HI,
Please check http://www.roseindia.net/stuts and
http://www.roseindia.net/struts/struts2
Thanks
-Original Message-
From: aum strut [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 13, 2007 3:53 PM
To: Struts Users Mailing List
Subject: New to Struts
Hi All,
I am new to struts
I have a serious problem with an ajax submit.
the scenario is the following:
I submit a form with ajax submit button and I want to update the parent div
(targets=...)
The original content of this div and the result content contains a script
section with
javascript at the very end.
Now the
--- Pamarthi, Ramakrishna [EMAIL PROTECTED] wrote:
How to know the jsp data modified or not on click of save button on jsp?
Compare it with the original data?
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
2007/12/13, aum strut [EMAIL PROTECTED]:
Hi All,
I am new to struts and wana to learn it.Please suggest me can i start
directly to learn Struts2 or do i need to have prior knowledge of
Struts1.Any help or suggestion in this regard is much appriciated.
You don't need to know Struts 1 to learn
--- jignesh(india) [EMAIL PROTECTED] wrote:
but,it is giving exception in log
Technically, that's a warning.
14:51:03,558 WARN [OgnlUtil] Caught OgnlException while setting property
'serviceid' on type 'org.apache.struts2.dispatcher.ServletRedirectResult'.
ognl.NoSuchPropertyException:
I would say for some reasons it could be even advantage to not know struts1
and directly start with struts2.
A very good resource beside the available tutorials is:
http://www.infoq.com/minibooks/starting-struts2
(or even better, you buy the new book)
Regards,
basti
aum strut wrote:
Hi
OGNL treats a character in single-quotes as an actual character, not a
String.
d.
--- quinquin2209 [EMAIL PROTECTED] wrote:
I have defined a hyperlink as follow:
s:url id=inboxReceived value=/main/list.action
s:param name=stateI/s:param
/s:url
and when the page is called ,it
Or look at the Struts 2 documentation wiki, which is generally more accurate
and up-to-date.
http://struts.apache.org/2.x/docs/home.html
There are tutorials there to help you take your first steps, and guides once
you have the basic idea.
There are a few books available (as well as the old
In production, it's better to set the logging level to ERROR, so that
all the OGNL warnings aren't recorded.
Once it doesn't find the property on ServletRedirectResult, the system
should append systemId as a parameter to the redirect URL.
-- HTH, Ted
* http://www.StrutsMentor.com/
On Dec 13,
Hi,
sorry for off topic.
I work as consulter for a company which has some positions to fill in
Kiev, Ukraine. Basically they are searching for Java Developers
WEB/Backend, and good HTML-ers/ JSScripters.
Everyone interested please email me your CV and loan expectations I
will forward it to the
It's the autocompleter that doesn't work
http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/
It is perfect under Firefox, but not under IE7
I have an existing written in S1 years ago using the dated ajaxtag
(http://ajaxtags.sourceforge.net/)
Since dojo's autocompleter doesn't work
On Dec 12, 2007 9:28 PM, Jeromy Evans [EMAIL PROTECTED] wrote:
Finally, in terms of education, there's some good books out now and
there's a lot of sites providing tutorials (that reminds me, I'm going
to order Ian's book today[1]). However, I don't know of any
professional training courses
Is this the WW-1951 - issue?
And if so, is there any workaround for 2.0.11 release?
Thank you,
basti
lbastil wrote:
I have a serious problem with an ajax submit.
the scenario is the following:
I submit a form with ajax submit button and I want to update the parent
div (targets=...)
I think it is WW-1951.
It's generally a bad idea to include inline scripts in a result loaded
via XHR because it varies from browser-to-browser and library-to-library
as to when the scripts are executed. In this case, Dojo has the
responsibility to parse your result, extract the scripts and
Martin,
Thanks for the response but unless I am missing something how do you
expect this to work?
if(%{uploadContentType}%=='text/xml')
When this server side code runs you dont have any information about
what the user is going to upload..
Has anyone got accept or size attribute of s:file
Yes, you can use tags within tags, but remember that the quotes are
important:
input name=chkUserId type=checkbox
value='s:property value=getUserId()/'/
(Notice the single quotes with double quotes). I see two things wrong:
1. You are calling a method directly. the %{#userId} approach
Thanks Wes,
Thanks for your help. The snippet you wrote is valid code, however I was
hoping for a similar solution where I only need to use the
s:fieldError /
Normally in Struts 1.x, I'll write html:errors/ and in my
validation.xml, I would define the field to validate and the key to add
Solved the problem:
In my case the problem was a type conversion :-) I have a bean class, which
is filled by hidden fields. I have some overloaded setters with a type and a
string which converts into the type. So I assume struts doesn't look at the
signature of the setter and just uses the first
Finally, in terms of education, there's some good books out now and
there's a lot of sites providing tutorials (that reminds me, I'm going
to order Ian's book today[1]). However, I don't know of any
professional training courses yet and there's far fewer developers
already knowledgeable on
I agree that it may better *not* to have Struts 1.x background if
possible, if you plan on doing Struts 1.x in the future (e.g. put it on
your Resume), please be aware that it is not the same.
If you have a Struts 1.x background, I strongly recommend the InfoQ
tutorials (there are videos and
On Dec 12, 2007 11:28 PM, Jeromy Evans [EMAIL PROTECTED] wrote:
I agree with Dave. S2 has been exceptionally robust. I find the core
framework is more productive and even more pleasurable (!) to work with
compared to S1.
This is a key for me. My team and I have been using an ancient
version
On Dec 13, 2007 5:46 AM, Ian Roughley [EMAIL PROTECTED] wrote:
Like Ted, I'm also putting together training options - specifically a
quick start for s1 developers who want to get up and running with s2.
So it would cover all the basics, as well as the more advanced
features. I'm also
You can also check out my tutorials -
http://www.wantii.com/wordpress/?cat=6
start from the bottom and work your way up.
-Wes
On 12/13/07, aum strut [EMAIL PROTECTED] wrote:
Hi All,
I am new to struts and wana to learn it.Please suggest me can i start
directly to learn Struts2 or do i need
Hello,
i have a question about DefaultActionMapper(struts2.0.11).
I want to access like a http://example.com/webapps/sayHello;.
So, blank is set to struts.action.extension in struts.xml.
Access to http://example.com/webapps/sayHello?name=hogehoge; is
successfull,
but access to
Hello,
i have a question about DefaultActionMapper(struts2.0.11).
I want to access like a http://example.com/webapps/sayHello;.
So, blank is set to struts.action.extension in struts.xml.
Access to http://example.com/webapps/sayHello?name=hogehoge; is
successfull,
but access to
666 Struts2BaseAjaxAction.java
666 and Ajax together can't be good :)
musachy
On Dec 13, 2007 6:22 AM, Christopher Cheng [EMAIL PROTECTED] wrote:
It's the autocompleter that doesn't work
http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/
It is perfect under Firefox, but not
Hi,
We are interested in using the REST plugin to extend customer choice and
complement our WS-* services. We are particularly interested in the
multiple response types (.xml, .json etc). One thing I am not sure of
is how we handle security. Say we have an order (/order/1234.xml), how
can we
I am new to struts2 as well and had no prior knowledge of Struts1.
Although, I think its an advantage if you\'ve worked with servlets and
MVC structure before you begin.
I am reading Practical struts2 web 2.0 projects book. I dont have a
lot of nice things to say about the book but its
Ok,I'll check it out!
On Dec 13, 2007 4:47 AM, Laurie Harper [EMAIL PROTECTED] wrote:
Vencent Chen wrote:
Hi,all!
I am testing the Struts Showcase 2.0.11.
With the Java 5 Enum conversion, I think the checkboxlist 's list
property availableOperations just come from
With the convention over configuration approach in Struts 2, is there
any way to have control over the order of the errors displayed? It looks
like conversion errors are displayed as part of the fieldError / tag
and these are checked before the xxx-validation.xml constraints are checked.
Following the struts-jfreechart example, we have defined an action that
return a chart, and another action that return the chart contain page.
Another posibility is to use the same actions and get two methods.
In my project we need to show a graph with the same data created when the
jsp page is
For what it's worth, overloaded setters are not supported by the
JavaBeans specification, so if you do that you no longer have a valid
JavaBean. The behaviour of code which depends on JavaBeans-style
introspection (such as Struts) is JVM version dependent in such cases,
which is a good reason
Alberto A. Flores wrote:
Yes, you can use tags within tags, ...
To clarify: you can use JSP Custom Action tags within arbitrary HTML/XML
tags; you *cannot* use JSP Custom Action tags within JSP Custom Action
tags. So,
input ... value='s:property...
is OK, since input is not a JSP
Hello. I'm a problem and i'm really going mad with redirect...
All i want to do is very simple.
I've an action that sends a post to a server. The server answer with a page to
which i've to redirect the client.
When the server answer, i read the page in a buffer and i extract the url to
which i've
If you are putting username and password in the soap headers, why not
just use basic authentication for your REST services, which basically
does the same thing? If over the wire security is a problem, use
HTTPS.
Don
On Dec 14, 2007 1:44 AM, Martin Gilday [EMAIL PROTECTED] wrote:
Hi,
We are
Hello, Struts world...
After a long time of not being able to follow the list very closely, i'm
getting back up to speed building Struts 2 webapps, and i wanted to see what
people thought about a couple of things we're investigating.
First, we're having really great exploratory results with GWT,
How do I get modules to work with URLs like these:
http://server.com/webApp/module1/action1;
http://server.com/webApp/module2/action2;
Alternatively, is it now allowed to have multiple ActionServlets in one webapp?
If so, I can use that technique rather than modules.
Here's what's happening:
Hi All,
Thanks to all of you for providing me such a wonderfull guidance.
Thanks,
Umesh
On Dec 13, 2007 8:48 PM, bhaarat Sharma [EMAIL PROTECTED] wrote:
I am new to struts2 as well and had no prior knowledge of Struts1.
Although, I think its an advantage if you\'ve worked with servlets and
I've tried what you've suggested but i got same error..
Unexpected Exception catched: Error setting expression 'chkUserId' with
value '[Ljava.lang.String;@138c03'
here is part of the code..
s:iterator id=users value=getUsersList()
tr
hai every one,
i am interrested to use Log4j in Struts2 so does any enyone have
information about
tutorials pls send me.
Best Regards,
Rajasekhar Yenduva B.tech(IT),
Jr J2EE Developer,
Miracle Software Systems, Inc
Email: [EMAIL PROTECTED]
Hi,
I want to use JAAS with Struts2 for our web application (which runs on
Tomcat 5.x). Can you please give me some knowhow in this regard?
Thanks,
JS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
46 matches
Mail list logo