Exclude parameter from URL tag

2011-03-13 Thread Ilya Kazakevich
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

RE: Exclude parameter from URL tag

2011-03-13 Thread Ilya Kazakevich
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". >

RE: xclude parameter from URL tag

2011-03-14 Thread Ilya Kazakevich
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

Result template relative path

2011-04-11 Thread Ilya Kazakevich
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

RE: Struts 2 problem in In url tag variable

2011-04-20 Thread Ilya Kazakevich
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

RE: Struts 2 problem in In url tag variable

2011-04-20 Thread Ilya Kazakevich
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

RE: Struts 2 problem in In url tag variable

2011-04-20 Thread Ilya Kazakevich
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:

RE: Handling navigation language in the URL

2011-05-08 Thread Ilya Kazakevich
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

RE: Strange behaviour with Spring

2011-05-09 Thread Ilya Kazakevich
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]

RE: Strange behaviour with Spring

2011-05-09 Thread Ilya Kazakevich
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

RE: error JSTL

2011-05-16 Thread Ilya Kazakevich
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

RE: error JSTL

2011-05-16 Thread Ilya Kazakevich
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

RE: Displaying images from database (BLOB) using the tag

2011-05-16 Thread Ilya Kazakevich
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

RE: S2 TEst Best Practices

2011-05-20 Thread Ilya Kazakevich
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

RE: S2 TEst Best Practices

2011-05-20 Thread Ilya Kazakevich
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!" -

RE: S2 TEst Best Practices

2011-05-20 Thread Ilya Kazakevich
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

RE: Struts2 Plugins inside IoC

2011-05-27 Thread Ilya Kazakevich
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

Why ActionSupport is Serializable?

2011-08-24 Thread Ilya Kazakevich
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

Right way for exception handling

2011-11-11 Thread Ilya Kazakevich
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

RE: Right way for exception handling

2011-11-11 Thread Ilya Kazakevich
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

RE: provide Helloworld application in Struts2.0

2011-11-13 Thread Ilya Kazakevich
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!" ---

RE: provide Helloworld application in Struts2.0

2011-11-13 Thread Ilya Kazakevich
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

RE: provide Helloworld application in Struts2.0

2011-11-13 Thread Ilya Kazakevich
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

RE: provide Helloworld application in Struts2.0

2011-11-15 Thread Ilya Kazakevich
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

RE: provide Helloworld application in Struts2.0

2011-11-15 Thread Ilya Kazakevich
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

RE: provide Helloworld application in Struts2.0

2011-11-16 Thread Ilya Kazakevich
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!"