RE: Struts2 - dojo anchor error

2009-07-02 Thread Kishan G. Chellap Paandy
Hi Dave,

Thanks for your reply.

Here is what I'm doing.


<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>   






.
.


<@s.url id="sort" 
namespace="${parameters.nameSpace}" action="Sort">
<@s.param name="id" 
value="${tmpIdVal}"/>

<@sx.a href="${sort}" key="app.sort" 
targets="content">
" alt="<@s.text name="app.sort"/>" 
title="<@s.text name="app.sort"/>" border="0" width="14" height="15"/>


xxx


.
.
.




.
.
.



.









But when I do the above and when I click on the sort image on the table header, 
it should go to the action and update the content div part with the jsp. 
It is indeed going to the action, but in the content div part I'm getting 
"undefined" text in IE 7. But the same is working in Mozilla 2.

I'm using Struts 2.1.6.

Thank you.
Regards,
Kishan.G
 
Team Leader.
www.spansystems.com



-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com] 
Sent: Thursday, July 02, 2009 3:02 PM
To: Struts Users Mailing List
Subject: Re: Struts2 - dojo anchor error

Kishan G. Chellap Paandy wrote:
> Referring to: http://struts.apache.org/2.1.6/docs/dojo-anchor.html
> 
> "There's a bug in IE6/IE7 which makes impossible to use the target's
> attribute with a parent Div, because such Div's content's are
> overwritten with the tag's loadingText. Resulting in an "undefined"
> message in the content's, instead of the result of the request.
> 
> One possible alternative is to set showLoadingText="false" and set
> the indicator attribute to an element showing the desired loading
> text or image (outside the div)."
> 
> The alternative mentioned above is also not working.
> 
> Is there is any solution for this apart from the mentioned
> alternative?

What specific issue are you having? AFAIK the anchor tag works.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: compatibility of various versions Tomcat, jdk, and struts2

2009-07-02 Thread Dimitrios Christodoulakis
Thanks for the detailed information Wes, this was useful. I was able
to finally integrate Struts2.1.6, Spring2.5.3 and hibernate3.
WEB-INF/lib became quite bloated with all the jars though :) - I think
35 jars... is it too many perhaps?

I am not sure if there is a way around it, but during this effort to
simply integrate these frameworks I was getting exceptions of the kind
classNotFoundException, but the logs didn't give information which jar
containing the missing class was corrupt, or just not under the /lib
folder. So I had to do a search on the exception and find out which
jar the class is contained in, then download and include the jar in
the /lib folder.

Is there a tool, a quick way, or an eclipse specific trick (?) to tell
right-away which jar is missing from my dependencies just by looking
at the exception? Eclipse console provides a view of the Tomcat log,
so it would be nice to see something like: "ClassNotFoundException:
org.blah.blah.class", you are probably missing "this.jar"

On Thu, Jul 2, 2009 at 8:50 AM, Wes Wannemacher wrote:
> I am using whatever version of Java 6 that ubuntu gives me. I'm pretty
> sure it bumped up a version since I started this project, but I point
> to /usr/lib/jvm/java-6-sun which symlinks to the specific version
> in-play.
>
> I am an IDEA user, but I hide those details behind apache maven. If
> you are unfamiliar with Maven, I would suggest you take a long, hard
> look at it now, especially since you are starting a project and you
> are bringing in Struts 2 / Spring / Hibernate. The details of which
> versions are compatible with what are handled for you by maven,
> eliminating an otherwise troublesome build process.
>
> Now that I'm at work, I can give you the specific versions -
>
> Struts 2 & all plugins - 2.1.6
> Spring and all Spring modules - 2.5.6
> Hibernate -
>    ejb3-persistence - 1.0.2.GA
>    hibernate-annotations - 3.4.0.GA
>    hibernate-commons-annotations - 3.1.0.GA
>    hibernate-core - 3.3.1.GA
>    hibernate-entity-manager - 3.4.0.GA
>
> Since I am using JPA, I am working hard to make the JPA provider a
> deployment detail. So, there is no hard dependency on hibernate
> (thanks to Spring).
>
> Although I am using the latest JDK, I have the target jvm set to 1.5.
> When I run in tomcat, I issue either tomcat:run to maven, which runs
> Tomcat 6.0.16. I have a server that I deploy to when I need to test a
> real deployment and it is running Tomcat 6.0.18. I have used Tomcat
> 5.5.x before this project and I can assure you that Struts 2 / Spring
> / etc. work very well.
>
> Again though, if you haven't looked at maven, I strongly suggest you
> do so, learning maven will vastly speed up your dev time.
>
> -Wes
>
>
> On Thu, Jul 2, 2009 at 8:57 AM, Dimitrios
> Christodoulakis wrote:
>> Thanks Wes,
>>
>> Latest versions are always better to use for up to date compatibility.
>>
>> Are you using Struts 2.1.6, Spring 2.5.6 and the latest hibernate jpa
>> with the bit older versions of jdk1.5.0_17 and Tomcat5.5.27 and
>> Eclipse?
>>
>> If there are no known issues (based on versioning only) I'd be very
>> glad to use the latest struts2,spring and hibernate with the slightly
>> older jdk and tomcat.
>>
>> Thanks for your answer.
>>
>> On Wed, Jul 1, 2009 at 10:00 PM, Wes Wannemacher wrote:
>>> On Wednesday 01 July 2009 21:56:17 Dimitrios Christodoulakis wrote:
 Hello,

 while doing development I am conforming to the versions provided by
 our hosting service. I am trying to select the most suitable version
 of the framework, java and tomcat so, just wanted to ask if there are
 known compatibility issues with the following combination:

 Fixed:
 jdk1.5.0_17
 Tomcat5.5

 Next I want to select Struts2, Spring and Hibernate. So before going
 ahead, downloading all the jar files, would you recommend specific
 versions to go with the given specification above?

 struts2.1.6 or struts2.0.14 ?

 would the current/latest version of spring and hibernate 3 work with
 the above tomcat and jdk? Or which versions are appropriate?

 struts 2 comes with the required spring jars (just for dependency
 injection only) included if I am not mistaken.
 Hibernate 3 ?
 Is there an online resource somewhere where there is such matching of
 versions discussed, with recommendations given just which versions of
 which components to select?

 If anyone could suggest a working combination, would help a lot.

 Thanks to all.

