RE: sslext

2005-12-06 Thread Daniel Perry
> If I use the action mapping and forward to a full url specifying the > type [http, https], then I have to do a redirect, and then the jsp > page shows up in the url, and that is not good. So I hate that idea. Why does the jsp have to show up in the url? Why not redirect to a full struts url, eg

RE: {Spam?} RE: [OT]Terrific intro to JSF

2005-08-10 Thread Daniel Perry
I am positive that they used to have 'pdf' versions of all the developerworks articles. The developerworks newsletters have some quite interesting stuff in them (and most of it isnt IBM specific!) Daniel. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 10

RE: [OT]Terrific intro to JSF

2005-08-10 Thread Daniel Perry
> Interesting idea. Let's do a bit of mental exploration of what > actually happens to see how practical it is. When does a Struts > custom tag actually execute? Only when the page is being rendered, as > the various HTML elements get produced. Now, when does (server side) > validation need to

RE: [OT]Terrific intro to JSF

2005-08-09 Thread Daniel Perry
> -Original Message- > From: Craig McClanahan [mailto:[EMAIL PROTECTED] > PS: It's pretty straightforward to build turbo versions of the Struts > HTML tags that have many of the same features described above. But > that doesn't begin to touch the behavior at input time, where the > compon

RE: [OT] DTOs are evil

2005-08-05 Thread Daniel Perry
eh? you can do that without the getter/setter in java as MyProperty is public. Daniel. > -Original Message- > From: Larry Meadors [mailto:[EMAIL PROTECTED] > Sent: 05 August 2005 14:18 > To: Struts Users Mailing List > Subject: Re: [OT] DTOs are evil > > > You don't see it?!? Have you lo

RE: DTOs are evil

2005-08-05 Thread Daniel Perry
> employeeDAO.updateEmployee( employee ); > > From what I recall the real OO way would be... > > employee.update(); > > and employee takes care of updating itself. > I made a BaseBO using OJB, which has the create, update, softDelete, hardDelete, findById, findByCriteria methods. It also has an

RE: HTML labels and Struts

2005-08-02 Thread Daniel Perry
I don't think it's a bug, as anchors should never be sent to the server, (I believe the should never be sent in a redirect either). I remember doing some experiments with this. If you request a page: blah.do#someLabel, #someLabel is never sent in the request. If you forward on the server, then i

RE: JSF is the beginning of the end of Struts !!!

2005-07-27 Thread Daniel Perry
> > 3. PHP. I've done some PHP over the last couple years. > > PHP and Struts are not antithetical. There have been several ports of > Struts to PHP, as well as Struts-like frameworks, such as Maverick and > FuseBox. > > I'm not working in PHP myself, but if I were, you can bet I'd be > porting b

RE: JSF is the beginning of the end of Struts !!!

2005-07-27 Thread Daniel Perry
This was the point i was making early on. PHP is cheaper than java - in almost all ways. Hosting: You can host php sites for a couple of pounds a month. Can you do that with java? Development: it's much easier to learn to make a PHP+Mysql databased web site. Therefore programmers are cheaper. P

RE: Re: JSF is the beginning of the end of Struts !!!

2005-07-26 Thread Daniel Perry
e but I don't want to know the answer. > This is a Struts list and I accept JSF is vaguely relevant but I am not > going to utter another sentence about PHP. > > -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > Sent: 26 July 2005 09:46 > To: Struts Use

RE: Re: JSF is the beginning of the end of Struts !!!

2005-07-26 Thread Daniel Perry
PHP / (origional) JSP are the same stuff really. Scripted web page. Main difference is php not OO (well, the api isnt), and php doesnt require any declarations/typing - which makes it nicer for less able programmers. But the big difference is server requirements. JSP uses a lot more server reso

RE: [OT] saving stats from session when session destroyed

2005-07-25 Thread Daniel Perry
(); > AppHelpers.deletePDF(userID); > } > } > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > On Mon, July 25, 2005 12:47 pm, Daniel Perry said: > > I have an app where i need to record key

[OT] saving stats from session when session destroyed

