Re: Exception while using validator framework

2007-05-31 Thread wang huan


19:57:00,515 ERROR [ActionServlet] Unable to initialize Struts
ActionServlet due to an unexpected exception or error thrown, so marking
the servlet as unavailable.  Most likely, this is due to an incorrect or
missing library dependency.

java.lang.NoSuchMethodError:
org.apache.commons.validator.ValidatorResources.([Ljava/io/InputSt
ream;)V




Are you sure you have "commons-validator.jar" under yourApp/web-inf/lib?

--
北半球的狗几月份掉毛?


Exception while using validator framework

2007-05-31 Thread bhanuprakash.singh

Hi all,

 

I have created a sample struts application

Im trying to make use of the validator framework

 

The steps which i have carried out are

 

1 .I have included validation.xml and validation-rules.xml in WEB-INF

 

2 .then in struts-config.xml i have included

 

the required 

 

 

  



 

but when i deploy the war file  i get exception

 

like

 

 

 

19:57:00,515 ERROR [ActionServlet] Unable to initialize Struts
ActionServlet due to an unexpected exception or error thrown, so marking
the servlet as unavailable.  Most likely, this is due to an incorrect or
missing library dependency.

java.lang.NoSuchMethodError:
org.apache.commons.validator.ValidatorResources.([Ljava/io/InputSt
ream;)V

at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugI
n.java:237)

at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:16
2)

at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
ava:869)

at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)

at
javax.servlet.GenericServlet.init(GenericServlet.java:211)

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1091)

at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)

at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3857)

at org.apach

 

 

and i dont know how to proceed with this

please help me in resolving this issue

 

 

Thanks and Regards

Bhanuprakash




The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Re: [S2] Struts2, JDK 1.4, retrotranslator

2007-05-31 Thread wang huan

We met this exception before under tomcat.  It seems like some version
problem.  At last we replaced the tools.jar under Tomcat/common/lib with the
one under jdk/lib.

Have no idea about Oracle Application Server 9i, and just wish this tip
might help.


Fitzwilliam

--
北半球的狗几月份掉毛?


Re: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Laurie Harper

Then customizing the theme is probably the way to go:

http://struts.apache.org/2.x/docs/themes-and-templates.html

L.

Charbel Abdul-Massih wrote:

Laurie,
That wrapped markup around all the radio buttons, not each of the
button/label combination :(

 
-Original Message-

From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Thursday, May 31, 2007 3:06 PM
To: user@struts.apache.org
Subject: Re: [S2] How do I get radio buttons to show vertically

You could switch to the xhtml or css_xhtml theme, which would give you 
additional markup around each radio button / label pair. You would then 
have sufficient markup structure to style with CSS.


Alternatively, create your own custom theme, or just write a custom 
template for this specific tag and use the template and/or templateDir 
attributes to reference it.


L.

Charbel Abdul-Massih wrote:

Guru,

The HTML that's outputted by struts is like this (with the "simple"
theme)

label 1

label 2

Using the "display:block" would put my radios on sperate lines, but

also

put the labels for the radios on separate lines as well...I want the
radio and label associated with it to stay on the same line...any

other

suggestions?

Thanks,
Charbel

-Original Message-
From: Raghupathy, Gurumoorthy
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 11:11 AM

To: Struts Users Mailing List
Subject: RE: [S2] How do I get radio buttons to show vertically

Apply a style sheet class which has "display:block"  
http://www.w3schools.com/css/pr_class_display.asp


Google is your best friend :)

Guru

-Original Message-
From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 15:16

To: Struts Users Mailing List
Subject: [S2] How do I get radio buttons to show vertically

I am using the following tag in my jsp

 




 


Currently, my map has two entries.  The radios are displayed on the

same

line...I would like them displayed on 2 separate lines...Is there an
easy way to do this???

 


Thanks,

Charbel

 

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Struts2, JDK 1.4, retrotranslator

2007-05-31 Thread Jason Wyatt
By the way, the application works fine under tomcat 5.5 with JDK 1.5, with
the normal struts-core and xworks jars and no retrotranslator jars.


-Original Message-
From: Jason Wyatt [mailto:[EMAIL PROTECTED] 
Sent: Friday, 1 June 2007 12:09 PM
To: 'Struts Users Mailing List'
Subject: [S2] Struts2, JDK 1.4, retrotranslator

Hi, I'm trying to deploy Struts 2 on Oracle Application Server 9i, which
uses JDK1.4, and I'm getting an error:

Caused by: java.lang.UnsupportedClassVersionError:
org/apache/struts2/codebehind/CodebehindUnknownHandler (Unsupported
major.minor version 49.0)
 
I included the backported Struts 2 and retrotranslator libraries and removed
the j5 equivalent struts-core and xwork jars. 

I'm wondering if I need to backport some other jars?

The full stack trace:

500 Internal Server Error

Unable to load bean: type:com.opensymphony.xwork2.UnknownHandler
class:org.apache.struts2.codebehind.CodebehindUnknownHandler - bean -
jndi:/opt/oracle/product/9.0.4/j2ee/IACD2b/applications/iacd/iacd/WEB-INF/li
b/struts2-codebehind-plugin-2.0.6.jar/struts-plugin.xml:8:-1
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
mlConfigurationProvider.java:209)
at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlC
onfigurationProvider.java:101)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
guration.java:131)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
rationManager.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
r.java:398)
at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:20
1)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.HttpApplication.getFilterConfig(HttpApplication.jav
a:7432)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.FileRequestDispatcher.handleWithFilter(FileRequestD
ispatcher.java:50)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.FileRequestDispatcher.forwardInternal(FileRequestDi
spatcher.java:192)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandle
r.java:788)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableRe
sourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.UnsupportedClassVersionError:
org/apache/struts2/codebehind/CodebehindUnknownHandler (Unsupported
major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoad
er.java:172)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1
154)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].naming.ContextClassLoader.findClass(ContextClassLoader.java:390
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:138
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:
139)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
mlConfigurationProvider.java:181)


Thanks a lot,
Jason


-
Falun Dafa  Truth - Compassion - Forbearance

A mind & body practice under persecution in China

http://www.faluninfo.net




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Urgent : java.lang.IllegalArgumentException: No Bean specified, help me to resolve

2007-05-31 Thread Vijay KS

 config-file
 
 
 

 
 
 
 
 
 
 

 

 my first jsp is FileUpload.jsp like this
 -
 
 
 Upload File
 
 after clicking the Upload file button, the uploadSuccess.jsp looks like