>>>
>>> Have you considered using apache maven? I mean, it sort of builds up a
>>> dependency graph for you, based on the artifacts you want. That being said, 
>>> in
>>> today's world of loose coupling, most of these libraries work together 
>>> through
>>> interfaces and such so that you can pretty much pick and choose which 
>>> versions
>>> you want. I am currently using Struts 2.1.6, Spring 2.5.6 and whatever the
>>> latest versions of h

Re: missing ajax theme in 2.1.6

2009-07-02 Thread Dave Newton

Larry Reed wrote:

I found that in the 2.1.6 release, the templates directory only has
'simple', 'xhtml', and 'css_xhtml'. There is an 'archive/ajax'
directory, but it only seems to have what look like velocity (.vm)
templates. In the 2.0.14 release, the ajax templates appear as
expected.

Is this an oversight, or is there some challenge with using the ajax
theme in 2.1.6?


The "challenge" is limited to using the Dojo plugin and adding an
additional taglib directive in your JSP pages.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



missing ajax theme in 2.1.6

2009-07-02 Thread Larry Reed
I am new to struts, and have been trying to set up my project with Struts 
2.1.6. I want to use the 'ajax' theme for the UI tags, but this generates an 
error that the ajax templates are missing. Specifically, it can't find head.ftl.

I found that in the 2.1.6 release, the templates directory only has 'simple', 
'xhtml', and 'css_xhtml'. There is an 'archive/ajax' directory, but it only 
seems to have what look like velocity (.vm) templates. In the 2.0.14 release, 
the ajax templates appear as expected.

Is this an oversight, or is there some challenge with using the ajax theme in 
2.1.6?

-- Larry

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: adding values to a variable inside iterator tag

2009-07-02 Thread Dale Newfield

Bhaarat Sharma wrote:

But in this case why would I write another for loop to do
something that can be done in the for loop that I already have?


Maybe learning about the life cycle of even a simple tag will convince 
you that doing unnecessary computation within the display layer is a 
mistake:


http://java.sun.com/webservices/docs/1.6/api/javax/servlet/jsp/tagext/Tag.html

