Saving form data

2006-08-01 Thread Joel Alejandro Espinosa Carra

Hi all

I think this is a common issue, I want to know how to save the form data 
in persistent storage using serialization. I have been made this in my 
2-tier java apps without struts but  I suppose there is another way to 
do it using struts to achieve that.


Kind regards.

p.s. sorry for my english

--
Ing. Joel Alejandro Espinosa Carra
CINVESTAV CTS - Centro de Tecnología de Semiconductores
Tel. +52 (33) 3770-3700 ext. 1049
http://www.cts-design.com 



--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.


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



Re: Re: what is the best practice?

2006-05-22 Thread Joel Alejandro Espinosa Carra

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?

--
Ing. Joel Alejandro Espinosa Carra
CINVESTAV CTS - Centro de Tecnología de Semiconductores
Tel. +52 (33) 3770-3700 ext. 1049
http://www.cts-design.com 



--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.


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



what is the best practice?

2006-05-19 Thread Joel Alejandro Espinosa Carra

Hi all.

I think this is kind of a basic question. I have an application that 
haves 3 tables: users, messages and user_inbox for the relationship of 
first 2 ones. I have a class named MessagesManager in order to manage 
the messages to-and-from the database throught the business methods, one 
of them is the public List getMessages(String user_id) method that 
returns a MessageBean's list and I need to display the messages of each 
user in a html table, the MessageBean only contains the user_id but I 
want to display their names, do I need to modify my business method in 
order to get the usernames? or do I need to add another method to get 
the usernames, something like public String getName(String user_id)?, 
the first aproach makes one query to the database and the second aproach 
makes two. What is the best practice here?
As you can see english is not my navite language, I hope you guys can 
understand my issue.


Thanks in advance.
Have a nice weekend.

--
Ing. Joel Alejandro Espinosa Carra
CINVESTAV CTS - Centro de Tecnología de Semiconductores
Tel. +52 (33) 3770-3700 ext. 1049
http://www.cts-design.com 



--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.


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



Re: The Mytical stagnation

2006-03-31 Thread Joel Alejandro Espinosa Carra

What are the popular technologies in your area?


If you talk about web applications then .NET, or anything else that maintain 
people (managers) brainwashed with marketing instead of looking for the best 
option, in the worst case non technical people make technical decisions about 
development. My company have been participated in licitations of the government 
and most cases they put in the requirements the technology that must be used in 
order to participate because they were influenced by big suppliers like 
Borland, MS, IBM, HP, etc. this makes the participants to moving to these 
technologies and the rest is history.

ps.- again, sorry for my english.
Best regards.

On 3/30/06, Joel Alejandro Espinosa Carra [EMAIL PROTECTED] wrote:


Konstantin Priblouda wrote:

 



 --- Jonathan Revusky [EMAIL PROTECTED] wrote:


   


 Since I don't see that, I have to conclude that most
 people don't grok what is going on, or at least the full implications.
 If one does understand the full implications, one ought to be
 quite wary about continuing to invest in building things on top of
 Struts 1.x and one would be looking at migrating one's apps and one's
 skills towards what will be the 2.x code -- i.e. Webwork.

 




 I think some of users already recognized what is going
 on.  It was almost impossible to sell webwork skills (
 as freelancer ) , because everybody wanted struts -
 but now there is serious demand (in germany). I get
 2-3
 serious requests per week. Not only development,  but
 also workshops / teaching.
   



Anyway it is better than Mexico, here neither strus nor webwork are
appreciated by employers, I like struts and other web-development
technologies but the time I spent learned struts is almost a wasted time
 :-(if we consider that nobody find web developers with that kind
of skills. Maybe I should consider moving to another country.

ps.- Sorry for my poor english.
Best Regards.

--
Ing. Joel Alejandro Espinosa Carra
CINVESTAV CTS - Centro de Tecnología de Semiconductores
Tel. +52 (33) 3770-3700 ext. 1049
http://www.cts-design.com



--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.


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


 




--
Ghetto Java: http://www.ghettojava.com

--
Ing. Joel Alejandro Espinosa Carra
CINVESTAV CTS - Centro de Tecnología de Semiconductores
Tel. +52 (33) 3770-3700 ext. 1049
http://www.cts-design.com 



--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.


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



Re: The Mytical stagnation

2006-03-30 Thread Joel Alejandro Espinosa Carra

Konstantin Priblouda wrote:



--- Jonathan Revusky [EMAIL PROTECTED] wrote:



Since I don't see that, I have to conclude that most
people don't grok what is going on, or at least the full implications.
If one does understand the full implications, one ought to be
quite wary about continuing to invest in building things on top of
Struts 1.x and one would be looking at migrating one's apps and one's
skills towards what will be the 2.x code -- i.e. Webwork.




I think some of users already recognized what is going
on.  It was almost impossible to sell webwork skills (
as freelancer ) , because everybody wanted struts -
but now there is serious demand (in germany). I get
2-3
serious requests per week. Not only development,  but
also workshops / teaching. 


Anyway it is better than Mexico, here neither strus nor webwork are
appreciated by employers, I like struts and other web-development
technologies but the time I spent learned struts is almost a wasted time
:-(   if we consider that nobody find web developers with that kind
of skills. Maybe I should consider moving to another country.

ps.- Sorry for my poor english.
Best Regards.

--
Ing. Joel Alejandro Espinosa Carra
CINVESTAV CTS - Centro de Tecnología de Semiconductores
Tel. +52 (33) 3770-3700 ext. 1049
http://www.cts-design.com



--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.


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



ajax with struts

2006-03-23 Thread Joel Alejandro Espinosa Carra

Hello all,

I'm coding a simple action that retrieves some data from the database in 
order to create an xml object for an ajax-based autocomplete field, I'm 
worried about the load of the database beacuse this action is called 
from a javascript event onkeyup() this means that the action will be 
executed every time when user press a key in the field, is there an 
other way to do this in order to increase the performance?


pd. this is not a must-have requirement but I want to know what is the 
best way to do this.


Best regards.

--
Ing. Joel Alejandro Espinosa Carra
CINVESTAV CTS - Centro de Tecnología de Semiconductores
Tel. +52 (33) 3770-3700 ext. 1049
http://www.cts-design.com 



--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.


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



Populate action

2006-02-07 Thread Joel Alejandro Espinosa Carra

Hi all,

I think this is more a design question than a struts question, but I 
want to know who is the struts-way to do this.
I have a requeriment of listing some items (in my case, scientific 
papers) in a html table view.
Another requirement is that users can see diferent listing of data 
depending of theirs permissions, and the administrator can see 
everything (like always)
I want to know how much code I'm able to save if I design ONLY ONE 
action for hadle the prepopulation of the items list that will be 
displayed latter in a jsp page, or if its better to do more than one 
single action for the prepopulation of data.


My action would be like this:

public void execute(...) {
   List list = new LinkedList();
  
   if(admin.equals(request.getUserRole().toString())) {

  //go to the DAO Layer and get the list of beans for the admin role
  list = dao.getPapersForAdmin();
   }
   //and so on for the others roles
   .
   .
   .
  
} //note that I wrote this little code in my email client not in my IDE


But what can I do in the case of one user could have more than one 
option for display items, like the administrator are be able to see only 
the rejected papers but also can see all the papers.


Any ideas?

Best regards.

--
Ing. Joel Alejandro Espinosa Carra
CINVESTAV CTS - Centro de Tecnología de Semiconductores
Tel. +52 (33) 3770-3700 ext. 1049
http://www.cts-design.com 



--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.


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