this

 
 
 
 
 
 

 The correspondin form beans are

 public class StrutsUploadForm extends ActionForm
 { //assume all the methods are publlic
 FormFile theFile;
 ArrayList objectList;
 valueObject valueObj;

 FormFile getTheFile() {
 return theFile;
 }
 void setTheFile(FormFile theFile) {
 this.theFile = theFile;
 }
 void setValueObj(valueObject valueObj){
 this.valueObj = valueObj;
 }
 valueObject getValueObj(){
 return this.valueObj;
 }
 void setObjectList(ArrayList objectList){
 this.objectList = objectList;
 }

 ArrayList getObjectList(){
 return this.objectList;
 }
 }

 my value Object is

 public class valueObject
 {
 String id;
 String firstName;
 String lastName;
 String fullName;

 valueObject(String id,String firstName,String lastName){
 this.id = id;
 this.firstName = firstName;
 this.lastName = lastName;
 }
 void setId(String id){
 this.id=id;
 }
 String getId(){
 return this.id;
 }
 void setFirstName(String firstName){
 this.firstName = firstName;
 }
 String getFirstName(){
 return firstName;
 }
 void setLastName(String lastName){
 this.lastName = lastName;
 }
 String getLastName(){
 return lastName;
 }
 getFullName(){
 return firstName+lastName;
 }
 }

 and my action class is

 public class StrutsUploadAction extends Action
 {
 public ActionForward execute(..){
 StrutsUploadForm myForm = (StrutsUploadForm)form;

 if(!"show".equals(request.getParameter("parameter"))){
 valueObject v1 = new valueObject("3","Babu","Prasad");
 myForm.setValueObj(v1);
 ArrayList valueList = new ArrayList();
 valueList.add(new valueObject("1","vijay","ks"));
 valueList.add(new valueObject("2","Ram","Kumar"));
 valueList.add(v1);
 valueList.add(new valueObject("4","Raju","sundaram"));
 valueList.add(new valueObject("5","Kamal","Batch"));
 valueList.add(new valueObject("6","Ragu","varan"));
 myForm.setObjectList(valueList);
 }else{
 System.out.println("myFORM OBJECTS "+myForm.getValueObj().getId());
 }

 return mapping.findForward("success");
 }
 }


 But i try to select one of the value form the combo box and submit the
 uploadsuccess.jsp ,i am getting the following error

 type Exception report

 message

 description The server encountered an internal error () that prevented it
 from fulfilling this request.

 exception

 javax.servlet.ServletException: BeanUtils.populate
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

 root cause

 java.lang.IllegalArgumentException: No bean specified

org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
-- 
View this message in context: 
http://www.nabble.com/Urgent-%3A--java.lang.IllegalArgumentException%3A-No-Bean-specified%2C-help-me-to-resolve-tf3850024.html#a10905787
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: The class variable reference null problem

2007-05-31 Thread Kapil Sharma

Thanks your "synchronization" idea solved my problem of null reference ,

The reference is propery getting null, I just checked,

Regarding reinitialization, I just put my initialization code in execute
method of the action.

and made something like

public class ClsAction extends Action {

public static GraphicsServer myServer = null;

   Actionforward execute(){
if(myServer == null)
myServer  = ClsInitializeServer.getInitializeInstance();
   }

}



Thanks and Regards,
Kapil Sharma


-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: Friday, June 01, 2007 11:33 AM
To: Struts Users Mailing List
Subject: RE: The class variable reference null problem


I tried your method , debug the program , it shows that the variable becomes
null,

But after login in again the "public static GraphicsServer myServer =
ClsInitializeServer.getInitializeInstance(); "  class level variable does
not execute but still its refrence is available to other parts of the
program.

This is not the case of simple class, i think so, Struts use it as another
ways. It keep all the class level variables as application level and does
not initilaze them again.

But I am wondering how to make it initialize every time.

Thanks and Regards,
Kapil Sharma



-Original Message-
From: Fei Fei [mailto:[EMAIL PROTECTED]
Sent: Friday, June 01, 2007 11:06 AM
To: Struts Users Mailing List
Subject: RE: The class variable reference null problem



you can try to do something like this:
public class ClsAction extends Action { // Start Intialize the 
instance
of the graphics serverpublic Object lockObj = new Object();public static
GraphicsServer myServer = ClsInitializeServer.getInitializeInstance();  //
End another methods(){  . . .   }  public void 
resetGServer()
{
   synch..(lockObj)
   {myServer = null;
   }
}}- A Fei ->





Hi,

I have one problem

In my action class , I am initilazing my graphic software server as a static
variable e.g.

public class ClsAction extends Action {


// Start Intialize the instance of the graphics server

public static GraphicsServer myServer =
ClsInitializeServer.getInitializeInstance();

// End

another methods(){
. . .
}


}

The code is executing perfectly OK, But I am not able to make "myserver"
object reference null when logging out of the application.

I tried calling the "myServer = null", but the next time I come to this java
class the "public static GraphicsServer myServer =
ClsInitializeServer.getInitializeInstance();"

does not seem to exceute, but is available to other parts of the program. I
think in struts it becomes the application level variable and does not null.
I am new , Plz help me how to make its reference null.



_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: The class variable reference null problem

2007-05-31 Thread Kapil Sharma
I tried your method , debug the program , it shows that the variable becomes
null,

But after login in again the "public static GraphicsServer myServer =
ClsInitializeServer.getInitializeInstance(); "  class level variable does
not execute but still its refrence is available to other parts of the
program.

This is not the case of simple class, i think so, Struts use it as another
ways. It keep all the class level variables as application level and does
not initilaze them again.

But I am wondering how to make it initialize every time.

Thanks and Regards,
Kapil Sharma



-Original Message-
From: Fei Fei [mailto:[EMAIL PROTECTED]
Sent: Friday, June 01, 2007 11:06 AM
To: Struts Users Mailing List
Subject: RE: The class variable reference null problem



you can try to do something like this:
public class ClsAction extends Action { // Start Intialize the 
instance
of the graphics serverpublic Object lockObj = new Object();public static
GraphicsServer myServer = ClsInitializeServer.getInitializeInstance();  //
End another methods(){  . . .   }  public void 
resetGServer()
{
   synch..(lockObj)
   {myServer = null;
   }
}}- A Fei ->





Hi,

I have one problem

In my action class , I am initilazing my graphic software server as a static
variable e.g.

public class ClsAction extends Action {


// Start Intialize the instance of the graphics server

public static GraphicsServer myServer =
ClsInitializeServer.getInitializeInstance();

// End

another methods(){
. . .
}


}

The code is executing perfectly OK, But I am not able to make "myserver"
object reference null when logging out of the application.

I tried calling the "myServer = null", but the next time I come to this java
class the "public static GraphicsServer myServer =
ClsInitializeServer.getInitializeInstance();"

does not seem to exceute, but is available to other parts of the program. I
think in struts it becomes the application level variable and does not null.
I am new , Plz help me how to make its reference null.



_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[S2] Struts2, JDK 1.4, retrotranslator

2007-05-31 Thread Jason Wyatt
Hi, I'm trying to deploy Struts 2 on Oracle Application Server 9i, which
uses JDK1.4, and I'm getting an error:

Caused by: java.lang.UnsupportedClassVersionError:
org/apache/struts2/codebehind/CodebehindUnknownHandler (Unsupported
major.minor version 49.0)
 
I included the backported Struts 2 and retrotranslator libraries and removed
the j5 equivalent struts-core and xwork jars. 

I'm wondering if I need to backport some other jars?

The full stack trace:

500 Internal Server Error

Unable to load bean: type:com.opensymphony.xwork2.UnknownHandler
class:org.apache.struts2.codebehind.CodebehindUnknownHandler - bean -
jndi:/opt/oracle/product/9.0.4/j2ee/IACD2b/applications/iacd/iacd/WEB-INF/li
b/struts2-codebehind-plugin-2.0.6.jar/struts-plugin.xml:8:-1
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
mlConfigurationProvider.java:209)
at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlC
onfigurationProvider.java:101)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
guration.java:131)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
rationManager.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
r.java:398)
at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:20
1)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.HttpApplication.getFilterConfig(HttpApplication.jav
a:7432)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.FileRequestDispatcher.handleWithFilter(FileRequestD
ispatcher.java:50)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.FileRequestDispatcher.forwardInternal(FileRequestDi
spatcher.java:192)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandle
r.java:788)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableRe
sourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.UnsupportedClassVersionError:
org/apache/struts2/codebehind/CodebehindUnknownHandler (Unsupported
major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoad
er.java:172)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1
154)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].naming.ContextClassLoader.findClass(ContextClassLoader.java:390
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.1.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:138
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:
139)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
mlConfigurationProvider.java:181)


Thanks a lot,
Jason


-
Falun Dafa  Truth - Compassion - Forbearance

A mind & body practice under persecution in China