2005-07-25 Thread Daniel Perry
I have an app where i need to record key user stats, which are updated by certain struts actions. The problem is that i want to keep these in the session, and then only save them to the database when the session is either invalidated through logout, or when it times out and is removed by the serve

RE: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Daniel Perry
> Again, that's a situation where you are involving consultants. > Consultants > are expected to know the technology and not learn it on their customers' > time. When a company has its own IT staff, there are rarely opportunities > for somebody else to underbid them. Really? the majority of the w

RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-08 Thread Daniel Perry
Recommendations > [OT] > > > Hey, I had an H-1B when I first came to America. Does that mean I can > be a fashion model? :-) > > On 7/8/05, Daniel Perry <[EMAIL PROTECTED]> wrote: > > "What is an H-1B? > > > > The H-1B is a nonimmigrant classif

RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-08 Thread Daniel Perry
k visa in the US. > > http://uscis.gov/graphics/howdoi/h1b.htm > > > > -Original Message- > > From: Daniel Perry [mailto:[EMAIL PROTECTED] > > Sent: Friday, July 08, 2005 5:33 AM > > To: Struts Users Mailing List > > Subject: RE: [OT] Re: Fired was

RE: Using struts forms as Value Objects: your opinion?

2005-07-08 Thread Daniel Perry
> 1) form beans generally should consist of String data to facilitate > round-tripping of invalid inputs. I like to constrain them to a clearly > defined role of marshaling data 'into' and 'out of' the > presentation layer, > i.e. across the boundary between presentation and application. This i wo

RE: [OT] Recommend a UK Tomcat host

2005-07-08 Thread Daniel Perry
UK2 dedicated linux servers. (uk2.net) We've got a few of these, and they're cheap and reliable. Only negative is you have to setup/manage them yourself. But with linux you honestly have to do very little. Daniel. > -Original Message- > From: Mark Benussi [mailto:[EMAIL PROTECTED] > Sent

RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-08 Thread Daniel Perry
with politically incorrect > > > views) > > > get work in Germany > > > Vielen Danke, > > > Martin- > > > - Original Message - > > > From: "Christian Bollmeyer" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing

RE: Fired???? was...Re: Struts Books Recommendations

2005-07-06 Thread Daniel Perry
Hah, it's the business use of web/email they fire you for. Go read your terms of employment, and the reference to "IT acceptible use policy" that you inadvertantly agreed to. There have been cases in the uk where they have done this as it's much cheaper to hunt out employees who have sent dodgy em

RE: Struts Books Recommendations

2005-07-06 Thread Daniel Perry
> -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED] > > Thanks to whomever emailed last weeks nonsense thread to the Director > of the Board of Elections. It made me look like a racist and I was > fired this morning. The State is also looking into whether my use of > an

RE: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-07-01 Thread Daniel Perry
Yup. To be honest, i can handle the occasional insulting post Be thankful that he's just distasteful and has a sense of humor, and not a complete idiot that will never give up insulting developers. If you're bored, have a search for this guy: Ilias Lazaridis He came on the OJB mailing list a

RE: [To sum it up] Re: Confused

2005-06-15 Thread Daniel Perry
I took one look at ejbs and ran a mile. Struts and EJBs seem to be at the opposite end of a scale. Struts is sensible, nice to work with, efficient, and generally everything that EJBs arnt! I personally use it with OJB (made that decision 1.5 yrs ago). Hibernate seems to be more popular, and if

RE: Confused

2005-06-14 Thread Daniel Perry
No, J2EE is a NOT EJBS! J2EE is a collection of technologies, including servlets, jsp, EJBs, etc. Tomcat hosts various parts of J2EE - servlets, jsps, etc, but it is not a full J2EE container - it doesnt host EJBs. But you can use servlets, JSP and taglibs without using EJBs. I do. I've never used

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

2005-04-15 Thread Daniel Perry
> If you are distributing a product to others that includes GPL > software, and you don't want to put your own work under the GPL, the > end-user has to download the GPL package separately (e.g. MySQL) and > then plug it in. (And you also have to be careful about how the > plugging in process works

RE: Please wait page

