Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 14 Aug 2010 19:13:55 -0000 Issue 9144

user-digest-help

2010-08-14


Author LoginPost Reply

user Digest 14 Aug 2010 19:13:55 -0000 Issue 9144

Topics (messages 207175 through 207196):

ibatis is not maintained by apache. So what other db processing plugins combined great with struts2 for db operations
 207175 by: Emi Lu
 207176 by: Cimballi
 207177 by: Wendy Smoak
 207178 by: Emi Lu

Does Spring3 support mybatis3.x?
 207179 by: Emi Lu
 207180 by: Cimballi
 207181 by: Dave Newton
 207182 by: Frans Thamura
 207183 by: Cimballi
 207184 by: Frans Thamura
 207185 by: Cimballi

Re: how to remove .action suffix in struts 2.1
 207186 by: Ruben Cepeda
 207187 by: Dave Newton

Multiple field with same name
 207188 by: Franz Wong
 207190 by: Franz Wong
 207196 by: Franz Wong

[ANN]VTD-XML 2.9
 207189 by: Jimmy Zhang

Add ValueStack Object In Interceptor
 207191 by: CRANFORD, CHRIS
 207192 by: Cimballi
 207193 by: CRANFORD, CHRIS

[OT] Friday Quiz - Geek or Hack?
 207194 by: Burton Rhodes
 207195 by: Martin Gainty

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------


Attachment: user_207175.ezm (zipped)
Good afternoon,

http://ibatis.apache.org/index.html shows that "2010/06/16 - Apache
iBATIS has been retired".

Can you suggest other db processing plugins combined great with struts2
please?

Personally, I like ibatis a lot; it's a pith that apache does not
support it anymore.

Thanks a lot!

--
Lu Ying




Attachment: user_207176.ezm (zipped)
Why worrying so much ? iBatis is still alive : http://www.mybatis.org/

Cimballi


On Thu, Aug 12, 2010 at 1:24 PM, Emi Lu <emilu@(protected):
> Good afternoon,
>
> http://ibatis.apache.org/index.html shows that "2010/06/16 - Apache iBATIS
> has been retired".
>
> Can you suggest other db processing plugins combined great with struts2
> please?
>
> Personally, I like ibatis a lot; it's a pith that apache does not support it
> anymore.
>
> Thanks a lot!
>
> --
> Lu Ying
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--
Cimballi
Freelance - JAVA J2EE project leader
http://cimballi.elance.com/


Attachment: user_207177.ezm (zipped)
On Thu, Aug 12, 2010 at 2:24 PM, Emi Lu <emilu@(protected):
> http://ibatis.apache.org/index.html shows that "2010/06/16 - Apache iBATIS
> has been retired".
> Can you suggest other db processing plugins combined great with struts2
> please?
> Personally, I like ibatis a lot; it's a pith that apache does not support it
> anymore.

You can still use it... the people who work on iBatis decided to take
it elsewhere, and the name changed, that's all.

Cimballi already provided a link to http://www.mybatis.org .

--
Wendy


Attachment: user_207178.ezm (zipped)
On 08/12/2010 02:39 PM, Wendy Smoak wrote:
> On Thu, Aug 12, 2010 at 2:24 PM, Emi Lu<emilu@(protected):
>> http://ibatis.apache.org/index.html shows that "2010/06/16 - Apache iBATIS
>> has been retired".
>> Can you suggest other db processing plugins combined great with struts2
>> please?
>> Personally, I like ibatis a lot; it's a pith that apache does not support it
>> anymore.
>
> You can still use it... the people who work on iBatis decided to take
> it elsewhere, and the name changed, that's all.
>
> Cimballi already provided a link to http://www.mybatis.org .
>


Good to hear it! Since I like much better of ibatis comparing to hibernate.

Thank you for letting me know ibatis is still alive!
--
Lu Ying


Attachment: user_207179.ezm (zipped)
Hello,

Does anyone know whether spring3 supports mybatis3.x?

http://www.apacheserver.net/No-MyBatis-support-in-Spring-3-x-at204449.htm


thank you,
--
Lu Ying



Attachment: user_207180.ezm (zipped)
Lu, this is a Struts ML, not a Spring or iBatis ML.

A simple search in Spring documentation would have given you the answer :
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/orm.html#orm-ibatis

Cimballi


On Thu, Aug 12, 2010 at 3:12 PM, Emi Lu <emilu@(protected):
> Hello,
>
> Does anyone know whether spring3 supports mybatis3.x?
>
> http://www.apacheserver.net/No-MyBatis-support-in-Spring-3-x-at204449.htm
>
>
> thank you,
> --
> Lu Ying
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--
Cimballi
Freelance - JAVA J2EE project leader
http://cimballi.elance.com/