http://www.faluninfo.net




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: The class variable reference null problem

2007-05-31 Thread Fei Fei

you can try to do something like this:
public class ClsAction extends Action { // Start Intialize the 
instance of the graphics serverpublic Object lockObj = new Object();public 
static GraphicsServer myServer = ClsInitializeServer.getInitializeInstance();   
  // End  another methods(){  . . .   }  public 
void resetGServer()
{
   synch..(lockObj)
   {myServer = null;
   }
}}- A Fei -> From: [EMAIL PROTECTED]> To: user@struts.apache.org> Subject: The 
class variable reference null problem> Date: Fri, 1 Jun 2007 10:51:14 +0900> > 
> Hi,> > I have one problem> > In my action class , I am initilazing my graphic 
software server as a static> variable e.g.> > public class ClsAction extends 
Action {> > > // Start Intialize the instance of the graphics server> > public 
static GraphicsServer myServer => ClsInitializeServer.getInitializeInstance();> 
> // End > > another methods(){> . . . > }> > > }> > The code is executing 
perfectly OK, But I am not able to make "myserver"> object reference null when 
logging out of the application.> > I tried calling the "myServer = null", but 
the next time I come to this java> class the "public static GraphicsServer 
myServer => ClsInitializeServer.getInitializeInstance();"> > does not seem to 
exceute, but is available to other parts of the program. I> think in struts it 
becomes the application level variable and
  does not null.> I am new , Plz help me how to make its reference null.> > > 
Thanks and Regards,> Kapil Sharma > > > 
_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

The class variable reference null problem

2007-05-31 Thread Kapil Sharma

Hi,

I have one problem

In my action class , I am initilazing my graphic software server as a static
variable e.g.

public class ClsAction extends Action {


// Start Intialize the instance of the graphics server

public static GraphicsServer myServer =
ClsInitializeServer.getInitializeInstance();

// End 

another methods(){
. . . 
}


}

The code is executing perfectly OK, But I am not able to make "myserver"
object reference null when logging out of the application.

I tried calling the "myServer = null", but the next time I come to this java
class the "public static GraphicsServer myServer =
ClsInitializeServer.getInitializeInstance();"

does not seem to exceute, but is available to other parts of the program. I
think in struts it becomes the application level variable and does not null.
I am new , Plz help me how to make its reference null.


Thanks and Regards,
Kapil Sharma 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why is struts2 called struts2 and not webworks2?

2007-05-31 Thread Don Brown

My guess is there will continue to be bug fix and perhaps minor
feature improvements on WebWork.  There are a lot of WebWork 2
applications that may not be actively developed, but need the latest
bug fixes, so I foresee WebWork 2 being supported indefinitely, just
like Struts 1.

Don

On 5/31/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:

There is no new development going on in WW. You might see minor releases to
fix bugs, but that's all. I might be off on this one, but I think 2.2.5 is
the last release.

musachy

On 5/31/07, jiangshachina <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> Currently, WebWork is 2.2.5 released in April this year,
> but Struts is 2.0.6 released in February this year.
> Does it mean that just Struts uses WebWork's codes, but WebWork still has
> its own roadmap?
> Shortly, the two project isn't merged.
> That's right?
>
> a cup of Java, cheers!
> Sha Jiang
>
>
> Ted Husted wrote:
> >
> > On 1/20/07, Zsolt Koppany <[EMAIL PROTECTED]> wrote:
> >> as far as I see struts2 has very little to do with struts1. Why is it
> >> called
> >> struts2 at all (and not webworks2)?
> >
> > Essentially, Patrick Lightbody (of WebWork) suggested that instead of
> > a WebWork 3, that we all work together on creating Struts 2, and the
> > rest of us agreed.
> >
> > For a summary, see
> >
> > *
> >
> http://www.oreillynet.com/onjava/blog/2006/10/my_history_of_struts_2.html
> >
> > For  the nitty-gritty details, see
> >
> > * http://opensource.atlassian.com/confluence/oss/display/STRUTS2/Home
> >
> > -Ted.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> 
http://www.nabble.com/Why-is-struts2-called-struts2-and-not-webworks2--tf3045999.html#a10889716
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
"Hey you! Would you help me to carry the stone?" Pink Floyd



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why is struts2 called struts2 and not webworks2?

2007-05-31 Thread jiangshachina

Hello,
Thanks!
The reply resolved a puzzle in my mind :-)

If I want to use Struts2, then I just go to http://struts.apache.org/2.x/,
I needn't care Struts1 and WebWork.

a cup of Java, cheers!
Sha Jiang


Musachy Barroso wrote:
> 
> There is no new development going on in WW. You might see minor releases
> to
> fix bugs, but that's all. I might be off on this one, but I think 2.2.5 is
> the last release.
> 
> musachy
> 
> On 5/31/07, jiangshachina <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>> Currently, WebWork is 2.2.5 released in April this year,
>> but Struts is 2.0.6 released in February this year.
>> Does it mean that just Struts uses WebWork's codes, but WebWork still has
>> its own roadmap?
>> Shortly, the two project isn't merged.
>> That's right?
>>
>> a cup of Java, cheers!
>> Sha Jiang
>>
>>
>> Ted Husted wrote:
>> >
>> > On 1/20/07, Zsolt Koppany <[EMAIL PROTECTED]> wrote:
>> >> as far as I see struts2 has very little to do with struts1. Why is it
>> >> called
>> >> struts2 at all (and not webworks2)?
>> >
>> > Essentially, Patrick Lightbody (of WebWork) suggested that instead of
>> > a WebWork 3, that we all work together on creating Struts 2, and the
>> > rest of us agreed.
>> >
>> > For a summary, see
>> >
>> > *
>> >
>> http://www.oreillynet.com/onjava/blog/2006/10/my_history_of_struts_2.html
>> >
>> > For  the nitty-gritty details, see
>> >
>> > * http://opensource.atlassian.com/confluence/oss/display/STRUTS2/Home
>> >
>> > -Ted.
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Why-is-struts2-called-struts2-and-not-webworks2--tf3045999.html#a10889716
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Why-is-struts2-called-struts2-and-not-webworks2--tf3045999.html#a10904657
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: refresh problem

2007-05-31 Thread Oguz Kologlu

Hi Volkan,

I had a similar issue which turned out to be a a bug in the result  
page. It seems when you have an error in an ajax result page nothing  
gets reported (probably for good reason), but it makes things  
difficult to debug.