Especially the more complex life cycles of more detailed tags (since 
s:set can have a body, it's got to implement BodyTag, I believe) :


http://java.sun.com/webservices/docs/1.6/api/javax/servlet/jsp/tagext/IterationTag.html
http://java.sun.com/webservices/docs/1.6/api/javax/servlet/jsp/tagext/BodyTag.html

And since your summation actually did the work through OGNL, you also 
add the parsing/evaluation computational expense each time through that 
loop.


-Dale

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Hello Everybody, I am getting exception Action Class not found

2009-07-02 Thread Dave Newton

Nagesh Reddy K wrote:

Action class [java.struts2.examples.chapter1.HelloWorld] not found - action -
file:/D:/tomcat%205.0/webapps/struts2/WEB-INF/classes/java/struts2/examples/chapter1/chapter1struts.xml:9:74


So... does the action exist? Has it been deployed?

We're not actually at your machine, so you need to provide more useful 
information.


Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Customizing "content type not allowed" error message

2009-07-02 Thread Wampole, Garrett C.
I'm trying to customize this error message for a file upload form control, and 
running into problems:

I've created a new properties file named "msgs.properties" with the error 
message I'd like to show:

struts.messages.error.content.type.not.allowed={1} is not of the 
correct type

I've placed this file in "WEB-INF/classes" and referenced it in my 
"struts.properties"

struts.custom.i18n.resources=msgs.properties

I see a log message when deploying to that effect:

INFO: Loading global messages from msgs.properties

In my action, I can even print out the text using the correct key and get my 
custom message:

getText( "struts.messages.error.content.type.not.allowed" )

However, when I submit a disallowed file using the form, I get the default 
error message:

Content-Type not allowed: {0} "{1}" "{2}" {3}

I'm using Struts 2.1.6 and I've defined my action method like this:

@Action( value="upload",
results={
@Result( name="success", location="upload.jsp" ) },
interceptorRefs={
@InterceptorRef( value="fileUpload",
params={
"allowedTypes",
"application/zip,application/x-zip-compressed" } ) } )
public String uploadSample()
  {
  System.out.println(
  getText( "struts.messages.error.content.type.not.allowed" ) );

  return SUCCESS;
   }

Upload.jsp has the s:form tag in it.

Any thoughts appreciated, thanks!
-Garrett

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: using CompositeActionMapper

2009-07-02 Thread Martin Gainty

good advice

if the container is going null could you provide 

a complete dump of log
Directory of $CATALINA_HOME/logs

catalina.2009-07-01.log

display any/all messages that say anything about configuring Web Container e.g.

INFO: Configuring SomeWebApp for Web Container type 'MyTomcat'



all of the contents of HOST.-MM-DD.log e.g.

07/01/2009  02:42 PM   914 localhost.2009-07-01.log


vendor and version of webapp container you are using 

JDK/J2EE version you are implementing e.g. java -version
any tweaks on JAVA_OPTS

as much code as is necessary to reproduce (including 
web.xml,struts.xml,struts-default.xml)

thanks,
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 2 Jul 2009 14:08:27 -0400
> From: d...@newfield.org
> To: user@struts.apache.org
> Subject: Re: using CompositeActionMapper
> 
> rsilva wrote:
> > I dont not understand very much about Struts2 inject process but I fixed my
> > problem extending the compositeActionMapper with the following one:
> > 
> > public class DebugCompositeActionMapper extends CompositeActionMapper {
> > 
> > @Override
> > @Inject(StrutsConstants.STRUTS_MAPPER_COMPOSITE)
> > public void setActionMappers(String list) {
> > if (list != null) {
> > String[] arr = list.split(",");
> > for (String name : arr) {
> > if (container==null) continue; // LINE ADDED
> > Object obj = container.getInstance(ActionMapper.class,
> > name);
> > if (obj != null) {
> > actionMappers.add((ActionMapper) obj);
> > }
> > }
> > }
> > }
> > }
> > 
> > I worked since it do not throw the Null Pointer Exception and it seem during
> > injection process the function setActionMappers is called twice. One before
> > the container is set and other after.
> 
> Do the call stacks during those two calls reveal anything useful about 
> how/why it's getting called twice (once before it sounds like it should)?
> 
> If container is null during one of those calls, won't it be null during 
> the entire method call?  If so, why not put
> "if (container == null) return;" as the first line of the method instead 
> of re-checking it for each potential mapper specification?
> 
> -Dale
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Hotmail® has ever-growing storage! Don’t worry about storage limits. 
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

Re: using CompositeActionMapper

2009-07-02 Thread Dale Newfield

rsilva wrote:

I dont not understand very much about Struts2 inject process but I fixed my
problem extending the compositeActionMapper with the following one:

public class DebugCompositeActionMapper extends CompositeActionMapper {

@Override
@Inject(StrutsConstants.STRUTS_MAPPER_COMPOSITE)
public void setActionMappers(String list) {
if (list != null) {
String[] arr = list.split(",");
for (String name : arr) {
if (container==null) continue; // LINE ADDED
Object obj = container.getInstance(ActionMapper.class,
name);
if (obj != null) {
actionMappers.add((ActionMapper) obj);
}
}
}
}
}

I worked since it do not throw the Null Pointer Exception and it seem during
injection process the function setActionMappers is called twice. One before
the container is set and other after.


Do the call stacks during those two calls reveal anything useful about 
how/why it's getting called twice (once before it sounds like it should)?


If container is null during one of those calls, won't it be null during 
the entire method call?  If so, why not put
"if (container == null) return;" as the first line of the method instead 
of re-checking it for each potential mapper specification?


-Dale

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: canncellable with isCanncelled()

2009-07-02 Thread Paul Benedict
Why do you have two cancel buttons?

On Fri, Jun 26, 2009 at 9:20 AM, Sam Wun wrote:
> Hi,
>
> There are 3 buttons on the jsp web page, first one is submit (sign
> in), another one is Cancel, the third one is something else. I used
>  for the Cancel and something else.
> I also included this.isCancelled() conditional check in the execute()
> method; as well as included canecellable="true" in the 
> in the struts-config.xml file.
> But I don't know why the this.isCancelled() method doesn't returned
> true in the execute() method.
>
> Here is the code:
>
>  # cat struts-config.xml
> 
>  Struts Configuration 1.3//EN"
> "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd";>
> 
>        
>                 type="com.ip6networks.onlinepayment.portlet.SignInAction"
> name="SignInForm" scope="session" validate="true" cancellable="true"
> input="/portlet/onlinepayment_portlet/sign_in.jsp">
>                         path="/portlet/onlinepayment_portlet/sign_in.jsp">
>                         path="/portlet/onlinepayment_portlet/personal_details.jsp">
>                         type="org.apache.struts.action.InvalidCancelException"
> path="/portlet/onlinepayment_portlet/fool.jsp">
>                
> ...
>
> SignInAction.java:
> 
>        public ActionForward execute(
>                        ActionMapping mapping, ActionForm form,
> HttpServletRequest req,
>                        HttpServletResponse res)
>                throws Exception {
>
>                SignInForm signinForm = (SignInForm) form;
>               req.getSession().setAttribute("SignInForm", signinForm);
>                PersonalDetailForm personalDetailForm = new
> PersonalDetailForm();
>               req.getSession().setAttribute("PersonalDetailForm",
> personalDetailForm);
>
>                String email_address = signinForm.getEmailAddress().trim();
>                String password = signinForm.getPassword().trim();
> if ( this.isCancelled( req ) )
> {
> System.out.println( "About to forward the cancel!" );
> return mapping.findForward( "formTest.cancel" );
> }
> ..
>
> sign_in.jsp:
> ...
> 
>        
> 
>
> 
>        
> 
>
> 
>        
> 
>
> Your help is much appreciated.
> Thanks
> Sam
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Form survey problem (html:radio)

2009-07-02 Thread Paul Benedict
Did you try removing indexed="yes" ?

On Fri, Jun 19, 2009 at 5:05 PM, Luis Ureña wrote:
> I am working in a survey form with several questions. Each question can have
> several options. That options are builded with an iterate. When I execute
> the page generate one radio button name. If I add the indexed="Yes" property
> for the html:radio this generate one radio button name for all the first
> option for all the questions, another radio button name for all second
> options for all questions, and so on.
>
> 
>    
>        pangea
>        oceania
>        panthalasa
>        euroasiatico
>        De relleno
>    
> 
> 
>    
>        Arcaicas
>        Nuevas
>        Viejas
>    
> 
>
>
> I need generate one radio button name for all options for the first
> question. Another radio button name for all options for the second question
> and son on.
> (unicaBean is the bean that I put into the request. opciones bean is a
> Collection into unicaBean)
>
> This is the JSP:
> 
>    
>        
>            
>            
>            
>        
>    
>    
>        
>            
>                
>                    
>                         property="opciones" indexId="pregunta">
>                             value="id" idName="opcion" indexed="true"/>
>                            
>                        
>                    
>                
>            
>        
>    
> 
>
>
>
> Somebody know how do it?
>
> Thanks
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: File "/WEB-INF/tld/struts-bean.tld" not found

2009-07-02 Thread Paul Benedict
And property names start with lower case.

String getMyProperty();
void setMyProperty(String s);

The property path is "myProperty"

On Sun, Jun 21, 2009 at 12:41 AM, Girish Naik wrote:
> If your getter is 'getShippingAddress()' then your property will be
> 'shippingAddress' .
>
>
> Regards,
> -
> Girish Naik
> Mobile:-+91-09740091638
> girish.n...@gmail.com
> Fran Lebowitz
> - "Life is something to do when you can't get to sleep."
>
> On Sun, Jun 21, 2009 at 11:09 AM, Sam Wun  wrote:
>
>> getShippingAddress()
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 1.3.10 problem

2009-07-02 Thread Paul Benedict
Step into the debugger. I am sure you can find out why a blank page is
displayed by trapping an exception.

On Mon, Jun 22, 2009 at 8:56 AM, Luis Esquivel wrote:
> Hello Thank you for your response!
> Yes Actually I made a mistake on my email.  We were using 1.2 prior.
> We went through the link you sent me here and followed it to the letter.
>
> What we are hopping is that somebody might have come across this type or 
> problems that might be able to help us.
>
> Please let me know if you have any other suggestion.
>
> Thanks!
>
> -Original Message-
> From: Girish Naik [mailto:girish.n...@gmail.com]
> Sent: Friday, June 19, 2009 10:13 PM
> To: Struts Users Mailing List
> Subject: Re: Struts 1.3.10 problem
>
> May be this will bring some help:
> http://wiki.apache.org/struts/StrutsUpgradeNotes12to13
>
> But what i feel is that the app should have been upgraded to 1.2 first then
> from there to 1.3 ?
>
> Regards,
> -
> Girish Naik
> Mobile:-+91-09740091638
> girish.n...@gmail.com
> George Carlin
> - "Electricity is really just organized lightning."
>
> On Sat, Jun 20, 2009 at 2:59 AM, Luis Esquivel  wrote:
>
>> Hello,
>>
>> We are seeing a problem with this version of struts that we haven't been
>> able to resolve.  I hope somebody can help.
>> We had an old app in struts 1.1.X and decided to upgrade to 1.3.10.
>> The application that has been working for quite a few years stopped
>> working after doing the upgrade.
>>
>> Here is what happens:
>> I have an action declaration as such -
>>
>>    
>>        >                type="com.package.AClassAction"
>>                name="aForm"
>>                scope="session"
>>                input="/AForm.jsp"
>>                validate="true">
>>            
>>        
>>    
>>
>> When the action gets called, I get a blank page.  The only way this
>> works is if I add the "redirect=true" attribute to the  tag.
>> The .jsp file in this case AForm.jsp does get called as I can see the
>> logging I added to see if it was even hitting that .jsp.  We need it to
>> work without having to specify the redirect=true attribute.
>>
>> I have run the examples that are packaged in the struts 1.3.10
>> distribution and they all run fine on our server configuration.
>>
>> Does anyone have any idea as to what could be causing this error?  If I
>> switch jar files and change the dtd's to the older struts, the
>> application works ok.
>>
>> Any help would be greatly appreciated.   Let me know if you need more
>> information than what I have given in this email.
>>
>> Thanks!
>>
>>
>> Luis Esquivel
>> Application Development
>> Public Employees' Retirement Assoc. of Colorado
>> 1300 Logan Street
>> Denver, CO 80203
>> 303 - 837 - 6296
>>
>>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 1.3: MappingDispatchAction and forms??

2009-07-02 Thread Paul Benedict
Try putting scope="request" on your action mappings. I don't think
they are found because they aren't in the session (the default).

On Tue, Jun 30, 2009 at 3:42 AM, Florian
Rustedt wrote:
> Hi,
>
> i want to do follwing:
> after Login, i am at "showCallinggroupMembers.jsp". There, i want to implement
> three html forms in one jsp for "add", "edit" and "delete" an entry.
>
> So i added a mappingDispatchAction "SelectCallinggroupMembersAction" which
> handles the action corresponding to the three directions.
>
> If i now access "showCallinggroupMembers.jsp", i get
> javax.servlet.ServletException: javax.servlet.jsp.JspException: Form bean not
> specified on mapping for action: "/editCallinggroupMember"
>
> But how do i define the formBean(s) correctly?
>
> I tried adding:
>     type="org.apache.struts.action.DynaActionForm" />
> and adding to the action
>      input="/customer/showCallinggroupMembers.jsp"
>
> But the error keeps the same?
>
> Any ideas?
>
> Kind regards, Florian
>
> - struts.config --
> 
>  
>     type="org.apache.struts.action.DynaActionForm">
>      
>      
>    
>  
>
>  
>  
>    
>    
>  
>
>  
>                
>     path="/showCallinggroupMembers" />
>
>                
>     type="de.smartnet.smartcentrex.action.SelectCallinggroupMembersAction"
> validate="false">
>    
>
>                
>                 type="de.smartnet.smartcentrex.action.SelectCallinggroupMembersAction"
> parameter="add">
>                         path="/customer/addCallinggroupMember.jsp" />
>                
>                      parameter="edit"
>      path="/editCallinggroupMember"
>      type="de.smartnet.smartcentrex.action.SelectCallinggroupMembersAction">
>      
>    
>                      parameter="delete"
>      path="/deleteCallinggroupMember"
>      type="de.smartnet.smartcentrex.action.SelectCallinggroupMembersAction">
>      
>    
>
>
>                
>          attribute="loginForm"
>      input="/login.jsp"
>      name="loginForm"
>      path="/login"
>      type="de.smartnet.smartcentrex.action.LoginAction"
>      validate="false">
>      
>
>    
>
>  
>
>   />
>        
>                                        value="/WEB-INF/tiles-definitions.xml" />
>                
>        
> 
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts1 or Struts2

2009-07-02 Thread Paul Benedict
Either is a good framework. Do what you feel is best for productivity
and supportability.

Paul

On Fri, Jun 26, 2009 at 8:54 AM,  wrote:
> SInce you are comited to a re-write, go for it.
> Chris
>
>
>
>
>
>
>
> -Original Message-
> From: Mitchell, Steven 
> To: Struts Users Mailing List 
> Sent: Thu, Jun 25, 2009 5:17 pm
> Subject: RE: Struts1 or Struts2
>
>
>
> Chris,
>
> My opinion is that you will take an initial productivity hit while the
> team gets accustomed to the new JSP tags.  That is what took me the
> longest. I also switched from Tiles to SiteMesh, which like much better.
> My recommendation is to pick one person to do the first small, benchmark
> application and then have that person mentor the rest of your team.
>
> I went ahead and converted a couple of Struts 1 applications to Struts
> 2.  There is no business justification to do so, but it was an excellent
> learning exercise.
>
> The main thing I noticed when I converted my Struts 1 actions to Struts
> 2 was that they were much cleaner with Struts 2.  I standardized the
> basic layout of my actions.
>
> public String save() throws Exception {
>      checkForActionErrors();
>      if ( !hasActionErrors() ) {
>           checkForFieldErrors();
>           if ( !hasFieldErrors() ) {
>              // do CRUD stuff here...
>              return SUCCESS;
>           }
>            prepare(); //re-populate stuff in Request scope
>            return INPUT;
>       }
>    }
>    return ERROR;
> }
>
> Go for it!
>
> Steve Mitchell
> http://www.ByteworksInc.com
> -Original Message-
> From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com]
> Sent: Thursday, June 25, 2009 3:29 PM
> To: user@struts.apache.org
> Subject: Struts1 or Struts2
>
>
> My company has used Struts1.1 and Struts1.2 for the development of our
> widely used customer portal web application environment.  Recently, the
> company has decided to migrate to a new back office solution and as a
> part of this project, our customer portal application is needing to be
> rewritten as well.  In an effort to remain on the latest and greatest
> technology stacks, I am considering Struts2 (specifically 2.1.6) versus
> staying on the Struts1.2 framework.
>
> Is there a huge benefit in moving to Struts2 for my development team?
> Will less development/configuration/maintenance be required?
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For a
> dditional commands, e-mail: user-h...@struts.apache.org
>
>
> --
> NOTICE:  This electronic mail message and any attached files are confidential.
> The information is exclusively for the use of the individual or entity 
> intended
> as the recipient.  If you are not the intended recipient, any use, copying,
> printing, reviewing, retention, disclosure, distribution or forwarding of the
> message or any attached file is not authorized and is strictly prohibited.  If
> you have received this electronic mail message in error, please advise the
> sender by reply electronic mail immediately and permanently delete the 
> original
> transmission, any attachments and any copies of this message from your 
> computer
> system. Thank you.
>
> ==
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Getting OPTGROUP items to appear in the right order within a larger top-level SELECT list