Attachment: user_207181.ezm (zipped)
I'd consider asking on the Spring or MyBatis lists, no?

The last I heard (a few months ago) Spring 3 didn't support iBatis 3.

Dave

On Thu, Aug 12, 2010 at 4:12 PM, Emi Lu <emilu@(protected):

> Hello,
>
> Does anyone know whether spring3 supports mybatis3.x?
>
> http://www.apacheserver.net/No-MyBatis-support-in-Spring-3-x-at204449.htm
>
>
> thank you,
> --
> Lu Ying
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_207182.ezm (zipped)
hi all

talking spring3

any idea to make struts 2.21 using spring 3 rather 2.5.6?

F


Attachment: user_207183.ezm (zipped)
Frank, I think that you can simply replace the Spring 2.5.6 jars by
the 3.0.x jars.

Cimballi


On Thu, Aug 12, 2010 at 5:32 PM, Frans Thamura <frans@(protected):
> hi all
>
> talking spring3
>
> any idea to make struts 2.21 using spring 3 rather 2.5.6?
>
> F
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--
Cimballi
Freelance - JAVA J2EE project leader
http://cimballi.elance.com/


Attachment: user_207184.ezm (zipped)
We found several conflict in the maven tree

And got mix spring mvc and struts2 make the app crash

Wanna review the code?


(m)

-----Original Message-----
From: Cimballi <cimballi@(protected)>
Sender: cimballi.cimballi@(protected)
Date: Thu, 12 Aug 2010 17:46:52
To: Struts Users Mailing List<user@(protected)>
Reply-To: "Struts Users Mailing List" <user@(protected)>
Subject: Re: Does Spring3 support mybatis3.x?

Frank, I think that you can simply replace the Spring 2.5.6 jars by
the 3.0.x jars.

Cimballi


On Thu, Aug 12, 2010 at 5:32 PM, Frans Thamura <frans@(protected):
> hi all
>
> talking spring3
>
> any idea to make struts 2.21 using spring 3 rather 2.5.6?
>
> F
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--
Cimballi
Freelance - JAVA J2EE project leader
http://cimballi.elance.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


Attachment: user_207185.ezm (zipped)
Are you sure the crash is related to the dependencies ?
Below is a what I used on a project, mixing Struts 2.1.8.1 and Spring 3.0.2.

Cimballi

<dependencies>
  <!-- scope compile -->
  <dependency>
   <groupId>com.opensymphony</groupId>
   <artifactId>xwork</artifactId>
   <version>2.1.3</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-beans</artifactId>
   <version>${spring.version}</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context</artifactId>
   <version>${spring.version}</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context-support</artifactId>
   <version>${spring.version}</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-core</artifactId>
   <version>${spring.version}</version>
   <scope>compile</scope>
  </dependency>

  <!-- scope provided -->
  <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>servlet-api</artifactId>
   <version>2.5</version>
   <scope>provided</scope>
  </dependency>
  <dependency>
   <groupId>javax.servlet.jsp</groupId>
   <artifactId>jsp-api</artifactId>
   <version>2.0</version>
   <scope>provided</scope>
  </dependency>

  <!-- scope runtime -->
  <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>jstl</artifactId>
   <version>1.2</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>org.apache.struts</groupId>
   <artifactId>struts2-core</artifactId>
   <version>2.1.8.1</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>org.apache.struts</groupId>
   <artifactId>struts2-spring-plugin</artifactId>
   <version>2.1.8.1</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-aop</artifactId>
   <version>${spring.version}</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-orm</artifactId>
   <version>${spring.version}</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-test</artifactId>
   <version>${spring.version}</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-tx</artifactId>
   <version>${spring.version}</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-web</artifactId>
   <version>${spring.version}</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>taglibs</groupId>
   <artifactId>standard</artifactId>
   <version>1.1.2</version>
   <scope>runtime</scope>
  </dependency>
</dependencies>


On Thu, Aug 12, 2010 at 6:00 PM, Frans Thamura <frans@(protected):
> We found several conflict in the maven tree
>
> And got mix spring mvc and struts2 make the app crash
>
> Wanna review the code?
>
>
> (m)
>
> -----Original Message-----
> From: Cimballi <cimballi@(protected)>
> Sender: cimballi.cimballi@(protected)
> Date: Thu, 12 Aug 2010 17:46:52
> To: Struts Users Mailing List<user@(protected)>
> Reply-To: "Struts Users Mailing List" <user@(protected)>
> Subject: Re: Does Spring3 support mybatis3.x?
>
> Frank, I think that you can simply replace the Spring 2.5.6 jars by
> the 3.0.x jars.
>
> Cimballi
>
>
> On Thu, Aug 12, 2010 at 5:32 PM, Frans Thamura <frans@(protected):
>> hi all
>>
>> talking spring3
>>
>> any idea to make struts 2.21 using spring 3 rather 2.5.6?
>>
>> F
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> Cimballi
> Freelance - JAVA J2EE project leader
> http://cimballi.elance.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--
Cimballi
Freelance - JAVA J2EE project leader
http://cimballi.elance.com/


