Re: configure struts 2

2009-04-07 Thread Lukasz Lenart
Remove struts2-spring-plugin.jar from your lib folder if don't use integration with Spring. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Re: Error when starting sun java App Server com.opensymphony.xwork2.inject.DependencyException: Security manager in use, could not access constructor: com.opensymphony.xwork2.ObjectFactory(com.opensy

2009-04-07 Thread Lukasz Lenart
2009/4/1 srinivasch sri...@gmail.com: WEB0100: Loading web module [budsystem] in virtual server [server] at [/budsystem] Starting Servlet Engine: Sun-Java-System/Application-Server Parsing configuration file [struts-default.xml] Parsing configuration file [struts-plugin.xml] Unable to

Re: JavaRebel and Struts2

2009-04-07 Thread krosenvold
dusty wrote: Back in December Blake was asking about reloading the config using JavaRebel. Does anyone have any experience with this working? They are advertising Works great with Struts2 on their website. I was going to give it a try but wanted to know if anyone already did some debug

Re: Multiple Struts Config Problem

2009-04-07 Thread srinivasch
Sanchayan, You should have used a different post than using my post. Its called thread jacking. Please post a new one. Thanks Sanchayan Bandyopadhay wrote: I have multiple user types in my application and for each such user type I intend to keep one specific struts-config.xml file.

Multiple Struts Config Problem

2009-04-07 Thread Sanchayan Bandyopadhyay
I have multiple user types in my application and for each such user type I intend to keep one specific struts-config.xml file. In my web.xml, I have declared them as ... init-param param-nameconfig/param-name param-value/WEB-INF/struts-default.xml/param-value /init-param init-param

RE: configure struts 2

2009-04-07 Thread Security Management
Posting your whole file would help. From the last error, looks like it's a spring issue. Peep this: http://static.springframework.org/spring/docs/1.2.9/reference/beans.html 3.19 shows the web.xml configuration for your applicationContext.xml -Original Message- From: john lee

OGNL Debug?

2009-04-07 Thread Security Management
Is there a way to turn on debugging for OGNL for struts 2? I have a form field that is not getting set on my action's object, and one that works fine. If I change the form from POST to GET I can see the correct name and value in the URL. Is there a way to make the OGNL stuff spit out the

Re: OGNL Debug?

2009-04-07 Thread Terry Gardner
OGNL should catch the underlying log levels, try setting that to debug or DEBUG or whatever. On Apr 7, 2009, at 9:03 AM, Security Management wrote: Is there a way to turn on debugging for OGNL for struts 2? I have a form field that is not getting set on my action's object, and one that

Re: JavaRebel and Struts2

2009-04-07 Thread dusty
Nice! I thnk I will definitely give it a try. Seems like are always building something, we build a lot of smallish apps for the health system. Is it in the sandbox? I haven't looked for it. krosenvold wrote: dusty wrote: Back in December Blake was asking about reloading the config

RE: OGNL Debug?

2009-04-07 Thread Security Management
OK, so it gets archived, I added the following to log4j.properties: log4j.logger.ognl=DEBUG, A1 And put the following in struts.xml: constant name=struts.devMode value=true / Thanks Terry, Mike. -Original Message- From: terry.gard...@sun.com [mailto:terry.gard...@sun.com] Sent:

Re: Problem Struts with Apache and Tomcat integration

2009-04-07 Thread dusty
If it works with tomcat alone it is likely not a struts issue, but post your apache cnfig from httpd.conf and workers.properties and server.xml from Tomcat. We have had good experience with mod_proxy_ajp if you have control of the apache server. abed wrote: Hello, I have Apache-2.2 acting

Textfield populated from java.lang.Integer

