RE: provide Helloworld application in Struts2.0

2011-11-16 Thread Ilya Kazakevich
are they? (see META-INF/MANIFEST.MF) Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com http://www.jetbrains.com/ Develop with pleasure!

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 Message- From: Praveen

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- From: Praveen Jain

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! -Original

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 [mailto:jain_praveen_mail

RE: provide Helloworld application in Struts2.0

2011-11-13 Thread Ilya Kazakevich
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, November 13, 2011 9:51 PM To: Struts

Right way for exception handling

2011-11-11 Thread Ilya Kazakevich
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 JetBrains Inc http://www.jetbrains.com Develop

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

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: user-unsubscr

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 action class=com.example.Class You write: action class=beanId Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com Develop with pleasure! -Original Message- From

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! -Original Message

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! -Original Message- From: Miguel

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: c:if=${action.showSomething}${action.something}/c:if Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com Develop with pleasure

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, 2011 4:15 PM

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: Monday, May 16

RE: Displaying images from database (BLOB) using the img 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: img src=my.action/ Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com Develop with pleasure! -Original Message- From: Saeed

RE: Strange behaviour with Spring

2011-05-09 Thread Ilya Kazakevich
with method getMyProperty Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com Develop with pleasure! -Original Message- From: Marcus [mailto:mar...@marcusbond.co.uk] Sent: Monday, May 09, 2011 11:27 AM To: user@struts.apache.org Subject: Re: Strange behaviour with Spring

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 7:54 PM To: Struts

RE: Handling navigation language in the URL

2011-05-08 Thread Ilya Kazakevich
Hello, Read about wildcard mapping. Than you can do: /**/myAction And property name=language{0}/property 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

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/ Develop

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_ki...@yahoo.fr] Sent: Thursday

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: Thursday, April 21, 2011 1:50 AM

Result template relative path

2011-04-11 Thread Ilya Kazakevich
for the whole package? I briefly looked into the code and found 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

RE: xclude parameter from URL tag

2011-03-14 Thread Ilya Kazakevich
could use the exclude params 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

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:

RE: Exclude parameter from URL tag

2011-03-13 Thread Ilya Kazakevich
from URL tag IIRC you could set them to null, something like url . . . param name=name value=null/ 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. Is there a way to exclude