2009-07-02 Thread mlevin

** Many apologies if this goes through twice -- I posted a few hours ago and
didn't see my own post show up yet **

Hi folks,
 
I'm having some trouble getting my SELECT menu to appear the way I want it
in a new Struts 2 project.
 
What I want is something like this:
 
Apple
Banana
Cookies
 Chocolate Chip
 Oatmeal
 Peanut Butter
Drinks
 Coke
 Sprite
Falafel
Gumdrops
 
In my code I have something like this:
 

 
 

 
topLevelList contains Apple, Banana, Falafel, Gumdrops
cookieList contains Chocolate Chip, Oatmeal, Peanut Butter
drinkList contains Coke, Sprite
 
But Struts is putting the OPTGROUP items at the end, so the list comes out
like:
 
Apple
Banana
Falafel
Gumdrops
Cookies
 Chocolate Chip
 Oatmeal
 Peanut Butter
Drinks
 Coke
 Sprite
 
How can I get it to put the OPTGROUP things in the middle so I can keep my
list in the order I want? I want to intersperse some OPTGROUP choices within
a larger list of top-level choices.
 
Is there any way to do this?
 
Thanks!
-- 
View this message in context: 
http://www.nabble.com/Getting-OPTGROUP-items-to-appear-in-the-right-order-within-a-larger-top-level-SELECT-list-tp24311086p24311086.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Interceptor Execution Tracing

