are they? (see META-INF/MANIFEST.MF)
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com http://www.jetbrains.com/
Develop with pleasure!
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
26 matches
Mail list logo