RE: jstl question

2003-09-17 Thread Bradley Handy
Accessors of java.util.Map implementations use a single parameter.  Is
the instance variable behind the valueNum property an implementation
of java.util.Map (ie. HashMap,
org.apache.commons.collections.FastHashMap, etc)?

If it is, then Mark's suggestion needs one little tweak.

Change:  ${whatever} - ${whatever.key}

Where key is the java.util.Map key, under which, you wish to store
your parameter from your form.


Brad Handy


 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 17, 2003 9:39 AM
 To: Struts Users Mailing List
 Subject: RE: jstl question
 
 I don't get it.  Accessors for JavaBeans do not use parameters (public
 String getValueNum()); mutators use parameters (public void
setValueNum(
 String param ).  Why are you passing an accessor a param argument?
 
 Nevertheless, if this were a real JavaBean, you would set and get its
 values
 in JSTL like this:
 
 // reference the tab library
 @ taglib uri=http://java.sun.com/jstl/core; prefix=c %
 
 // instantiate the bean in page scope
 jsp:useBean id='whatever' class='myPackage.MyJavaBean'/
 
 // set the property from the request parameter passed to the page
 c:set target='${whatever}' property='ValueNum'
 value='${param.valueNum}'/('
 
 // print the parameter value
 c:out value='${param.valueNum}'/
 
 
 Happy Hurricanes!
 Mark
 
 -Original Message-
 From: Richard Raquepo [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 11, 2003 12:10 AM
 To: Struts Users Mailing List
 Subject: jstl question
 
 
 i have a bean that has this gettter method
 
 ...
 
 public String getValueNum(String param){
 
 }
 
 ...
 
 using struts tag i can call it like:
 bean:write name=bean value=valueNum(test)/
 
 and it will works.
 
 now i can't seem to figure out how can i do that using jstl.
 
 i need your expert advice on this very simple problem that i can't
seem to
 hack.
 
 thanks
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Plugins to debug jsp with Eclipse

2003-09-10 Thread Bradley Handy
In regards to the plugins for Eclipse, check out www.myeclipseide.com.  Sweet sets of 
plugins, and only a $30US per year subscription to receive updates and such.
 
Brad
 

-Original Message- 
From: hari_s [mailto:[EMAIL PROTECTED] 
Sent: Tue 9/9/2003 9:05 PM 
To: 'Struts Users Mailing List' 
Cc: 
Subject: RE: Plugins to debug jsp with Eclipse



Setahuku gak ada ya, bagaimana kalo pake oracle jdeveloper itu tool yang
kumplit untuk develop aplikasi dengan teknologi java,dengan debugging
yang bagus pula...

Hai mungkin jawabannya gak memuaskan, tapi ingin Aku nyapa aja sesama
orang Indonesia di milis ini.

-Original Message-
From: Kristanto Oetomo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 5:44 AM
To: 'Struts Users Mailing List'
Subject: Plugins to debug jsp with Eclipse

Does anyone know any plugins to debug jsp in Eclipse? As of now, there
is a plugin to debug jsp after it's being converted into a servlet. I am
looking for a direct debugging tool for the jsp itself. Thanks.

Kristanto Oetomo
Software Engineer

PT Sigma Karya Sempurna (BaliCamp)
Jl. Raya Pacung No. 32A, Baturiti - Tabanan 82191
Bali - Indonesia
Tel: +62 368 21919 Fax: +62 368 21920
http://www.balicamp.com


Favorite Quote: The only stupid question is the one you never ask.
--Anonymous--




-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 1:21 AM
To: Struts Users Mailing List
Subject: Re: Tiles  html-taglib producing XHTML


--- Adam Hardy [EMAIL PROTECTED] wrote:
 Thanks David.

 Sorry, didn't see it and it had never been talked about in the
 archives.

 May I suggest though that it be added to the API docs for html:html at
 http://jakarta.apache.org/struts/userGuide/struts-html.html#html

That would be helpful.  Please open an enhancement request with the
details so it doesn't get forgotten.

David


 Thanks
 Adam


 On 09/09/2003 06:26 PM David Graham wrote:
  Add html:xhtml/ to each of your tiles.  Each page fragment must
 decide
  how it will be rendered, not the containing page.
 
  David
 
  --- Adam Hardy [EMAIL PROTECTED] wrote:
 
 I'm using the struts html taglib, well actually the html-el taglib
 but

 the problem is with both, and I am outputting XHTML, but the input
 taglib doesn't output XHTML when it's in a different Tile.
 
 I have my Tiles layout page with the doctype declaration and the
 
 html:html xhtml=true
 
 and the
 
 tiles:insert attribute=bodyContent /
 
 to include my content.
 
 Anything nested nicely inside the html:html xhtml=true tags in
 the

 layout tile is given proper XHTML syntax, but in the other tiles,
 it's

 not. i.e. instead of:
 
 input type=image name= src=edit.png title=Edit alt=Edit
 /
 
 it gives:
 
 input type=image name= src=edit.png title=Edit alt=Edit
 
 Before I go off to bugzilla, assuming I haven't overlooked something
 important, what is it a bug of? html-taglib or tiles?
 
 Thanks,
 Adam
 
 --
 struts 1.1 + tomcat 4.1.27 + java 1.4.2
 Linux 2.4.20 RH9
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site design software
  http://sitebuilder.yahoo.com
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 --
 struts 1.1 + tomcat 4.1.27 + java 1.4.2
 Linux 2.4.20 RH9


 -
 To 

RE: debug level of struts...

2003-09-05 Thread Bradley Handy
http://jakarta.apache.org/struts/userGuide/building_controller.html#logg
ing

 -Original Message-
 From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 05, 2003 8:11 AM
 To: [EMAIL PROTECTED]
 Subject: debug level of struts...
 
 
 
 Is there a way to make Struts print out more messages to standard out
?
 Like
 when it loads the form-bean and resets form values into the jsp ?
 
 Thanks
 
 -- pady
 [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: [FRIDAY] Some flash fun

2003-09-05 Thread Bradley Handy
That was neat.

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 05, 2003 10:21 AM
 To: Struts
 Subject: [FRIDAY] Some flash fun
 
 I just know Mark loves flash stuff ;-)
 This should take your mind off dealing with validator quirks for a
while.
 (Sorry mate - couldnt find any lisp to go with it!)
 
 http://www.freshsensation.com/samorost.swf
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: basic struts question...

2003-09-03 Thread Bradley Handy
First off, you don't configure the .do extension in the path
attribute.  You put it in the href attribute of your link in your web
page, or the action attribute of your form tag.

Secondly, you've got to be kidding me about not creating an Action class
and then asking the list why your stuff isn't working when the
documentation answers your question.  Come on.



 -Original Message-
 From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 02, 2003 4:59 PM
 To: Struts Users Mailing List
 Subject: RE: basic struts question...
 
 
 I tried all the changes recommended here, but it doesn't work. I hope
you
 meant changing action path=/jsp/submit... to action
 path=/jsp/submit.do...
 
 That didn't work.
 
 
 Thanks
 
 -- pady
 [EMAIL PROTECTED]
 
 
 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 02, 2003 4:32 PM
 To: Struts Users Mailing List
 Subject: RE: basic struts question...
 
 Specifically, the URL in your action path in struts-config.xml.
 
 -Original Message-
 From: Bradley Handy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 02, 2003 4:28 PM
 To: Struts Users Mailing List
 Subject: RE: basic struts question...
 
 
 You need to append the .do extension to your request URL.
 
  -Original Message-
  From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, September 02, 2003 3:35 PM
  To: [EMAIL PROTECTED]
  Subject: basic struts question...
 
 
 
  If I have an action-mapping defined as
 
 
 
action-mappings
 
  actionpath=/taglib/jsp/submit
 
 
 type=com.heroix.firenze.webui.actions.TabChangeAction
 
 forward name=success path=/jsp/tiles_insert.jsp/
 
  /action
 
/action-mappings
 
 
 
  When I access http://myserver/taglib/jsp/submit.do I get an error
 Invalid
  path /jsp/submit was requested. My web.xml does have *.do mapped
to
  ActionServlet.
 
 
 
 
 
  What am I doing wrong ?
 
 
 
 
 
  Thanks
 
 
 
  -- pady
 
  [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: basic struts question...

2003-09-02 Thread Bradley Handy
You need to append the .do extension to your request URL.

 -Original Message-
 From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 02, 2003 3:35 PM
 To: [EMAIL PROTECTED]
 Subject: basic struts question...
 
 
 
 If I have an action-mapping defined as
 
 
 
   action-mappings
 
 actionpath=/taglib/jsp/submit
 

type=com.heroix.firenze.webui.actions.TabChangeAction
 
forward name=success path=/jsp/tiles_insert.jsp/
 
 /action
 
   /action-mappings
 
 
 
 When I access http://myserver/taglib/jsp/submit.do I get an error
Invalid
 path /jsp/submit was requested. My web.xml does have *.do mapped to
 ActionServlet.
 
 
 
 
 
 What am I doing wrong ?
 
 
 
 
 
 Thanks
 
 
 
 -- pady
 
 [EMAIL PROTECTED]
 
 
 
 


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



RE: how to unsubscribe ?

2003-08-28 Thread Bradley Handy
I'm sure you've already sent a message to the following address:

[EMAIL PROTECTED]

You'll receive a reply from [EMAIL PROTECTED], to
which you *MUST* reply in order to be removed from the list.

It *IS* that simple.

Regards,
Brad Handy

FYI:  Just because you don't like the mailing list, doesn't mean that
it's rubbish.



 -Original Message-
 From: zhang [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 15, 2003 4:45 AM
 To: [EMAIL PROTECTED]
 Subject: how to unsubscribe ?
 
 
 This rubbish mail list populate too many mail to my mail.
 
 and the unsubscribe mail can not work.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: CreditCardValidator

2003-08-28 Thread Bradley Handy
CreditCardValidator is in the dev release.  Struts uses the 1.0.1
release of validator (I believe).  What you want is located in
org.apache.commons.validator.GenericValidator.isCreditCard(java.lang.Str
ing)

Brad Handy


 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 28, 2003 1:38 PM
 To: Struts-Users
 Subject: CreditCardValidator
 
 Hi;
 
 CreditCardValidator is listed in the common-validator docs - but it's
not
 in the jar file - any ideas where it is?
 
 thanks - dave

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



RE: HibernatePlugIn for struts (a few questions)

2003-08-27 Thread Bradley Handy
There are two versions of the HibernatePlugIn for Struts.  One is
written by Ted Husted and is available in the Struts Hibernate
sourceforge project.  The other was written by myself, and the source is
posted on the Hibernate site in their wiki.

It's kind of funny how the design is somewhat similar in both
implementations, considering I didn't even know Ted had written one when
I wrote mine.  However, Ted's is better.  He has a static method to
retrieve the SessionFactory, where mine requires you to fetch it
yourself.

Brad Handy

 -Original Message-
 From: David Friedman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 11:45 AM
 To: Struts Users Mailing List
 Subject: RE: HibernatePlugIn for struts (a few questions)
 
 Bill,
 
 You're probably best off using the PlugIn style
 of Hibernate/Struts where it keeps one session
 factory and manages it for you on startup and
 shutdown, plus provides a simple, central way
 to obtain it via the servlet's getAttribute:
 
  SessionFactory sessionFactory = (SessionFactory)
  getServlet().getServletContext().getAttribute(
SessionFactory.class.getName());
 
 On the second question, I recommend you only pass
 the Session or SessionFactory to your business
 logic.  That gives it fewer things to know about
 and simplifies handling and coding.  If it needs
 to know about the servlet, you're adding a level
 of complexity and reducing portability, should you
 ever need it.  All it needs to care about is the
 database handle and access method. So, just give it
 your Session or SessionFactory so it can do the rest
 inside it's facade.
 
 Regards,
 David
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Struts as a framework

2003-08-25 Thread Bradley Handy
Struts is a *very* configurable framework.  However, it's not a solution
for everything, and it doesn't claim to be.

FYI:  The documentation generally answers these types of questions.

 -Original Message-
 From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 25, 2003 10:37 AM
 To: 'Struts Users Mailing List'
 Subject: Struts as a framework
 
 Hi
This is a general question to understand Struts better. Is Struts a
 black-box or a gray-box framework ?
 Mohan
 


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



RE: Hello

2003-08-14 Thread Bradley Handy
http://www.reumann.net/do/struts/main

Here is another good place to start.



 -Original Message-
 From: Ilknur Elmaci [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 11, 2003 9:48 AM
 To: 'Struts Users Mailing List'
 Subject: Hello
 
 
 Hi Everybody,
 
 I am new in Struts. I must learn much quickly the Struts. So do you
have
 example or sample about Struct which explain base architecture of
 Struct.
 
 
 Thanks very much for your helps.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: struts 1.1 question

2003-08-12 Thread Bradley Handy
Can you attach a form bean to an action defined as such?

action name=someFormBean
  path=/something
  forward=/jsp/something.jsp /


Brad Handy



 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 11, 2003 4:53 PM
 To: Struts Users Mailing List
 Subject: Re: struts 1.1 question
 
 --- Adam Levine [EMAIL PROTECTED] wrote:
  Where exactly did you read that all jsps must be fronted by actions?
  I'm
  using 1.1, and assuredly have NOT (nor will I) front them all with
  actions.
 
 Keep in mind that it's as simple as:
 action path=/something forward=/jsp/something.jsp /
 
 to front JSPs with *.do actions.  The benefits far outweigh the cost
of
 writing that simple one-liner in struts-config.xml.
 
 David
 
 
 
  From: e [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
[EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: struts 1.1 question
  Date: Mon, 11 Aug 2003 16:37:28 -0400
 
 
  I am about to upgrade to struts 1.1 and I have a question.
  I have a site with a decent amount of content stored in a content
  manager.
  I want to use tiles, but I read that in struts 1.1, all jsps have to
be
  fronted by actions.
  Does this mean that I have to write forwards in strutsconfig.xml for
  every
  single jsp on the site?
  This could add up to a lot of pages.
 
  Am I interpreting this correctly?
 
  Thanks.
 
  -e
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  _
  Help STOP SPAM with the new MSN 8 and get 2 months FREE*
  http://join.msn.com/?page=features/junkmail
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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