2005-04-07 Thread Daniel Perry
A couple of ways to do this: Method1 - Page1 submits to Action1 - on submitting hide main div enclosing page, and show a div with "processing..." until Action1 responds with Page2 Method2 - Page1 submits to Action1. Action1 shows Page2 (Processing...), and immediatly submits to Action2 which sho

mapped properties - website wrong?

2005-02-23 Thread Daniel Perry
I've spent the last couple of hours trying to debug a page with mapped properties. I found a section of the faq about it: http://struts.apache.org/faqs/indexedprops.html It says: "The signature of the "get" and "set" methods for a mapped property are different from the same methods for an indexed

RE: indexing with el

2005-02-23 Thread Daniel Perry
ider that > method part of the indexed property and everything will probably work. It > probably would work under JDK 1.3, but Sun tightened up on how it treats > indexed properties. > > http://issues.apache.org/bugzilla/show_bug.cgi?id=28358#c14 > > Niall > > - Origin

RE: Session Expires Question

2005-02-23 Thread Daniel Perry
I do exactly the same kind of thing with a site. All actions extend BaseAction which extends Action, and implement executeAction, not execute. The (relevant)code for BaseAction: abstract public class BaseAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm f

indexing with el

2005-02-23 Thread Daniel Perry
Hi, I'm trying to create a form which uses indexed properties. My bean has two (amongst others) methods: public List getCost() { return cost; } public String getCost(int index) { return (String) cost.get(index); } In the form i use the above: And it is all fi

RE: [OT] WinCVS problem (free beer!)

2005-01-07 Thread Daniel Perry
om: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: 06 January 2005 21:49 > To: Daniel Perry > Cc: Struts Users Mailing List > Subject: Re: [OT] WinCVS problem (free beer!) > > > Yep, TortoiseCVS is what I'm using, as it was the only one I got working > :) Does the job tho

RE: [OT] WinCVS problem (free beer!)

2005-01-06 Thread Daniel Perry
Give tortoisecvs a try. I personally prefer it to wincvs. http://www.tortoisecvs.org/download.shtml After trying both (and eclipse), i came up with the conclusions: eclipse is the easiest (so use it if using eclipse) tortoise provides nice shell integration that gives an almost 'human' perspec

RE: Actionform 's property

2004-12-20 Thread Daniel Perry
Well the way you dont wish to use would be the normal way to do it :) The form will be available in the request or session (depending on where you put the form) scope from the jsp under the form's name. So ${formName.employeeList} is the list from a JSTL perspective. From scriptlet, either: =((

RE: "dynamic" dropdown select list?

2004-12-16 Thread Daniel Perry
I've done this using a combination of things. I think onClick gets fired if you change the value - even using keyboard, and believe this works accross browsers. I had onClick fill in a hidden field, and submit the form. The validate method notices this, and throws back a single empty actionerror

RE: OJB && struts

2004-12-16 Thread Daniel Perry
I think there is a difference between tieing things to struts, and ojb. Struts is quite obtrusive - you have to use Actions if you're going to use struts. Keeping business logic in actions ties you to struts. If you decided to add a swing interface to your app, then you cant easily reuse this co

RE: OJB && struts

2004-12-15 Thread Daniel Perry
Using OJB and struts is not really any different from using jdbc with struts. Set up ojb as per instruction on their site, and use it in the same places where you'd normally make jdbc calls. I;m not sure if there are any nice examples (havnt looked since i began using ojb a long time ago). I've

RE: ??? property naming convention problem

2004-12-14 Thread Daniel Perry
This is confusing. The bean spec / article is talking about going from a method name into a property name. The problem here is the other way round. Eg, decapitalise method->property will convert: getECoupon -> ECoupon But it doesnt mention property->method capitalise: eCoupon -> getECoupon / get

RE: Generating valid HTML from tag

2004-12-14 Thread Daniel Perry
But that's 5 years during which a non standards-compliant browser has had 90% of the browser market... I dont know of any browser which gets upset at the form name attribute! As a side note, why does struts set the form name? is it used anywhere? I cant see any reason to use the name tag atall.

RE: [OT]Threads and Servlets Question

