Re: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Jin Bal
If you don't wnat to be tied to the DynaBean api either you could defin your own custom DTO interface that defines the data that your model layer requires. then you could have your ActionForm implement your custom interface. Then you could just pass the action forms into the layer as the custom

Re: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Jin Bal
agree that seems like a good way to approach it :) Cheers Jin I would use the tools that are out there when you can...especially when they are free. My 2 cents. robert -Original Message- From: Jin Bal [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 3:10 AM

Re: Which O/R layout most used with Struts

2002-10-18 Thread Jin Bal
I've recently had to make the same decision and looked at (among others - castor,hibernate) the ones you specified. I ended up going with OJB because it seemed the simplest to start with. One of the main things that attracted me to OJB was the idea of clean transparent persistence - that is your

Re: Which O/R layout most used with Struts

2002-10-18 Thread Jin Bal
Try searching the OJB mail archive - it has been discussed extensively there - Original Message - From: Jin Bal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 18, 2002 1:36 PM Subject: Re: Which O/R layout most used with Struts I've recently

Re: Image rendering components

2002-10-10 Thread Jin Bal
Your action could write the html from your DTO directly to the response, without the need to forward to a JSP. this would go along the lines of: snip inStream = docLib.getDataStream(); ByteArrayOutputStream out =new ByteArrayOutputStream(); byte[] buf = new byte[4096]; int i = -1;

Re: Poolman 2.0.4 Struts tomcat4.x

2002-10-09 Thread Jin Bal
Try putting the poolman.xml in the WEB-INF/classes folder HTH Jin - Original Message - From: Ferran Parra [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 10:46 AM Subject: Poolman 2.0.4 Struts tomcat4.x Hi I was wondering if

Re: Torque initialization/configuration in a Struts Application

2002-09-24 Thread Jin Bal
Try this (or something close) in your Action code : String contextRoot = getServlet().getSerlvetContext().getRealPath(); Torque.init(contextRoot+/WEB-INF/TORQUE.properties); NB: getServlet() should work in 1.02. I think this may have changed in 1.1b2 - check the API docs to see how to grab a

Re: [ActionForm] Extending existing ActionForm classes

2002-09-24 Thread Jin Bal
CreateUserProfileForm etc must extend from ActionForm then UpdateUserProfileForm can extend from CreateUserProfileForm. Your forms must have a base type of ActionForm HTH Jin - Original Message - From: Charles [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

Re: Extending Action and DispatchAction

2002-09-23 Thread Jin Bal
How about a little helper class that sits in between them ? That ought to do the trick. HTH Jin - Original Message - From: Darren Hill [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, September 23, 2002 7:03 PM Subject: RE: Extending Action and

Re: Newbie to struts

2002-09-17 Thread Jin Bal
Have you tried putting struts.jar into: C:\java\jakarta-tomcat-3.3.1\webapps\strutsShop\WEB-INF\lib ? I might have missed something in your post so forgive me if this is irrelevant HTH Jin - Original Message - From: angela mcgrenra [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,

Re: sites powered by struts

2002-09-11 Thread Jin Bal
I have worked on the underlying software for this site(quite a while ago now) and I believe it uses Resin although that could well have changed now - Original Message - From: Nick Sharples [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, September 11,

Re: Higher level html tags

2002-05-29 Thread Jin Bal
You could write a custom tag to do just this as I have done, which accepts date objects or strings for the individual field names. Alternatively there is a calender taglib in the jakarta taglibs I believe HTH Jin - Original Message - From: Dejan Bosanac [EMAIL PROTECTED] To: [EMAIL

Re: Want ActionForward to be ignored, just using HttpServletResponse

2002-05-29 Thread Jin Bal
Returning null will acheive the effect that you desire HTH Jin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 3:46 PM Subject: Want ActionForward to be ignored, just using HttpServletResponse I have an Action subclass that will be

Re: Design Advice - Relational Databases Java Objects

2002-05-29 Thread Jin Bal
IMHO It's better that any db access layer does not know how to get a database connection, it just gets given them by the client calling it. This way if you need to change the way you grab db connections the db access layer is none the wiser and no code changes are needed Jin - Original

Re: cannot load controller servlet

2002-05-03 Thread Jin Bal
cannot load servlet name : action :null Looks like the initialisation of your actionservlet is throwing a NPE. Try checking the servlet.log file in %TOMCAT_HOME%/logs This will usually give more information and maybe even a stacktrace. Also set the debug param and detail param in the web.xml

Re: logic:present and logic:notPresent tags - both are being exec uted!

2002-03-14 Thread Jin Bal
You could try changing the logic that sets the myAgents Vector into the session to either set the list or set a zero length list rather than null...just a thought. Try explicitly setting the scope in your bean write tag HTH ;-) Jin - Original Message - From: [EMAIL PROTECTED] To:

Re: Parsing Error for struts-config.xml

2002-03-08 Thread Jin Bal
I *think* the problem may be your container's implementation of : InputStream input = getServletContext().getResourceAsStream(config); where config is the struts-config.xml When I tried to use struts with Resin I encountered the same problem (never worked how to fix it started using tomcat).

Re: running two instances of resin

2002-03-08 Thread Jin Bal
Looks like they're both trying to bind to port 80 Resin won't allow that - Original Message - From: Egger Oliver [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 08, 2002 10:17 AM Subject: running two instances of resin hello, testing with

Re: Poolman Setup with Struts under tomcat 3.3

2002-03-05 Thread Jin Bal
You're probably already doing but just in case: when you get your datasource use the static method in the PoolMan class (PoolMan.findDataSource) This will return you a datasource from poolman. The fact that it works when you put the datasource tag back in the struts config xml suggests that it

Re: NEVERMIND: Changing Request Parameters

2002-02-22 Thread Jin Bal
Equally cheesy would be to set request attributes and get the receiving action to check the attributes before checking the req params. It's dirty I know, but it may be slightly preferable to constructing query strings on the server and creating a new request... Just a thought. HTH Jin

Re: frame page src=?

2002-02-15 Thread Jin Bal
how about src=something.do - Original Message - From: Henry Lu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 15, 2002 1:34 PM Subject: frame page src=? How to specify src path in the frame tag under struts? I did the following and it didn't work

Re: frame page src=?

2002-02-15 Thread Jin Bal
- Original Message - From: Henry Lu [EMAIL PROTECTED] To: Jin Bal [EMAIL PROTECTED] Cc: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 15, 2002 2:15 PM Subject: Re: frame page src=? No it doesn't work either. Could you show me a working examples

Re: frame page src=?

2002-02-15 Thread Jin Bal
phone: (734) 936-2063 University of Michigan Medical Center fax: (734) 763-4372 On Fri, 15 Feb 2002, Jin Bal wrote: What kind of errors do you receive?. Can you call something.do from the url bar? are you using extension mapping or path mapping? We use extension

Re: Multiple struts-config.xml files?

2002-02-14 Thread Jin Bal
I asked a similar question re potential problems with multiple action servlet instances(no reply). I think the issues may have something to do with the actionservlet resources but I'm not sure and would be **very** interested in finding out as I'm using this approach using struts 1.0. Jin

Re: Controller and security

2002-02-08 Thread Jin Bal
You could dispense with changing/extending the controller by creating an abstract action layer that defines a new abstract method such as performAction() which returns an actionforward obj like perform() . Your perform method in the abstract class then carries out the validaton if it is ok it

Taglib parse error

2002-01-30 Thread Jin Bal
I've suddenly started receiving a parse error : null when I try to access any page that contains a reference to struts logic tld. Any ideas guys/gals? The only thing I've changed recently is changing struts-confix.xml and web.xml to reference dtd's on my own system. Please Help! Jin -- To

DTD validation

2002-01-24 Thread Jin Bal
How do I cleanly switch off or force struts and the web.xml to validate the dtds that are on my local machine as opposed to trying to resolve the url declared in the xml file (which sometimes can be unavailable). I've commented out the doctype declaration as a stop gap measure but this isn't an

Re: DTD validation

2002-01-24 Thread Jin Bal
your config files validated for some reason you can turn this off by setting the validating init-param for the ActionServlet in your web.xml file to false. -james [EMAIL PROTECTED] http:[EMAIL PROTECTED]/struts/ -Original Message- From: Jin Bal [mailto:[EMAIL PROTECTED]] Sent

Re: Advice needed for frame templating

2002-01-10 Thread Jin Bal
We have got round the problem of passing javabeans into other frames by using javascript to set variables in the other frames(the alternative to to using jsp:includes and jsp usebeans). This is one of the possible issues that you may run into (as we have) when using frames. IMHO I think it's

Re: Struts design advice requested please.

2002-01-10 Thread Jin Bal
One possible way to do this would be to specify two instances of the actionservlet in the web.xml each pointing at it's own version of struts-config.xml. The content of the xml will essentially be the same and will call the same actions except that the formbean definitions would be different

Re: What is the best way to display pictures from a database usin g Struts

2002-01-09 Thread Jin Bal
A nice design for an action such as this is to create a BinaryRenderAction which receives as request parameters the db reference of the image so it or soime business delegate/DAO can retrieve it, and a reference to the mime-type so that it can set the header in the response. This way the action

Re: JSP scriptlet nested inside struts tag.

2002-01-07 Thread Jin Bal
try using single quotes the readonly attribute and double quotes inside the scriptlet thus- snip - form:text readonly='%=true %' property=kontofuehrung1data.knelimitregion1 styleClass=N100 -snip HTH Jin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

Re: Creating reports in PDF format

2002-01-03 Thread Jin Bal
The Keiuken package is within a larger project called cappucino. Unfortunately all the docs are in japanese but if you look at the code you can get the gist HTH - Original Message - From: Jin Bal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

Re: HOW DO YOU ADD DYNAMIC CONTENT VIA SCRIPTLETS IN HTML TAGS

2001-12-24 Thread Jin Bal
html:text property=companyName value=%=rs.getString(1);% try removing the semi-colon from the scriptlet (;) as you are using the %= construct. regards Jin - Original Message - From: Sudhir S. Shetty [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, December

struts console

2001-12-12 Thread Jin Bal
Hi, Does anybody know how to prevent the struts console from quadruple spacing (!!) the lines in my struts-config file in jbuilder 5 pro. It's rather difficult to work the file for those who don't have the plugin. Thanks in advance Jin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

Re: struts console

2001-12-12 Thread Jin Bal
in the final 1.1 release. If it's not, let me know and I will fix it. BTW, this bug is because of a bug in JDOM (which I use for manipulating the config file XML). Thanks, -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- Jin Bal [EMAIL PROTECTED] wrote: Hi, Does anybody

Re: struts console

2001-12-12 Thread Jin Bal
I'm afraid the it's still broken - Original Message - From: Jin Bal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 12, 2001 1:48 PM Subject: Re: struts console I shall download it now, thanks - Original Message - From: James Holmes

Re: Connections Transactions

2001-12-05 Thread Jin Bal
I would say so, That is to say that if you call commit in the session bean then the operations carried out in the DAO will be committed and conversely if you roll back. HTH Jin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 4:58 AM

Re: Action an overkill ??

2001-12-05 Thread Jin Bal
IMHO the DB should never be accessed by anything in the JSP itself, Tag or otherwise. I believe that one of the purposes of having actions is to enable delegation of things like DB access to specialised layers which can then be pluggable. Also, using actions allows processing to be wrapped

Re: %@ include File = %= includefile% % is there a way doto this

2001-11-29 Thread Jin Bal
Use the jsp:usebean tag instead and specify scope=session , the one you've been trying to use is for including files such as other pages. HTH Jin - Original Message - From: Mohammed [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 11:49

Re: %@ include File = %= includefile% % is there a way doto this

2001-11-29 Thread Jin Bal
ignore what I just said I need to learn to read properly ;o) - Original Message - From: David Cypers [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 12:19 PM Subject: RE: %@ include File = %= includefile% % is there a way doto this

Re: %@ include File = %= includefile% % is there a way doto this

2001-11-29 Thread Jin Bal
Mohammed - Original Message - From: Jin Bal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 1:23 PM Subject: Re: %@ include File = %= includefile% % is there a way doto this SourceBean mysourcebean = (SourceBean

Multiple servlet instances

2001-11-29 Thread Jin Bal
Hi I have subclassed the ActionServlet multiple times to provide slightly different initialisations. These multiple instances have been mapped in web.xml and each assigned it's own extension mapping (*.xxx, *.yyy ...) Are there any major issues with doing this with regards to resources stored

Re: works on local machine but when deployed to another machine doesnt work

2001-11-27 Thread Jin Bal
Sounds like the document/context root on the server you deployed it on is set differently. You need to point your server to the context root of you app. In tomcat for instance you ca edit the server.xml so that \ after the web address will point at any directory you want so that calling

Re: Action and Jsp / passing Parameters

2001-11-23 Thread Jin Bal
In you action class you can set an object into the request using request.setAttribute(). This object could be of a generic type that you could examine in the jsp using a jsp:usebean tag to extract the object from the request. The action class always forwards the request object it has back to

Re: Forward from one Action-instance to another

2001-11-21 Thread Jin Bal
Alexander is right you can forward to another action in this way. It may start to get a bit complicated when you need to introduce request parameters for the action you are forwarding to and you may find yourself creating query strings inside the action class which I believe someone (either Ted

Re: Action not being found

2001-11-20 Thread Jin Bal
It seems like the ActionServlet cannot find an instance of an Action class. From you snippets it seems that you haven't registered your implementation of the Action class i.e type=org.apache.struts.example.LogonAction as an attribute within the action tag - Original Message - From:

Re: Action not being found

2001-11-20 Thread Jin Bal
? Cheers Tony Jin Bal wrote: It seems like the ActionServlet cannot find an instance of an Action class. From you snippets it seems that you haven't registered your implementation of the Action class i.e type=org.apache.struts.example.LogonAction as an attribute within the action tag

Re: Want to check user is logged in every page server

2001-11-20 Thread Jin Bal
One way would be to create an abstract layer underneath the action layer that defines an abstract method similar to the perform() method. Then you could 'wrap' processing around the call the the abstract method which your concrete subclasses implement. - Original Message - From: [EMAIL

ActionForms and GET requests

2001-11-19 Thread Jin Bal
Hi All, Will the ActionServlet populate an action form instance from a GET request or does there have to be an HTML form that submitted the POST request?. Thanks in adv Jin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]