Hi all,
first try to use Config Browser Plugin,
to see what is loaded and what is not.
Best greetings,
Paweł Wielgus.
2009/4/7 Lukasz Lenart lukasz.len...@googlemail.com:
2009/4/7 john lee sh_thorn_b...@yahoo.com:
no error when startup the tomcat.
Could you try access directly
2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch:
action name=Item-update method=update
Action name is:
Item-update
method name is:
update
so then, validation file should be?
Item-update-update-validation.xml
and here's my Item-update-validation.xml file that I put in the same folder
Hi,
I want to pass input parameter entered in the login page to
ActionSupport class. How to pass it.
I used httpservletreq object to get value, but getting NullPointerException
in the req.getParameter(submitvalue) line.
struts.xml :
struts
package name=ActionServlet
Hi!
Passing parameters to the action is handled automatically for you by
the framework if you have the appropriate setters on the action. I
suggest that you start with the tutorials from the documentation:
http://struts.apache.org/2.1.6/docs/bootstrap.html
Nils-H
On Wed, Apr 8, 2009 at 12:19
it's ok now
here how to give the param
onclick='%=verifierReversible(+Integer.parseInt(numLigne)+ )%'
Regards
Elyes
-- Forwarded message --
From: elyes sallem elyes.sal...@gmail.com
Date: 2009/4/8
Subject: Fwd: event onclick of nested:checkbox
To: Struts Users Mailing List
Hi,
Thank you for your quick reply. I resolved my problem. This is what I
did.
Just put getters and setters for submitvalue in ActionSupport class:
private String submitvalue;
public String getSubmitvalue() {
return submitvalue;
}
public void setSubmitvalue(String
I see. Please be more specific about what you mean when you write that
it does not work. The interceptor you have coded does not inject the
mese into any action, but it does convert internally from month
names to numbers.
Perhaps you could create an interface called MeseAware:
public
Hi.
see my comments in context.
Lukasz Lenart ha scritto:
2009/4/7 Roberto Nunnari roberto.nunn...@supsi.ch:
do the above scenario permit the use of xml validation?
It shouldn't be a problem, did you double check that validations files
were transferred to the server?
Yes. I checked and
Hi,
I am new to Struts. I have a website that uses Struts (.properties files) to
show the website's content in either english, french or german.
SomeFileName.properties
SomeFileName_en.properties
SomeFileName_fr.properties
SomeFileName_de.properties
Unfortunately all the text is stored in one
2009/4/8 walki2 kim.wali...@gmail.com:
SomeFileName.properties
SomeFileName_en.properties
SomeFileName_fr.properties
SomeFileName_de.properties
You can use package.properties for all actions in given package and
below (in Struts2 ;-)
Regards
--
Lukasz
http://www.lenart.org.pl/
ok but i must use personal interceptor for my project
Terry Gardner-2 wrote:
I think you can use date formatters in java.text to accomplish this
with no coding.
On Apr 7, 2009, at 6:36 PM, PEGASUS84 wrote:
I want create an interceptors wich converts the list of select tag
mese
I believe the question is more about whether any tool available to split his
current bulk properties into a small package/action specific properties. I
think there is no tool to do that, It has to be manually split into
different properties file based on either package or action class as
here is the generated html code
input type=checkbox
name=ajustContrat[0].CAjustTypeAjust value=on
onclick=verifierReversible(%= Integer.parseInt(numLigne) %)
Regards
Sallemel
-- Forwarded message --
From: elyes sallem
Agreed. I am well-known for answering questions that were not asked. :)
On Apr 8, 2009, at 7:25 AM, Muthu Velappan wrote:
I believe the question is more about whether any tool available to
split his
current bulk properties into a small package/action specific
properties. I
think there is
Hi Muthu,
Thanks for the answer, that's all I wanted to know.
Greetings,
walki2
--
View this message in context:
http://www.nabble.com/Change-single-.properties-file-to-one-.properties-file-for-every-JSP-tp22947889p22948672.html
Sent from the Struts - User mailing list archive at Nabble.com.
Hi list,
I've been trying to track down a problem with our struts 2 app where
it starts loading classes in permgen till eventually permgen fills up
and our application crashes. Examining jvm output of classes it loads
I see a lot of sun.reflect.GeneratedMethodAccessorXx getting loaded
with xx
Hello,
i have a checkbox to which i associated an event onclick
for this, i call a javascript function verifierReversible
here is the component call
nested:checkbox property=CAjustTypeAjust onclick=verifierReversible(%=
Integer.parseInt(numLigne) %)
an here is the javascript function
function
.properties file can be looked up based on the current Action, or a
hierarchy is used to search for a key. If the Action is named
EnterEmployeeAction, then the .properties files are all preceded by
EnterEmployeeAction, viz, EnterEmployeeAction_en.properties, and so
forth. There is also a
ask the question what is the reason why you must use personal interceptor
1)are you extracting and or modifying the request?
2)Is there some function you must perform before or after Action is executed
that the action itself cannot handle?
Please read:
Hi,
Could someone try to test a new archetype which base on Convention
plugin and tell why it isn't working as expected? Index action is not
mapped and I18N is missing (properties files are where they should be
:-( )
mvn archetype:generate -DarchetypeCatalog=http://www.lenart.org.pl/maven/
Humm.. I don't know.. I tried with
view:
s:form method=post action=Item_update namespace=/admin
struts.xml:
action name=Item_update method=update
class=ch.nunnisoft.myecommerce.actions.admin.ItemAction
result type=redirect-action
param name=actionNameItem-view?id=${id}/param
/result
The archetype is generating the jsps in the wrong location, it is
missing the namespace in the patch. For example, if I enter
actions.test for the package, the jsp is generated as
WEB-INF/content/hello.jsp, it should be WEB-INF/content/test/hello.jsp
musachy
On Wed, Apr 8, 2009 at 8:56 AM,
I don't think you need the method name in validation file's filename. I would
try renaming the file to Item_update-validation.xml.
If your intention is to only validate when the method 'update' is being
called, you might have to use the Validation annotations rather than the XML
file. Remember
Roberto-
in
%TOMCAT_HOME%\webapps\struts2-showcase-2.1.6\WEB-INF\classes\com\opensymphony\xwork2\validator\validators\default.xml
you should have at minimum these 2 Validation Classes declared:
validators
validator name=requiredstring
2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch:
Any more hints?
Could you remove this from top of your validation file?
?xml version=1.0 encoding=UTF-8?
!--
Document : ItemAction-validation.xml
Created on : 24 marzo 2009, 20:40
Author : nunnari
Description:
--
Pozdrawiam
2009/4/8 Musachy Barroso musa...@gmail.com:
The archetype is generating the jsps in the wrong location, it is
missing the namespace in the patch. For example, if I enter
actions.test for the package, the jsp is generated as
WEB-INF/content/hello.jsp, it should be WEB-INF/content/test/hello.jsp
tried it: doesn't help.
Lukasz Lenart ha scritto:
2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch:
Any more hints?
Could you remove this from top of your validation file?
?xml version=1.0 encoding=UTF-8?
!--
Document : ItemAction-validation.xml
Created on : 24 marzo 2009, 20:40
Yep. I tried that and doesn't help neither.
I also tried the underscore version but nothing changed.
Any more hints?
Robi
Lukasz Lenart ha scritto:
2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch:
action name=Item-update method=update
Action name is:
Item-update
method name is:
no, that would just instruct convention to scan from that package
down, what you need to do (I have no idea how archetypes work), is to
get the package name, and substring from actions., replace . by
/ and that will be the path under WEB-INF/content. If you can't
determine were to put the files at
Hi Wes.
Wes Wannemacher ha scritto:
I don't think you need the method name in validation file's filename. I would
try renaming the file to Item_update-validation.xml.
Didn't help. I even tried to make a new package /admin/Item
and use action names as update, view and edit.. naturally
I
On Wednesday 08 April 2009 10:48:34 Roberto Nunnari wrote:
[snip]
I start to think there is something wrong with my environment..
But.. are you guys sure that xml validation works when
implementing ModelDriven?
Yes, I am sure :) I've used it plenty.
I was starting to think that there is
Hey Man, you are a life saver. thanks for taking time to reply! Such a simple
fix and I was going blue!
loge1974 wrote:
Ahh here we go. Just read the struts 2.0 - 2.1 migration guide and
saw this:
The default action extension list (struts.action.extension) has
changed from just
Im using this piece on code on my jsp
html:javascript formName=/submitCraft dynamicJavascript=true
staticJavascript=false /
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail:
2009/4/8 Musachy Barroso musa...@gmail.com:
no, that would just instruct convention to scan from that package
down, what you need to do (I have no idea how archetypes work), is to
get the package name, and substring from actions., replace . by
/ and that will be the path under WEB-INF/content.
lol. I hadn't thought of that, no package, no subdir required, clever ;)
musachy
On Wed, Apr 8, 2009 at 11:16 AM, Lukasz Lenart
lukasz.len...@googlemail.com wrote:
2009/4/8 Musachy Barroso musa...@gmail.com:
no, that would just instruct convention to scan from that package
down, what you need
2009/4/8 Mileidys Gonzalez Prieto mileidys.gonza...@i-frontier.net:
Im using this piece on code on my jsp
html:javascript formName=/submitCraft dynamicJavascript=true
staticJavascript=false /
Yeah, but the topic is about the problems with validation in Struts2
not in Struts1 as you're
Wes, here you can find my files:
http://web.dti.supsi.ch/~nunnari/s2/
Robi
Wes Wannemacher ha scritto:
On Wednesday 08 April 2009 10:48:34 Roberto Nunnari wrote:
[snip]
I start to think there is something wrong with my environment..
But.. are you guys sure that xml validation works when
yes.. I'd rather use declarative validation in xml, but if I cannot
get it to work, I'll do it on the client side..
Robi
Lukasz Lenart ha scritto:
2009/4/8 Mileidys Gonzalez Prieto mileidys.gonza...@i-frontier.net:
Im using this piece on code on my jsp
html:javascript formName=/submitCraft
All,
Using forms in the xhtml theme creates a 2 column table for *most* items.
The hidden item is not one of them, and gives html warnings for hidden
being inside of table instead of inside of a td.
It's an easy fix by putting the following hidden.ftl in the xhtml theme
directory. Is there any
Ok. Something started to work.
Not sure though what the problem was.. maybe a couple of
validation files I had left around in WEB-INF/
Now I can validate even my ModelDriven actions by using
ClassName-methodName-validation.xml
so now I have:
package namespace: /admin/Item
s2 action name: update
Roberto Nunnari ha scritto:
but for this validation doesn't work:
package namespace: /admin2
s2 action name: Item_update
method name: update
URI: /myapp/admin2/Item_update.action
classname: ItemAction
xml-valid: ItemAction-update-validation.xml
if I rename ItemAction-update-validation.xml to
Hi there,
I am trying to invoke a method in a struts2 action from a FreeMarker
template. To do this, I put the action as an object named action and
then I reference it, for example, as:
#list action.sortedFields as field
(Sorted fields is a method: getSortedFields())
this works
I am trying to deploy the struts2-showcase but when I try to access the
application I get the error below. Any ideas about how I can get it working?
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment
descriptors do not allow for including it in
in struts 1, i saved the data into session
session.setAttribute(BeanNames.PARTS_LIST,partsList);
then, in the jsp file, retrieve the data by
logic:iterate id=plist name=partslist scope=session
type=neuco.PartForm
what is the equivalent method in struts 2?
tks in advance
john
Hi,
I am struts user. upgrading app from struts 2.0.11.2 to struts 2.1.6.
Initial load works fine with s:div, I am not sure what am i missing using
sx:div.
Why does it wait for 5 secs (updateFreq value) for the first time load.
Code with struts 2.0.11.2
s:url var=loadApples
Hi,
Recently I observed that if in JSP input text I have entered special
characters, lets say:
displayIDNumber: #...@#%$!#$%!(*)*()*(
In the action I get displayIDNumber as i.e empty string.
Nowhere in the code we are explicitly emptying the string whenever there are
special characters
Hello,
I have a simple JSP that is served by jboss (4.2.3-GA) under ubuntu linux. A
stylesheet is used in the header of the jsp.
If I use a konqueror browser the css styles are loaded. If I use the firefox
(3.08) which is actually my standard browser the stylesheet is not loaded.
Generally
Struts 1 and Struts 2 are quite different in philosophy. I would
recommend that you go through the Struts 2 tutorials/guides, which
will give you an introduction to the concepts of the framework:
http://struts.apache.org/2.1.6/docs/home.html
Nils-H
On Wed, Apr 8, 2009 at 10:07 PM, john lee
Servlet error: An exception occurred. The current application deployment
descriptors do not allow for including it in this response. Please consult
the application log for details.
And what does the application log say?
Nils-H
On Wednesday 08 April 2009 17:24:16 Anton Berg wrote:
Hello,
I have a simple JSP that is served by jboss (4.2.3-GA) under ubuntu linux.
A stylesheet is used in the header of the jsp.
If I use a konqueror browser the css styles are loaded. If I use the
firefox (3.08) which is actually my
link href attribute is pointing to the wrong location.. here is mine
LINK type=text/css rel=stylesheet href=resources/space.css
Seien Sie sinnvoll?
Martin
__
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité
Diese Nachricht
Thanks Wes for the quick reply. But the error was too simple. I've made a
mistake:
wrong:
link rel=stylesheet type=css/text media=screen href=s:url
right:
link rel=stylesheet type=text/css media=screen href=s:url
Sorry for posting
Tony
Am Mittwoch 08 April 2009 23:39:21 schrieb Wes
On Wednesday 08 April 2009 18:00:34 Martin Gainty wrote:
link rel=stylesheet type=css/text media=screen href=s:url
After taking a second look at this, maybe your type attribute is wrong. Try
changing it to text/css
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage
Nils-Helge Garli wrote:
And what does the application log say?
Here is the pertinent data from the logs:
09/04/08 18:04:41.468 struts2-showcase-2.1.6: Servlet error
java.lang.NullPointerException
at
//PrepareOperations.findActionMapping method contains this hardcoded lookup
struts.actionMapping
//PrepareInterceptor has this Action class mapping
struts.actionMapping
classclass org.apache.struts2.dispatcher.mapper.ActionMapping/class
nameshowcase/name
namespace//namespace
I am sorry but that makes no sense.
musachy
On Wed, Apr 8, 2009 at 8:40 PM, Martin Gainty mgai...@hotmail.com wrote:
//PrepareOperations.findActionMapping method contains this hardcoded lookup
struts.actionMapping
//PrepareInterceptor has this Action class mapping
struts.actionMapping
This error you are getting, we have seen it with other containers, and
it should be fixed in trunk xwork (you can build it yourself, or grab
a snapshot). Try setting this in your struts.xml file:
constant name=struts.devMode value=false /
musachy
On Wed, Apr 8, 2009 at 6:19 PM, Mick_
Request Scope
1. add a property in action
2. then use it in jsp
Session Scope
1. Action implement SessionAware interface
2. set value to session map
3. then use it in jsp
2009/4/9 john lee sh_thorn_b...@yahoo.com:
in struts 1, i saved the data into session
We are developing application with Struts 1.3.10, tiles and log4j1.2.15 using
RAD 6.0.
I am receiving following message on server console for every “request”
[4/8/09 14:53:38:959 PDT] 005f TilesPreProce I
org.apache.struts.tiles.commands.TilesPreProcessor execute Tiles process
59 matches
Mail list logo