2009-07-02 Thread Stephen Turner
On Thu, 02 Jul 2009 08:37:28 -0400, Paweł Wielgus   
wrote:



Hi Stephen,
turn debug on by adding ?profiling=true after any action address in
browser and turning devMode.
Read more here:
http://struts.apache.org/2.1.6/struts2-core/apidocs/com/opensymphony/xwork2/util/profiling/UtilTimerStack.html

Best greetings,
Paweł Wielgus.




Thanks Paweł, that's exactly what I was looking for -

Steve

--
Stephen Turner
Sr. Analyst/Programmer
MIT IS&T - SAIS

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Validator

2009-07-02 Thread Odelya YomTov
Hi! 
I get exception when i submit a form extends ValidatorForm. 
the error is really funny:
SEVERE:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest)   
org.apache.commons.validator.ValidatorException:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest)   
at
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorA
ction.java:627)   
at
org.apache.commons.validator.ValidatorAction.executeValidationMethod(Validat
orAction.java:557)   
at org.apache.commons.validator.Field.validateForRule(Field.java:827)   
at org.apache.commons.validator.Field.validate(Field.java:906)   
at org.apache.commons.validator.Form.validate(Form.java:174)   
at org.apache.commons.validator.Validator.validate(Validator.java:367)

at
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:152)