The simplest way I find to resolve it is to make the ajax call  
directly (ie it's own page) so you can see the resultant page  
directly, and perhaps put in breakpoints/debug statements as well.


HTH,
Oz


On 01/06/2007, at 12:14 AM, Volkan OZYILMAZ wrote:


I tryed this problem with FireFox, IE6, IE7. Same results.

On 5/31/07, Mark Shifman <[EMAIL PROTECTED]> wrote:


I had a similar problem that I never really worked out and I will be
interested in
hearing if anyone has solved this.

I was wondering if this was a caching issue with your browser.  I had
the problem with
firefox.
any suggestions appreciated.
mas
Volkan OZYILMAZ wrote:
> Hello All,
>
> I use sturts 2. My web program work well but when i add a  
refresh link

> in my
> page, starting a problem.
>
> First i had use javascript:reload() function. When use this  
link, page

> sometimes not get data. But sometimes get. I change my reload()
function.
>
> 
> function refresh()
> {
>var sURL = unescape(window.location.pathname);
>window.location.href = sURL;
> }
> 
> Yenile
>
> This is old style and working.
>
> After, i prepared a small report page. It has JFreeChart's  
charts. It is

> working but when i add a refresh link it has a problem. I research
> ajax. I
> change my refresh link
>
> value="CampaignManagerCallDurationSlice.action">

>
> 
> 
>  notifyTopics="/request"
>> Yenile
>
> But result not change. I watched this process. Page not waiting  
action

> class
> work done. Page has waiting and show result but action class  
still

> working.
>
> It can be possible a settings in action mapped xml file? Or any
> suggestion?
>
> Regards,
>


--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
Volkan OZYILMAZ
Volko
http://www.volko.biz
--



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to check if page has been displayed (rendered) by the browser

2007-05-31 Thread Jeremiah Johnson
you could use JQuery to run a script after the document is loaded. See 
at this url:

http://www.learningjquery.com/2006/09/introducing-document-ready


Raghupathy, Gurumoorthy wrote:
Put your javascript at the last ... so you are sure that my the time your javascript is being executed your html is rendered 


-Original Message-
From: Srepfler Srgjan [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 14:44

To: Struts Users Mailing List
Subject: Re: how to check if page has been displayed (rendered) by the browser

Yup, I think this is a JS issue,
Perhaps you should check if the DOM is loaded.

Torsten Römer wrote:
  

Couldn't you use the JavaScript "Load" event to know when the page has
been completely rendered, and postpone your reload until then?

Torsten

Greg Stasica schrieb:
  


hi,

My problem is that I've a big JSP page with a lot of scriptlets and a 
JavaScript which basically reloads the whole page every 5s. The problem is 
that my JavaScript makes a request to the server before the user has a 
chance to see the whole page.
Is it possible to read somehow that the page was sent to the browser and 
that the browser has completed rendering its content? 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



xhtml problem

2007-05-31 Thread Ray Clough

I produce all my jsp pages is xml format - ie. as 'jspx' jsp-documents.  I
find a serious drawback to the struts tags, and I'm wondering if anyone has
a suggestion.  The xhtml does not allow element content within other
elements; for example the  tag cannot contain a  tag.  Lots of
examples in the struts documentation use this, which is not a problem for
regular html, but is a big show stopper in xml.  The tags do allow jsp-el,
but not other elements.

Any suggestions?
- Ray Clough
-- 
View this message in context: 
http://www.nabble.com/xhtml-problem-tf3848996.html#a10902429
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Charbel Abdul-Massih
Laurie,
That wrapped markup around all the radio buttons, not each of the
button/label combination :(

 
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Thursday, May 31, 2007 3:06 PM
To: user@struts.apache.org
Subject: Re: [S2] How do I get radio buttons to show vertically

You could switch to the xhtml or css_xhtml theme, which would give you 
additional markup around each radio button / label pair. You would then 
have sufficient markup structure to style with CSS.

Alternatively, create your own custom theme, or just write a custom 
template for this specific tag and use the template and/or templateDir 
attributes to reference it.

L.

Charbel Abdul-Massih wrote:
> Guru,
> 
> The HTML that's outputted by struts is like this (with the "simple"
> theme)
> 
>  class="radioB"/>label 1
> 
>  class="radioB"/>label 2
> 
> Using the "display:block" would put my radios on sperate lines, but
also
> put the labels for the radios on separate lines as well...I want the
> radio and label associated with it to stay on the same line...any
other
> suggestions?
> 
> Thanks,
> Charbel
> 
> -Original Message-
> From: Raghupathy, Gurumoorthy
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 31, 2007 11:11 AM
> To: Struts Users Mailing List
> Subject: RE: [S2] How do I get radio buttons to show vertically
> 
> Apply a style sheet class which has "display:block"  
> http://www.w3schools.com/css/pr_class_display.asp
> 
> Google is your best friend :)
> 
> Guru
> 
> -Original Message-
> From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] 
> Sent: 31 May 2007 15:16
> To: Struts Users Mailing List
> Subject: [S2] How do I get radio buttons to show vertically
> 
> I am using the following tag in my jsp
> 
>  
> 
> 
> 
>  
> 
> Currently, my map has two entries.  The radios are displayed on the
same
> line...I would like them displayed on 2 separate lines...Is there an
> easy way to do this???
> 
>  
> 
> Thanks,
> 
> Charbel
> 
>  
> 
>  
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Laurie Harper
You could switch to the xhtml or css_xhtml theme, which would give you 
additional markup around each radio button / label pair. You would then 
have sufficient markup structure to style with CSS.


Alternatively, create your own custom theme, or just write a custom 
template for this specific tag and use the template and/or templateDir 
attributes to reference it.


L.

Charbel Abdul-Massih wrote:

Guru,

The HTML that's outputted by struts is like this (with the "simple"
theme)

label 1

label 2

Using the "display:block" would put my radios on sperate lines, but also
put the labels for the radios on separate lines as well...I want the
radio and label associated with it to stay on the same line...any other
suggestions?

Thanks,
Charbel

-Original Message-
From: Raghupathy, Gurumoorthy
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 11:11 AM

To: Struts Users Mailing List
Subject: RE: [S2] How do I get radio buttons to show vertically

Apply a style sheet class which has "display:block"  
http://www.w3schools.com/css/pr_class_display.asp


Google is your best friend :)

Guru

-Original Message-
From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 15:16

To: Struts Users Mailing List
Subject: [S2] How do I get radio buttons to show vertically

I am using the following tag in my jsp

 




 


Currently, my map has two entries.  The radios are displayed on the same
line...I would like them displayed on 2 separate lines...Is there an
easy way to do this???

 


Thanks,

Charbel

 

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] OGNL and javascript

2007-05-31 Thread Laurie Harper
If you're hand-coding the Javascript, you may also be able to write
something like

  document.addressForm['address.street']

or

  document.addressForm.elements['address.street']

L.

Jeromy Evans wrote:
> Interesting problem...
> Using textfield as an example, the template (eg. text.ftl) takes the
> literal name attribute from  and writes it straight to the
> html. You could create your own theme that replaces the '.' with a
> different character in the html. You could then write your own
> interceptor that converts the name attributes back to the syntax
> expected by the parameters interceptors before it's executed. This would
> let you use OGNL in the JSP, but give you your javascript friendly names.
> 
> You'd have to check that none of the S2/dojo javascript uses names
> instead of Ids though. And this will confuse IDE syntax highlighting. Yuk...
> 
> I guess it would be nicer if you could write a javascript function
> getElementByName('document.addressForm.address.street') that knows
> 'address.street' is the name of an input because document.addressForm is
> a form element. That seems do-able.
> 
> Fowler, Perryn wrote:
>> Hi People,
>>
>> I usually like to access form elements using their names ( rather than ids) 
>> as I find it more readable.
>> So, if I had a field named 'street' on a form named 'addressForm'  I can 
>> access it using something like document.addressForm.street 
>>
>> Now, I am using struts 2 and its OGNL support to inject parameters directly 
>> into objects contained exposed by my actions.
>>
>> So, I might have a form with a field named 'address.street'.
>> When this form is submitted the fields value is set by the parameters 
>> interceptor using something like action.getAddress().setStreet()
>>
>> Unfortunately, this means that my method of accessing form fields in 
>> javascript no longer works because the last period
>> in document.addressForm.address.street is not interpreted by javascript as 
>> part of the name, but as the javascript de-reference operator.
>>
>>
>> does anyone know of a solution to this? Can I escape that . in javascript 
>> somehow? Can I change what character OGNL uses?
>>
>> I realize I could place ids on my fields and use getElementById, but as I 
>> said I would rather be able to use this syntax for readability's sake.
>>
>> cheers
>> Perryn
>>
>> "This e-mail and any attachments to it (the "Communication") is, unless 
>> otherwise stated, confidential,  may contain copyright material and is for 
>> the use only of the intended recipient. If you receive the Communication in 
>> error, please notify the sender immediately by return e-mail, delete the 
>> Communication and the return e-mail, and do not read, copy, retransmit or 
>> otherwise deal with it. Any views expressed in the Communication are those 
>> of the individual sender only, unless expressly stated to be those of 
>> Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any 
>> of its related entities including ANZ National Bank Limited (together 
>> "ANZ"). ANZ does not accept liability in connection with the integrity of or 
>> errors in the Communication, computer virus, data corruption, interference 
>> or delay arising from or in respect of the Communication."
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wierd behaviour with redirect, result, and store interceptor

