nested img

2002-06-06 Thread Keith Chew
Hi I was wondering why isn't there a nested:img tag? I want to have a nested image with a link, ie: nested:img src=someimage.gif name=somebean property=someMap/ Is there an alternative? I could do nested:link name=somebean property=someMap/img src=someimage.gifnested:link/ but it creates an

RE: nested img

2002-06-06 Thread Keith Chew
Thank you James and Arron for you reply. I'll give the border=0 a go while waiting for the nested:img tag. Keith -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED]] Sent: Friday, 7 June 2002 3:48 p.m. To: Struts Users Mailing List Subject: Re: nested img Hi I was

html:link

2002-06-10 Thread Keith Chew
Hi I was wondering if there is a tag to generate a url link from a map, and preserve the sessionid. Just like what html:link is doing. Ie html:link page=somelink name=someBean property=someMap/ I want something like: html:writelink page=somelink name=someBean property=someMap/ which will

html:image

2002-07-18 Thread Keith Chew
Hi Why doesn't the html:image tag allow for the name attribute? I am trying to use it within the iterate tag, ie logic:iterate id=something name=someBean property=someCollection html:image src=/images/image.gif name=something property=someAttribute/ /logic:iterate It does not recognise the

RE: html:image

2002-07-18 Thread Keith Chew
[mailto:[EMAIL PROTECTED]] Sent: Friday, 19 July 2002 12:55 p.m. To: Struts Users Mailing List Subject: RE: html:image I think maybe it's the property attribute instead? Not sure about that, but you could give it a try. -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent

RE: Working with tokens

2002-01-08 Thread Keith Chew
You could extend it a a little bit further, ie a simple state machine for a start (gradually moving to a more complex workflow system). In your simple state machine, you can: For all actions, it can be dependent on another action (eg SubmitForumMessageAction and SubmitEmailMessageAction is

RE: Working with tokens

2002-01-08 Thread Keith Chew
Opps, sorry, I didn't read your previous post and you are already using tokens. Sorry... FYI, there is a current workflow being developed for Struts, and you can achieve the same results as the token with that. Keith -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent

RE: Struts design advice requested please.

2002-01-10 Thread Keith Chew
Hi I use a subclass technique where I can achieve both a generic form as well as specific forms for each action. Eg public abstract class GenericListForm extends ActionForm public class OrderListForm extends GenericListForm public class MessageListForm extends GenericListForm In my case, both

RE: Question about logic:equal

2002-01-21 Thread Keith Chew
Hi Juan You can try the greaterThan or lessThan for your authorization levels: logic:lessThan name=user property=authorizationLevelId value=2 Some HTML goes here /logic:equal Hope it helps Keith -Original Message- From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]

RE: Model Persistence Survey

2002-01-23 Thread Keith Chew
Hi FYI, Data Access Objects (DAOs) is not a persistence mechansim, it's a design pattern used to encapsulate the mechanism. The mechanism itself can be JDBC (in the example you have given), Castor JDO, Sun JDO, or any other O/R mapping tools' API. Keith -Original Message- From:

RE: Model Persistence Survey

2002-01-23 Thread Keith Chew
Hi Just some thoughts. You could use the delegate pattern instead of inheritence. This will help decouple your FormBeans from your DaoBeans. Keith -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Thursday, 24 January 2002 9:10 a.m. To: [EMAIL PROTECTED]

RE: Session in multiple windows on same machine

2002-01-24 Thread Keith Chew
Hi Let's start on url-rewriting. When you open a browser, eg http://localhost/page1.jsp;jsessionid=111 All the browser has is the session id, right? Now, clicking on Ctrl-N (new window) is no different from clicking on Refresh. Let's assume you did a Ctrl-N, you now have 2 windows. Ok,

RE: Session in multiple windows on same machine