at
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.j
ava:942)   
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)   
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)   
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)   
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)   
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:188)   
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)   
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:174)   
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
)   
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)   
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:108)   
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)

at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:665)   
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:528)   
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:81)   
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:689)   
at java.lang.Thread.run(Thread.java:595) 

What could be the problem?


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: applicationresources.properties with utf-8 characters

2009-07-02 Thread Yanto
we haven't go to very detail...just test in some label..and we did encounter
in some others pages it come with weird character...after read your link, I
would rather follow the standard, rather than have issue in the future :)

On Thu, Jul 2, 2009 at 9:40 PM, Wes Wannemacher  wrote:

> I'm not going to argue about whether or not it will work, but if you
> look at the Javadocs for java.util.Properties ->
>
> http://java.sun.com/javase/6/docs/api/java/util/Properties.html
>
> It does specifically state the the input (and output) streams are
> iso-8859-1 and that unicode chars should use the \u generated by
> the native2ascii tool. If another method works for you, that's good,
> but I would proceed with caution because you might just be lucky right
> now and screwed the next time you upgrade your jre/jdk.
>
> -Wes
>
> On Thu, Jul 2, 2009 at 1:19 AM, Yanto wrote:
> > We change applicationresources_zh.properties to utf 8 in our application,
> > and the application can show the chinese character properly in the
> > application.
> > However we are not changing applicationresources.properties to utf8
> >
> > On Thu, Jul 2, 2009 at 10:49 AM, Wes Wannemacher 
> wrote:
> >
> >> On Wednesday 01 July 2009 21:03:32 Yanto wrote:
> >> > Change the file properties, file type to utf8
> >> >
> >>
> >> I am pretty sure that you can only use ISO-8859-1 for properties files.
> I
> >> ran
> >> into this once before and the accepted solution is to use the
> native2ascii
> >> tool as was previously suggested.
> >>
> >> -Wes
> >>
> >> > On Thursday, July 2, 2009, Odelya YomTov  wrote:
> >> > > Hi!
> >> > >
> >> > > I would like to have in my applicationresources.properties utf-8
> >> > > charcters. When I write:
> >> > > login.notRecognized = "נא לנסות שנית"
> >> > >
> >> > > and try to save, I get the message
> >> > > Some characters cannot be mapped using ISO-8859-1
> >> > >
> >> > > What tag can I add to it?
> >> > >
> >> > > It's a properties file..
> >> > >
> >> > > Thanks!
> >> > >
> >> > >
> >> > >
> -
> >> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> > > For additional commands, e-mail: user-h...@struts.apache.org
> >> >
> >> > -
> >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> > For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >> --
> >> Wes Wannemacher
> >> Author - Struts 2 In Practice
> >> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> >> http://www.manning.com/wannemacher
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
> >
>
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: applicationresources.properties with utf-8 characters

2009-07-02 Thread Greg Lindholm
This question comes up often so here are some references:

Take a look at the JavaDoc for Properties [1] and PropertyResourceBundle
[2].  They both state that the properties file must be encoded in ISO 8859-1
with Unicode escapes when the file is loaded from an input stream.

Internally Struts calls ResourceBundle.getBundle() [3] to load the bundle
(properties files) which loads them from an input stream.  So if you use
standard Struts facilities to manage your properties bundles then you must
encode them in ISO 8859-1.

[1] http://java.sun.com/javase/6/docs/api/java/util/Properties.html
[2]
http://java.sun.com/javase/6/docs/api/java/util/PropertyResourceBundle.html
[3]
http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html#getBundle(java.lang.String,%20java.util.Locale,%20java.lang.ClassLoader)

On Thu, Jul 2, 2009 at 1:19 AM, Yanto  wrote:

> We change applicationresources_zh.properties to utf 8 in our application,
> and the application can show the chinese character properly in the
> application.
> However we are not changing applicationresources.properties to utf8
>
> On Thu, Jul 2, 2009 at 10:49 AM, Wes Wannemacher  wrote:
>
> > On Wednesday 01 July 2009 21:03:32 Yanto wrote:
> > > Change the file properties, file type to utf8
> > >
> >
> > I am pretty sure that you can only use ISO-8859-1 for properties files. I
> > ran
> > into this once before and the accepted solution is to use the
> native2ascii
> > tool as was previously suggested.
> >
> > -Wes
> >
> > > On Thursday, July 2, 2009, Odelya YomTov  wrote:
> > > > Hi!
> > > >
> > > > I would like to have in my applicationresources.properties utf-8
> > > > charcters. When I write:
> > > > login.notRecognized = "נא לנסות שנית"
> > > >
> > > > and try to save, I get the message
> > > > Some characters cannot be mapped using ISO-8859-1
> > > >
> > > > What tag can I add to it?
> > > >
> > > > It's a properties file..
> > > >
> > > > Thanks!
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > > For additional commands, e-mail: user-h...@struts.apache.org
> > >
> > > -
> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > For additional commands, e-mail: user-h...@struts.apache.org
> >
> > --
> > Wes Wannemacher
> > Author - Struts 2 In Practice
> > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> > http://www.manning.com/wannemacher
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>