2007-05-31 Thread Laurie Harper
Do you have any validation configured on ActionA? Could there be a 
conversion error on one of the request parameters? Have you tried 
creating an input result and perhaps using s:debug or something to see 
if there's anything unexpected in the response that might explain the 
input redirect? You could also try disabling the validation interceptor 
for ActionA.


L.

Al Sutton wrote:

The problem is that it's trying to pick up the input result for the action
after the redirect from the action where the error occurred, so it's
basically trying to do the following in one step;

ActionB --input result redirect--> ActionA --input result--> Somewhere else

instead of what I would expect which would be;

ActionB --input result redirect--> ActionA

Because the error ocurred in ActionB, so inho the input page for ActionA
isn't relevant, and so it shouldn't be doing the second step.

Al.

 


-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 13:37

To: Struts Users Mailing List
Subject: RE: Wierd behaviour with redirect, result, and store interceptor

--- Al Sutton <[EMAIL PROTECTED]> wrote:
Anyone seen the same behaviour? 


I think that if there are action errors it will try to show the input result
because, well, it thinks there are errors.

d.



   



Moody friends. Drama queens. Your life? Nope! - their life, your story. Play
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Table Tag With Freemarker Templates

2007-05-31 Thread yitzle

Please use "user@struts.apache.org" for the "to:"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Table Tag With Freemarker Templates

2007-05-31 Thread André Faria

Hi All,

   I am interested in Table Tags Project to apply it resources in a 
project with Struts 2, but I'd like to know if you are planning to 
implement some functionality to add a freemarker template in the tags 
using the theme attribute like in old Struts 2 s:table tag.


Thank's
André Faria
/

/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-31 Thread Adam Gordon

Chris-

See answers below...

Christopher Schultz wrote:

I just ran it through Wireshark and followed the TCP stream verifying
 that it's being encoded correctly into 3 bytes - it is (E2 80 A2).



Is this the UTF-8 code that /should/ represent those bullet characters?

  
I would assume so.  I had a co-worker use BBEdit on his mac to convert a 
document to from UTF-8 from other formats and it appears to convert them 
back and forth correctly.  However, the W3C recommends that 
enctype=multipart/form-data be "used for submitting forms that contain 
files, non-ASCII data, and binary data."  However, setting this and 
leaving the acceptCharset and the @page directive as UTF-8 results in 
Wireshark not reporting any encoding, the bullet character shows up as 3 
. characters.


Regardless, if we take the string that the 3 characters, E2 80 A2, are 
in, call charAt() for each character in the string, place all the 
results in a byte array, and construct a new string from those bytes, 
Java correctly recognizes that these characters represent a UNICODE 
character (I believe since String by default represents a UNICODE 
string) and the string length decreases by 2.

I'm going to follow up with Paul's post and try it on 1.3.8 and see
if I can reproduce.  Basically, the behavior we're seeing is that the
3 bytes are being treated as separate characters and not as one
UNICODE character.



Can you confirm that the Content-Type of the form is being submitted
with the request properly (as an HTTP header) and that the Request
object on the server-side correctly reads the Content-Type header?
  
Yes, using "wget -S" prints the HTTP response headers and we can see the 
Content-Type header correctly set to UTF-8.


--adam

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] "Starting with Struts2" Book

2007-05-31 Thread James Mitchell

Will do!  Hope you can make it.


--
James Mitchell



On May 31, 2007, at 11:41 AM, Ian Roughley wrote:

No, no paypal account.  You can buy me a beer if I make it to  
apachecon.


James Mitchell wrote:
Ian,  Nice job!  I don't need the paper copy, but I'd like you to  
get the full price of the book.  Do you have a Paypal account that  
I could donate some funds to?



--
James Mitchell



On May 29, 2007, at 12:13 PM, Henri Yandell wrote:


The registration system at InfoQ is pretty slow; so I downloaded
directly from lulu.com.

Great work Ian, I hope it becomes the 'Thinking in Struts2' and is a
big success.

Hen

On 5/25/07, Ted Husted <[EMAIL PROTECTED]> wrote:

Is anyone else having trouble logging into the InfoQ site?

On 5/24/07, Ian Roughley <[EMAIL PROTECTED]> wrote:
> I am pleased to announce the release of the mini-book  
"Starting with

> Struts2" from InfoQ.com.
>
> "Starting with Struts2" is aimed at those who are new to  
Strut2, and
> those familiar with MVC frameworks but unfamiliar with  
Struts2.  It

> provides everything you need to know to get up and running using
> Struts2, and can be used as a starting point to explore the more
> intricate features of the Struts2 framework.   Topics include
> architecture and configuration, how to implementing actions, and
> supporting infrastructure such as validation and  
internationalization.
> Also included are productivity tips, providing a practical  
introduction

> on how best to use the framework.
>
> The eBook can be found at http://www.infoq.com/minibooks/ 
starting-struts2

>
> /Ian

--- 
--

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 
-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Dave Newton
--- David Harland <[EMAIL PROTECTED]> wrote:
> How exactly do you do that, can you give me an
> example please? 

http://struts.apache.org/2.x/docs/strutsproperties.html

### possible values are: none, get or all
struts.url.includeParams = get

(But you should probably do it via XML constant
configuration but I'm in a meeting and lazy :)

d.



   
Be
 a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Charbel Abdul-Massih
Guru,

The HTML that's outputted by struts is like this (with the "simple"
theme)

label 1

label 2

Using the "display:block" would put my radios on sperate lines, but also
put the labels for the radios on separate lines as well...I want the
radio and label associated with it to stay on the same line...any other
suggestions?

Thanks,
Charbel

-Original Message-
From: Raghupathy, Gurumoorthy
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 11:11 AM
To: Struts Users Mailing List
Subject: RE: [S2] How do I get radio buttons to show vertically

Apply a style sheet class which has "display:block"  
http://www.w3schools.com/css/pr_class_display.asp

Google is your best friend :)

Guru

-Original Message-
From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 15:16
To: Struts Users Mailing List
Subject: [S2] How do I get radio buttons to show vertically

I am using the following tag in my jsp

 



 

Currently, my map has two entries.  The radios are displayed on the same
line...I would like them displayed on 2 separate lines...Is there an
easy way to do this???

 

Thanks,

Charbel

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Musachy Barroso

I missed that one. I added a note on the url tag page.

musachy

On 5/31/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Al Sutton <[EMAIL PROTECTED]> wrote:
> +1 to support the change. It'd reduce my code by a
> chunk on pages that take a parameter and have a link

> menu on one side.

While I agree that 'none' should be the default (I
think we had a thread about this not too long ago) you
*can* just set it in your struts.xml and not worry
about it.

d.




Ready
for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


RE: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread David Harland
How exactly do you do that, can you give me an example please? 

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 16:43
To: Struts Users Mailing List
Subject: RE: s:url tag Why isn't includeParams='none' the default
setting?

--- Al Sutton <[EMAIL PROTECTED]> wrote:
> +1 to support the change. It'd reduce my code by a
> chunk on pages that take a parameter and have a link

> menu on one side.

While I agree that 'none' should be the default (I think we had a thread
about this not too long ago) you
*can* just set it in your struts.xml and not worry about it.

d.



   

Ready for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


