Re: AW: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread MBrewer
Websphere 4 is 2.2 not 2.3 compatible.

Mike 




Oliver Thiel [EMAIL PROTECTED] 
16/01/04 14:18
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
AW: Tomcat -- IBM WebSphere Application Server 4.x






Thanks for your replay!


But that was not exactly what I was looking for ;)
Maybe my description wasn't clear enough!
So I'll try again:

1. I can create a WAR file using ANT (see Appendix: ANT)
2. I can deploy it in Tomcat
3. I can not deploy it in WebSphere!
   Error message: missing DTD ~ deployment descriptor
   Although I defined my web.xml correct (I think - see Appendix:
web.xml)

I searched the IBM website for a document which describes the process of
migrating a tomcat app 2 WebSphere, but I could not find any.

Again:
Has anyone done that before?
Or/And has anyone a HowTo which explains the process?



Thanks
Oliver 



Appendix: web.xml
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
 

Appendix: ANT

!-- Create binary distribution --
target name=war depends=build
  mkdir dir=${build.dir}/
  war
basedir=../
warfile=${build.dir}/${project.distname}.war
webxml=web.xml
exclude name=WEB-INF/${build.dir}/**/
exclude name=WEB-INF/src/**/
exclude name=WEB-INF/*exadel*/
exclude name=WEB-INF/*.pex/
exclude name=WEB-INF/*.rex/
exclude name=WEB-INF/web.xml/
   /war

/target

target name=deploy depends=war
   delete file=${deploy.dir}/${project.distname}.war/
   delete dir=${deploy.dir}/${project.distname}/
   copy file=${build.dir}/${project.distname}.war
todir=${deploy.dir}/
/target 

-Ursprüngliche Nachricht-
Von: Srivastava, Ravi Prakash [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 12:05
An: 'Struts Users Mailing List'
Betreff: RE: Tomcat -- IBM WebSphere Application Server 4.x

Hi,

U can make war file through the the java command jar -cvf xyz.war *.*,
it will take all the files from the current root and make a war.
Now u can deploy this war file to ur WAS.

exam :

c:\app\*.jsp
c:\app\imapp\*

Note : imapp is the java package name.

go to c:\app\jar -cvf app.war *.*

Thanx

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:24 PM
To: Struts Users Mailing List
Subject: RE: Tomcat -- IBM WebSphere Application Server 4.x




Out of the box, WAS wants an EAR file (Enterprise Application aRchive)
and
not a WAR file. You could create a new 'default' EAR project and add the
web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this
sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do
you
use a standalone WAS server. The Admin tool should help you in the
latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat -- IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.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]
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to
this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or
any
action or omission taken by you in reliance on it, is prohibited and may
be
unlawful.  Please immediately contact the sender if you have received
this
message in error. Thank you.

-
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: AW: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread MBrewer
aka :

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

not :
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

Mike 





Oliver Thiel [EMAIL PROTECTED] 
16/01/04 14:18
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
AW: Tomcat -- IBM WebSphere Application Server 4.x






Thanks for your replay!


But that was not exactly what I was looking for ;)
Maybe my description wasn't clear enough!
So I'll try again:

1. I can create a WAR file using ANT (see Appendix: ANT)
2. I can deploy it in Tomcat
3. I can not deploy it in WebSphere!
   Error message: missing DTD ~ deployment descriptor
   Although I defined my web.xml correct (I think - see Appendix:
web.xml)

I searched the IBM website for a document which describes the process of
migrating a tomcat app 2 WebSphere, but I could not find any.

Again:
Has anyone done that before?
Or/And has anyone a HowTo which explains the process?



Thanks
Oliver 



Appendix: web.xml
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
 

Appendix: ANT

!-- Create binary distribution --
target name=war depends=build
  mkdir dir=${build.dir}/
  war
basedir=../
warfile=${build.dir}/${project.distname}.war
webxml=web.xml
exclude name=WEB-INF/${build.dir}/**/
exclude name=WEB-INF/src/**/
exclude name=WEB-INF/*exadel*/
exclude name=WEB-INF/*.pex/
exclude name=WEB-INF/*.rex/
exclude name=WEB-INF/web.xml/
   /war

/target

target name=deploy depends=war
   delete file=${deploy.dir}/${project.distname}.war/
   delete dir=${deploy.dir}/${project.distname}/
   copy file=${build.dir}/${project.distname}.war
todir=${deploy.dir}/
/target 

-Ursprüngliche Nachricht-
Von: Srivastava, Ravi Prakash [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 12:05
An: 'Struts Users Mailing List'
Betreff: RE: Tomcat -- IBM WebSphere Application Server 4.x

Hi,

U can make war file through the the java command jar -cvf xyz.war *.*,
it will take all the files from the current root and make a war.
Now u can deploy this war file to ur WAS.

exam :

c:\app\*.jsp
c:\app\imapp\*

Note : imapp is the java package name.

go to c:\app\jar -cvf app.war *.*

Thanx

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:24 PM
To: Struts Users Mailing List
Subject: RE: Tomcat -- IBM WebSphere Application Server 4.x




Out of the box, WAS wants an EAR file (Enterprise Application aRchive)
and
not a WAR file. You could create a new 'default' EAR project and add the
web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this
sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do
you
use a standalone WAS server. The Admin tool should help you in the
latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat -- IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.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]
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to
this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or
any
action or omission taken by you in reliance on it, is prohibited and may
be
unlawful.  Please immediately contact the sender if you have received
this
message in error. Thank you.

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



Most productive Struts Framework :

2003-11-24 Thread MBrewer

Which of the Struts framworks would you think is the most productive for
doing administrative screens over a database?

Mike






The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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



Re: wanted: library for making one jsp page work for many forms

2003-11-17 Thread MBrewer

Has anyone come up with a way of doing this?

Mike



|-+
| |   Janice   |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   06/11/2003 05:53 |
| |   PM   |
| |   Please respond to|
| |   Struts Users|
| |   Mailing List|
|-+
  
|
  |
|
  |   To:   [EMAIL PROTECTED]  
   |
  |   cc:  
|
  |   Subject:  wanted: library for making one jsp page work for many forms
|
  
|




Hi Gang,

I'm going to be developing a couple of applications in struts, which I am
new to.  I will need dozens of simple forms for maintaining things like
code
tables in the database.  It seems silly to me to have a distinct .jsp page
for each of these forms.  I was wanting to build one .jsp page that would
handle a number of these forms for me.  I imagine I could build a custom
tag
library for this.

However, never being one to re-invent the wheel, I thought I'd ask first
whether this is a standard extension/library already, or if someone has
code
they'd like to share.

I'm also looking for a similar solution for a .jsp page that displays a
list
of codes and values, with links to an edit or delete form.

Thanks in advance,
J


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








The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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



Re: R: who want to join xmoon project ?

2003-11-13 Thread MBrewer

I noticed that the example has a couple of Hibernate xml files in it aswell
?

Mike



|-+
| |   Mario  |
| |   [EMAIL PROTECTED]|
| |   idea.com|
| ||
| |   13/11/2003 11:14 |
| |   AM   |
| |   Please respond to|
| |   Struts Users|
| |   Mailing List|
|-+
  
--|
  |
  |
  |   To:   [EMAIL PROTECTED]
 |
  |   cc:  
  |
  |   Subject:  R: who want to join xmoon project ?
  |
  
--|




Added new documentation about the login example. A quick tour of xmoon.



http://www.xmoon.it



-Messaggio originale-
Da: Mario [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 12 novembre 2003 14.30
A: '[EMAIL PROTECTED]'
Oggetto: who want to join xmoon project ?



It's an opensource project that speed up your development time.

http://www.xmoon.it http://www.xmoon.it/



contact me.














The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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



XML importing :

2003-11-11 Thread MBrewer

Sorry for a unrelated question, but is there a easy way of taking xml data
and importing it into a relational database some like


person
  nameMike/name
/person

gets translated as

insert into user values (Mike)

etc..

Mike






The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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



Re: wanted: library for making one jsp page work for many forms

2003-11-06 Thread MBrewer

I am working on a similar kin of solution, where you only code the Business
Objects (in xml) once. This
will then generate the lists/edits/deletes/search etc.. at runtime. We have
this framework currently working
in another language, i was hoping there would be a struts equivalent

Mike



|-+
| |   Janice   |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   06/11/2003 05:53 |
| |   PM   |
| |   Please respond to|
| |   Struts Users|
| |   Mailing List|
|-+
  
|
  |
|
  |   To:   [EMAIL PROTECTED]  
   |
  |   cc:  
|
  |   Subject:  wanted: library for making one jsp page work for many forms
|
  
|




Hi Gang,

I'm going to be developing a couple of applications in struts, which I am
new to.  I will need dozens of simple forms for maintaining things like
code
tables in the database.  It seems silly to me to have a distinct .jsp page
for each of these forms.  I was wanting to build one .jsp page that would
handle a number of these forms for me.  I imagine I could build a custom
tag
library for this.

However, never being one to re-invent the wheel, I thought I'd ask first
whether this is a standard extension/library already, or if someone has
code
they'd like to share.

I'm also looking for a similar solution for a .jsp page that displays a
list
of codes and values, with links to an edit or delete form.

Thanks in advance,
J


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








The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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



Re: Session Times Out

2003-11-03 Thread MBrewer





Make a custom tag like so :



Create a tld file with this in  it :

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd;
taglib
  tlibversion1.0/tlibversion
  jspversion1.1/jspversion
  shortnameTag Libs/shortname
  infoustom Tags/info
  tag
namecheckLogin/name
tagclasscom.cpaglobal.cpadirect.tag.CheckLogin/tagclass
bodycontentempty/bodycontent
infoChecks the login status of a user and forward them to the
login page if not logged in./info
attribute
  nameloginPage/name
  requiredfalse/required
  rtexprvaluefalse/rtexprvalue
/attribute
attribute
  namedefault/name
  requiredfalse/required
  rtexprvaluefalse/rtexprvalue
/attribute
  /tag
/taglib



Code for the custom tag :

package com.cpaglobal.cpadirect.tag;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import com.cpaglobal.cpadirect.applicationlogic.SessionVariables;
import com.cpaglobal.cpadirect.applicationlogic.User;


public class CheckLogin extends TagSupport {


  private String loginPage = /JSP/Timeout.jsp;


  public void setLoginPage(String loginPage) {
this.loginPage = loginPage;
  }

  public int doStartTag() throws JspException {
 return (SKIP_BODY);
  }

  public int doEndTag() {
try {
  HttpSession session = pageContext.getSession();
  if (session != null) {
User user = (User)
session.getAttribute(SessionVariables.SESSION_LOGGED_ON_USER);
if (user == null) {
  pageContext.forward(loginPage);
  return (SKIP_PAGE);
}
  } else {
pageContext.forward(loginPage);
return (SKIP_PAGE);
  }
} catch(ServletException e) {
  new JspException(e.toString());
} catch(IOException e) {
  new JspException(e.toString());
}
return (EVAL_PAGE);
  }

}

How to use it :

%@ taglib uri=/WEB-INF/cpa.tld prefix=cpa%
cpa:checkLogin/

Mike




|-+
| |   Caroline Jen |
| |   [EMAIL PROTECTED]|
| |   .com|
| ||
| |   03/11/2003 06:23 |
| |   AM   |
| |   Please respond to|
| |   Struts Users|
| |   Mailing List|
|-+
  
--|
  |
  |
  |   To:   [EMAIL PROTECTED]  
 |
  |   cc:  
  |
  |   Subject:  Session Times Out  
  |
  
--|




I check if session expires for each action in the
application.  If the session times out, I forward the
user to index.jsp so that the user can log on again.

How do I inform the user with a message that he/she is
at the welcome page because the session has expired?

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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








The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be 

RE: Session Times Out

2003-11-03 Thread MBrewer

Yeah, you would do it in both places.

In the jsp when you access it directly, and in the action.

Mike



|-+
| |   Jose Ramon Diaz|
| |   [EMAIL PROTECTED]|
| |   di.es   |
| ||
| |   03/11/2003 10:06 |
| |   AM   |
| |   Please respond to|
| |   Struts Users|
| |   Mailing List|
|-+
  
--|
  |
  |
  |   To:   'Struts Users Mailing List' [EMAIL PROTECTED]  
 |
  |   cc:  
  |
  |   Subject:  RE: Session Times Out  
  |
  
--|





 Hi,
But be carefull because the actions will be executed before redirecting to
JSP, so I think it?s better to check the session in all the actions, isn?t
it?



 Make a custom tag like so :



 Create a tld file with this in  it :

 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP
 Tag Library
 1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd;
 taglib
   tlibversion1.0/tlibversion
   jspversion1.1/jspversion
   shortnameTag Libs/shortname
   infoustom Tags/info
   tag
 namecheckLogin/name

 tagclasscom.cpaglobal.cpadirect.tag.CheckLogin/tagclass
 bodycontentempty/bodycontent
 infoChecks the login status of a user and
 forward them to the
 login page if not logged in./info
 attribute
   nameloginPage/name
   requiredfalse/required
   rtexprvaluefalse/rtexprvalue
 /attribute
 attribute
   namedefault/name
   requiredfalse/required
   rtexprvaluefalse/rtexprvalue
 /attribute
   /tag
 /taglib



 Code for the custom tag :

 package com.cpaglobal.cpadirect.tag;

 import java.io.IOException;

 import javax.servlet.ServletException;
 import javax.servlet.http.HttpSession;
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.tagext.TagSupport;

 import com.cpaglobal.cpadirect.applicationlogic.SessionVariables;
 import com.cpaglobal.cpadirect.applicationlogic.User;


 public class CheckLogin extends TagSupport {


   private String loginPage = /JSP/Timeout.jsp;


   public void setLoginPage(String loginPage) {
 this.loginPage = loginPage;
   }

   public int doStartTag() throws JspException {
  return (SKIP_BODY);
   }

   public int doEndTag() {
 try {
   HttpSession session = pageContext.getSession();
   if (session != null) {
 User user = (User)
 session.getAttribute(SessionVariables.SESSION_LOGGED_ON_USER);
 if (user == null) {
   pageContext.forward(loginPage);
   return (SKIP_PAGE);
 }
   } else {
 pageContext.forward(loginPage);
 return (SKIP_PAGE);
   }
 } catch(ServletException e) {
   new JspException(e.toString());
 } catch(IOException e) {
   new JspException(e.toString());
 }
 return (EVAL_PAGE);
   }

 }

 How to use it :

 %@ taglib uri=/WEB-INF/cpa.tld prefix=cpa%
 cpa:checkLogin/

 Mike




 |-+
 | |   Caroline Jen |
 | |   [EMAIL PROTECTED]|
 | |   .com|
 | ||
 | |   03/11/2003 06:23 |
 | |   AM   |
 | |   Please respond to|
 | |   Struts Users|
 | |   Mailing List|
 |-+

 -
 -|
   |
|
   |   To:   [EMAIL PROTECTED]
|
   |   cc:
|
   |   

Re: struts plugin

2003-10-30 Thread MBrewer

Sounds very interesting. I am going to be working onto something similar to
this focusing on
Self Describing Business object. Trying to steer away from doing any
duplicate work and also
cut down code written. Are you going to intergrate with Hibernate or
Ibatis?


Mike



|-+
| |   Mario  |
| |   [EMAIL PROTECTED]|
| |   idea.com|
| ||
| |   30/10/2003 01:17 |
| |   PM   |
| |   Please respond to|
| |   Struts Users|
| |   Mailing List|
|-+
  
|
  |
|
  |   To:   [EMAIL PROTECTED]
   |
  |   cc:  
|
  |   Subject:  struts plugin  
|
  
|




XMoon demo 0.2 released



http://www.xmoon.it http://www.xmoon.it/












The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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



Display Tag :

2003-10-15 Thread MBrewer
The display tag jsp library is pretty cool, but can i do lists where i do
not know the Names or number of columns
until runtime.

Mike





The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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



Re: Keeping Actions clean - separating actions from business mode l from persistence

2003-10-11 Thread MBrewer

Would it be possible or at least usefull if the SQL objects in that example
be used for the Form Beans
and for the forms (using XForms). That would really cut don't the amount of
work to a minimum

Mike



|-+
| |   Ted Husted   |
| |   [EMAIL PROTECTED]|
| |   g   |
| ||
| |   11/10/2003 11:13 |
| |   AM   |
| |   Please respond to|
| |   Struts Users|
| |   Mailing List|
|-+
  
--|
  |
  |
  |   To:   Struts Users Mailing List [EMAIL PROTECTED]  
 |
  |   cc:  
  |
  |   Subject:  Re: Keeping Actions clean - separating actions from business mode 
l from persistence |
  
--|




Mahesh Joshi wrote:
 I have always wondered where is the best place to do connection
management
 with the dataStore.
 Should the business Logic do connectionManagement (e.g. opening a
connection
 (via  a connection pool or otherwise)) or should that be the
responsibility
 of the persistence layer. Doing it in the latter(PersistenceLayer) frees
up
 the BusinessLayer of connection Mgt code.
 If you are implementing connectionpool, the overhead is the time to
return
 the connection to the pool and get it back.

The iBATIS DAO splits the difference and makes transaction management
part of the logical DAO API.  So you can specify different connection
mechanisms at instantiation, and the implementating code does not need
to know the details. The DAO implementation can just call high-level
methods like startTransaction, commitTransaction, or rollbackTrnasction.

This strategy limits what the implementaton needs to know about the
connection management, but still lets the business logic determine what
constitutes a transaction (which is often a business decision).

-Ted.


--
Ted Husted,
   Junit in Action  - http://www.manning.com/massol/,
   Struts in Action - http://husted.com/struts/book.html,
   JSP Site Design  - http://www.amazon.com/exec/obidos/ISBN=1861005512.




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








The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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



Re: Keeping Actions clean - separating actions from business mode l from persistence

2003-10-11 Thread MBrewer

Allow maybe have a couple of generic actions that can save/retrieve and
list these objects instead of having to write a
action for each form.

ie : instead of have to write a form bean/jsp page/edit action/search
action/delete action etc..
you just create the xml sql object with some extra details like the search
field/edit fields etc. and in you pageflows link the object to the
correct type of action like edit/add/search and as these are standard
action you do not need to code them?

Mike



|-+
| |   Ted Husted   |
| |   [EMAIL PROTECTED]|
| |   g   |
| ||
| |   11/10/2003 11:13 |
| |   AM   |
| |   Please respond to|
| |   Struts Users|
| |   Mailing List|
|-+
  
--|
  |
  |
  |   To:   Struts Users Mailing List [EMAIL PROTECTED]  
 |
  |   cc:  
  |
  |   Subject:  Re: Keeping Actions clean - separating actions from business mode 
l from persistence |
  
--|




Mahesh Joshi wrote:
 I have always wondered where is the best place to do connection
management
 with the dataStore.
 Should the business Logic do connectionManagement (e.g. opening a
connection
 (via  a connection pool or otherwise)) or should that be the
responsibility
 of the persistence layer. Doing it in the latter(PersistenceLayer) frees
up
 the BusinessLayer of connection Mgt code.
 If you are implementing connectionpool, the overhead is the time to
return
 the connection to the pool and get it back.

The iBATIS DAO splits the difference and makes transaction management
part of the logical DAO API.  So you can specify different connection
mechanisms at instantiation, and the implementating code does not need
to know the details. The DAO implementation can just call high-level
methods like startTransaction, commitTransaction, or rollbackTrnasction.

This strategy limits what the implementaton needs to know about the
connection management, but still lets the business logic determine what
constitutes a transaction (which is often a business decision).

-Ted.


--
Ted Husted,
   Junit in Action  - http://www.manning.com/massol/,
   Struts in Action - http://husted.com/struts/book.html,
   JSP Site Design  - http://www.amazon.com/exec/obidos/ISBN=1861005512.




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








The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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



xml objects for forms and persistence

2003-10-07 Thread MBrewer
I will be working on porting a company framework (and hopefully open source
it) from ASP/VB (yack!) to Java. The idea of the framework is quite simple.
It is a framework for buiding administration screens like update/search
edit user but it has some interesting features :

The Business objects a described in xml ie :

entity
nameuser/name
tableusr/table
attributes
namefirstname/name
label
EN
labelFirst Name/label
/EN
.
/attributes

attributegroups
attributegroup
nameLabel/name
attributes
attributefirstname/attribute
attributesurname/attribute
/attributes
/attributegroup
attributegroup
nameEdit/name
attributes
attributefirstname/attribute
attributesurname/attribute

/attributes
/attributegroup
etc..
/entity


The Business Object xml descriptor has enough information for display it as
well as updating it. AttributesGroups allow for list views and edit views
of the object.

Another component of the framework is the PageFlows that are made up of
Actions that use these Business Objects to get the info for these views
like Edit User. Most of the time you do not need to write code at all, we
have also written a editor for the Business Objects and the Pages Flows.


So at the end of the day the html of genernated by the framework from the
xml descriptor and the persistence is also done from there. So doing
administration screens are very quick. ie : days instead of weeks. The some
code can be used for web front ends as well as guis.

I was wondering it there is anything else out there like this or are there
ways on doing some intergration of this with Struta and Hibernate and
Cocoon?

At the end the benefits are amazing taking minutes rather than hours to get
stuff done
I really mean radically, to do a search/edit/delete etc.. for a object
takes minutes. And being frontend independent means that you can write web
as well as swing stuff.

Mike





The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.



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