Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Tom Ziemer
Hi Tony, try this: /etc/initd/apache stop if this does not work, do this: ps -ef | grep -i apache This will give you the PID, which can be used to kill the process: kill - 9 PID The next time you restart your server, apache will be started again, though - so you have to disable it. How to dis

Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Tom Ziemer
Hi, you can configure apache to pass all requests containing *.jsp to your tomcat. This setup requires an extra connector, such as jk2. Tom Tony Smith wrote: Or, can I move my tomcat under apache so now port number is necessary in the address? --- Tony Smith <[EMAIL PROTECTED]> wrote: T

Re: [OT] Java & .Net web services interoperability

2005-07-22 Thread Tom Ziemer
Hi Brent, yes that's possible. I've just implemented a web service (based on Apache Axis) that sends DIME Attachments. We have Java and .NET clients that can consume these. The only problem is that there is bug in the official 1.21 Axis Release so you would have to use the CVS version. Regards, T

[OT] Loading data for view

2005-08-18 Thread Tom Ziemer
Hi everybody! In my app, I am using DAOs/DTOs to perform CRUD operations on a legacy database packed with lots of triggers and stored procedures. Some of my DTOs are pretty complex, meaning, they have to be assembled from many tables. A simple example: Object a (loaded by aDAO) has a list of

Re: [OT] Loading data for view

2005-08-18 Thread Tom Ziemer
Thanks for your answers. I added a new method to my DAO that allows me to execute predefined queries and returns kind of "general-purpose-dto"s, that only consist of a treemap which stores the requested values from the db. So I get one g-p-DTO per row in my ResultSet that can be passed to the

Re: [OT] Loading data for view

2005-08-18 Thread Tom Ziemer
nts need to know about the contract governing the naming of the map keys * Loss of type safety (no compile time checking) * You'll need to wrap primitives and most access will require casting -----Original Message- From: Tom Ziemer [mailto:[EMAIL PROTECTED] Sent: 18 August 2

Question about checkboxes

2005-09-08 Thread Tom Ziemer
Hi everybody! I have got a litte problem with checkboxes, and yes, I did check the list's archive before writing this post. In my app, I display a variable number of options, each of which can contain a variable number of checkboxes. A simple example: Choose toppings for pizza: 1) Cheese:

HashMap backed FormBean and validation

2005-02-11 Thread Tom Ziemer
Hi, is it possible to validate formBeans that contain hashMaps, and if so, how? The application im am working on requires an object, that has a variable number of attributes. Thus, I would be loading the object with its attributeset, create a DTO and then pass it to the my JSP page, which in tur

Re: Form bean and variable number of fields

2005-02-25 Thread Tom Ziemer
Hi, I've had the same problem and used a mapped backed form bean, which worked really well. Now I am wondering whether it's possible to use the validator plugin to validate the entries. The only problem is that a) I don't know what kind of properties and b) how many of them are submitted. Any id

Re: Displaying XL in browser

2005-03-17 Thread Tom Ziemer
Hi, you could try to use response.addHeader("Content-Disposition", "inline; filename=filename"); and set the "filename" dynamically. Ta Ta For Now, Tom Mili Aggarwal, Noida wrote: Hello All, I wish to display an Excel in browser. I am using struts framework. Thus,in Action I have returned a

Re: Problems using JSTL with struts

2005-03-18 Thread Tom Ziemer
Hi, I had a similar problem. What I did was: a) put jstl.jar and standard.jar in WEB-INF/lib b) modify your web.xml - it should start with this line: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-ap

Re: Problems using JSTL with struts