- --
ML {UFI}

__
Ufi Limited 
Registered in England No.  3980770 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

learndirect Solutions Ltd 
Registered in England No. 5081669 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

UFI Charitable Trust 
Registered in England No.  3658378 
Registered Charity No.  1081028 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

This email has been scanned by the MessageLabs Email Security System.

__

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote:
> +1 to support the change. It'd reduce my code by a
> chunk on pages that take a parameter and have a link

> menu on one side.

While I agree that 'none' should be the default (I
think we had a thread about this not too long ago) you
*can* just set it in your struts.xml and not worry
about it.

d.



   
Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] "Starting with Struts2" Book

2007-05-31 Thread Ian Roughley

No, no paypal account.  You can buy me a beer if I make it to apachecon.

James Mitchell wrote:
Ian,  Nice job!  I don't need the paper copy, but I'd like you to get 
the full price of the book.  Do you have a Paypal account that I could 
donate some funds to?



--
James Mitchell



On May 29, 2007, at 12:13 PM, Henri Yandell wrote:


The registration system at InfoQ is pretty slow; so I downloaded
directly from lulu.com.

Great work Ian, I hope it becomes the 'Thinking in Struts2' and is a
big success.

Hen

On 5/25/07, Ted Husted <[EMAIL PROTECTED]> wrote:

Is anyone else having trouble logging into the InfoQ site?

On 5/24/07, Ian Roughley <[EMAIL PROTECTED]> wrote:
> I am pleased to announce the release of the mini-book "Starting with
> Struts2" from InfoQ.com.
>
> "Starting with Struts2" is aimed at those who are new to Strut2, and
> those familiar with MVC frameworks but unfamiliar with Struts2.  It
> provides everything you need to know to get up and running using
> Struts2, and can be used as a starting point to explore the more
> intricate features of the Struts2 framework.   Topics include
> architecture and configuration, how to implementing actions, and
> supporting infrastructure such as validation and 
internationalization.
> Also included are productivity tips, providing a practical 
introduction

> on how best to use the framework.
>
> The eBook can be found at 
http://www.infoq.com/minibooks/starting-struts2

>
> /Ian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to check if page has been displayed (rendered) by the browser

2007-05-31 Thread Raghupathy, Gurumoorthy
Put your javascript at the last ... so you are sure that my the time your 
javascript is being executed your html is rendered 