2009-04-07 Thread Security Management
I have the following form: s:form action=saveRuleName method=POST s:textfield key=ruleName name=rule.ruleName required=true / s:textfield key=ruleDays name=rule.ruleDays required=true size=4 / I have the following method in the Action class that runs before this: public IRule getRule() {

tag select

2009-04-07 Thread PEGASUS84
good evening; I've this question: I want crate a select tag with a list of 31 days. I create a java class with an ArrayList with 31 days but how can insert this ArrayList into a list of the select tag? -- View this message in context: http://www.nabble.com/tag-select-tp22931262p22931262.html

Error with ActionForward

2009-04-07 Thread Security Management
Struts 2.1.6, here's my action. action name=saveRuleName class=com.secmgmt.actions.SaveRule result name=success type=redirectAction param name=actionNameaddExceptionForm/param param name=rule${rule}/param /result /action public class

Re: Error with ActionForward

2009-04-07 Thread Nils-Helge Garli Hegvik
Does it actually fail, or does it just print the exception in the log? Do you have devMode on? Nils-H On Tue, Apr 7, 2009 at 6:08 PM, Security Management list-subscripti...@secmgmt.com wrote: Struts 2.1.6, here's my action. action name=saveRuleName class=com.secmgmt.actions.SaveRule        

RE: Error with ActionForward

2009-04-07 Thread Security Management
Thanks for the reply. My actionName was addExceptionForm in the redirect, but the action xml element was actually addException, so it was a dumb mistake. The exception showing up was a red-herring, and I agree that having it say ERROR is confusing as all hell, because I was on the wrong track

my first struts 2 HelloWord.action still not working

2009-04-07 Thread john lee
please help me.   after i did all the necessary configuration, i did the following   http://localhost:8080/jiong2/HelloWorld.action   but, receive the following: HTTP Status 404 - /jiong2/HelloWorld.action type Status report message /jiong2/HelloWorld.action description The requested resource

please help me

2009-04-07 Thread PEGASUS84
i repeat my question i want populate the list from action tag whit ArrayList which is in a bean without to use action. Can i do? -- View this message in context: http://www.nabble.com/please-help-me-tp22933522p22933522.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: please help me

2009-04-07 Thread PEGASUS84
this is my bean package bean; import java.util.*; public class DataOre { List giorno=new ArrayList(); public DataOre(){ giorno = new ArrayList(); giorno.add(Sunday); giorno.add(Monday); giorno.add(Tuesday); giorno.add(Wednesday);

RE: please help me

2009-04-07 Thread Security Management
From the documentation: http://struts.apache.org/2.0.14/docs/select.html List: Iterable source to populate from. If the list is a Map (key, value), the Map key will become the option 'value' parameter and the Map value will become the option body. Now, you have list as DataOre. This is not,

RE: please help me

2009-04-07 Thread PEGASUS84
please can you say me any solution because i don't undestand the documentation Security Management wrote: From the documentation: http://struts.apache.org/2.0.14/docs/select.html List: Iterable source to populate from. If the list is a Map (key, value), the Map key will become the

RE: Error with ActionForward

2009-04-07 Thread Martin Gainty
1)what is IRule? 2)paramName=rule is not declared An example of passing a parameter (in this case id) to your Action Class result name=success type=redirectActionotherAction?id=${id}/result where otherAction Action Class accomodates parameter id by private int id; //attribute declaration

Re: please help me

2009-04-07 Thread Lukasz Lenart
2009/4/7 PEGASUS84 pegasu...@hotmail.it: public class DataOre {    List giorno=new ArrayList();  public DataOre(){    giorno = new ArrayList(); You already created list, not needed %...@page import=bean.DataOre% s:select headerKey=1 headerValue=seleziona list=DataOre listValue=giorno /

Re: tag select

2009-04-07 Thread Lukasz Lenart
2009/4/7 PEGASUS84 pegasu...@hotmail.it: good evening; I've this question: I want crate a select tag with a list of 31 days. I create a java class with an ArrayList with 31 days but how can insert this ArrayList into a list of the select tag? Don't duplicate topics, it doesn't help! I

Re: Error with ActionForward

2009-04-07 Thread Lukasz Lenart
2009/4/7 Security Management list-subscripti...@secmgmt.com: Struts 2.1.6, here's my action. action name=saveRuleName class=com.secmgmt.actions.SaveRule        result name=success type=redirectAction                param name=actionNameaddExceptionForm/param                param

Re: validation

2009-04-07 Thread Lukasz Lenart
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? Regards -- Lukasz http://www.lenart.org.pl/

Re: my first struts 2 HelloWord.action still not working

2009-04-07 Thread Lukasz Lenart
2009/4/7 john lee sh_thorn_b...@yahoo.com: no error when startup the tomcat. Could you try access directly HelloWorld.jsp? Like this http://localhost:8080/jiong2/HelloWorld.jsp Regards -- Lukasz http://www.lenart.org.pl/ -

Re: tag select

2009-04-07 Thread Burton Rhodes
Pegasus84 - Please do not take this the wrong way, but may I suggest you get a book on Struts 2 (or seriously read the wiki) and perhaps a basic web JSP development book. I am certainly guilty of asking basic questions myself, but this list IMHO should not be a first go to. You need to at least

Re: my first struts 2 HelloWord.action still not working

2009-04-07 Thread Nils-Helge Garli Hegvik
Do you have any errors in the log (errors during startup)? Does the tomcat manager show the application as running? Nils-H On Tue, Apr 7, 2009 at 6:52 PM, john lee sh_thorn_b...@yahoo.com wrote: please help me. after i did all the necessary configuration, i did the following

RE: OGNL Debug?

2009-04-07 Thread Martin Gainty
in struts.xml flip struts.devMode to true e.g. constant name=struts.devMode value=true / Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene

validation

2009-04-07 Thread Roberto Nunnari
Hi guys. I'm trying to use declarative xml validation but I'm having trouble. This is the scenario: - struts 2.0.11 - struts configuration with action name=*-* - ModelDriven actions do the above scenario permit the use of xml validation? Thank you. Robi

Re: please help me

2009-04-07 Thread Nils-Helge Garli Hegvik
What's the role of your action in this? Do you have a getter that returns the list? Do you use it in the select tag? Nils-H On Tue, Apr 7, 2009 at 7:14 PM, PEGASUS84 pegasu...@hotmail.it wrote: please can you say me any solution because i don't undestand the documentation Security

Re: my first struts 2 HelloWord.action still not working

2009-04-07 Thread john lee
no error when startup the tomcat. --- On Tue, 4/7/09, Nils-Helge Garli Hegvik nil...@gmail.com wrote: From: Nils-Helge Garli Hegvik nil...@gmail.com Subject: Re: my first struts 2 HelloWord.action still not working To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, April 7,

create personal interceptor

2009-04-07 Thread PEGASUS84
I want create an interceptors wich converts the list of select tag mese in another string:1,2... i make this: package bean; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.interceptor.Interceptor; import com.opensymphony.xwork2.Action; public class convMese

Re: create personal interceptor

2009-04-07 Thread Terry Gardner
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 in another string:1,2... i make this: package bean; import

RE: create personal interceptor

2009-04-07 Thread Martin Gainty
you dont need an interceptor as you wont be modifying request params sub in date value when you declare it in Action class java class public class SomeAction extends DefaultActionSupport { { private Date date=new Date(2006-06-26); public void getDate() { return date ; } public setDate(Date

Re: Textfield populated from java.lang.Integer

2009-04-07 Thread dusty
Hey there. You are still having issues with that form. Maybe I can help. I have seen a couple different versions in your various posts, but on your latest version you look to have it set up right. In previous posts your action had a a ruleName and ruleDays property itself. In there your

how to initialize database connection pool in struts 2?

2009-04-07 Thread john lee
  in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line     servlet     servlet-nameDBInit/servlet-name     servlet-classneuco.db.DBInitServlet/servlet-class     load-on-startup1/load-on-startup     /servlet   to initialize/launch default databse connection pool, how

html:base tag doubt

2009-04-07 Thread suganya . c
Hi, In my JSP page I am setting the base target value in the header . html:base target=_self/ I am not setting the Href value anywhere in my application. But when I run the application I checked the source for that JSP page. the base tag have 2 attributes href and target. base

Re: how to initialize database connection pool in struts 2?

2009-04-07 Thread Wes Wannemacher
On Tuesday 07 April 2009 21:38:44 john lee wrote: in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line servlet servlet-nameDBInit/servlet-name servlet-classneuco.db.DBInitServlet/servlet-class load-on-startup1/load-on-startup /servlet

RE: how to initialize database connection pool in struts 2?

2009-04-07 Thread Sidharth Bhatia
You can also use struts 2 spring capability and have the connection given to you through dependency injection. Sid Bhatia Try not. Do... or do not. There is no try -- Yoda _ _ mailto:sidharth.bhat...@gmail.com -Original Message- From: Wes Wannemacher

RE: html:base tag doubt

2009-04-07 Thread Muthu Velappan
Hi, html:base tag will always be rendered with href attribute. This will by default add href attribute pointing to the absolute location of the enclosing JSP page. I believe list.jsp is the enclosing page in ur case. If you want to change that then u should use optional ref attribute with

RE: how to initialize database connection pool in struts 2?

2009-04-07 Thread john lee
Could you tel me in detail/example?   tks in advance   john --- On Tue, 4/7/09, Sidharth Bhatia sidharth.bhat...@gmail.com wrote: From: Sidharth Bhatia sidharth.bhat...@gmail.com Subject: RE: how to initialize database connection pool in struts 2? To: 'Struts Users Mailing List'