Re: compatibility of various versions Tomcat, jdk, and struts2

2009-07-02 Thread Wes Wannemacher
I am using whatever version of Java 6 that ubuntu gives me. I'm pretty
sure it bumped up a version since I started this project, but I point
to /usr/lib/jvm/java-6-sun which symlinks to the specific version
in-play.

I am an IDEA user, but I hide those details behind apache maven. If
you are unfamiliar with Maven, I would suggest you take a long, hard
look at it now, especially since you are starting a project and you
are bringing in Struts 2 / Spring / Hibernate. The details of which
versions are compatible with what are handled for you by maven,
eliminating an otherwise troublesome build process.

Now that I'm at work, I can give you the specific versions -

Struts 2 & all plugins - 2.1.6
Spring and all Spring modules - 2.5.6
Hibernate -
ejb3-persistence - 1.0.2.GA
hibernate-annotations - 3.4.0.GA
hibernate-commons-annotations - 3.1.0.GA
hibernate-core - 3.3.1.GA
hibernate-entity-manager - 3.4.0.GA

Since I am using JPA, I am working hard to make the JPA provider a
deployment detail. So, there is no hard dependency on hibernate
(thanks to Spring).

Although I am using the latest JDK, I have the target jvm set to 1.5.
When I run in tomcat, I issue either tomcat:run to maven, which runs
Tomcat 6.0.16. I have a server that I deploy to when I need to test a
real deployment and it is running Tomcat 6.0.18. I have used Tomcat
5.5.x before this project and I can assure you that Struts 2 / Spring
/ etc. work very well.

Again though, if you haven't looked at maven, I strongly suggest you
do so, learning maven will vastly speed up your dev time.

-Wes


On Thu, Jul 2, 2009 at 8:57 AM, Dimitrios
Christodoulakis wrote:
> Thanks Wes,
>
> Latest versions are always better to use for up to date compatibility.
>
> Are you using Struts 2.1.6, Spring 2.5.6 and the latest hibernate jpa
> with the bit older versions of jdk1.5.0_17 and Tomcat5.5.27 and
> Eclipse?
>
> If there are no known issues (based on versioning only) I'd be very
> glad to use the latest struts2,spring and hibernate with the slightly
> older jdk and tomcat.
>
> Thanks for your answer.
>
> On Wed, Jul 1, 2009 at 10:00 PM, Wes Wannemacher wrote:
>> On Wednesday 01 July 2009 21:56:17 Dimitrios Christodoulakis wrote:
>>> Hello,
>>>
>>> while doing development I am conforming to the versions provided by
>>> our hosting service. I am trying to select the most suitable version
>>> of the framework, java and tomcat so, just wanted to ask if there are
>>> known compatibility issues with the following combination:
>>>
>>> Fixed:
>>> jdk1.5.0_17
>>> Tomcat5.5
>>>
>>> Next I want to select Struts2, Spring and Hibernate. So before going
>>> ahead, downloading all the jar files, would you recommend specific
>>> versions to go with the given specification above?
>>>
>>> struts2.1.6 or struts2.0.14 ?
>>>
>>> would the current/latest version of spring and hibernate 3 work with
>>> the above tomcat and jdk? Or which versions are appropriate?
>>>
>>> struts 2 comes with the required spring jars (just for dependency
>>> injection only) included if I am not mistaken.
>>> Hibernate 3 ?
>>> Is there an online resource somewhere where there is such matching of
>>> versions discussed, with recommendations given just which versions of
>>> which components to select?
>>>
>>> If anyone could suggest a working combination, would help a lot.
>>>
>>> Thanks to all.
>>>
>>
>> Have you considered using apache maven? I mean, it sort of builds up a
>> dependency graph for you, based on the artifacts you want. That being said, 
>> in
>> today's world of loose coupling, most of these libraries work together 
>> through
>> interfaces and such so that you can pretty much pick and choose which 
>> versions
>> you want. I am currently using Struts 2.1.6, Spring 2.5.6 and whatever the
>> latest versions of hibernate's JPA implementation was in early May.
>>
>> As far as the choice between 2.1 and 2.0 for Struts, I would suggest going
>> with 2.1 if you are starting a new app. New plugins, etc. are likely to be
>> built against 2.1, so you will be doing yourself a favor by starting with 
>> 2.1.
>>
>> -Wes
>>
>>
>> --
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For addit

Re: applicationresources.properties with utf-8 characters

2009-07-02 Thread Wes Wannemacher
I'm not going to argue about whether or not it will work, but if you
look at the Javadocs for java.util.Properties ->

http://java.sun.com/javase/6/docs/api/java/util/Properties.html

It does specifically state the the input (and output) streams are
iso-8859-1 and that unicode chars should use the \u generated by
the native2ascii tool. If another method works for you, that's good,
but I would proceed with caution because you might just be lucky right
now and screwed the next time you upgrade your jre/jdk.

-Wes