-Original Message-
From: Srepfler Srgjan [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 14:44
To: Struts Users Mailing List
Subject: Re: how to check if page has been displayed (rendered) by the browser

Yup, I think this is a JS issue,
Perhaps you should check if the DOM is loaded.

Torsten Römer wrote:
> Couldn't you use the JavaScript "Load" event to know when the page has
> been completely rendered, and postpone your reload until then?
>
> Torsten
>
> Greg Stasica schrieb:
>   
>> hi,
>>
>> My problem is that I've a big JSP page with a lot of scriptlets and a 
>> JavaScript which basically reloads the whole page every 5s. The problem is 
>> that my JavaScript makes a request to the server before the user has a 
>> chance to see the whole page.
>> Is it possible to read somehow that the page was sent to the browser and 
>> that the browser has completed rendering its content? 
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OptionTransfer Select - id number formatting

2007-05-31 Thread Brian Trzupek

I figured this out.

All I did was change the method signature on my Action class from:

setNotificationUsers(Collection notificationUsers)

to

setNotificationUsers(Collection notificationUsers)

And Struts/XWork took care of the rest.

Brian-


On May 31, 2007, at 10:08 AM, Brian Trzupek wrote:

I am using the optionTransferSelect tag all over the place, love  
this control!


Anyways, when the id property of list (which is an int) gets  
displayed in the HTML by the tag the number get formatted with a  
comma when the numbers get into 4+ digits.


Example output:

[EMAIL PROTECTED]

[EMAIL PROTECTED]

When the list is set on my Action class the values come back as  
strings with the comma in it and then when I pass them to my DAO it  
fails to load b/c it is not parsing the number ( new Integer 
(value) ) correctly.


My question is, why is the control outputting a 'formatted' number?  
and is there a way to 'turn that off'?


I would prefer a solution that will globally tell the tag to render  
the values without the formatting, rather than have to parse them  
in every action where I have a list coming back in.


Any Ideas?

Thanks Brian-

--- Here is my jsp tag 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OptionTransfer Select - id number formatting

2007-05-31 Thread Al Sutton
Had the same problem recently, the choice I made was to make the parameter
for the second action the same type as the parameter for the first, i.e.;

ActionA has public Integer getValue()
ActionB has public setValue(Integer x)

Worked for me with Longs.

-Original Message-
From: Brian Trzupek [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 16:08
To: Struts Users Mailing List
Subject: OptionTransfer Select - id number formatting

I am using the optionTransferSelect tag all over the place, love this
control!

Anyways, when the id property of list (which is an int) gets displayed in
the HTML by the tag the number get formatted with a comma when the numbers
get into 4+ digits.

Example output:

 [EMAIL PROTECTED]

 [EMAIL PROTECTED]

When the list is set on my Action class the values come back as strings with
the comma in it and then when I pass them to my DAO it fails to load b/c it
is not parsing the number ( new Integer(value) ) correctly.

My question is, why is the control outputting a 'formatted' number?  
and is there a way to 'turn that off'?

I would prefer a solution that will globally tell the tag to render the
values without the formatting, rather than have to parse them in every
action where I have a list coming back in.

Any Ideas?

Thanks Brian-

--- Here is my jsp tag 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Al Sutton
+1 to support the change. It'd reduce my code by a chunk on pages that take
a parameter and have a link menu on one side.

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 15:25
To: Struts Users Mailing List
Subject: Re: s:url tag Why isn't includeParams='none' the default setting?

I've been asking myself that question for a while, I'd say it seems like it
would be a better choice for the default value.

musachy

On 5/31/07, David Harland <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> How come the default setting for the includeParams attribute for the 
> s:url tag is not 'none' ?
>
>
> __
> Ufi Limited
> Registered in England No.  3980770
> Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP
>
> learndirect Solutions Ltd
> Registered in England No. 5081669
> Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP
>
> UFI Charitable Trust
> Registered in England No.  3658378
> Registered Charity No.  1081028
> Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP
>
> This email has been scanned by the MessageLabs Email Security System.
>
> __




--
"Hey you! Would you help me to carry the stone?" Pink Floyd


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Raghupathy, Gurumoorthy
Apply a style sheet class which has "display:block"  
http://www.w3schools.com/css/pr_class_display.asp

Google is your best friend :)

Guru

-Original Message-
From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 15:16
To: Struts Users Mailing List
Subject: [S2] How do I get radio buttons to show vertically

I am using the following tag in my jsp

 



 

Currently, my map has two entries.  The radios are displayed on the same
line...I would like them displayed on 2 separate lines...Is there an
easy way to do this???

 

Thanks,

Charbel

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OptionTransfer Select - id number formatting

2007-05-31 Thread Brian Trzupek
I am using the optionTransferSelect tag all over the place, love this  
control!


Anyways, when the id property of list (which is an int) gets  
displayed in the HTML by the tag the number get formatted with a  
comma when the numbers get into 4+ digits.


Example output:

[EMAIL PROTECTED]

[EMAIL PROTECTED]

When the list is set on my Action class the values come back as  
strings with the comma in it and then when I pass them to my DAO it  
fails to load b/c it is not parsing the number ( new Integer(value) )  
correctly.


My question is, why is the control outputting a 'formatted' number?  
and is there a way to 'turn that off'?


I would prefer a solution that will globally tell the tag to render  
the values without the formatting, rather than have to parse them in  
every action where I have a list coming back in.


Any Ideas?

Thanks Brian-

--- Here is my jsp tag 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Musachy Barroso

I've been asking myself that question for a while, I'd say it seems like it
would be a better choice for the default value.

musachy

On 5/31/07, David Harland <[EMAIL PROTECTED]> wrote:


Hi,

How come the default setting for the includeParams attribute for the
s:url tag is not 'none' ?


__
Ufi Limited
Registered in England No.  3980770
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP

learndirect Solutions Ltd
Registered in England No. 5081669
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP

UFI Charitable Trust
Registered in England No.  3658378
Registered Charity No.  1081028
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP

This email has been scanned by the MessageLabs Email Security System.

__





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


[S2] How do I get radio buttons to show vertically

2007-05-31 Thread Charbel Abdul-Massih
I am using the following tag in my jsp

 



 

Currently, my map has two entries.  The radios are displayed on the same
line...I would like them displayed on 2 separate lines...Is there an
easy way to do this???

 

Thanks,

Charbel

 

 



Re: refresh problem

2007-05-31 Thread Volkan OZYILMAZ

I tryed this problem with FireFox, IE6, IE7. Same results.

On 5/31/07, Mark Shifman <[EMAIL PROTECTED]> wrote:


I had a similar problem that I never really worked out and I will be
interested in
hearing if anyone has solved this.

I was wondering if this was a caching issue with your browser.  I had
the problem with
firefox.
any suggestions appreciated.
mas
Volkan OZYILMAZ wrote:
> Hello All,
>
> I use sturts 2. My web program work well but when i add a refresh link
> in my
> page, starting a problem.
>
> First i had use javascript:reload() function. When use this link, page
> sometimes not get data. But sometimes get. I change my reload()
function.
>
> 
> function refresh()
> {
>var sURL = unescape(window.location.pathname);
>window.location.href = sURL;
> }
> 
> Yenile
>
> This is old style and working.
>
> After, i prepared a small report page. It has JFreeChart's charts. It is
> working but when i add a refresh link it has a problem. I research
> ajax. I
> change my refresh link
>
> 
>
> 
> 
>  notifyTopics="/request"
>> Yenile
>
> But result not change. I watched this process. Page not waiting action
> class
> work done. Page has waiting and show result but action class still
> working.
>
> It can be possible a settings in action mapped xml file? Or any
> suggestion?
>
> Regards,
>


--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
Volkan OZYILMAZ
Volko
http://www.volko.biz
--


Re: [S2] HTTP Status 404 - result 'null' not found

2007-05-31 Thread SvetlanaR

ok, the problem has been solved. It was Sun App Server policy problem. 
I added the following permission to the server.policy file and it solved the
problem. 

permission java.security.AllPermission "createClassLoader"; 
-- 
View this message in context: 
http://www.nabble.com/-S2--HTTP-Status-404---result-%27null%27-not-found-tf3790310.html#a10894275
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread David Harland
Hi,

How come the default setting for the includeParams attribute for the
s:url tag is not 'none' ?


__
Ufi Limited 
Registered in England No.  3980770 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

learndirect Solutions Ltd 
Registered in England No. 5081669 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

UFI Charitable Trust 
Registered in England No.  3658378 
Registered Charity No.  1081028 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

This email has been scanned by the MessageLabs Email Security System.

__

Re: how to check if page has been displayed (rendered) by the browser

2007-05-31 Thread Srepfler Srgjan

Yup, I think this is a JS issue,
Perhaps you should check if the DOM is loaded.

Torsten Römer wrote:

Couldn't you use the JavaScript "Load" event to know when the page has
been completely rendered, and postpone your reload until then?

Torsten

Greg Stasica schrieb:
  

hi,

My problem is that I've a big JSP page with a lot of scriptlets and a 
JavaScript which basically reloads the whole page every 5s. The problem is 
that my JavaScript makes a request to the server before the user has a 
chance to see the whole page.
Is it possible to read somehow that the page was sent to the browser and 
that the browser has completed rendering its content? 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Wierd behaviour with redirect, result, and store interceptor

2007-05-31 Thread Al Sutton
The problem is that it's trying to pick up the input result for the action
after the redirect from the action where the error occurred, so it's
basically trying to do the following in one step;

ActionB --input result redirect--> ActionA --input result--> Somewhere else

instead of what I would expect which would be;

ActionB --input result redirect--> ActionA

Because the error ocurred in ActionB, so inho the input page for ActionA
isn't relevant, and so it shouldn't be doing the second step.

Al.

 

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 13:37
To: Struts Users Mailing List
Subject: RE: Wierd behaviour with redirect, result, and store interceptor

--- Al Sutton <[EMAIL PROTECTED]> wrote:
> Anyone seen the same behaviour? 

I think that if there are action errors it will try to show the input result
because, well, it thinks there are errors.

d.



   


Moody friends. Drama queens. Your life? Nope! - their life, your story. Play
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Wierd behaviour with redirect, result, and store interceptor

2007-05-31 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote:
> Anyone seen the same behaviour? 

I think that if there are action errors it will try to
show the input result because, well, it thinks there
are errors.

d.



   

Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why is struts2 called struts2 and not webworks2?

2007-05-31 Thread Musachy Barroso

There is no new development going on in WW. You might see minor releases to
fix bugs, but that's all. I might be off on this one, but I think 2.2.5 is
the last release.

musachy

On 5/31/07, jiangshachina <[EMAIL PROTECTED]> wrote:



Hi,
Currently, WebWork is 2.2.5 released in April this year,
but Struts is 2.0.6 released in February this year.
Does it mean that just Struts uses WebWork's codes, but WebWork still has
its own roadmap?
Shortly, the two project isn't merged.
That's right?

a cup of Java, cheers!
Sha Jiang


Ted Husted wrote:
>
> On 1/20/07, Zsolt Koppany <[EMAIL PROTECTED]> wrote:
>> as far as I see struts2 has very little to do with struts1. Why is it
>> called
>> struts2 at all (and not webworks2)?
>
> Essentially, Patrick Lightbody (of WebWork) suggested that instead of
> a WebWork 3, that we all work together on creating Struts 2, and the
> rest of us agreed.
>
> For a summary, see
>
> *
>
http://www.oreillynet.com/onjava/blog/2006/10/my_history_of_struts_2.html
>
> For  the nitty-gritty details, see
>
> * http://opensource.atlassian.com/confluence/oss/display/STRUTS2/Home
>
> -Ted.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/Why-is-struts2-called-struts2-and-not-webworks2--tf3045999.html#a10889716
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


RE: Wierd behaviour with redirect, result, and store interceptor

2007-05-31 Thread Al Sutton
Anyone seen the same behaviour? 

-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED] 
Sent: 30 May 2007 13:23
To: 'Struts Users Mailing List'
Subject: Wierd behaviour with redirect, result, and store interceptor

I have the following;
 
Action A --- forwards to ---> A.jsp --- submits to ---> Action B ---
redirects to ---> Action A
 
The B to A redirect uses the store interceptor to pass action messages and
action errors to Action A.
 
When I add an ActionError in Action B (using addActionError from
ActionSupport) I get an struts error back saying it can't find the input
result for Action A.
 
I've tried using only a SUCCESS result for Action B to redirect to Action A,
and I've tried using an INPUT result to redirect from Action B to Action A
when an ActionError is added, in both cases it still reports an error about
an input result for Action A.
 
If I do add an input result to Action A struts picks it up and uses it, but
the problem is that I want to send the user back to action A if an error
occurs.
 
I couldn't find anything like this in Jira, is this a know problem and is
there a workaround?
 
Al.
 
P.S. For the interested, here are the specifics;
 
Action A gets the current comments relevant to a topic, A.jsp allows a user
to add a comment, Action B adds the comment to the database and then sends
the user back to action A in order to redisplay all the comments.
 