2005-03-23 Thread Tom Ziemer
cnicas C/ Santa Engracia, 125 Edificio 8 Tel. 91 545 10 00 - Ext. 2128 Fax. 91 545 14 41 ___________ Tom Ziemer <[EMAIL PROTECTED]> 18/03/2005 11:00 Por favor, responda a "Struts Users Mailing List" Para: Struts Users Mailing List cc: (cco: Rodolfo Garc

Slightly OT: PropertyChangeSupport

2005-03-31 Thread Tom Ziemer
Hi everybody! I am currently developing an application where I cannot use a persistence layer, thus I am using JDBC, POJOs and DAOs. Is it feasible to have Beans with PropertyChangeSupport so related objects get automatically notified when something changes? I am just curious, beacause I never

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Tom Ziemer
Hi, have you looked at map backed forms? Basically you have Hashmap, that stores any number of fields. What you need is something like: [your form] ... private HashMap properties = new java.util.HashMap(); ... public void setProperty(String key, Object value) { this.properties.put(key, value)

Authentication question

2005-04-07 Thread Tom Ziemer
Hi everybody. I've just started working on an application using Struts. In my previous projects my actions that needed authentication always had some common class that they extended. Now I am wondering whether it would be feasible to authenticate using AOP - writing interceptors for each method.

Re: Authentication question

2005-04-07 Thread Tom Ziemer
aop. Greetings Jimmy -Original Message- From: Tom Ziemer [mailto:[EMAIL PROTECTED] Sent: donderdag 7 april 2005 16:58 To: Struts Users Mailing List Subject: Authentication question Hi everybody. I've just started working on an application using Struts. In my previous projects my

Re: Need Database Connectivity Advice

2005-04-11 Thread Tom Ziemer
Hi, you might want to take a look at Hibernate (www.hibernate.org). It's a powerful yet (fairly) easy to use persistence layer, that can even be used with an existing database schema (Middlegen). There is also a lot of documentation (on- and offline) available for this project. Regards, Tom Sco

Re: [OT]question about open source data base selection

2005-04-11 Thread Tom Ziemer
Hi, from my experience, I can recommend PostgreSQL. It's quite easy to setup, it's reliable and has all the functionality you require (views, stored procedures, foreign key constraints). As to the license: "And because of the liberal license, PostgreSQL can be used, modified, and distributed by

Re: Help me.results of ArrayList

2005-04-20 Thread Tom Ziemer
Hi, why don't you just iterate over your list and write it into a HashMap - something like: HashMap mp = new HashMap(); for(int i=0; i This isn't very sophisticated, but it should work. Regards, Tom senthil Kumar wrote: Hi all., Could you please help me. I have one ArrayList called dataList. it

Re: Filter Being Called Repeatedly

2005-04-27 Thread Tom Ziemer
Hi, I just looked briefly at your code, but could it be, that your filter intercepts the calls to the error page as well? So you would be redirecting, then interceptiong, redirecting, etc. Maybe you could try a different URL pattern for the filter - something like /protected/* Hope this helps.

Re: The best place for output formats

2005-04-28 Thread Tom Ziemer
Hi, imho the jsp (view), because the action is just the controller and each view component should be able to decide how to format data. Maybe the fmt tags (jstl) or a custom tag could take care of formatting the output. Regards, Tom Leon Rosenberg wrote: imho the action, because the neither the

[OT] Hiding methods

2006-02-16 Thread Tom Ziemer
Hi, I have got a question quite unrelated to Struts: My app. is pretty much layered, meaning, I have Hibernate, on top of which there are SpringDAOs, on top of which are Managers that represent my business logic. Now I wonder, if it is possible, to *hide* (maybe with annotations?) my DAOs from al

Re: [OT] Hiding methods - a final remark

2006-02-20 Thread Tom Ziemer
Thanks to everybody who replied to my original post. I am currently using spring/acegi and it's working great - as long as you use Spring to create your beans: // Spring - works like a charm: security via acegi and transactions via proxies this.entityManager = (IEntityManager)getBean(SpringBean.M

Re: layout

2006-03-01 Thread Tom Ziemer
Hi, I was just working on common design elements as well (header/footer) when I saw your post. I am using sitemesh (http://www.opensymphony.com/sitemesh/), which is a servlet filter that decorates your jsp pages. It's easy to setup, fast and very unobtrusive (your pages' source won't change). HTH

Re: How to generate form controls dynamically

2006-03-09 Thread Tom Ziemer
Hi Craig, sorry, if this is totally OT, but I just posted a similar question in the sun forum: Where would you actually place the code you mentioned within a JSF component? I mean beginEncode() is called each time the page is requested so what can I do, if I only want to add a component once? I do

[OT] JMS, RMI, CORBA, SOAP or what?

2006-03-28 Thread Tom Ziemer
Hi, I am a developer, currently working working on a medium scale app. There is a base module, which is Spring managed, that handles data access - a web tier and now a couple of web services. Up until now, we deployed everything as one application, so communication between the modules was API-base

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-28 Thread Tom Ziemer
hat is modular? > > If it isn't a requirement then I wouldn't add some communication layer > between the modules. > Be happy that you have everything in one JVM and you don't have to deal with > the complexity resulting from ANY of the technologies you mentioned. >

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-28 Thread Tom Ziemer
t isn't a requirement then I wouldn't add some communication layer >>> between the modules. >>> Be happy that you have everything in one JVM and you don't have to deal >> with >>> the complexity resulting from ANY of the technologies you mentioned. >>

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-28 Thread Tom Ziemer
especially the SOAP/WSDL crap > but thats just me. REST might be good if you like it. I have seen > several systems working perfectly for years with simple XML messaging > (asynchronous or not) over HTTP; it's the implementation quality that > matters here. > > hth, > &

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-28 Thread Tom Ziemer
for a good (or best) corba implementation (orb) : > www.jacorb.org > > regards > Leon > > On 3/28/06, Tamas Szabo <[EMAIL PROTECTED]> wrote: >> Hi Tom! >> >> >> On 3/28/06, Tom Ziemer <[EMAIL PROTECTED]> wrote: >>> Hi Tamas! >>>

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-29 Thread Tom Ziemer
ANY application, you should have the special > type of application to use it. > > On 3/28/06, Tom Ziemer <[EMAIL PROTECTED]> wrote: >> Hi Leon, >> >> thanks for the input. May I ask how you would rate JMS and if this would >> also be a suitable solution f

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-29 Thread Tom Ziemer
eadline for our project. :o) Is RMI performance really that poor? I mean compared to SOAP it still should be much faster, right? What kind of performance hit are we actually talking about? Do you have any numbers for Corba/RMI/SOAP ? Regards, Tom Leon Rosenberg wrote: > On 3/29/06, Tom Ziemer

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-29 Thread Tom Ziemer
think about the performance of ejb3? Did you integrate it with other frameworks such as Spring and/or Hibernate? Regards, Tom Leon Rosenberg wrote: > On 3/29/06, Tom Ziemer <[EMAIL PROTECTED]> wrote: >> Hi Leon, >> >> Spring: Well, our app started as a single jvm versio

slightly [OT] Hibernate and domain objects in web apps

2005-11-30 Thread Tom Ziemer
Hi, I have got a little problem with Hibernate - well actually it is only partially related to it: My app uses Spring + Hibernate (lazy loading), but should I return the value beans (dom) from Hibernate to my Struts actions? If I do this, I'd have to deal with LazyInitializationExceptions fo

Re: slightly [OT] Hibernate and domain objects in web apps

2005-11-30 Thread Tom Ziemer
avoid using DTOs. Tom Marco Mistroni wrote: Hello, Any reason of why you can't use DTOs? Your domain objects and dto could implement the same interface.. HTH marco -Original Message- From: Tom Ziemer [mailto:[EMAIL PROTECTED] Sent: 30 November 2005 14:26 To:

Re: slightly [OT] Hibernate and domain objects in web apps

2005-11-30 Thread Tom Ziemer
communicate with the app. Thanks, Tom Borislav Sabev wrote: Tom Ziemer wrote: Hi, I have got a little problem with Hibernate - well actually it is only partially related to it: My app uses Spring + Hibernate (lazy loading), but should I return the value beans (dom) from Hibernate to my Struts

Re: slightly [OT] Hibernate and domain objects in web apps

2005-11-30 Thread Tom Ziemer
the objects in the collection that are necessary for what domain object you are using. Then send the object back to the action to be manipulated as necessary. Probably not perfect but seems to provide the flexibility we need. I am interested to know what others are doing too. Hope that helps. Matt

Re: slightly [OT] Hibernate and domain objects in web apps

2005-11-30 Thread Tom Ziemer
t are needed or do you have multiple methods? The problem that I see is that with any approach, you kind of couple view and model very closely but I assume this cannot be helped. Tom Borislav Sabev wrote: Tom Ziemer wrote: Hi Borislav, unfortunately I cannot do this, because I have a

Re: slightly [OT] Hibernate and domain objects in web apps

2005-11-30 Thread Tom Ziemer
collection rather than let the web layer handle that... HTH marco -----Original Message- From: Tom Ziemer [mailto:[EMAIL PROTECTED] Sent: 30 November 2005 15:39 To: Struts Users Mailing List Subject: Re: slightly [OT] Hibernate and domain objects in web apps Hi, @Matt: thanks for y

Re: which one is best for DATA PERSISTENCE

2006-01-10 Thread Tom Ziemer
Hi, I suggest you take a look at both - they're both great frameworks that ease development and you will find tons of people that will tell you that Hibernate is better and just as many that are claiming the opposite. Basically it boils down to this: Do you want to a) write the SQL for the CR

[OT] Complex domain objects and web services

2007-02-20 Thread Tom Ziemer
Hi everybody, I am aware that this is totally OT, but I'd be really grateful for any answers, hints, best practices, links, whatever. My problem is as follows: I am using Hibernate/Spring to load domain objects (DOM) from my database, then I use these DOMs to display information on the web. Great

Re: Struts and RMI

2006-06-16 Thread Tom Ziemer
Hi there, my setup is similar - I have got a JSF frontend and a Spring controlled business logic that handles RMI (client and server) and exception handling (via AOP) declaratively. I'd suggest you take a look at Spring since it eases development, keeps your app. simpler and smaller and therefore

[OT] Remoting question

2006-08-29 Thread Tom Ziemer
Hi everybody, This is rather off topic (and a repost from a different list), but this is bugging me and I am sure, lots of you have faces a similar problem. Basically it boils down to remoting via web services, RMI, Corba, etc. and passing objects by value instead of by reference. Please consider

Re: SiteMesh

2006-11-07 Thread Tom Ziemer
Hi Juan, did you add something like: to your sitemesh.xml I am using SiteMesh with Struts and it's working just great (excludes as well). HTH, Tom Juan Espinosa wrote: > Hi to all, im using sitemesh and i have a little problems with excludes > I have an action that load some data from a db and

Re: SiteMesh

2006-11-08 Thread Tom Ziemer
? Im using only sitemesh without freemaker > or velocity > > Anyone could help me ?? :) > > Regards, > > Juan > > > > -Mensaje original- > De: Tom Ziemer [mailto:[EMAIL PROTECTED] > Enviado el: Martes, 07 de Noviembre de 200

Re: SiteMesh

2006-11-08 Thread Tom Ziemer
nd this cuestion. im using struts2 > > Are you redirecting (redirect="true") to the JSP in your struts-config.xml > > this is my struts config > class="uy.com.nilo.web.actions.CustomerAction"> > /private/login.jsp > > > Regards