Attachment: user_207186.ezm (zipped)

If you haven't done so yet you'll have to create a struts.properties file and override it. Here http://struts.apache.org/2.0.11/docs/strutsproperties.html

-Ruben Cepeda



> Date: Wed, 11 Aug 2010 14:57:33 +0530
> Subject: how to remove .action suffix in struts 2.1
> From: mail.supratim@(protected)
> To: user@(protected)
>
> Hi all,
> I need to remove the .action suffix associated with the actions.
> Please advise how to do this.
> Thanks and regards,
> Supratim
           

Attachment: user_207187.ezm (zipped)
Again, XML configuration is the preferred mechanism.

Dave

On Thursday, August 12, 2010, Ruben Cepeda <ruben_cepeda@(protected):
>
> If you haven't done so yet you'll have to create a struts.properties file and override it.  Here http://struts.apache.org/2.0.11/docs/strutsproperties.html
>
> -Ruben Cepeda
>
>
>
>> Date: Wed, 11 Aug 2010 14:57:33 +0530
>> Subject: how to remove .action suffix in struts 2.1
>> From: mail.supratim@(protected)
>> To: user@(protected)
>>
>> Hi all,
>> I need to remove the .action suffix associated with the actions.
>> Please advise how to do this.
>> Thanks and regards,
>> Supratim
>


Attachment: user_207188.ezm (zipped)
Hi,

I would like to show a list of user and enable the change of the name. I
don't know if there is any mechanism which struts provided to do that.

class User {
  private Long id;
  private String name;

  // getters and setters
}

<form action="updateUser">
  <table>
  <s:iterator value="users">
   <tr>
    <td>
      <s:textfield name="name"/>
    </td>
   </tr>
  </s:iterator>
  </table>
  <s:submit/>
</form>

Thanks.
Franz

Attachment: user_207190.ezm (zipped)
I found the "Type conversion" page from struts official web site and I
followed the "Advanced example for indexed Lists and Maps", but I cannot get
it work.

Then I followed this thread [1]. However, my list only contains 1 null
object.

Franz

[1]
http://old.nabble.com/-S2--Beans-list-in-Dynamic-form-and-ParametersInterceptor-problem-td15016850.html

On Fri, Aug 13, 2010 at 2:13 PM, Franz Wong <franzwong@(protected):

> Hi,
>
> I would like to show a list of user and enable the change of the name. I
> don't know if there is any mechanism which struts provided to do that.
>
> class User {
>   private Long id;
>   private String name;
>
>   // getters and setters
> }
>
> <form action="updateUser">
>   <table>
>   <s:iterator value="users">
>     <tr>
>      <td>
>       <s:textfield name="name"/>
>      </td>
>     </tr>
>   </s:iterator>
>   </table>
>   <s:submit/>
> </form>
>
> Thanks.
> Franz
>

Attachment: user_207196.ezm (zipped)
I have solved the problem. The thread I referenced is correct.

Franz

On Fri, Aug 13, 2010 at 6:00 PM, Franz Wong <franzwong@(protected):

> I found the "Type conversion" page from struts official web site and I
> followed the "Advanced example for indexed Lists and Maps", but I cannot get
> it work.
>
> Then I followed this thread [1]. However, my list only contains 1 null
> object.
>
> Franz
>
> [1]
> http://old.nabble.com/-S2--Beans-list-in-Dynamic-form-and-ParametersInterceptor-problem-td15016850.html
>
>
> On Fri, Aug 13, 2010 at 2:13 PM, Franz Wong <franzwong@(protected):
>
>> Hi,
>>
>> I would like to show a list of user and enable the change of the name. I
>> don't know if there is any mechanism which struts provided to do that.
>>
>> class User {
>>   private Long id;
>>   private String name;
>>
>>   // getters and setters
>> }
>>
>> <form action="updateUser">
>>   <table>
>>   <s:iterator value="users">
>>     <tr>
>>      <td>
>>       <s:textfield name="name"/>
>>      </td>
>>     </tr>
>>   </s:iterator>
>>   </table>
>>   <s:submit/>
>> </form>
>>
>> Thanks.
>> Franz
>>
>
>

Attachment: user_207189.ezm (zipped)
VTD-XML 2.9, the next generation XML Processing API for SOA and Cloud computing, has been released. Please visit https://sourceforge.net/projects/vtd-xml/files/ to download the latest version.
a.. Strict Conformance
  a.. VTD-XML now fully conforms to XML namespace 1.0 spec
