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 :
> 2009/4/7 john lee :
>> no error when startup the tomcat.
>
> Could you try access directly HelloWorld.jsp? Like this
> http://localhost:8080/jiong2/Hel
2009/4/8 Roberto Nunnari :
> and here's my Item-update-validation.xml file that I put in the same folder
In theory this should work for whole action Item-update, but I think
the problem is that double dash ;-)
Change naming convention for your actions, use namespace instead names
like Ite
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 :
/JSPPages/AJA
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 PM,
it's ok now
here how to give the param
onclick='<%="verifierReversible("+Integer.parseInt(numLigne)+" )"%>' >
Regards
Elyes
-- Forwarded message --
From: elyes sallem
Date: 2009/4/8
Subject: Fwd: event onclick of nested:checkbox
To: Struts Users Mailing List
here is the gener
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 submit
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 i
Hi.
see my comments in context.
Lukasz Lenart ha scritto:
2009/4/7 Roberto Nunnari :
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 the xml file is there.
I
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 b
2009/4/8 walki2 :
> 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
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
specified
here is the generated html code
Regards
Sallemel
-- Forwarded message --
From: elyes sallem
Date: 2009/4/8
Subject: event onclick of nested:checkbox
To: Struts Users Mailing List
Hello,
i have a checkbox to which i associated an event
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 bein
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
an here is the javascript function
function verifierReversible(i){
if
(document.forms[0].elements["ajustContrat["+i+"].CAjustTypeAjust"].checked==tru
.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 pa
ask the question what is the reason why you must use 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:
http://struts.apache.org/2.x/docs/interceptors.html#
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/
Rega
Humm.. I don't know.. I tried with
view:
struts.xml:
class="ch.nunnisoft.myecommerce.actions.admin.ItemAction">
Item-view?id=${id}
adminItemEdit
and renamed validator xml file to:
Item_update-update-validation.xml
but still.. it doesn't check anything..
Any more hints?
Robi
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, Luka
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:
//an example of Action Class with an ID attribute
package com.opensymphony.webwork.
2009/4/8 Roberto Nunnari :
> Any more hints?
Could you remove this from top of your validation file?
Pozdrawiam
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additiona
2009/4/8 Musachy Barroso :
> 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
Archetype
tried it: doesn't help.
Lukasz Lenart ha scritto:
2009/4/8 Roberto Nunnari :
Any more hints?
Could you remove this from top of your validation file?
Pozdrawiam
--
Roberto Nunnari
Servizi Informatici SUPSI-DTI
SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland
email: mailto:roberto
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 :
Action name is:
Item-update
method name is:
update
so then, validation file should be?
Item-update-update-v
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 fil
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 rename
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
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 ju
Im using this piece on code on my jsp
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
2009/4/8 Musachy Barroso :
> 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
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
wrote:
> 2009/4/8 Musachy Barroso :
>> no, that would just instruct convention to scan from that package
>> down, what you need to do (I have no idea how archetypes wor
2009/4/8 Mileidys Gonzalez Prieto :
> Im using this piece on code on my jsp
>
> staticJavascript="false" />
Yeah, but the topic is about the problems with validation in Struts2
not in Struts1 as you're presenting.
Regards
--
Lukasz
http://www.lenart.org.pl/
---
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
impl
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 :
Im using this piece on code on my jsp
Yeah, but the topic is about the problems with validation in Struts2
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
being inside of instead of inside of a .
It's an easy fix by putting the following hidden.ftl in the xhtml theme
directory. Is there any reason not to
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
m
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
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 thi
in struts 1, i saved the data into session
session.setAttribute(BeanNames.PARTS_LIST,partsList);
then, in the jsp file, retrieve the data by
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
Loading..
modified above code to the be
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 character
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 the
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 wrote
> 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
link href attribute is pointing to the wrong location.. here is mine
Seien Sie sinnvoll?
Martin
__
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaen
Thanks Wes for the quick reply. But the error was too simple. I've made a
mistake:
wrong:
On Wednesday 08 April 2009 18:00:34 Martin Gainty wrote:
> > http://www.manning.com/wannemacher
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
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
com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.jav
//PrepareOperations.findActionMapping method contains this hardcoded lookup
struts.actionMapping
//PrepareInterceptor has this Action class mapping
class org.apache.struts2.dispatcher.mapper.ActionMapping
showcase
/
//so in your /WEB-INF/classes/struts-default.xml you would need to change
I am sorry but that makes no sense.
musachy
On Wed, Apr 8, 2009 at 8:40 PM, Martin Gainty wrote:
>
> //PrepareOperations.findActionMapping method contains this hardcoded lookup
> struts.actionMapping
>
> //PrepareInterceptor has this Action class mapping
>
>
> class org.apache.struts2.dispatche
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:
musachy
On Wed, Apr 8, 2009 at 6:19 PM, Mick_ wrote:
>
>
>
> Nils-Helge Garli wrote:
>>
>> And wh
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 :
> in struts 1, i saved the data into session
> session.setAttribute(BeanNames.PARTS_LIST,partsList);
>
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
comple
2009/4/9 Mick_ :
> 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
> com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)
> at
> com.opensymphony.xwork2.util.F
60 matches
Mail list logo