Hello,
I use "s:url" to generate links. I use includeParams="get".
Is there a way to exclude CONCRETE param from it?
Ilya
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@s
from URL tag
IIRC you could set them to null, something like
Maurizio Cucchiara
Il giorno 14/mar/2011 00.12, "Ilya Kazakevich" <
ilya.kazakev...@jetbrains.com> ha scritto:
> Hello,
>
> I use "s:url" to generate links. I use includeParams="get".
>
arams list.
IIRC there should be a xwork interceptor suited for this purpose.
[1]
http://struts.apache.org/2.1.2/struts2-core/apidocs/com/opensymphony/xwork2/
interceptor/ParametersInterceptor.html
Maurizio Cucchiara
Il giorno 14/mar/2011 00.45, "Ilya Kazakevich" <
ilya.kazakev...@j
noting about it expect
UiBean#getTemplateDir that I need to hack to achieve my goal.
I wonder if there is an official (not hack!) way to solve my issue.
Thanks.
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with ple
Hi,
registerInputLink here is EL variable of type java.lang.String.
It contains URL of the registerInput action
What is output of this code? Do you have this action set in your struts.xml?
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com <http://www.jetbrains.com/>
&q
AFAIK EL is not enabled by default in JSP 2.0 which is used in tomcat 5.
Set ELIgnored="false" in your page attribute
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: kiala davy [mailto:davy_k
Try to put the following directive on the top of your JSP page
<%@ page isELIgnored="false" %>
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: kiala davy [mailto:davy_ki...@yahoo.fr]
Sent:
Hello,
Read about wildcard mapping.
Than you can do:
/**/myAction
And
{0}
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: GF [mailto:gan...@gmail.com]
Sent: Saturday, May 07, 2011 12:23 PM
To: Strut
Not sure you can use primitive wrappers and strings as spring beans. For
example autowiring does not work for them.
Try the following:
1) inject literal directly
Instead of
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: Marcus [mailto:mar...@marcusbond.co.uk]
Struts has nothing to do with java beans. Action does not have to be java
bean.
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: Chris Pratt [mailto:thechrispr...@gmail.com]
Sent: Monday, May 09, 2011
You use JSTL 1.0 and EL is not allowed in properties there. Try to use newer
version of JSTL.
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: Mohamed SIDI [mailto:mhm.s...@gmail.com]
Sent: Monday, May 16, 20
http://java.sun.com/jstl/core is JSTL 1.0 namespace
http://java.sun.com/jsp/jstl/core is JSTL 1.1 namespace
:)
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: Mohamed SIDI [mailto:mhm.s...@gmail.com]
Sent: M
You need action (or servlet) that will read image from db and write image to
the output stream setting appropriate conent-type.
Than you do:
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: Sa
Hello,
In pure struts your action is just a presenter (see MVP pattern). So you can
test it using unit testing engines like testNG and jUnit.
For GUI testing you can use selenium.
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Origin
to view (written in jsp for example): "display user name" or
"hide cancel button".
There should not be logic in view. If there is no logic -- there is nothing
to test:)
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-
That is action logic, not view itself.
//Action (could be tested):
void execute() {
if (someCondition) {showSomething = true;}
}
//jspx:
${action.something}
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message
Use struts2-spring plugin to configure actions as spring beans.
I use it and it is very cool:
Instead of
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: Mohamed SIDI [mailto:mhm.s...@gmail.com]
Sent: Friday, May 27, 2011 4:45 PM
To: Struts Users Mailing List
S
Hello,
Why ActionSupport is Serializable?
Who wants to serialize the action?
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-
To unsubscribe, e-mail: use
logging):
1) Create _new_ stack to set logEnabled and logLevel
2) Configure package to use it
3) Add global error result
4) Add global exception handling
5) Create JSP with "status 500" instead of my 500.html page
Is not it too big for such simple task?
Ilya Kazakevich,
Developer
Je
Thank you.
> I'm also not sure I'd purposefully send a 500 status
> code if I had the choice, but I guess that's up to you. The browser
> typically gives back a pretty ugly page for such a return status, IMO.
Only IE does this. And only if "friendly" errors are enabled.
I need 500 error because
Hello,
You can find one here: http://struts.apache.org/2.0.11/docs/hello-world.html
They use jetty in example but this application is container-independent and
could run in tomcat too.
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
---
What is "HelloWorldStruts2" ?
Did your web.xml configured as described here
http://struts.apache.org/2.2.3/docs/webxml.html ?
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: Praveen Jain [mail
othing but writes
"hello" to the output. After success you may get back to struts.
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com]
Sent: Sunday
What URL do you use?
Struts uses ".action" extension by default.
Try /HelloWorldStruts2/HelloWorldAction.action if HelloWorldStruts2 is your
.war file name
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Messag
Does your context works?
Try to put "hello.html" file in the root of your .war file
Then open it: /HelloWorldStruts2/hello.html
Show us your logs please
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message
t? If so --
what versions are they? (see META-INF/MANIFEST.MF)
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com <http://www.jetbrains.com/>
"Develop with pleasure!"
26 matches
Mail list logo