b.. Performance Improvement
  a.. Significantly improved parsing performance for small XML files
c.. Expand Core VTD-XML API
  a.. Adds getPrefixString(), and toNormalizedString2()
d.. Cutting/Splitting
  a.. Adds getSiblingElementFragment()
e.. A number of bug fixes and code enhancement including:
  a.. Fixes a bug for reading very large XML documents on some platforms
  b.. Fixes a bug in parsing processing instruction
  c.. Fixes a bug in outputAndReparse()

Attachment: user_207191.ezm (zipped)
I am trying to add an object to the ValueStack prior to invoking the
action; however my action is not able to see the added value in the
stack. What is wrong with this code?

// Interceptor method
@Override
public String intercept(ActionInvocation invocation)
throws Exception {
ValueStack stack = ActionContext.getContext().getValueStack();
stack.setValue("my.test.key", new String("Hello World"));
return invocation.invoke();
}

// In Action Class
public String testMethod()
throws Exception {
String s = (String)
ActionContext.getContext().getValueStack().findValue("my.test.key");
log.debug("my.test.key : " + (s != null ? s : "<null>");
}

I constantly get "my.test.key : <null>".

Why?

Chris



Attachment: user_207192.ezm (zipped)
Chris, the ParametersInterceptor clears the ValueStack, so depending
on your stack maybe that's what's happening.

Cimballi


On Fri, Aug 13, 2010 at 1:09 PM, CRANFORD, CHRIS
<Chris.Cranford@(protected):
> I am trying to add an object to the ValueStack prior to invoking the
> action; however my action is not able to see the added value in the
> stack.  What is wrong with this code?
>
> // Interceptor method
> @Override
> public String intercept(ActionInvocation invocation)
> throws Exception {
>  ValueStack stack = ActionContext.getContext().getValueStack();
>  stack.setValue("my.test.key", new String("Hello World"));
>  return invocation.invoke();
> }
>
> // In Action Class
> public String testMethod()
> throws Exception {
>  String s = (String)
> ActionContext.getContext().getValueStack().findValue("my.test.key");
>  log.debug("my.test.key : " + (s != null ? s : "<null>");
> }
>
> I constantly get "my.test.key : <null>".
>
> Why?
>
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--
Cimballi
Freelance - JAVA J2EE project leader
http://cimballi.elance.com/


Attachment: user_207193.ezm (zipped)
Ah that is likely the case.

Thanks!
Chris

> -----Original Message-----
> From: cimballi.cimballi@(protected)]
> On Behalf Of Cimballi
> Sent: Friday, August 13, 2010 1:43 PM
> To: Struts Users Mailing List
> Subject: Re: Add ValueStack Object In Interceptor
>
> Chris, the ParametersInterceptor clears the ValueStack, so depending
> on your stack maybe that's what's happening.
>
> Cimballi
>
>
> On Fri, Aug 13, 2010 at 1:09 PM, CRANFORD, CHRIS
> <Chris.Cranford@(protected):
> > I am trying to add an object to the ValueStack prior to invoking the
> > action; however my action is not able to see the added value in the
> > stack.  What is wrong with this code?
> >
> > // Interceptor method
> > @Override
> > public String intercept(ActionInvocation invocation)
> > throws Exception {
> >  ValueStack stack = ActionContext.getContext().getValueStack();
> >  stack.setValue("my.test.key", new String("Hello World"));
> >  return invocation.invoke();
> > }
> >
> > // In Action Class
> > public String testMethod()
> > throws Exception {
> >  String s = (String)
> > ActionContext.getContext().getValueStack().findValue("my.test.key");
> >  log.debug("my.test.key : " + (s != null ? s : "<null>");
> > }
> >
> > I constantly get "my.test.key : <null>".
> >
> > Why?
> >
> > Chris
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
> --
> Cimballi
> Freelance - JAVA J2EE project leader
> http://cimballi.elance.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


Attachment: user_207194.ezm (zipped)
Hey it's Friday... Are you a geek or a hack?

http://www.nerdtests.com/ft_cg.php

...and if any of you score over 90%, you need to get out more often!


Attachment: user_207195.ezm (zipped)

57475620444F45542044415645
204F4E4C5920414E53574552
20484953204F574E205155455354494F4E5421

______________________________________________
4E4F20434F4D4D454E54




> Date: Fri, 13 Aug 2010 15:29:28 -0500
> Subject: [OT] Friday Quiz - Geek or Hack?
> From: burtonrhodes@(protected)
> To: user@(protected)
>
> Hey it's Friday... Are you a geek or a hack?
>
> http://www.nerdtests.com/ft_cg.php
>
> ...and if any of you score over 90%, you need to get out more often!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
           
©2008 gg3721.com - Jax Systems, LLC, U.S.A.