2004-12-07 Thread Daniel Perry
kground. Compose the mail as normal, then * use the static method: BackgroundSender.send(Email mail) to send the email. * * @author Daniel Perry */ public class BackgroundSender extends Thread { Email theMail; /** * Constructor takes an Email object, and sends it

RE: Placing JSPs under WEB-INF using modules

2004-12-01 Thread Daniel Perry
Yeah, it's no problem. Just use forwards like: Daniel. > -Original Message- > From: Daniel Massie [mailto:[EMAIL PROTECTED] > Sent: 01 December 2004 11:58 > To: [EMAIL PROTECTED] > Subject: Placing JSPs under WEB-INF using modules > > > I have a module called admin, and wish to locate

RE: [OT] Ant question

2004-11-23 Thread Daniel Perry
No idea if ant can do this, but i tend to put a 0 byte 'ignoreme' file in the directory. This stops these problems happening with more than just ant! Daniel. > -Original Message- > From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] > Sent: 23 November 2004 18:31 > To: [EMAIL PROTECTED] > Su

error params in html taglib

2004-11-23 Thread Daniel Perry
I've just noticed in the html taglib documentation that various fields: errorKey, errorStyle, etc have appeared. Can anyone point me to any documentation on how these work? ie. errorStyle "CSS styles to be applied to this HTML element if an error exists for it. " But how do i specify that the

RE: Installation Getting Started Question

2004-11-17 Thread Daniel Perry
> I am wanting to see how Struts may help in my J2EE development. I > have purchased the O'Reilly book "Jakarta Struts" and want to get > started with some examples. > > 1) I am currently running Tomcat 4.1.31 as a standalone. > Can struts be installed with Tomcat as standalone? I saw > somewhe

RE: [OT] User Preference System Design

2004-11-17 Thread Daniel Perry
The most common way to store more than one element in a properties file is to have more than one entry like the following: colour.count=3 colour.0=red colour.1=green colour.2=blue So your code loads the property for colour.count and loops through the other properties. Not very elegant, but it wo

RE: AW: talking about paradigms

2004-11-16 Thread Daniel Perry
intermixed... > This is a simple sintaxis issue... > parameters in java are not passes as pointers.. they are passed as values > ( the memory address of the object in the heap ).. emm... that's a pointer :) passing variables by reference or value is neither here nor there. "pointer - An address,

RE: talking about paradigms

2004-11-16 Thread Daniel Perry
behind the mythology of Star Wars. > > > > > > On Mon, 15 Nov 2004 09:43:19 -0500, Bill Siggelkow > > <[EMAIL PROTECTED]> wrote: > > > >>Sorry, I haven't been following this thread, but I tend to agree with > >>you. I worked on an app that used

RE: [OT] access Microsoft Access database from remote machine

2004-11-15 Thread Daniel Perry
Or, set up filesharing and access then set up a system dsn on the machine you want to use it on. Can get a bit messy though with concurrent access :) Daniel. > -Original Message- > From: Lee Harrington [mailto:[EMAIL PROTECTED] > Sent: 15 November 2004 18:34 > To: Struts Users Mailing Li

RE: talking about paradigms

2004-11-15 Thread Daniel Perry
I think the idea that MVC architecture should have a 'dumb view' is totally wrong. The view should be as smart as possible. MVC should separate the M, V and C. With a really smart view you dont have to do any preparation for the view in the controller. If you have a dumb view then you have to p

RE: Are there Struts Applications in real life out there?

2004-11-15 Thread Daniel Perry
Over the weekend i came accross a couple of high profile (in the uk at least) sites using struts: www.smile.co.uk (internet banking app uses struts) www.vodafone.co.uk (uses portal software from broadvision which uses struts) Daniel. > -Original Message- > From: Axel Gro? [mailto:[EMAIL

RE: OT: hosting recommendations?

2004-11-15 Thread Daniel Perry
Php is a small (in terms of memory footprint) interpreted language. Php (running as an apache module) is kept in memory, but doesnt use anywhere as much memory as your typical tomcat jvm. Each page is processed separately - so you dont have the 'web-app' hanging around in memory. You generally te

RE: session variable in struts

2004-11-11 Thread Daniel Perry
Its the same in struts as in servlets! The execute method of Action is passes an HttpServletRequest. Daniel. > -Original Message- > From: Milson Fredy Cardona Echeverri [mailto:[EMAIL PROTECTED] > Sent: 11 November 2004 17:26 > To: [EMAIL PROTECTED] > Subject: session variable in struts

RE: [OT] Re: A new paradigm of Struts development

2004-11-11 Thread Daniel Perry
To me JDNC seems like a halfway house between webapps and rich client apps. I personally like the way that webapps work (everything is written for the server and executed on the server then merely displayed at the client), but I hate the interface (html - and browser). The web interface lacks con

RE: Validator - Redirects or Forwards?

2004-11-11 Thread Daniel Perry
It uses forward (otherwise the errors get lost between requests!). Do you get an error? Daniel. > -Original Message- > From: Yagiz Erkan [mailto:[EMAIL PROTECTED] > Sent: 11 November 2004 09:34 > To: [EMAIL PROTECTED] > Subject: Validator - Redirects or Forwards? > > > When the validatio

RE: Hiding Url File Parameters

2004-11-10 Thread Daniel Perry
; Subject: Re: Hiding Url File Parameters > > > I'm just trying to hide all the technical details from the user. Nobody > should attempt to bookmark a page using the Action.do > even if it's technically not possible (when using a filter). > > Regards, > > Peter

RE: Hiding Url File Parameters

2004-11-10 Thread Daniel Perry
.action.RequestProcessor.doForward(RequestProcess > >>>>or.java:1062) > >>>> > >>>>org.apache.struts.action.RequestProcessor.processForwardConfig(Req > >>>>uestProcessor.java:455) > >>>> > >>>>org.apache.struts.action.RequestProcessor.proc

RE: A new paradigm of Struts development

2004-11-10 Thread Daniel Perry
> Yes you are missing something ;) > > I am saying struts doesn't need a "view controller" because you can > implement the post-redirect-get pattern and struts is complicated enough > already. Although no-one is arguing for or against me :) > > I think it is more a case of JSF needing a better con

RE: [Tiles] Forwarding to an specific anchor link of a Tile

2004-11-10 Thread Daniel Perry
This is not a good idea... As far as i'm aware anchors are not part of the http specification. They are only implemented in html. Eg. You type /myAnchor.do#myAnchor into the url bar in your browser, the browser actually requests /myAnchor.do - it doesnt send the anchor - it just uses it to show

RE: Hiding Url File Parameters

2004-11-10 Thread Daniel Perry
t; > > Thanks that definitely solved the problem. > > Is there also a way to get rid of the Action.do ? > > Regards, > > Swen > > > > Daniel Perry schrieb: > > >Yep, > >Change your code to: > >nextPage = mapping.findForward("struts"); > &

RE: Are there Struts Applications in real life out there?

2004-11-09 Thread Daniel Perry
hehe... I'm lucky - i work for a small company, and as far as management is concerned open-source=free and free=good so through the power of transativity open-source=good and thats as far as any concern goes... We've built several big apps using struts - all have been intranet applications so non

RE: Hiding Url File Parameters

2004-11-09 Thread Daniel Perry
on of the Action which is explicitly called > and which causes the error: > > input="struts.jsp" > name="postHvForm" > scope="request" > validate="true" > type="pack.servlets.Post

RE: Hiding Url File Parameters

2004-11-09 Thread Daniel Perry
So you have an action, which forwards to a jsp page, and you dont want the users to see the blah.jsp? Just set redirect to false. This causes it to forward the request internally without sending a browser redirect. The jsp will be processed, and return the result to the browser, but as far as th

RE: Remotely restart Tomcat.

2004-11-08 Thread Daniel Perry
I too have found this problem. I dont entirely understand it myself, but I was told that when you restart / stop-start a webapp tomcat has to create new classloaders - and the old classloaders are orphaned and are not cleaned up during garbage collection, so you basically get a memory leak. In my

RE: Remotely restart Tomcat.

2004-11-04 Thread Daniel Perry
What OS are you using? I use ssh to log into our linux servers and restart tomcat that way. Can also be done using telnet into windows. Daniel. > -Original Message- > From: Philip DONAGHY [mailto:[EMAIL PROTECTED] > Sent: 04 November 2004 11:32 > To: Struts Users Mailing List > Subject:

RE: Checking a cookie or redirecting - best way? (Getting ERROR, Help!)

2004-09-21 Thread Daniel Perry
It is saying that bean:cookie should be an empty tag. As you havnt closed the tag, it isnt empty! So, should be: Notice the slash on the end! Daniel. > -Original Message- > From: CCNY [mailto:[EMAIL PROTECTED] > Sent: 21 September 2004 14:04 > To: Struts Users Mailing List > Subject: F

RE: Can anyone recommend a UK based Tomcat Struts MySql hosting solution?

2004-09-16 Thread Daniel Perry
Personally, i've never used shared tomcat/struts/mysql hosting. We use uk2 (http://uk2.net/) dedicated servers. Cheapest ones are £29 per month (3 years up front tho!) for an intel 2.4ghz, 512mb ram, 40gb hdd server with fedora. Easy enough to set up tomcat on it, and works a treat! Initialy bou

RE: FOP for PDF

2004-09-15 Thread Daniel Perry
FOP works a treat. I found it better than iText. Pretty simple to return from a struts action (see the fop example servlet code - its basically the same). Daniel. > -Original Message- > From: Jesse Alexander (KXT) [mailto:[EMAIL PROTECTED] > Sent: 15 September 2004 07:01 > To: Struts User

RE: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-14 Thread Daniel Perry
Having been exposed to both .NET and java i have to say i've prefered java. My main reasons are: 1. java is free so learning it as a student was cheaper (well, legally anyway!) 2. the amount of free stuff out there for java. There is soo much available! Show this to most .NET developers and t

RE: Adding Tags Dynamically

2004-09-08 Thread Daniel Perry
Do you want to do this for a single extra field? or any number of extra fields? If single, then just hide it using css, and use a bit of javascript to unhide it. If multiple, you can achieve this using struts by having the form submit, add extra item in a list (where each item represents a row),

RE: Adding Tags Dynamically

2004-09-08 Thread Daniel Perry
No! Struts tags are executed on the server. Once user has received the page, it is running on the client browser, not on the server, so struts tags are no use! What do you want to do on the client? You probably want to use just javascript! Daniel. > -Original Message- > From: Hadeel

RE: Line Breaks and Formatting Text

2004-09-07 Thread Daniel Perry
> data from the DTO. > > Which would you use? > > Thanks again. > > Tom > > Daniel Perry wrote: > > > If you choose to keep the replaceall, then use: > > > > > > Or, for a jsp only solution: > > > > <% p

RE: another easy (I hope) beginner question

2004-09-07 Thread Daniel Perry
If i understand your question right, you have a code collectionElement.fskRating which represents a rating? (ie 1 = "pg-13", 2="G"). I have never done this, but i dont see why you cant just put an array/map of the full values into the request scope, then use jstl to look it up: somthing like: ${fu

RE: Line Breaks and Formatting Text

2004-09-06 Thread Daniel Perry
If you choose to keep the replaceall, then use: Or, for a jsp only solution: <% pageContext.setAttribute("linefeed", "\n"); %> Daniel. > -Original Message- > From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED] > Sent: 06 September 2004 17:08 > To: Struts Users Mailing List > Subject: Li

RE: Iterating over collection ...

2004-08-31 Thread Daniel Perry
You need to nest another iterate'er in order to iterate through the inner list for each object:                 Daniel. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 31 August 2004 17:48 > To: [EMAIL PROTECTED] > Subject: Iterating over c

RE: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread Daniel Perry
I would do somthing like the following: ${contact.name} ${contact.number} Modify The action modifyContact should load the contact with the specified id, "ID" is available by String ID = request.getParameter("ID"); The action the

RE: Submit to 3rd party URL after completing Action

2004-08-31 Thread Daniel Perry
Whenever i come accross this, i put a 'confirmation' screen, with all the details repeated, and a 'pay now' button that submits the (hidden) form to the external site. Daniel. > -Original Message- > From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] > Sent: 31 August 2004 16:17 > To: St

RE: Learning the basics

2004-08-31 Thread Daniel Perry
at the DAO returns a model object). > Would appreciate opinions of the more experienced as far as how closely > this follows best practices. > > > > > > > > > "Daniel Perry" > > <[EMAIL PROTECTED] > > co.uk> > T

RE: Learning the basics

2004-08-31 Thread Daniel Perry
If you want to follow common java 'patterns' then try to find some info about data access objects (DAOs), data transfer objects (DTOs or TOs), and view objects (VOs). That should point you in the right direction. Basically, they are javabeans! Daniel. > -Original Message- > From: news [m

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Daniel Perry
2004 18:48 > To: Struts Users Mailing List > Subject: RE: philosophical question/poll about Struts/JSTL, scriptlets > > > > --- Daniel Perry <[EMAIL PROTECTED]> wrote: > > > hah forget the 'purist' approach! > > > > I use jstl / struts taglib

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Daniel Perry
> Using scriptlets, to me is like going back to the bad old days of > out.println(" -Original Message- > From: Jim Barrows [mailto:[EMAIL PROTECTED] > Sent: 27 August 2004 18:35 > To: Struts Users Mailing List > Subject: RE: philosophical question/poll about Struts/JSTL, scriptlets > > > >

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Daniel Perry
hah forget the 'purist' approach! I use jstl / struts taglibs whereever possible. if i had a choice between writing my on taglib or scriptlet for me scriptlet wins - much less hassel, and the code is there for you on the jsp, and it's only normally for very simple things. The main times i us

RE: Question about downloading files from a Struts servlet

2004-08-27 Thread Daniel Perry
Not sure what is wrong, but for a possible work-around, have you tried making the target for the form (or link) a new window? Daniel. > -Original Message- > From: Eric Hodges [mailto:[EMAIL PROTECTED] > Sent: 27 August 2004 17:17 > To: Struts Users Mailing List (E-mail) > Subject: Questi

RE: download binary content

2004-08-25 Thread Daniel Perry
; could you enlighten me on what I may be sacrificing? > > Thanks, > Erik > > > Daniel Perry wrote: > > >Below is some code i wrote to do this. is some code i wrote: > > > >Note the doc object is specific to my app it has methods for > returning the >

RE: download binary content

2004-08-25 Thread Daniel Perry
Below is some code i wrote to do this. is some code i wrote: Note the doc object is specific to my app it has methods for returning the content type, filename, and a File object pointing to the document on disk. I have used almost identicle code for outputting pdf data. I think you can use "atta

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Daniel Perry
tz.SimpleTrigger; import com.netcase.pdp.service.scheduledjobs.RemoveOldProvisionalTrainingJob; /** * @author Daniel Perry * */ public class SchedulerService implements PlugIn { Scheduler sched; public void init(ActionServlet servlet, ModuleConfig moduleConf)

RE: Security - From tradition to struts

2004-08-19 Thread Daniel Perry
You can also put an execute method in the base action that does the 'logged-in' check, and use a global forward to forward to login page. If you do this, then add an abstract method eg executeAction with the same signature as execute, and call it. The main advantage of this is to stop you forgett

RE: [OT] RTF & PDF export options

2004-07-20 Thread Daniel Perry
fop - http://xml.apache.org/fop/index.html In my opinion better than iText - gives a bit more control. I had problems with layout in iText - it adds funny paragraph spacing (especially with big fonts). For fop - generate an XML file with data, write some XSL to translate data into fop xml, and t

RE: [OT] Best practice for background service

2004-07-15 Thread Daniel Perry
mpleTrigger; import com.netcase.pdp.service.scheduledjobs.RemoveOldProvisionalTrainingJob; /** * @author Daniel Perry * */ public class SchedulerService implements PlugIn { Scheduler sched; public void init(ActionServlet servlet, ModuleConfig moduleConf) thr

RE: [OT] Best practice for background service

2004-07-15 Thread Daniel Perry
Quartz is very easy to use. No need for thread programming. But "Job" classes are created as and when they are needed (so no initialisation and shared object). Create a struts plug-in which initialises quartz, and sets up the jobs (very little code needed). Daniel. > -Original Message-

RE: how to handle special characters like "®"

2004-06-30 Thread Daniel Perry
I've come accross this problem before, and i fixed it by setting the jsp pages to content type iso-8859-1 rather than UTF-8. Stick the following tag at the top of the pages: <%@ page contentType="text/html;charset=iso-8859-1" language="java" %> Daniel. > -Original Message- > From: Jiro

RE: [OT] Anatomy of a long URL

2004-06-28 Thread Daniel Perry
I dont think there is any information out there of the type you're requesting (it's not really a 'pattern'). Long URLs are long because there is a lot of information to transfer. The big long codes given in urls are often are often hashes (eg session id!). These are made long so that it's hard t

RE: Theoretical debate

2004-06-18 Thread Daniel Perry
I agree with this. I tend to find myself passing parameters to business services rather than DTOs. I do it for simplicity. If i use an ActionForm then you either have to add things like getNumberAsInt as getNumber returns a string, or do the integer parsing in the action. You then have to retrie

RE: problem with jsession id

2004-06-18 Thread Daniel Perry
There is no need for you to use a taglib to render a link! The easiest solution: Login > -Original Message- > From: Dhruv Trivedi [mailto:[EMAIL PROTECTED] > Sent: 18 June 2004 12:45 > To: Struts Users Mailing List > Subject: Re: problem with jsession id > > > Hi Niko and all other guys,

RE: problem with jsession id

2004-06-18 Thread Daniel Perry
That would be jsp adding the session id. Not really a problem, so do you really need to get rid of it? I think it wont appear on further pages, becuase it will use a session cookie (if i understand correctly, the first time it adds that just in case session cookie doesn't work). You should be ab

RE: Theoretical debate

2004-06-18 Thread Daniel Perry
I personally think struts is spot on. I think it does follow Java & OO principles, and many J2EE patterns. My struts apps generally consist of DAOs which handle simple methods, and some services which handle more complex operations. These interact with beans which are persisted using OJB. The a

RE: [OT] Soccer portal released goal.com

2004-06-17 Thread Daniel Perry
> Way back in April I was quite impressed by a demonstration > Visual .Net / Managed C++ / C# talking directly to a J2EE 1.4 > web service. The guy demonstrated the whole thing in under > five minutes. So I have been wondering what is the state of the > art of tools under J2EE, but I guess I will f

RE: [OT] thick client functionality in the browser

2004-06-04 Thread Daniel Perry
I can see where you're going with the mixing of business logic and views. I will admit that in parts i have done this. A quick javascript check gives a much quicker response that submit/redisplay form. Especially when you get some of the massive pages in our system. One solution i had was to do

RE: [OT] thick client functionality in the browser

2004-06-04 Thread Daniel Perry
I agree with this. Our app is IE only, and it's amazing what you can do. IFRAME's make great scrollable tables. The use of document.getElementById("xxx").style.display="none" (or "") for hiding/unhiding stuff is very extensive. I disagree with the comment about layers tho. Our jsps are still on

RE: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread Daniel Perry
Daniel. > -Original Message- > From: John Antonakos [mailto:[EMAIL PROTECTED] > Sent: 03 June 2004 15:10 > To: Struts Users Mailing List > Subject: Re: How can i avoid the use of & in a drop down box ? > > > where should i put that ? > i never heard of it... > > please give more info,

FW: Delivery Status Notification (Failure)

2004-05-28 Thread Daniel Perry
Everytime i post to the struts list, i get an email back for one person: Could an admin unscuscribe this user please :) Daniel. -Original Message- From: postmaster+AEA-rave-tech.com +AFs-mailto:postmaster+AEA-rave-tech.com+AF0- Sent: 28 May 2004 10:16 To: d.perry+AEA-netcase.co.uk Subjec

RE: is OJB a good choice for Modeling ?

2004-05-28 Thread Daniel Perry
I've been using OJB for 6 months now, and have found it works nicely. If you do go for ojb, join the user mailing list, as it can be very helpful when trying to figure out what's going wrong, especially to begin with! Daniel. > -Original Message- > From: Zaid [mailto:[EMAIL PROTECTED]

  1   2   >