Tiles standalone (without struts)

2006-11-28 Thread hicham abassi

Hello,

I want to integrate Tiles to my project without Struts. I have my own front
controller implementation.
Actually, the tiles packaged with struts 1.3.5 cannot be used in standalone
mode, the TilesServlet doesn't exist.
But, i read on this mailing list, that a new subproject is on the way :
Tiles 2.0.
What's the status of this project, the date's release for a stable version ?
I'm not interesting by Sitemesh ;)

Thanks.

--
Hicham ABASSI


Re: what is the best practice?

2006-07-17 Thread hicham abassi

Check the book POJOS in action , there are some good chapters about Ibatis

On 5/25/06, Rafael [EMAIL PROTECTED] wrote:

Hi,

I've been enjoying these conversations about 'Architecture'/'Best Practices'
etc..   Does anyone knows if there is a specific list somewhere to get more
information about architecture decisions, etc ???

-Rafael T Icibaci


- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, May 22, 2006 6:49 PM
Subject: Re: what is the best practice?


 Hi Joel,

 the methods you mention are all data access calls, not business methods,
 because business methods would actually carry out some form of business
 logic on the data.
 But anyway your methods are OK. It just corresponds to the number of ways
 your app needs to access the data. There would be no reason to reduce the
 number of methods, although you should make sure that you are not repeated
 large amounts of code. With iBatis I think you would avoid that.

 Regards
 Adam

 Joel Alejandro Espinosa Carra on 22/05/06 17:39, wrote:
 Thank you Adam, Paul:

 I will try iBATIS as you suggested to me. I have another question to you
 in the same context. In this MessagesManager class I have business
 methods like getAllMessages() that retrieves all the messages from the
 database, but I also have another business methods like
 getMessagesForUser(String user_id), getMessagesForMonth(int id_month),
 etc. in my opinion this will make this class have eventually a lot of
 business methods, what is the best way to handle that?

 Again, thanks for your help.
 Best regards.

 ps. Paul Benedict like Ocean's eleven?



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



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




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



Tiles , struts modules, form-bean lost

2006-01-04 Thread hicham abassi
Hello,

I have 2 struts modules.
One for a list screen : proList
Other for the complete project module : pro
Both have separated struts config files.

Code samples :

---
struts module proList
---
action path=/proViewListViewRelay
name=proListSelectionForm
scope=request
validate=false
parameter=dispatch
type=xxx....struts.action.RelayAction

forward name=edit contextRelative=true path=/pro/proViewListEdit.do/
.
/action

-
struts module pro
--
action path=/proViewListEdit
type=xxx....struts.action.ProViewListEditAction
name=proListSelectionForm
scope=request
validate=false   
  forward name=success path=/proNewRequestInit.do/
/action


I lost my form-bean from proViewListViewRelay action to proViewListEdit action.
When i debug the project, i see that the
TilesRequestProcessor.processActionPerform method well receive the
form-bean proListSelectionForm but doesn't retransfer this form-bean
to the next action.
In fact, for this specific workflow, i don't use tiles definition.
It's just a classical forward between 2 actions located for each,into
separated modules.

What's the way to have my form bean initialized into my second action ?
I don't know if is it a struts 1.1 tiles bug.
I don't use custom RequestProcessor, just the struts default one.

I'm using Struts 1.1 version.


Thanks





--

hicham ABASSI
[EMAIL PROTECTED]

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



Re: Tiles , struts modules, form-bean lost

2006-01-04 Thread hicham abassi
Hello again,

I found that the request data are still available into the second action.
I can get my parameter data from the request and not from the form
object into my execute method.

Instead of doing this in normal case :

ProListSelectionForm proListSelectionForm = (ProListSelectionForm)form;
String myId= proListSelectionForm.getId();

I must do this :

if(request.getParameterMap().containsKey(myid))
myId = request.getParameter(myid);

It seems that the TilesRequestProcessor doesn't redispatch the
form-bean to my second action.
I need confirmation from a struts expert about this strange topic.

Thanks

2006/1/4, hicham abassi [EMAIL PROTECTED]:
 Hello,

 I have 2 struts modules.
 One for a list screen : proList
 Other for the complete project module : pro
 Both have separated struts config files.

 Code samples :

 ---
 struts module proList
 ---
 action path=/proViewListViewRelay
name=proListSelectionForm
scope=request
validate=false
parameter=dispatch
type=xxx....struts.action.RelayAction

 forward name=edit contextRelative=true path=/pro/proViewListEdit.do/
 .
 /action

 -
 struts module pro
 --
 action path=/proViewListEdit
type=xxx....struts.action.ProViewListEditAction
name=proListSelectionForm
scope=request
validate=false
  forward name=success path=/proNewRequestInit.do/
 /action


 I lost my form-bean from proViewListViewRelay action to proViewListEdit 
 action.
 When i debug the project, i see that the
 TilesRequestProcessor.processActionPerform method well receive the
 form-bean proListSelectionForm but doesn't retransfer this form-bean
 to the next action.
 In fact, for this specific workflow, i don't use tiles definition.
 It's just a classical forward between 2 actions located for each,into
 separated modules.

 What's the way to have my form bean initialized into my second action ?
 I don't know if is it a struts 1.1 tiles bug.
 I don't use custom RequestProcessor, just the struts default one.

 I'm using Struts 1.1 version.


 Thanks





 --

 hicham ABASSI
 [EMAIL PROTECTED]