On Thu, Jul 2, 2009 at 1:19 AM, Yanto wrote:
> We change applicationresources_zh.properties to utf 8 in our application,
> and the application can show the chinese character properly in the
> application.
> However we are not changing applicationresources.properties to utf8
>
> On Thu, Jul 2, 2009 at 10:49 AM, Wes Wannemacher  wrote:
>
>> On Wednesday 01 July 2009 21:03:32 Yanto wrote:
>> > Change the file properties, file type to utf8
>> >
>>
>> I am pretty sure that you can only use ISO-8859-1 for properties files. I
>> ran
>> into this once before and the accepted solution is to use the native2ascii
>> tool as was previously suggested.
>>
>> -Wes
>>
>> > On Thursday, July 2, 2009, Odelya YomTov  wrote:
>> > > Hi!
>> > >
>> > > I would like to have in my applicationresources.properties utf-8
>> > > charcters. When I write:
>> > > login.notRecognized = "נא לנסות שנית"
>> > >
>> > > and try to save, I get the message
>> > > Some characters cannot be mapped using ISO-8859-1
>> > >
>> > > What tag can I add to it?
>> > >
>> > > It's a properties file..
>> > >
>> > > Thanks!
>> > >
>> > >
>> > > -
>> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > > For additional commands, e-mail: user-h...@struts.apache.org
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>>
>> --
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: compatibility of various versions Tomcat, jdk, and struts2

2009-07-02 Thread Dimitrios Christodoulakis
Thanks Wes,

Latest versions are always better to use for up to date compatibility.

Are you using Struts 2.1.6, Spring 2.5.6 and the latest hibernate jpa
with the bit older versions of jdk1.5.0_17 and Tomcat5.5.27 and
Eclipse?

If there are no known issues (based on versioning only) I'd be very
glad to use the latest struts2,spring and hibernate with the slightly
older jdk and tomcat.

Thanks for your answer.

On Wed, Jul 1, 2009 at 10:00 PM, Wes Wannemacher wrote:
> On Wednesday 01 July 2009 21:56:17 Dimitrios Christodoulakis wrote:
>> Hello,
>>
>> while doing development I am conforming to the versions provided by
>> our hosting service. I am trying to select the most suitable version
>> of the framework, java and tomcat so, just wanted to ask if there are
>> known compatibility issues with the following combination:
>>
>> Fixed:
>> jdk1.5.0_17
>> Tomcat5.5
>>
>> Next I want to select Struts2, Spring and Hibernate. So before going
>> ahead, downloading all the jar files, would you recommend specific
>> versions to go with the given specification above?
>>
>> struts2.1.6 or struts2.0.14 ?
>>
>> would the current/latest version of spring and hibernate 3 work with
>> the above tomcat and jdk? Or which versions are appropriate?
>>
>> struts 2 comes with the required spring jars (just for dependency
>> injection only) included if I am not mistaken.
>> Hibernate 3 ?
>> Is there an online resource somewhere where there is such matching of
>> versions discussed, with recommendations given just which versions of
>> which components to select?
>>
>> If anyone could suggest a working combination, would help a lot.
>>
>> Thanks to all.
>>
>
> Have you considered using apache maven? I mean, it sort of builds up a
> dependency graph for you, based on the artifacts you want. That being said, in
> today's world of loose coupling, most of these libraries work together through
> interfaces and such so that you can pretty much pick and choose which versions
> you want. I am currently using Struts 2.1.6, Spring 2.5.6 and whatever the
> latest versions of hibernate's JPA implementation was in early May.
>
> As far as the choice between 2.1 and 2.0 for Struts, I would suggest going
> with 2.1 if you are starting a new app. New plugins, etc. are likely to be
> built against 2.1, so you will be doing yourself a favor by starting with 2.1.
>
> -Wes
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Interceptor Execution Tracing

2009-07-02 Thread Paweł Wielgus
Hi Stephen,
turn debug on by adding ?profiling=true after any action address in
browser and turning devMode.
Read more here:
http://struts.apache.org/2.1.6/struts2-core/apidocs/com/opensymphony/xwork2/util/profiling/UtilTimerStack.html

Best greetings,
Paweł Wielgus.


2009/7/2 Stephen Turner :
> Is it possible to easily see a record of all the interceptors executed
> during an action invocation? I want to see the actual interceptors that are
> executed, not the config (which shows me what I _think_ is happening).
>
> Thanks,
> Steve
>
> --
> Stephen Turner
> Sr. Analyst/Programmer
> MIT IS&T - SAIS
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Interceptor Execution Tracing

2009-07-02 Thread Stephen Turner
Is it possible to easily see a record of all the interceptors executed  
during an action invocation? I want to see the actual interceptors that  
are executed, not the config (which shows me what I _think_ is happening).


Thanks,
Steve

--
Stephen Turner
Sr. Analyst/Programmer
MIT IS&T - SAIS

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Hello Everybody, I am getting exception Action Class not found

2009-07-02 Thread Nagesh Reddy K

Action class [java.struts2.examples.chapter1.HelloWorld] not found - action -
file:/D:/tomcat%205.0/webapps/struts2/WEB-INF/classes/java/struts2/examples/chapter1/chapter1struts.xml:9:74
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:374)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:329)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:429)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
at
org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Jul 2, 2009 3:39:13 PM org.apache.catalina.core.StandardContext start
-- 
View this message in context: 
http://www.nabble.com/Hello-Everybody%2C-I-am-getting-exception-Action-Class-not-found-tp24304486p24304486.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 - dojo anchor error

2009-07-02 Thread Dave Newton

Kishan G. Chellap Paandy wrote:

Referring to: http://struts.apache.org/2.1.6/docs/dojo-anchor.html

"There's a bug in IE6/IE7 which makes impossible to use the target's
attribute with a parent Div, because such Div's content's are
overwritten with the tag's loadingText. Resulting in an "undefined"
message in the content's, instead of the result of the request.

One possible alternative is to set showLoadingText="false" and set
the indicator attribute to an element showing the desired loading
text or image (outside the div)."

The alternative mentioned above is also not working.

Is there is any solution for this apart from the mentioned
alternative?


What specific issue are you having? AFAIK the anchor tag works.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org