I have a custom interceptor which handles the hibernate session creation,
it's added into the interceptor stack by defining myInterceptorStack which
has the hibernate interceptor plus the default stack.
 
struts.xml action definitions;
  
  RETRIEVE
 
 
/myapp/showcomments.jsp


 
  STORE
 
   /myapp/ActionA.action
 /myapp/ActionA.action


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: refresh problem

2007-05-31 Thread Mark Shifman
I had a similar problem that I never really worked out and I will be 
interested in

hearing if anyone has solved this.

I was wondering if this was a caching issue with your browser.  I had 
the problem with

firefox.
any suggestions appreciated.
mas
Volkan OZYILMAZ wrote:

Hello All,

I use sturts 2. My web program work well but when i add a refresh link 
in my

page, starting a problem.

First i had use javascript:reload() function. When use this link, page
sometimes not get data. But sometimes get. I change my reload() function.


function refresh()
{
   var sURL = unescape(window.location.pathname);
   window.location.href = sURL;
}

Yenile

This is old style and working.

After, i prepared a small report page. It has JFreeChart's charts. It is
working but when i add a refresh link it has a problem. I research 
ajax. I

change my refresh link


   


notifyTopics="/request"

Yenile


But result not change. I watched this process. Page not waiting action 
class

work done. Page has waiting and show result but action class still
working.

It can be possible a settings in action mapped xml file? Or any 
suggestion?


Regards,




--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multi lingual web site

2007-05-31 Thread Roger Varley


Using the locale, you should be able to construct a SQL query to load
the correct data from the table structure I mentioned.



Or you could add language choice as a user selectable option on either
your login page (if you use a login) or on your "home" page.

Regards
Roger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[S2] [ANN] Struts 2.0 Validations using Annotations article

2007-05-31 Thread Ted Husted

Struts 2.0 Validations using Annotations  By Krishna Srinivasan

"How easy it was to get fairly complex server side validation working
with Struts 2 by just using annotations. No XML whatsoever. Struts 2.0
comes with new set of Robust Validation Features. Most of the common
Validation Activities ..."

O'Reilly ONJava Blog - http://www.oreillynet.com/onjava/blog/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



refresh problem

2007-05-31 Thread Volkan OZYILMAZ

Hello All,

I use sturts 2. My web program work well but when i add a refresh link in my
page, starting a problem.

First i had use javascript:reload() function. When use this link, page
sometimes not get data. But sometimes get. I change my reload() function.


function refresh()
{
   var sURL = unescape(window.location.pathname);
   window.location.href = sURL;
}

Yenile

This is old style and working.

After, i prepared a small report page. It has JFreeChart's charts. It is
working but when i add a refresh link it has a problem. I research ajax. I
change my refresh link


   



Yenile


But result not change. I watched this process. Page not waiting action class
work done. Page has waiting and show result but action class still
working.

It can be possible a settings in action mapped xml file? Or any suggestion?

Regards,

--
--
Volkan OZYILMAZ
Volko
http://www.volko.biz
--


Re: Why is struts2 called struts2 and not webworks2?

2007-05-31 Thread jiangshachina

Hi,
Currently, WebWork is 2.2.5 released in April this year,
but Struts is 2.0.6 released in February this year.
Does it mean that just Struts uses WebWork's codes, but WebWork still has
its own roadmap?
Shortly, the two project isn't merged.
That's right?

a cup of Java, cheers!
Sha Jiang


Ted Husted wrote:
> 
> On 1/20/07, Zsolt Koppany <[EMAIL PROTECTED]> wrote:
>> as far as I see struts2 has very little to do with struts1. Why is it
>> called
>> struts2 at all (and not webworks2)?
> 
> Essentially, Patrick Lightbody (of WebWork) suggested that instead of
> a WebWork 3, that we all work together on creating Struts 2, and the
> rest of us agreed.
> 
> For a summary, see
> 
> *
> http://www.oreillynet.com/onjava/blog/2006/10/my_history_of_struts_2.html
> 
> For  the nitty-gritty details, see
> 
> * http://opensource.atlassian.com/confluence/oss/display/STRUTS2/Home
> 
> -Ted.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Why-is-struts2-called-struts2-and-not-webworks2--tf3045999.html#a10889716
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] OGNL and javascript

2007-05-31 Thread Jeromy Evans
Interesting problem...
Using textfield as an example, the template (eg. text.ftl) takes the
literal name attribute from  and writes it straight to the
html. You could create your own theme that replaces the '.' with a
different character in the html. You could then write your own
interceptor that converts the name attributes back to the syntax
expected by the parameters interceptors before it's executed. This would
let you use OGNL in the JSP, but give you your javascript friendly names.

You'd have to check that none of the S2/dojo javascript uses names
instead of Ids though. And this will confuse IDE syntax highlighting. Yuk...

I guess it would be nicer if you could write a javascript function
getElementByName('document.addressForm.address.street') that knows
'address.street' is the name of an input because document.addressForm is
a form element. That seems do-able.

Fowler, Perryn wrote:
> Hi People,
>
> I usually like to access form elements using their names ( rather than ids) 
> as I find it more readable.
> So, if I had a field named 'street' on a form named 'addressForm'  I can 
> access it using something like document.addressForm.street 
>
> Now, I am using struts 2 and its OGNL support to inject parameters directly 
> into objects contained exposed by my actions.
>
> So, I might have a form with a field named 'address.street'.
> When this form is submitted the fields value is set by the parameters 
> interceptor using something like action.getAddress().setStreet()
>
> Unfortunately, this means that my method of accessing form fields in 
> javascript no longer works because the last period
> in document.addressForm.address.street is not interpreted by javascript as 
> part of the name, but as the javascript de-reference operator.
>
>
> does anyone know of a solution to this? Can I escape that . in javascript 
> somehow? Can I change what character OGNL uses?
>
> I realize I could place ids on my fields and use getElementById, but as I 
> said I would rather be able to use this syntax for readability's sake.
>
> cheers
> Perryn
>
> "This e-mail and any attachments to it (the "Communication") is, unless 
> otherwise stated, confidential,  may contain copyright material and is for 
> the use only of the intended recipient. If you receive the Communication in 
> error, please notify the sender immediately by return e-mail, delete the 
> Communication and the return e-mail, and do not read, copy, retransmit or 
> otherwise deal with it. Any views expressed in the Communication are those of 
> the individual sender only, unless expressly stated to be those of Australia 
> and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its 
> related entities including ANZ National Bank Limited (together "ANZ"). ANZ 
> does not accept liability in connection with the integrity of or errors in 
> the Communication, computer virus, data corruption, interference or delay 
> arising from or in respect of the Communication."
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[s2] OGNL and javascript

2007-05-31 Thread Fowler, Perryn

Hi People,

I usually like to access form elements using their names ( rather than ids) as 
I find it more readable.
So, if I had a field named 'street' on a form named 'addressForm'  I can access 
it using something like document.addressForm.street 

Now, I am using struts 2 and its OGNL support to inject parameters directly 
into objects contained exposed by my actions.

So, I might have a form with a field named 'address.street'.
When this form is submitted the fields value is set by the parameters 
interceptor using something like action.getAddress().setStreet()

Unfortunately, this means that my method of accessing form fields in javascript 
no longer works because the last period
in document.addressForm.address.street is not interpreted by javascript as part 
of the name, but as the javascript de-reference operator.


does anyone know of a solution to this? Can I escape that . in javascript 
somehow? Can I change what character OGNL uses?

I realize I could place ids on my fields and use getElementById, but as I said 
I would rather be able to use this syntax for readability's sake.

cheers
Perryn

"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]