--

hicham ABASSI
[EMAIL PROTECTED]

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



Re: Tiles , struts modules, form-bean lost

2006-01-04 Thread hicham abassi
Hello again

Good news,

I finally found the bug.
If you use struts modules and you want to use form-bean declared into
one struts module to one other, you must redeclare the form-bean
header.
Finally it's not a Tiles problem but a scoped form-bean problem with
struts modules.

Thanks.


2006/1/4, hicham abassi [EMAIL PROTECTED]:
 Hello again,

 I found that the request data are still available into the second action.
 I can get my parameter data from the request and not from the form
 object into my execute method.

 Instead of doing this in normal case :

 ProListSelectionForm proListSelectionForm = (ProListSelectionForm)form;
 String myId= proListSelectionForm.getId();

 I must do this :

 if(request.getParameterMap().containsKey(myid))
myId = request.getParameter(myid);

 It seems that the TilesRequestProcessor doesn't redispatch the
 form-bean to my second action.
 I need confirmation from a struts expert about this strange topic.

 Thanks

 2006/1/4, hicham abassi [EMAIL PROTECTED]:
  Hello,
 
  I have 2 struts modules.
  One for a list screen : proList
  Other for the complete project module : pro
  Both have separated struts config files.
 
  Code samples :
 
  ---
  struts module proList
  ---
  action path=/proViewListViewRelay
 name=proListSelectionForm
 scope=request
 validate=false
 parameter=dispatch
 type=xxx....struts.action.RelayAction
 
  forward name=edit contextRelative=true path=/pro/proViewListEdit.do/
  .
  /action
 
  -
  struts module pro
  --
  action path=/proViewListEdit
 type=xxx....struts.action.ProViewListEditAction
 name=proListSelectionForm
 scope=request
 validate=false
   forward name=success path=/proNewRequestInit.do/
  /action
 
 
  I lost my form-bean from proViewListViewRelay action to proViewListEdit 
  action.
  When i debug the project, i see that the
  TilesRequestProcessor.processActionPerform method well receive the
  form-bean proListSelectionForm but doesn't retransfer this form-bean
  to the next action.
  In fact, for this specific workflow, i don't use tiles definition.
  It's just a classical forward between 2 actions located for each,into
  separated modules.
 
  What's the way to have my form bean initialized into my second action ?
  I don't know if is it a struts 1.1 tiles bug.
  I don't use custom RequestProcessor, just the struts default one.
 
  I'm using Struts 1.1 version.
 
 
  Thanks
 
 
 
 
 
  --
 
  hicham ABASSI
  [EMAIL PROTECTED]
 


 --

 hicham ABASSI
 [EMAIL PROTECTED]



--

hicham ABASSI
[EMAIL PROTECTED]

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



Re: move from PHP to Struts

2006-01-03 Thread hicham abassi
I think that before choosing a Java Web framework, you should perhaps
analyze the migration.
Many php webapps doesn't implement MVC design pattern.
I think that you should calculate the necessary time to completly
refactor your existing webapp into a new webapp.
Sometime, we think that porting a php webapp to a java web framework
is too easy because the java web framework is on the edge,provides
some good features ;)
If you have money to spend to completly rewrite your webapp into an
another technology, so, test them yourself ;)
Many prefer serverside framework like struts, webwork, others prefer
web component framework like JSF,wicket,
I think the most important question is : How much time your team can
be able to be ready on one of these frameworks.

Personally, i begun webapp coding with php, now i'm coding only on
J2EE platform.
Actually Struts. I hope in the future, i'll work with JSF


best regards ;)


2006/1/3, Bogdan Paduraru [EMAIL PROTECTED]:
 Hi,



 I'm managing a PHP/postgreSQL project. The purpose of the project is to
 display some items (i.e : houses etc)

 on webpages, along with HTML text.

 The problem is this project became too big and almost impossible to
 handle since you can't separate very well presentation from logic.

 I convinced management we need to move on to a different technology and
 since I worked previously with Java (Java servlets especially), I
 recommended we

 should look on a Java solution.

 I read Apache Struts would be a good solution since people say it
 separates logic from presentation quite well.

 For us is very important to highly customize user interface and this is
 a web interface and maybe you figure out how difficult is to do that in
 PHP.

 I wrote here to receive input from people that maybe had my problems and
 moved to Struts.

 Also I noticed Struts has now Action Framework and Shale Framework.
 Which one should I use ? Since we should be able to add the

 customized HTML templates we receive from our web designer...

 Any advice would be helpful, also when you recommend me something would
 be nice to point some links with tutorials too because I also want to

 train my programmers.



 Thank you,

 Bogdan





--

hicham ABASSI
[EMAIL PROTECTED]

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



Looking for a wizard flow

2005-12-15 Thread hicham abassi
Hello,

I need to create a wizard with struts.
I find this project : http://struts.apache.org/struts-flow/
Have you docs or other toolkits to do this ?

Thanks.

--
Struts 1.1
JBoss 3.x
Eclipse 3.1

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



Re: the code of method execute is exceeding the 65535 limit

2005-12-14 Thread hicham abassi
Hi,
I think that you must refactor your method.
No other way ;)



2005/12/14, Stanislav [EMAIL PROTECTED]:
 I have problem with mention above error message. My action class have over 6k 
 lines
 of code.

 Is there anything i can do to remove this message without changing code
 logic?

 Tnx

 Stanislav

 -
 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]