2002-01-24 Thread Keith Chew
different applications) in the same computer via two browser windows? This is an interesting issue. Any help highly appreciated. Jorge - Original Message - From: Keith Chew [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 3:53 PM Subject

RE: ReQ: Only one logged in session at a time for each user

2002-02-03 Thread Keith Chew
Hi Kayode Just a note, a Singleton will not work if you have a cluster of JSP containers serving your application. You would have to use the database or a stateful session bean if you want it to work in a distributed environment. You could try the application context, but I am not sure if the

RE: Best Approach for Database Access?

2002-02-12 Thread Keith Chew
Hi Paul I follow this design practice for both EJB and non-EJB applications. The ones marked with * live at the application server JVM. (1) Non-EJB environment === JSP - ActionBean - ServiceBean - DaoBean - DB (2) EJB environment (BMP or Session)

RE: Best Approach for Database Access?

2002-02-12 Thread Keith Chew
-Original Message- From: Keith Chew [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 2:47 PM To: Struts Users Mailing List Subject: RE: Best Approach for Database Access? Hi Paul I follow this design practice for both EJB and non-EJB applications. The ones marked with * live

RE: Best Approach for Database Access?

2002-02-12 Thread Keith Chew
More pointers... In the example I gave earlier, the DaoBean is responsible for communicating with the database. So, you can implement the data access with any of these technologies: - direct SQL - O/R mapper like Castor, Toplink, Cocobase - JDO - ... In the CMP environment, the container will

RE: Development Environment

2002-02-21 Thread Keith Chew
UML modeling: TogetherSoft CMP data modeling: TogetherSoft Cutting-code: IntelliJ Debugging: IntelliJ JSP Presentation: Macromedia Ultradev Build: Ant Deployment descriptors: XDoclet Test: Ant + JUnit Deploy: Ant Regards Keith -Original Message- From: Dave Wellman [mailto:[EMAIL

RE: Development Environment - JSP's

2002-02-21 Thread Keith Chew
Yes, the ultradev plugin supports taglibs (look at Strut's Resources page). Macromedia has some annoying bugs with formatting, but tolerable at the moment. Keith -Original Message- From: Molitor, Stephen [mailto:[EMAIL PROTECTED]] Sent: Friday, 22 February 2002 10:42 a.m. To: 'Struts

action forms..

2002-02-24 Thread Keith Chew
Hi I have a template jsp file which on the side bar displays the Latest News. The latest news is retrieved from the database. I can do a database access from the JSP or from a custom taglib, but this does not follow the MVC pattern. So, what I have done is have a BaseAction class this extends

RE: changing from *.do to /do/* screws up everything?

2002-02-27 Thread Keith Chew
An alternative to putting it in the WEB-INF is to use Apache to filter the request, eg: Location /*.jsp Deny from all /Location This has the advantage of: - if you decide not to disallow JSPs, you can - when you are developing, it's often handy to view the JSPs without going through

RE: changing from *.do to /do/* screws up everything?

2002-02-27 Thread Keith Chew
- From: Keith Chew [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 2:21 PM Subject: RE: changing from *.do to /do/* screws up everything? An alternative to putting it in the WEB-INF is to use Apache to filter the request, eg

RE: changing from *.do to /do/* screws up everything?

2002-02-27 Thread Keith Chew
I have a SuccessAction which only has one line in the perform() method: return mapping.findForward (success); This action is used for pass-through pages, including index.jsp. Keith -Original Message- From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]] Sent: Thursday, 28 February

RE: changing from *.do to /do/* screws up everything?

2002-02-27 Thread Keith Chew
(struts templates that is), you've just shot yourself in the foot, haven't you? Additional Thoughts, Eddie - Original Message - From: Keith Chew [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 2:21 PM Subject: RE: changing from

RE: changing from *.do to /do/* screws up everything?

2002-02-27 Thread Keith Chew
, and actions-mappings for everything else. Then protect /do/* request your JSPs with /do/name.jsp and it'll go through DefaultAction (search this list for more info), and having your welcome as /index.jsp (notice no /do/) Is this what you're looking for? Matt --- Keith Chew [EMAIL PROTECTED] wrote

sslext with snapshot...

2002-02-27 Thread Keith Chew
Hi Has anyone gotten the ssl extension to work with the latest snapshot of Struts. I am having some difficulties getting it to work. Keith -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

ActionMapping...

2002-02-27 Thread Keith Chew
Hi In the latest snapshot, if declared in the web.xml: init-param param-namemapping/param-name param-valueorg.apache.struts.action.SecureActionMapping/param-value /init-param How do I get this Mapping in code? I tried: SecureActionMapping mapping =

RE: sslext with snapshot...

2002-02-27 Thread Keith Chew
ldn't find an example... Keith -Original Message----- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: Thursday, 28 February 2002 12:58 p.m. To: Struts Users Mailing List Subject: sslext with snapshot... Hi Has anyone gotten the ssl extension to work with the latest snapshot of Struts. I

design flaw if using a template...

2002-03-06 Thread Keith Chew
Hi Struts provides us with a nice MVC architecture, where: - a user's click maps to an Action - based on the results, the user is forwarded to the view Now, I have a template.jsp which all pages will use. The template will contain some views that are common to all pages, eg: - Latest News -

RE: design flaw if using a template...

2002-03-06 Thread Keith Chew
Tiles does not solve the problem. As far as I can see, Tiles makes it easy to configure your presentation pages, and pass variables between templates. It makes your presentation design work more OO. However, my issue is more of an archietecture problem, not a presentation problem. Keith

RE: design flaw if using a template...

2002-03-06 Thread Keith Chew
- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 4:28 PM To: Struts Users Mailing List Subject:design flaw if using a template... Hi Struts provides us with a nice MVC architecture, where: - a user's click maps to an Action - based on the results

RE: design flaw if using a template...

2002-03-06 Thread Keith Chew
other content. E.g. template:insert template=/WEB-INF/templates/myTemplate.jsp template:put name=newspanel content=/news/shownews.do / template:put name=content ... some html /template:put /template:insert Matt. -Original Message- From: Keith Chew [mailto:[EMAIL

RE: design flaw if using a template...

2002-03-06 Thread Keith Chew
March 2002 12:54 p.m. To: Struts Users Mailing List Subject: RE: design flaw if using a template... I did try it and it worked fine. I'm using the nightly build. -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: 06 March 2002 23:49 To: Struts Users Mailing List Subject

RE: design flaw if using a template...

2002-03-06 Thread Keith Chew
Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 00:14 To: Struts Users Mailing List Subject: RE: design flaw if using a template... Matt, thank you very much for trying this out. I appreciate the time you are spending to help me track the problem. Can you give this a go

RE: design flaw if using a template...

2002-03-06 Thread Keith Chew
this content is a .jsp or an action mapping url - it works. Honestly, just use template:put as it is documented and your problems will be solved. Matt. -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 02:18 To: Struts Users Mailing List Subject: RE

live progress...

2002-03-07 Thread Keith Chew
Hi I would like to implement a live progress on a JSP, something like: time = 0s * Synchronizing database... time = 5s * Synchronizing database... DONE! Sending mail to keith... time =10s * Synchronizing database... DONE! Sending mail to keith... DONE! Essentially, I

RE: design flaw if using a template...

2002-03-10 Thread Keith Chew
Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 21:15 To: Struts Users Mailing List Subject: RE: design flaw if using a template... Hi Matt I am such an idiot. In my template.jsp, I have: template:insert template=/news.do/ This is equivalent to a jsp include. My

RE: live progress...

2002-03-10 Thread Keith Chew
for dynamic web pages - several helpful suggestions given when I posed similar question - pushlets seem pretty funky! Or you can just create the ouput in your action, and stream the info to the page until it's done. Dave Keith Chew [EMAIL PROTECTED] on 03/07/2002 09:01:35 PM Please respond

Matt - this if for you...

2002-03-17 Thread Keith Chew
to you it case you strike the same problem in the future. Keith -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: Monday, 11 March 2002 9:26 a.m. To: Struts Users Mailing List Subject: RE: design flaw if using a template... Hi Matt I have done more research over

html:radio

2002-03-18 Thread Keith Chew
Hi I have prepared an object called PreparedData and put that in the request scope: request.setAttribute(preparedData, preparedData); Then in the JSP, I want to display that preparedData to a set of radio button values: html:form action=/saveTest logic:iterate id=testOptions

RE: html:radio

2002-03-19 Thread Keith Chew
: liudsm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 March 2002 3:24 p.m. To: Struts Users Mailing List Subject: Re: html:radio hi ,you can use as this : html:radio property=selectedOption bean:write name=testOptions property=data//html:radio - Original Message - From: Keith Chew [EMAIL

Struts compiler?

2002-04-16 Thread Keith Chew
Hi all Struts uses reflection to populate the attributes into JavaBean, eg html:text property=someAttribute/ At runtime, if someAttribute is not present we get an exception. It would be really nice if we had a Struts Compiler that takes in 2 arguments: - classpath - source path The compiler

Logon Remember Me...

2002-05-19 Thread Keith Chew
Hi What is the simplest way to implement the Remember Me feature for user logon? Do we just need to: - write a cookie on the user's machine with username and password - on logon page, check cookie. If found, logon Are there existing samples (using Struts taglibs) that I can refer to? Keith