RE: [OT] OJB or Hibernate??

2003-03-30 Thread Jacob Hookom
OJB all the way, you would be surprised at what it can do for complex
queries and caching (ex, give me the five most recent forums ordered by
their posts' time stamp:  Criteria.addOrderBy(posts.created, true)).  I
can't say enough.  Hibernate is on its way to OJB, but OJB just gets better
and better with every release (now at 1.0rc1)

-Jacob

PS. Use OJB :-)

| -Original Message-
| From: Bill Johnson [mailto:[EMAIL PROTECTED]
| Sent: Saturday, March 29, 2003 7:28 PM
| To: [EMAIL PROTECTED]
| Subject: [OT] OJB or Hibernate??
| 
| I'm curious which is the framework of choice?  What
| the strengths are of each, etc.?
| 
| Thanks,
| 
| Bill
| 
| __
| Do you Yahoo!?
| Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
| http://platinum.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]



RE: how to logic:iterate throu serveral collections at once ?

2003-03-30 Thread Jain, Shilpi
Thanks. I have been able to do it.

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 30, 2003 11:32 AM
To: Struts Users Mailing List
Subject: Re: how to logic:iterate throu serveral collections at once ?

A clean solution is to put your label, value, and boolean flag in a Bean
then you can access all those properties as you iterating thru.

Regarding the coloring, instead of using html:options tag,
your can use logic:iterate and writing out the html code and color yourself

-Dan

- Original Message -
From: Jain, Shilpi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 9:51 PM
Subject: RE: how to logic:iterate throu serveral collections at once ?


 Hi
 I am using an options tag to display a label value collection. I have an
 additional propert associated with each of the values on this option which
I
 have stored as another boolean[]. Now in my UI, I want to have each of
these
 options to appear in two different colors depending on the corresponding
 value in my boolean[]. How can I implement this.


 -Shilpi

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: Sunday, March 30, 2003 11:15 AM
 To: Struts Users Mailing List
 Subject: Re: how to logic:iterate throu serveral collections at once ?

 logic:iterate exposes an collection's index, with can be use to access
other
 collection, right?

 -D
 - Original Message -
 From: Slava_L [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 10:15 PM
 Subject: Re: how to logic:iterate throu serveral collections at once ?


  Struts doc says that only one object can be iterated inside on
 logic:iterate
  - Original Message -
  From: Dan Tran [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Sunday, March 30, 2003 12:39 PM
  Subject: Re: how to logic:iterate throu serveral collections at once ?
 
 
   The answer is yes. Please check struts doc
  
   However, by place your id and label into LabelValueBean. It will make
 your
   code easier write
   thru logic:iterate
  
   -Dan
   - Original Message -
   From: Slava_L [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Saturday, March 29, 2003 9:02 PM
   Subject: how to logic:iterate throu serveral collections at once ?
  
  
   Suppose i have ids[] array and labels[] array
  
   I need to render link a href=someaction.do?id=ids[i] label[i] /a
   is it possible to do with logic:iterate ?
  
  
   -
   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]



-
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]



custom tile definitions leads to error

2003-03-30 Thread Dan Allen
I took the lead of Cedric when he made his SimpleMenuItem and I
extended it to make a SimpleMenuActionItem with the following
layout:

item text=Home action=/Home 
classtype=net.creativerge.bean.SimpleMenuActionItem/

However, now I am getting DTD parse errors all over the place.  It
seems sort of lame to have to worry about DTD issues if you want to
extend and make your own custom tag.  But I guess such is life with
XML.  So I can do one of two things at this point.  I can create my
SimpleMenuActionItem using the original attributes and just have a
non-intuitive mapping between the two (the attribute name and what
it actually does) or I can modify the DTD for my new item set.
However, if i modify the DTD I have no idea where to put it or how
to reference it (okay, so I lack some XML knowledge).  However, I
thought it was a pretty good idea, seeing how struts should always
make internal links action links, to make a SimpleMenuActionItem.  I
also felt that the attribute text was more intuitive for the
contents between the link than value since the other option is
icon

my proposal for the DTD is as follows:

+ add an attribute action which, when used in place of link will
reference a struts action

+ change value to text to counter the icon

I could be just talking crazy here, but it seems like a good idea to
me.  Perhaps we could excite some interest in defining how to extend
the items list a bit better.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Real programmers just hate to get up in the morning, and 
contrary to Ordinary People, they're in better shape as 
it gets closer to nighttime.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



RE: Setting externally JNDI properties - thanks Dan

2003-03-30 Thread Marco Tedone
Dan thank you for your help. The first snippet worked greately.

Marco

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, March 30, 2003 3:38 AM
 To: Struts Users Mailing List
 Subject: Re: Setting externally JNDI properties
 
 
 The following snippets may help
 
 snippet
   //place your jndi under your WEB-INF/classes
   ClassLoader classLoader = getClass().getClassLoader();
   InputStream in = 
 classLoader.getResourceAsStream(jndi.properties);
   if ( in == null )
   throw new MissingResourceException(JNDI property 
 file jndi.properties' not found in classpath.,
  null, null);
 
   Properties jndiProperties = new Properties();
   try {
 jnidProperties.load(in);
   }catch ( IOException e ) {
 throw new MissingResourceException(Problem loading 
 'jndi.properties', null, null);
   }
 /snippet
 
 Or
 
 snippet
   //place your jndi file under WEB-INF
  InputStream is = 
 servlet.getServletContext().getResourceAsStream(/WEB-INF/jndi
.properties);
  if ( in == null )
   throw new MissingResourceException(jndi property 
 file jndi.properties' not found in classpath.,
  null, null);
 
   Properties jndiProperties = new Properties();
   try {
 jndiProperties.load(in);
   }catch ( IOException e ) {
 throw new MissingResourceException(Problem loading 
 'jndi.properties', null, null);
   }
 /snippet
 
 Good luck.
 
 -D
 - Original Message -
 From: Marco Tedone [EMAIL PROTECTED]
 To: Struts-user-list  [EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 2:12 PM
 Subject: Setting externally JNDI properties
 
 
  Hi,
 
  At present my application is 'talking' with Jboss via specific 
  properties set a compile time. I would like to move those 
 properties 
  in a jndi.properties file (which I would put under 
 WEB-INF/classes). 
  How could
 I
  retrieve jndi.properties without specifying the exact 
 location (which
 could
  vary from user by user), i.e. dynamically? I tried with the 
 following:
 
  
 getServlet().getServletContext().getResource(jndi.properties); but 
  the return is null.
 
  I also tried
 
  
 getServlet().getServletContext().getResource(/jndi.properties) but 
  the return was the same.
 
  I also tried to put jndi.properties in the jar file containing the 
  application's classes but nothing.
 
  Any idea?
 
  Thanks,
 
  Marco
 
  
 -
  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: Populating a Form

2003-03-30 Thread Adam Sherman
On 03/29/03 23:42:04 -0700 Sterin, Ilya wrote:

In the reset method of the ActionForm.
I am using DynaValidatorForms, guess I should have mentioned that.

Thanks,

A.

--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Tiles] putList() Displaying

2003-03-30 Thread Jacob Hookom
I was wondering if I missed something in the documentation pertaining to
displaying lists of includes without using scriptlets.

The tiles example war uses putLists to describe menus, but then uses a
scriptlet with an Iterator to actually display them.  Why doesn't the
tiles:insert tag know if it's a list and iterate over the results to display
them-- again, I may have completely missed it in the documentation?

Best Regards,
Jacob Hookom


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



ValidatorLookupDispatchAction or VLDAction

2003-03-30 Thread Brandon Goodin
I have made some needed changes and updates to the
ValidatorLookupDispatchAction (scheduled for 1.2). But, I cannot decide on
whether I should change the name from ValidatorLookupDispatchAction (which
is a mouthful) or VLDAction (tight! baby!). What do you all think?

P.S. Each method in the ValidatorLookupDispatchAction/VLDAction is now
configurable for whether or not it will automagically validate. I was
thinking about adding this fuctionality to the DispatchAction too. I just
never use it. So... should I?

Brandon Goodin
Phase Web and Multimedia
PO Box 85
Whitefish MT 59937
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws



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



Re: It's late and I'm feeling stupid

2003-03-30 Thread Jeff Smith
Another day, and I start it out much more alert and perceptive.
Unfortunately I'm still not seeing the solution. (Undoubtedly I am ignorant
of some key piece of struts knowledge that is holding me back. :-)

I see how struts-el would allow me to reference ${foo} values within the
html-el:link tag, but that isn't the problem. The field of the html:link
tag that I want to use only takes references to beans, so I have to get my
value into a dynamically declared bean first.

I don't think struts-el tags will help with this - at least not this step in
the problem. Or am I missing something?

Any other suggestions?

Jefficus


- Original Message -
From: Dan Tran [EMAIL PROTECTED]


 It is late too and my mind also slowing down as well ;-)

 So here is my vague ans.  Use Struts-el tag lib, it works well with JSTL

 -Dan



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



Re: It's late and I'm feeling stupid

2003-03-30 Thread James Mitchell

From http://jakarta.apache.org/struts/userGuide/struts-bean.html#define

The bean:define tag differs from jsp:useBean in several ways,
including:
* Unconditionally creates (or replaces) a bean under the specified
  identifier.
* Can create a bean with the value returned by a property getter of
  a different bean (including properties referenced with a nested
  and/or indexed property name).
* Can create a bean whose contents is a literal string (or the
  result of a runtime expression) specified by the value attribute.





On Sun, 2003-03-30 at 00:47, Jeff Smith wrote:
 I have some data in an XML file.
 
 I read it in from JSP using x:set (the JSTL X tags)
 
 I then transfered it to a variable like so:
 c:set var=somevarname
 x:out ... /
 /c:set
 
 I can now dump it out happily using c:out
 
 It turns out that this particular value (an integer) is useful in a
 subsequent JSP page (if my user elects to go there by clicking the
 appropriate link). So I want to pass it as a parameter when I link to that
 next page.
 
 Aha! the html:link allows me to add parameter information. But it appears
 that such info must be in a bean.
 
 So I created a bean:
 jsp:useBean id=foo class=java.lang.String/
 
 But for all my efforts, I can't figure out how to get the somevarname
 value into foo
 
 I tried:
 jsp:useBean id=foo class=java.lang.Stringc:out
 value=${somevarname}//jsp:useBean
 but that isn't working. (Subsequent attempts to bean:write name=foo/
 come up blank.)
 
 I just know when I wake up tomorrow, the answer is going to be obvious and
 I'm going to feel stupid for asking. But one of the advantages of working
 late without much sleep is that we don't care how we're going to feel about
 it in the morning.
 
 Any suggestions?
 
 Jefficus
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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



RE: Populating a Form

2003-03-30 Thread Sterin, Ilya
I still think it's the same, it inherits from ActionForm I believe, so reset
should still be there.

Ilya

-Original Message-
From: Adam Sherman
To: Struts Users Mailing List
Sent: 3/30/03 7:57 AM
Subject: RE: Populating a Form

On 03/29/03 23:42:04 -0700 Sterin, Ilya wrote:

 In the reset method of the ActionForm.

I am using DynaValidatorForms, guess I should have mentioned that.

Thanks,

A.

--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819

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


Re: It's late and I'm feeling stupid

2003-03-30 Thread Dan Tran
Jeff, I tried to look at your original post and I dont really understand the
exact problem.

You post your minimal code and see if I can help.

-Dan

- Original Message -
From: Jeff Smith [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 8:42 AM
Subject: Re: It's late and I'm feeling stupid


 Another day, and I start it out much more alert and perceptive.
 Unfortunately I'm still not seeing the solution. (Undoubtedly I am
ignorant
 of some key piece of struts knowledge that is holding me back. :-)

 I see how struts-el would allow me to reference ${foo} values within the
 html-el:link tag, but that isn't the problem. The field of the html:link
 tag that I want to use only takes references to beans, so I have to get my
 value into a dynamically declared bean first.

 I don't think struts-el tags will help with this - at least not this step
in
 the problem. Or am I missing something?

 Any other suggestions?

 Jefficus


 - Original Message -
 From: Dan Tran [EMAIL PROTECTED]


  It is late too and my mind also slowing down as well ;-)
 
  So here is my vague ans.  Use Struts-el tag lib, it works well with JSTL
 
  -Dan
 


 -
 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: Populating a Form

2003-03-30 Thread Adam Sherman
On 03/30/03 09:59:54 -0700 Sterin, Ilya wrote:

I still think it's the same, it inherits from ActionForm I believe, so
reset should still be there.
I think we aren't on the same page.

Given some JSP:

html:form action=/sender/update focus=name
html:text property=name value=${LOADED_SENDER.name} /
html:submit property=submit value=Submit /
/html:form
The action is setup with 'validate=true', so that validation occurs 
before the action gets called. My problem is that the value of the text 
field gets overwritten when the form is redrawn if validation fails.

Thanks,

A.

--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: It's late and I'm feeling stupid

2003-03-30 Thread Jeff Smith
Thanks very much James.

Thanks also for resisting the urge to put a giant RTFM in your response. :-)

Jefficus

- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 9:57 AM
Subject: Re: It's late and I'm feeling stupid



 From http://jakarta.apache.org/struts/userGuide/struts-bean.html#define

 The bean:define tag differs from jsp:useBean in several ways,
 including:
 * Unconditionally creates (or replaces) a bean under the specified
   identifier.
 * Can create a bean with the value returned by a property getter of
   a different bean (including properties referenced with a nested
   and/or indexed property name).
 * Can create a bean whose contents is a literal string (or the
   result of a runtime expression) specified by the value attribute.





 On Sun, 2003-03-30 at 00:47, Jeff Smith wrote:
  I have some data in an XML file.
 
  I read it in from JSP using x:set (the JSTL X tags)
 
  I then transfered it to a variable like so:
  c:set var=somevarname
  x:out ... /
  /c:set
 
  I can now dump it out happily using c:out
 
  It turns out that this particular value (an integer) is useful in a
  subsequent JSP page (if my user elects to go there by clicking the
  appropriate link). So I want to pass it as a parameter when I link to
that
  next page.
 
  Aha! the html:link allows me to add parameter information. But it
appears
  that such info must be in a bean.
 
  So I created a bean:
  jsp:useBean id=foo class=java.lang.String/
 
  But for all my efforts, I can't figure out how to get the somevarname
  value into foo
 
  I tried:
  jsp:useBean id=foo class=java.lang.Stringc:out
  value=${somevarname}//jsp:useBean
  but that isn't working. (Subsequent attempts to bean:write name=foo/
  come up blank.)
 
  I just know when I wake up tomorrow, the answer is going to be obvious
and
  I'm going to feel stupid for asking. But one of the advantages of
working
  late without much sleep is that we don't care how we're going to feel
about
  it in the morning.
 
  Any suggestions?
 
  Jefficus
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 --
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.open-tools.org




 -
 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: It's late and I'm feeling stupid

2003-03-30 Thread David M. Karr
 Jeff == Jeff Smith [EMAIL PROTECTED] writes:

Jeff I have some data in an XML file.
Jeff I read it in from JSP using x:set (the JSTL X tags)

Jeff I then transfered it to a variable like so:
Jeff c:set var=somevarname
Jeff x:out ... /
Jeff /c:set

Jeff I can now dump it out happily using c:out

Jeff It turns out that this particular value (an integer) is useful in a
Jeff subsequent JSP page (if my user elects to go there by clicking the
Jeff appropriate link). So I want to pass it as a parameter when I link to that
Jeff next page.

Jeff Aha! the html:link allows me to add parameter information. But it appears
Jeff that such info must be in a bean.

Try using c:url and c:param to build up a url with parameters, then
reference the ${url} variable from the href attribute of html:link.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




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



MyCart MyButt MyBCentral

2003-03-30 Thread Micael
What is up with the MyCart application that is supposed to be a Struts 
example but seems only to lead to Microsoft's bCentral?

LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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


Re: It's late and I'm feeling stupid

2003-03-30 Thread Mike Deegan
Yes Jeff / David this works for me 

David Try using c:url and c:param to build up a url with
parameters, then
David reference the ${url} variable from the href attribute of
html:link.

 c:url value=userPg var=url
 c:param name=ID value=${item['id']}/
 c:param name=Dispatch value=Zoom/
 /c:url

 a href='c:out value=${url}/'[Zoom...]/a

ending up with the following displayed in the JSP
 [Zoom...]

with the following link / URL properties
http://localhost/do/userPg?ID=22Dispatch=Zoom
will open in the same window

HTH
Mike

- Original Message -
From: David M. Karr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 10:34 AM
Subject: Re: It's late and I'm feeling stupid


  Jeff == Jeff Smith [EMAIL PROTECTED] writes:

 Jeff I have some data in an XML file.
 Jeff I read it in from JSP using x:set (the JSTL X tags)

 Jeff I then transfered it to a variable like so:
 Jeff c:set var=somevarname
 Jeff x:out ... /
 Jeff /c:set

 Jeff I can now dump it out happily using c:out

 Jeff It turns out that this particular value (an integer) is useful
in a
 Jeff subsequent JSP page (if my user elects to go there by clicking
the
 Jeff appropriate link). So I want to pass it as a parameter when I
link to that
 Jeff next page.

 Jeff Aha! the html:link allows me to add parameter information. But
it appears
 Jeff that such info must be in a bean.

 Try using c:url and c:param to build up a url with parameters,
then
 reference the ${url} variable from the href attribute of
html:link.

 ===
 David M. Karr  ; Java/J2EE/XML/Unix/C++
 [EMAIL PROTECTED]   ; SCJP; SCWCD

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



Struts-el book

2003-03-30 Thread Ruben Pardo

Hi everybody!
 Is there any book that explain in detail struts-el and JSTL? I'm searching in Struts 
in action by ted husted, Programming Jakarta Struts by chuck cavaness, and Mastering 
Jakarta struts by james goodwill, but I  don't find anything.
Any suggestion?
 


-
Yahoo! Messenger
Nueva versioacute;n: Super Webcam, voz, caritas animadas, y maacute;s #161;Gratis!

Re: It's late and I'm feeling stupid

2003-03-30 Thread Jeff Smith
That will work, but it has a built-in weakness. It side-steps the struts
action mappings by hard-coding the destination URL in the JSP.

The approach that I was using last night (which James helped me solve this
morning) was to go this way:

bean:define id=myBeanName
c:out value=${myXMLValue}/
/bean:define
html:link forward=MyActionForwardName paramId=myParamName
paramName=myBeanName/


That constructs the proper link reference:
http://localhost/MyAppName/MyActionForward.do?myParamName=myXMLValue

And it still works if I change the declaration of MyActionForwardName in
struts-config.xml

Jefficus

- Original Message -
From: Mike Deegan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 10:39 AM
Subject: Re: It's late and I'm feeling stupid


 Yes Jeff / David this works for me 

 David Try using c:url and c:param to build up a url with
 parameters, then
 David reference the ${url} variable from the href attribute of
 html:link.

  c:url value=userPg var=url
  c:param name=ID value=${item['id']}/
  c:param name=Dispatch value=Zoom/
  /c:url

  a href='c:out value=${url}/'[Zoom...]/a

 ending up with the following displayed in the JSP
  [Zoom...]

 with the following link / URL properties
 http://localhost/do/userPg?ID=22Dispatch=Zoom
 will open in the same window

 HTH
 Mike

 - Original Message -
 From: David M. Karr [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, March 30, 2003 10:34 AM
 Subject: Re: It's late and I'm feeling stupid


   Jeff == Jeff Smith [EMAIL PROTECTED] writes:
 
  Jeff I have some data in an XML file.
  Jeff I read it in from JSP using x:set (the JSTL X tags)
 
  Jeff I then transfered it to a variable like so:
  Jeff c:set var=somevarname
  Jeff x:out ... /
  Jeff /c:set
 
  Jeff I can now dump it out happily using c:out
 
  Jeff It turns out that this particular value (an integer) is useful
 in a
  Jeff subsequent JSP page (if my user elects to go there by clicking
 the
  Jeff appropriate link). So I want to pass it as a parameter when I
 link to that
  Jeff next page.
 
  Jeff Aha! the html:link allows me to add parameter information.
But
 it appears
  Jeff that such info must be in a bean.
 
  Try using c:url and c:param to build up a url with parameters,
 then
  reference the ${url} variable from the href attribute of
 html:link.
 
  ===
  David M. Karr  ; Java/J2EE/XML/Unix/C++
  [EMAIL PROTECTED]   ; SCJP; SCWCD

 -
 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-el book

2003-03-30 Thread Brandon Goodin
It's not about struts-el. But it is about jstl which is what you really need
to know. The struts-el is just struts tags that are enhanced with jstl-el.
So if you already know the struts tags then all you need to know is the el
portion of the struts-el. Otherwise, buy Struts in Action to go with JSTL
In Action and you will have what you want.

http://www.manning.com/bayern/
http://www.manning.com/husted/

Brandon Goodin

-Original Message-
From: Ruben Pardo [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 10:52 AM
To: Struts Users Mailing List
Subject: Struts-el book



Hi everybody!
 Is there any book that explain in detail struts-el and JSTL? I'm searching
in Struts in action by ted husted, Programming Jakarta Struts by chuck
cavaness, and Mastering Jakarta struts by james goodwill, but I  don't find
anything.
Any suggestion?



-
Yahoo! Messenger
Nueva versioacute;n: Super Webcam, voz, caritas animadas, y maacute;s
#161;Gratis!


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



server side components for table editing

2003-03-30 Thread Carsten Hammer
Hi,
Is there anything available like server side web components for table 
organized data? I mean something that can be used to add/delete/modify 
(e.g. database) table rows implemented using struts,servlets,jsps or 
whatever and what then can be easily integrated in a J2EE environment 
using Entity Beans and a session facade accessed be struts based web 
components.
Dot NET seems to have things like this and I guess similar things should 
be possible using java as well.
Best regards,
Carsten Hammer



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


RE: server side components for table editing

2003-03-30 Thread Brandon Goodin
Something like this?

http://jdbforms.sourceforge.net/

Brandon Goodin

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Carsten Hammer
Sent: Sunday, March 30, 2003 12:38 PM
To: [EMAIL PROTECTED]
Subject: server side components for table editing


Hi,
Is there anything available like server side web components for table 
organized data? I mean something that can be used to add/delete/modify 
(e.g. database) table rows implemented using struts,servlets,jsps or 
whatever and what then can be easily integrated in a J2EE environment 
using Entity Beans and a session facade accessed be struts based web 
components.
Dot NET seems to have things like this and I guess similar things should 
be possible using java as well.
Best regards,
Carsten Hammer



-
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]



Writing excel compatible output

2003-03-30 Thread David Bolsover
We are all used to writing output to make html tables and with little effort
we can fool our browser into treating these as excel (mime type
application/vnd.ms-excel) but I now want to embed formulae into my response.

Does anyone know of generic taglibs that will enable me to write execl
compatible xml output?

db


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



RE: Struts-el book

2003-03-30 Thread David Bolsover
You might try the O'Reilly JavaServer Pages - reasonably good treatment of
JSTL (not struts-el) - if you are already familiar with struts taglibs this
book should give you the extra knowledge you need.

db

-Original Message-
From: Ruben Pardo [mailto:[EMAIL PROTECTED]
Sent: 30 March 2003 18:52
To: Struts Users Mailing List
Subject: Struts-el book



Hi everybody!
 Is there any book that explain in detail struts-el and JSTL? I'm searching
in Struts in action by ted husted, Programming Jakarta Struts by chuck
cavaness, and Mastering Jakarta struts by james goodwill, but I  don't find
anything.
Any suggestion?



-
Yahoo! Messenger
Nueva versioacute;n: Super Webcam, voz, caritas animadas, y maacute;s
#161;Gratis!


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



RE: Writing excel compatible output

2003-03-30 Thread Brandon Goodin
POI might help.

http://jakarta.apache.org/poi/

Brandon Goodin

-Original Message-
From: David Bolsover [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 12:48 PM
To: Struts User
Subject: Writing excel compatible output


We are all used to writing output to make html tables and with little effort
we can fool our browser into treating these as excel (mime type
application/vnd.ms-excel) but I now want to embed formulae into my response.

Does anyone know of generic taglibs that will enable me to write execl
compatible xml output?

db


-
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: server side components for table editing

2003-03-30 Thread Carsten Hammer


Brandon Goodin schrieb:
Something like this?

http://jdbforms.sourceforge.net/

Brandon Goodin
Yes, nearly!
But I would like it to be a bit less database centric.
I want to use it for a three thier approach using J2EE and therefore 
have to work not on jdbc drivers but on my own methods. I guess it 
wouldnt buy me anything if I am forced to provide a jdbc driver for 
access to me session beans.
However this is an interesting project. Thanks for the pointer!
Best regards,
Carsten Hammer



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


Validation for anything other than html:text

2003-03-30 Thread Steven Citron-Pousty
Greetings all:
How do you validate a html:select or html:radio for required using the 
validator plugin.
All the doco deals with html:text. I found some old postings but they 
didn't really explain how to do this.
I tried it out and it doesn't seem to work. I want the form to return an 
error if the user forgets to pick something off the select list.
I printed out what was in the request for the select list and its a 
blank or null, which, according to the javaDoc should fail for a 
required field.
Thanks for your help,
Steve

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


RE: application.getRealPath(/) from ActionForm???

2003-03-30 Thread Jason Long
I have never used a Singleton before.
My understanding is that it is just a static class memeber.
There will be only one person trying to load this form at a time since it is
for management purposes only.
Maybe I am going about this all the wrong way.
Here is what I am doing.

When the xml file is changed the client then runs the application that
creates many jsp/struts files in xml syntax.
All forms are blank to start with except the ManagerForm.
In order to have this populated I do the following:

jsp:useBean id=bean
class=com.supernovasoftware.exploreco.struts.ManagerForm/
This loads the form object and populates the bean because I am calling the
load method from the constuctor.


bean:write name=bean property=stringIndexed[0]/
Initally this uses the values from the xml file, but once submitted values
are handled by ManagerForm.
This is necessary so that when data is invalid it is filled in with the
changes the client made until it
is correct.

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 12:12 AM
To: Struts Users Mailing List
Subject: Re: application.getRealPath(/) from ActionForm???


Have you given a thought on my Singleton solution?

-Dan
- Original Message -
From: Jason Long [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 9:48 PM
Subject: RE: application.getRealPath(/) from ActionForm???


 It is not static.  I need it to load when ActionForm is loaded.  Is there
no
 way to load form values from an external source?

 Jason Long - CEO and Chief Software Engineer
 Supernova Software - supernovasoftware.com
 BS Physics, MS  Chemical Engineering

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 11:42 PM
 To: Struts Users Mailing List
 Subject: Re: application.getRealPath(/) from ActionForm???


 Is your XML file static? If it does, you cam place the xml file in your
 class path and use my other posted solution to have access to its
 InputStream.

 If you dont like to place it in classpath, you can create a Singleton
 wrapper around your XML  and load it up during application startup, via
 Struts plugin or a servlet.

 -Dan

 - Original Message -
 From: Jason Long [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 9:31 PM
 Subject: RE: application.getRealPath(/) from ActionForm???


  This file is and xml file that contain that data that the form needs to
be
  filled with.  It is in my WEB-INF/data folder.  The problem is that I
 cannot
  find a way to tell my form where to load this data from.  I need need to
  access to the ServletContext so I can get the real path of the web
  application.  Some has to know how to do this easily.
 
  Jason Long - CEO and Chief Software Engineer
  Supernova Software - supernovasoftware.com
  BS Physics, MS  Chemical Engineering
 
  -Original Message-
  From: Dan Tran [mailto:[EMAIL PROTECTED]
  Sent: Saturday, March 29, 2003 10:29 PM
  To: Struts Users Mailing List
  Subject: Re: application.getRealPath(/) from ActionForm???
 
 
  My guess about the null control serverlet, is because struts may not
init
  the form's control servlet after the form constructor completes.
 
   If you can take a look at my answer to Setting external JNDI
 properties,
  you can put your file in classpath and load it.
 
 
  BTW, you might have a performance problem loading the file for every
  constructor of your action object.  You might want to load your file at
  startup and access it thru a singleton.
 
  Good luck.
 
  -Dan
 
  - Original Message -
  From: Jason Long [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Saturday, March 29, 2003 7:53 PM
  Subject: RE: application.getRealPath(/) from ActionForm???
 
 
   ActionServlet as = this.getServlet();
  
   This is returning null.  What is the proper way to get a reference to
 the
   controller servlet from and Action from?
  
   Jason Long - CEO and Chief Software Engineer
   Supernova Software - supernovasoftware.com
   BS Physics, MS  Chemical Engineering
  
   -Original Message-
   From: Jason Long [mailto:[EMAIL PROTECTED]
   Sent: Saturday, March 29, 2003 9:49 PM
   To: Struts Users Mailing List
   Subject: RE: application.getRealPath(/) from ActionForm???
  
  
   Actually I am calling a funtion that loads values into the form in the
   object.  This load method needs to find a relative path.  I cannot
seem
 to
   get a reference to the controller servlet or any other way to get the
 path
   to my WEB-INF.
  
   public final class ManagerForm extends ActionForm {
 public ManagerForm() throws Exception {
   this.load();
 }
   ...
   
   ...
   }
  
   -Original Message-
   From: Dan Tran [mailto:[EMAIL PROTECTED]
   

RE: application.getRealPath(/) from ActionForm???

2003-03-30 Thread Jason Long
I have never used a Singleton before.
My understanding is that it is just a static class memeber.
There will be only one person trying to load this form at a time since it is
for management purposes only.
Maybe I am going about this all the wrong way.
Here is what I am doing.

When the xml file is changed the client then runs the application that
creates many jsp/struts files in xml syntax.
All forms are blank to start with except the ManagerForm.
In order to have this populated I do the following:

jsp:useBean id=bean
class=com.supernovasoftware.exploreco.struts.ManagerForm/
This loads the form object and populates the bean because I am calling the
load method from the constuctor.


bean:write name=bean property=stringIndexed[0]/
Initally this uses the values from the xml file, but once submitted values
are handled by ManagerForm.
This is necessary so that when data is invalid it is filled in with the
changes the client made until it
is correct.

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 12:12 AM
To: Struts Users Mailing List
Subject: Re: application.getRealPath(/) from ActionForm???


Have you given a thought on my Singleton solution?

-Dan
- Original Message -
From: Jason Long [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 9:48 PM
Subject: RE: application.getRealPath(/) from ActionForm???


 It is not static.  I need it to load when ActionForm is loaded.  Is there
no
 way to load form values from an external source?

 Jason Long - CEO and Chief Software Engineer
 Supernova Software - supernovasoftware.com
 BS Physics, MS  Chemical Engineering

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 11:42 PM
 To: Struts Users Mailing List
 Subject: Re: application.getRealPath(/) from ActionForm???


 Is your XML file static? If it does, you cam place the xml file in your
 class path and use my other posted solution to have access to its
 InputStream.

 If you dont like to place it in classpath, you can create a Singleton
 wrapper around your XML  and load it up during application startup, via
 Struts plugin or a servlet.

 -Dan

 - Original Message -
 From: Jason Long [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 9:31 PM
 Subject: RE: application.getRealPath(/) from ActionForm???


  This file is and xml file that contain that data that the form needs to
be
  filled with.  It is in my WEB-INF/data folder.  The problem is that I
 cannot
  find a way to tell my form where to load this data from.  I need need to
  access to the ServletContext so I can get the real path of the web
  application.  Some has to know how to do this easily.
 
  Jason Long - CEO and Chief Software Engineer
  Supernova Software - supernovasoftware.com
  BS Physics, MS  Chemical Engineering
 
  -Original Message-
  From: Dan Tran [mailto:[EMAIL PROTECTED]
  Sent: Saturday, March 29, 2003 10:29 PM
  To: Struts Users Mailing List
  Subject: Re: application.getRealPath(/) from ActionForm???
 
 
  My guess about the null control serverlet, is because struts may not
init
  the form's control servlet after the form constructor completes.
 
   If you can take a look at my answer to Setting external JNDI
 properties,
  you can put your file in classpath and load it.
 
 
  BTW, you might have a performance problem loading the file for every
  constructor of your action object.  You might want to load your file at
  startup and access it thru a singleton.
 
  Good luck.
 
  -Dan
 
  - Original Message -
  From: Jason Long [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Saturday, March 29, 2003 7:53 PM
  Subject: RE: application.getRealPath(/) from ActionForm???
 
 
   ActionServlet as = this.getServlet();
  
   This is returning null.  What is the proper way to get a reference to
 the
   controller servlet from and Action from?
  
   Jason Long - CEO and Chief Software Engineer
   Supernova Software - supernovasoftware.com
   BS Physics, MS  Chemical Engineering
  
   -Original Message-
   From: Jason Long [mailto:[EMAIL PROTECTED]
   Sent: Saturday, March 29, 2003 9:49 PM
   To: Struts Users Mailing List
   Subject: RE: application.getRealPath(/) from ActionForm???
  
  
   Actually I am calling a funtion that loads values into the form in the
   object.  This load method needs to find a relative path.  I cannot
seem
 to
   get a reference to the controller servlet or any other way to get the
 path
   to my WEB-INF.
  
   public final class ManagerForm extends ActionForm {
 public ManagerForm() throws Exception {
   this.load();
 }
   ...
   
   ...
   }
  
   -Original Message-
   From: Dan Tran [mailto:[EMAIL PROTECTED]
   

Re: Struts-el book

2003-03-30 Thread David M. Karr
 Ruben == Ruben Pardo [EMAIL PROTECTED] writes:

Ruben Hi everybody!
Ruben  Is there any book that explain in detail struts-el and JSTL? I'm searching 
in Struts in action by ted husted, Programming Jakarta Struts by chuck cavaness, and 
Mastering Jakarta struts by james goodwill, but I  don't find anything.
Ruben Any suggestion?

I'm afraid no one (including me) has published anything outside of the Struts
internal documentation that covers Struts-EL directly (and even that's not very
much).

However, as others pointed out, Struts-EL is just Struts with the EL.  If you
are familiar with the Struts tags and the JSTL (make sure you read the
specification), then there's not a lot more we can teach you.  Shawn's JSTL in
Action book will probably help with seeing more JSTL examples.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




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



Re: Validation for anything other than html:text

2003-03-30 Thread Dan Tran
Required select  works for me! do you have the normal text file validation
working ?

-Dan
- Original Message -
From: Steven Citron-Pousty [EMAIL PROTECTED]
To: struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 1:43 PM
Subject: Validation for anything other than html:text


 Greetings all:
 How do you validate a html:select or html:radio for required using the
 validator plugin.
 All the doco deals with html:text. I found some old postings but they
 didn't really explain how to do this.
 I tried it out and it doesn't seem to work. I want the form to return an
 error if the user forgets to pick something off the select list.
 I printed out what was in the request for the select list and its a
 blank or null, which, according to the javaDoc should fail for a
 required field.
 Thanks for your help,
 Steve


 -
 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: [OT] Re: Does a degree matter?

2003-03-30 Thread Andrew Hill
These days Job Applications without degrees tend to get stamped [FRIDAY] and
filed appropriately...

A degree can help you get a chance at being evaluated as a candidate, though
curiously , having a degree that is relevant often seems less important than
having a degree.
Mine for example is in a different discipline completely (Economics) though
having graduated from that I went straight on to do a grad diploma in
computing so I could actually do something that would get me a job - buts
its been the degree thats counted for more in various applications (jobs,
visas etc...) despite being quite irrelevant to my work.

Personally I think experience should count for more than education. All the
good stuff I know about (Java, Patterns, XP , struts etc...), I learned
during my working life... (Mind you 80 to 90 hours of work per week tends to
cram a lot more knowledge in than a few hours of occasional lectures
interrupting relaxation at the university tavern!)

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Sunday, 30 March 2003 04:31
To: Struts Users Mailing List
Subject: [OT] Re: Does a degree matter?


Unfortunately, to many who are hiring, the degree is an important
screen before further consideration. and in a tough market, where
there are many applicants for each job, they can afford to be choosy.

I've known many a bright guy who did not have a degree,
and their salary always seemed lower that others who might
be less competent / productive, but who had degrees. I'm sure there
are exceptions, including some spectacular ones, but that's
certainly the general trend I've seen.

and with defense contracting, where I worked most of my career,
many times, labor categories on government procurements were
tied to degrees and years of experience, and it was very difficult
to even place a non-degreed person on a high dollar position.

That being said, is it worth it? Depends  - how close would you
be to a degree (any prerequisites out of the way yet?). How
much can you stand working all day and going to school at
night, being away from family? probably only you can
make that decision. its a tough one.

-jeff

On Saturday, March 29, 2003, at 02:09  PM, Brandon Goodin wrote:

 Hey all,

 I'm trying to make a decision as to what I am going to do. I am
 sucking wind on profitable work. So, I was thinking about going to
 school and getting a BA in Comp Science to make myself more attractive
 in the job market. Is it really worth doing? I've been doing
 development for 5 years professionaly. 2 years Perl and ASP, 3 years
 Java. Prior to that I was hobbying in those languages on my own. My
 knowledge is competitive with anyone else in my realm of experience.
 Anyways, I was just wondering how important you all think a BA in
 Computer Science is for a family man trying to give his career a  boost.

 Brandon Goodin


 -
 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: Does a degree matter?

2003-03-30 Thread Andrew Hill
snip
quite frankly, there are more interesting things in the
world than just computers and web apps :-)
/snip

Beer?

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Sunday, 30 March 2003 13:45
To: Struts Users Mailing List
Subject: Re: Does a degree matter?




On Sat, 29 Mar 2003, Arron Bates wrote:

 Date: Sat, 29 Mar 2003 20:36:21 -0600
 From: Arron Bates [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Does a degree matter?

 Brandon,

 If you can do the deed (which it sounds like you can), I would hazard
offering
 my opinion in thinking that it wouldn't be the best use of your time. By
 education I'm a graphic designer, not a computer scientist. First job was
web
 design, programmer ever since. Results... I've only had two places not
take me
 on because it's not a computer degree. Two interviews of hundreds.


My personal experience (both for myself and for folks I have hired over
the years) mirrors this -- indeed, my personal opinion is that a Comp Sci
degree is worth less (to me as an employer) than a degree in some field
that is more closely associated with the general needs of potential
employers.

Why?  A couple of reasons:

* Many folks who go for Comp Sci degrees obsess over learning the
  particular technologies being taught in their classes, at the expense
  of courses to improve your general thinking skills.  Any specific
  technology you learn in your first year is going to be totally
  obsolete by the time you graduate from the program anyway, so why
  bother?  The important skill to employers (at least from my viewpoint)
  is that you've learned how to quickly adapt your existing skills to
  new technologies as they become available.  Also, the fundamentals
  of good architecture and design practices tend to change much more
  slowly than the favorite language de jour -- so if you decide to go
  for Comp Sci, focus on fundamentals like O-O, design patterns,
  and so on.

* Many folks who go for Comp Sci degrees are so focused on the technical
  things, and don't accumulate any domain knowledge along the way that
  would make you *more* valuable to potential employers than another
  Comp Sci graduate with similar skills.  If you're building e-commerce
  systems, do you know anything about the fundamental accounting
  principles involved in tracking purchases?  If you're building
  systems to introduce novices to the world of online information,
  have you ever studied any human factors engineering?  If you're
  building trading systems for a Wall Street broker, do you have the
  slightest idea how stock and commodity exchanges work?

It may surprise some of you to find out that I don't have a Comp Sci
degree at all -- instead, I got a BA in Business with a focus on
Accounting.  This was ***tremendously*** helpful in setting me apart from
everyone else who was learning programming and systems analysis in those
days -- I could immediately communicate with the end users responsible for
the systems we were building, using their vocabulary, without having to be
trained -- in addition to the fact that I was a fair-to-middlin'
programmer :-).

If you are looking at going to college today (either because it's that
time in your life, or because the job market sucks right now), I would
suggest thinking about a primary major other than Comp Sci (with a Comp
Sci minor to keep your hand in on all the technical stuff).  The name of
the game is making yourself more valuable, relative to everyone else out
there -- and, quite frankly, there are more interesting things in the
world than just computers and web apps :-).

Craig


-
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: [OT] Re: Does a degree matter?

2003-03-30 Thread Kwok Peng Tuck
Just curious but did you find the transition from Econs to comp sc 
difficult ? Cause I might do the reverse, comp science  to Econs !

Mine for example is in a different discipline completely (Economics) though
having graduated from that I went straight on to do a grad diploma in
computing so I could actually do something that would get me a job - buts
its been the degree thats counted for more in various applications (jobs,
visas etc...) despite being quite irrelevant to my work.
 

 



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


RE: [OT] Re: Does a degree matter?

2003-03-30 Thread Andrew Hill
Well computings always been a hobby of mine since I was knee high to a
grasshopper, so it was actually quite easy - I already knew C , so C++ wasnt
difficult to pick up. The main thing that I found difficult understanding
first time were relational database concepts.

-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Sent: Monday, 31 March 2003 11:52
To: Struts Users Mailing List
Subject: Re: [OT] Re: Does a degree matter?


Just curious but did you find the transition from Econs to comp sc
difficult ? Cause I might do the reverse, comp science  to Econs !

Mine for example is in a different discipline completely (Economics) though
having graduated from that I went straight on to do a grad diploma in
computing so I could actually do something that would get me a job - buts
its been the degree thats counted for more in various applications (jobs,
visas etc...) despite being quite irrelevant to my 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: [Logic Tag] Can This work

2003-03-30 Thread Puneet Agarwal

Alright, Following is what exactly am I trying to achieve:

In our application we have to develop number of screens (more than 200)
which have a table listing with 10 rows shown at a time and facility for
next and previous page being given in the form of buttons.

I wish to write a generic TILE which could be passed with an arraylist of
some DTO, to render the table, thus reducing the coding effort. We as have
written a generic Value List Handler component to suit our need.

While developing the subject TILE we need to specify the DTO's type at
run-time (in JSP), and we are not able to achieve this. As you can see in
the code given, we try to give the type attribute with the help of
bean:write.

Hope this clears up the problem.

Regards,
Puneet Agarwal
Ext: 1031

Struts ... Action ... Struts in Action ... Action in Struts ... Action
with Struts ...


   

James  

Mitchell To: Struts Users Mailing List [EMAIL 
PROTECTED]
[EMAIL PROTECTED]cc:  
 
ache.orgSubject: Re: [Logic Tag] Can This work

   

03/29/03   

07:44 PM   

Please 

respond to 

Struts Users  

Mailing List  

   

   





On Sat, 2003-03-29 at 02:46, Puneet Agarwal wrote:
 Unfortunately, this did not work, mostly because this will substitute the
 value at a later stage than required.

I can't really help, if you don't specify your requirements.


 We need some other solution to this

 Any more  clues !!!

 James Mitchell Suggested:
 
 Did you try this?

 bean:define id=myType
   bean:write name=txtInput
 /bean:define
 logic:iterate id=idDataClass property=vData type=%=myType%

 Original Problem
 
 Can this work

 logic:iterate id=idDataClass property=vData type=bean:write
 name=txtInput

 I want to give the type at run time  to make a re-usable TILE for our
 application.

 Complete code is shown below.

 
 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 %@ taglib uri=/tags/struts-logic prefix=logic %
 %@ taglib uri=/tags/struts-tiles prefix=tiles %

 html:html locale=true
   head
 html:base/
   /head
   BODY class=BodyClass
 html:form name=FormTableRO action=/pages/TableRO.do
type=com.tiger.inf.forms.FormTableRO
   logic:iterate id=idDataClass property=vData type=bean:write
 name=txtInput
 bean:write name=idDataClass property=time/
 bean:write name=idDataClass property=day/
   /logic:iterate
 /html:form
   /body
 /html:html





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




-
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: how to get a single value from hashtable

2003-03-30 Thread shashi_struts
Hi Max

Sorry for writing the wrong code.
In my code :
---
 Hashtable hash=new Hashtable();
 hash.put(page 1,new ArrayList());
 hash.put(page 2,new ArrayList());
 hash.put(page 3,new ArrayList());
 the code i am using in java is
 if(hash.containsKey(new String(page 2))
 ArrayList value=hash.get(new String(page 2))

i want to this will be implemented through the tag library.

| page 1 | questions in a arraylist|

|  page 2 | questions in a arraylist|
-
|  page 3 |questions in a arraylist|

this is a key-value pare.

i think now you under stand the question.
i am already reterive this through scriplets and implement, but now i want
this through the tag library.

is any tag provided for this type of functionality.

Regards

Shashi BHushan


- Original Message -
From: Max Cooper [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 7:49 PM
Subject: Re: how to get a single value from hashtable


 I am not exactly sure what you are asking. Consider posting a minimal but
 complete code (JSP, Java) example to help us understand if the following
 info doesn't help:

 Hashtable.elements() returns an Enumeration of the values, not the keys. I
 believe that logic:iterate will just iterate though the Enumeration of
 values.

 hash.contains(new String(one)) will return false in your example code,
 because there is no map entry with a value of one. I think you mean
 hash.containsKey(one), which is much faster and will return true. Read
the
 API docs:
 http://java.sun.com/j2se/1.4.1/docs/api/java/util/Hashtable.html

 Also, the newer HashMap class might be faster than Hashtable, since
HashMap
 is not synchronized.

 -Max

 - Original Message -
 From: shashi_struts [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, March 05, 2003 10:04 PM
 Subject: how to get a single value from hashtable


 hi
 i am using the struts and jstl in my web application and using the
 logic:iterate for iterating the hashtable,arraylist.
 I faced the problem at this point:-
 i am getting any tag for retrival of only one value from the hashtable
that
 we are getting through java function.
 ex:-
 Hashtable hash=new Hashtable();
 hash.put(one,first);
 hash.put(two,second);
 the code i am using in java is
 if(hash.contains(new String(one))
 String value=hash.get(new String(one))

 but i am not getting this using struts or jstl

 Please help me
 Regards





 -
 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: [OT] overwhelmed [was] Re: Does a degree matter?

2003-03-30 Thread Rick Reumann
Does anyone else ever wake up going Man, I feel overwhelmed. Too much
too learn, not enough time. I started this computer stuff rather late
in life and find it very difficult trying to pick out what to try
concentrate my learning in. Bottom line is I have to put food on the
table for the family so I have to concentrate in skill sets that are
valuable (and not just fun:). I started this computer stuff rather late
in life (4 years ago and I'm 33 now) and constantly wonder What should
I concentrate on learning next? When you spend too much time learning
one area you fall behind in another. That's what I find so amazing about
some of these job applications- is they put down tons of skill sets and,
sure there might be a few that truly 'know' all of the skill sets
listed, but rarely have I come across that many people that can honestly
say they are proficient in all of them. Then it's also the Catch-22 of
if you diverse too much you end up being ok at a lot of stuff but not
really good at any one skill. It seems like in this market it's best
to just concentrate on being very good at a few skill sets vs trying to
learn everything, but I could be totally wrong there. All and all it's
just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I
could just start over and be a farmer in some little rural ho-dunk town
where my greatest concerns would be whether God was going to provide
enough rain for the crops. 

-- 
Rick

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



RE: [OT] overwhelmed [was] Re: Does a degree matter?

2003-03-30 Thread Andrew Hill
snip
Wish I
could just start over and be a farmer in some little rural ho-dunk town
where my greatest concerns would be whether God was going to provide
enough rain for the crops.
/snip

My old man was a farm labourer. Its no walk in the park, and (in Australia
at least) God has been decidedly stingy with the old h20 for a couple of
years in a row now and there are a lot of farmers who probably wish they
took up IT - it sure beats the heck out of having to trudge around in dusty
46 degree heat shooting all the starving flyblown sheep you paid a fortune
for but cant afford to feed or water anymore...

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Monday, 31 March 2003 12:45
To: Struts Users Mailing List
Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter?


Does anyone else ever wake up going Man, I feel overwhelmed. Too much
too learn, not enough time. I started this computer stuff rather late
in life and find it very difficult trying to pick out what to try
concentrate my learning in. Bottom line is I have to put food on the
table for the family so I have to concentrate in skill sets that are
valuable (and not just fun:). I started this computer stuff rather late
in life (4 years ago and I'm 33 now) and constantly wonder What should
I concentrate on learning next? When you spend too much time learning
one area you fall behind in another. That's what I find so amazing about
some of these job applications- is they put down tons of skill sets and,
sure there might be a few that truly 'know' all of the skill sets
listed, but rarely have I come across that many people that can honestly
say they are proficient in all of them. Then it's also the Catch-22 of
if you diverse too much you end up being ok at a lot of stuff but not
really good at any one skill. It seems like in this market it's best
to just concentrate on being very good at a few skill sets vs trying to
learn everything, but I could be totally wrong there. All and all it's
just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I
could just start over and be a farmer in some little rural ho-dunk town
where my greatest concerns would be whether God was going to provide
enough rain for the crops.

--
Rick

-
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: Does a degree matter?

2003-03-30 Thread Rahul
Hello Brandon,
I agree with Jeff and Craig. I think its the can do attitude that should
matter, and not just the has done facts :p

I never touched or learned programming until I graduated  in Commerce.
Simultaneously pursued my hobby in Japanese and then landed in job as a
language specialist... with a .guess what ..a software
company. That was when I was bitten by the programming bug :p , and have
never looked back since then. I have done a certificate course and quiet a
few certifications and had an oppurtunity to work for some good companies
over the last 6 years.

No doubt , its not a smooth sail for many of us in current times. there
are employers for whom degrees are a bare minimum to even look at a resume.
But I think, personally for me it finally boils down to pursuing what you
want to. Though nothing measures up to hand-on experience but then that's
not undermining the hard work many of us put in when earning degrees. I
think the 2 descions pointed out in Jeff's email are crucial.

cheers :)

Rahul


- Original Message -
From: Jeff Smith [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 3:47 PM
Subject: Re: Does a degree matter?


 Hi Brandon. I thought I'd watch the responses to this thread before
weighing
 in with an opinion. I was interested to note that none of the responses
 appear to have come from hiring managers. So I thought you might benefit
 from an opinion on that side of the debate.

 In my career I have hired over 100 different developers on a wide number
of
 projects. And in my experience, the paper qualifications only matter in
the
 first 3-5 years after school. Once you have those first few projects under
 your belt, it is your experience that matters, far more than your formal
 training. (In other words, it takes from 3-5 years of experience to catch
up
 to the pack.)

 Although it is hard to generalize about companies and employers (since
they
 are all run by people, and people vary widely) I can say that in general
 terms, the more liberal hiring policies tend to be in the smaller and more
 progressively managed organizations. Larger, more institutional
employers
 have a much more formalized, and rigid hiring practice. The first
screening
 of resumes in such places tends to be done by professional HR people, who
 are generally only qualified to screen for check-list items. (The job says
 A, B and C are required. Here's a fabulous resume with A, B, D, E, F and J
 thru N. But he's missing C. Reject.)

 So here are a couple of really important decisions for you to consider:
 1) Do you prefer the mayhem of start-ups and small companies to the
security
 of large institutional employers?
 2) Do you already have, or can you be reasonably confident in getting
those
 first few years of experience?
 If you said yes to both of those, you may be able to successfully avoid
 the school thing. If you said No to either one, school might be a safer
 bet.

 For what it's worth, in the last company I ran, the guy I promoted to
Chief
 Architect did not have a degree of any kind. He was primarily self-taught.
 But he got the job because he was dedicated, articulate, responsible and
 clearly understood the technology and the needs of the company. In my
book,
 those are far more valuable than 4 years of sleeping through lectures.

 Jefficus

 - Original Message -
 From: Brandon Goodin [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 1:09 PM
 Subject: Does a degree matter?


 Hey all,

 I'm trying to make a decision as to what I am going to do. I am sucking
wind
 on profitable work. So, I was thinking about going to school and getting a
 BA in Comp Science to make myself more attractive in the job market. Is it
 really worth doing? I've been doing development for 5 years professionaly.
2
 years Perl and ASP, 3 years Java. Prior to that I was hobbying in those
 languages on my own. My knowledge is competitive with anyone else in my
 realm of experience. Anyways, I was just wondering how important you all
 think a BA in Computer Science is for a family man trying to give his
career
 a boost.

 Brandon Goodin


 -
 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: [OT] overwhelmed [was] Re: Does a degree matter?

2003-03-30 Thread Rick Reumann
On Mon, Mar 31,'03 (12:56 PM GMT+0800), Andrew wrote: 
  
 My old man was a farm labourer. Its no walk in the park, 

Well, I certainly didn't mean to imply that it would be and of course I
really wasn't serious about wanting to be a farmer (I'm way too lazy
for that job:). I just meant it from the standpoint that sometimes I'm
envious of those positions where you know what you need to do and you
just do it and if you do it well you can be successful. - idealistic I
know especially in today's complex world. I was thinking more back to
the days when maybe one was a quality cobbler or a quality blacksmith
and you did your job well and you managed to get by ok. I assume back
then they had their problems as well I'm sure. It just appears life was
simpler - not necessarily easier by any means- just simpler. Of course
everything is relative, and to the people back then life probably seemed
anything but 'simple.' 

-- 
Rick

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



RE: [OT] overwhelmed [was] Re: Does a degree matter?

2003-03-30 Thread Andrew Hill
Yep. I understand what you mean.
Ive often wondered if there is any job out there like that, but I have not
been able to think of one :-(

I certainly understand the know what you need to do wish! One often spends
more time working out what to do than one does doing it... sigh/

master: We need some enhancements to the product. When can you have it ready
by?
slave:  If you tell me what you need I can give you an estimate.
master: We havent decided yet, but I need an estimate now.
slave:  Okay ummm hows two weeks sound.
master: Too long. Sales promised it would be ready today.
slave:  So , uhh, I guess it could be ready by end of today?
master: I need it by lunchtime.
slave:  So exactly what is it you need by lunchtime?
master: Why dont you just do it and Ill tell you if you got it right
afterwards - but make sure you dont get it wrong. This is vital to us
getting the bigCo account. Everyone is counting on you!



-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Monday, 31 March 2003 13:37
To: Struts Users Mailing List
Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter?


On Mon, Mar 31,'03 (12:56 PM GMT+0800), Andrew wrote:

 My old man was a farm labourer. Its no walk in the park,

Well, I certainly didn't mean to imply that it would be and of course I
really wasn't serious about wanting to be a farmer (I'm way too lazy
for that job:). I just meant it from the standpoint that sometimes I'm
envious of those positions where you know what you need to do and you
just do it and if you do it well you can be successful. - idealistic I
know especially in today's complex world. I was thinking more back to
the days when maybe one was a quality cobbler or a quality blacksmith
and you did your job well and you managed to get by ok. I assume back
then they had their problems as well I'm sure. It just appears life was
simpler - not necessarily easier by any means- just simpler. Of course
everything is relative, and to the people back then life probably seemed
anything but 'simple.'

--
Rick

-
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: [OT] Re: Does a degree matter?

2003-03-30 Thread Simon Kelly
Hi Brandon,

Just thought I'd give you my 2 cents from the position you may find yourself
in the 6 months.

I gave up a reasonably promising career in electronics to go back to
school to study Real-time systems (v.low level programming) at age 31.  And
although I think all of the advice you have received has been top notch,
there are a few things you may want to seriously think about before
starting, and this will apply to doing a part-time/night course as well.

1)  Your wife (I take it you have one from your original post).  You must be
sure she is behind you 100% in this.  Two other mature students on my course
have had some major problems in their relationships through going back.  The
understanding starts to wear off when you've spent four nights on the trot
programming till 2 in the morning, or doing the final touch-ups on a piece
of course work.  Too many times have I heard the comment, Well I won't be
getting any for a while!!, after a busy night of coding from one or both of
them.

2)  Your bills. No matter what anyone has said about money, you must
remember that if you do go back you will have a lot less no-mater what
financial help you get.  This may not matter too much if you stay in a
company and do the course part-time, but if you do rely on the over-time you
can forget that, you wont have the time to do it with the course work.

3)  (Part-time/night course)  Social life!!  You wont have one!  I did my
electronics qualifications part-time when I worked for HP.  You can forget
any social activities you do if you expect to get good grades doing it this
way.  Uni is easier, and you can make a bit of time for the social (read
beer drinking) activities, but not much.  The lecturers expect better from a
mature student, and you will find (like I do) you spend a little more time
on your work than the 18-21 year olds.

Having said all of that, if you never did the college/university thing when
you were younger like me, this is the best time to do it.  I took an 85%
drop in income to do the degree and have not regretted one second of it.

Unfortunately people *do* check for degrees first when employing, no matter
the field.  It is a shame this happens as I have known people who could run
rings around the whole engineering departments who never had a look in for
some of the jobs.  It may only be a piece of paper, but it's the one that
gets you the interview!!  And employers can't see you shine, if you ain't
sat in front of them.

Well, good luck no matter what you choose to do.  Just make sure your better
half is in the decision making from the start ;-)

Cheers

Simon


- Original Message -
From: Brandon Goodin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 8:52 AM
Subject: [OT] Re: Does a degree matter?


 Wow, this has been some incredible insight. I can't thank you enough for
 your advice. It has been extremly helpful in helping me to focus my
 direction. As always you guys/girls have shown true heart in assisting a
 fellow geek. Thanks again!

 Brandon Goodin


 -
 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: Too many session scoped form beans!

2003-03-30 Thread Nicolas De Loof
If this hacking scenario makes you nervous, you can set an acceptable max index value :

private static final int MAX_INDEX = 100;

public void setItem(int index, Object obj) {
if (index  MAX_INDEX) {
throw new IndexOutOfBoundsException();
}


Nico.

 Nicolas,
 
 Your great suggestion makes me nervous ... It is possible for a hacker to
 change the index so big that it can hog the CPU, which busy creating empty
 node, for each request.
 
 However, I cant come up with another solution
 
 Any comments? anyone?
 
 -D
 - Original Message -
 From: Nicolas De Loof [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, March 28, 2003 5:19 AM
 Subject: Re: Too many session scoped form beans!
 
 
  Reading my own post I realize this code will throw an
 IndexOutOfBoundsException
 
  You need to put 'empty' datas on the List as needed :
 
  protected List item;
 
  public void setItem(int index, Object obj) {
  if (this.item == null) {
  this.item = new ArrayList(index);
  }
  for (int i = this.item.size(); i  index; i++) {
  this.item.add();
  }
  this.item.add(index, obj);
  }
 
  Nico.
 
   I think you can use something like this in a request scoped form-bean :
  
  
   protected List item;
  
   public void setItem(int index, Object obj) {
   if (this.item == null) {
   this.item = new ArrayList(index);
   } else {
   this.item.ensureCapacity(index);
   }
   this.item.add(index, obj);
   }
  
   This way, when form-bean population occurs, you will get a new
 Collection when needed.
  
   Nico.
  
  
I'd like to know if it's possible to avoid using to many session
 scoped
form beans.
   
I have a bean that contains a collection and I use nested:iterate to
display entry fields on my html:form. When the form is submitted, I
 get
an error in BeanUtils.populate(), because the new bean (when the bean
 is
request scoped) contains an empty collection and populate() tries to
 set
the properties of the elements that existed on the bean of the
 previous
request.
   
If I change the bean to session scope, everything works fine (because
now the bean is the same for both requests), but I think it's kind of
messy to have lots of session scoped beans.
   
I'd appreciate to have any comments on this subject.
   
Thanks
   
Jorge Mascena
   
   
-
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]

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



RE: Does a degree matter?

2003-03-30 Thread Mohan Radhakrishnan
Hi

This article http://www.well.com/user/jaron/general.html ends with
these  words Lanier has no academic degrees. If this doesn't inspire
software programmers all over the world then nothing will.
  I've been collecting such details over the past few years. Take the
case of Jeff de Luca who was managing a bank ( UOB ) project in Singapore
while I was working in that country. The IBM site says that he started as a
clerk in IBM.
It seems that people stop learning after acquiring advanced degrees.
Software engg. is a continuous learning process. In India which has the
largest technical manpower pool in the world there are no popular software
books being published. Actually almost nothing. This probably means that
technical guys rest on their laurels and don't continue to learn. My
perception is that only people who are really interested in designing and
creating code throughout their lifetime are the successful ones. 

Mohan
   


  

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 11:15 AM
To: Struts Users Mailing List
Subject: Re: Does a degree matter?




On Sat, 29 Mar 2003, Arron Bates wrote:

 Date: Sat, 29 Mar 2003 20:36:21 -0600
 From: Arron Bates [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Does a degree matter?

 Brandon,

 If you can do the deed (which it sounds like you can), I would hazard
offering
 my opinion in thinking that it wouldn't be the best use of your time. By
 education I'm a graphic designer, not a computer scientist. First job was
web
 design, programmer ever since. Results... I've only had two places not
take me
 on because it's not a computer degree. Two interviews of hundreds.


My personal experience (both for myself and for folks I have hired over
the years) mirrors this -- indeed, my personal opinion is that a Comp Sci
degree is worth less (to me as an employer) than a degree in some field
that is more closely associated with the general needs of potential
employers.

Why?  A couple of reasons:

* Many folks who go for Comp Sci degrees obsess over learning the
  particular technologies being taught in their classes, at the expense
  of courses to improve your general thinking skills.  Any specific
  technology you learn in your first year is going to be totally
  obsolete by the time you graduate from the program anyway, so why
  bother?  The important skill to employers (at least from my viewpoint)
  is that you've learned how to quickly adapt your existing skills to
  new technologies as they become available.  Also, the fundamentals
  of good architecture and design practices tend to change much more
  slowly than the favorite language de jour -- so if you decide to go
  for Comp Sci, focus on fundamentals like O-O, design patterns,
  and so on.

* Many folks who go for Comp Sci degrees are so focused on the technical
  things, and don't accumulate any domain knowledge along the way that
  would make you *more* valuable to potential employers than another
  Comp Sci graduate with similar skills.  If you're building e-commerce
  systems, do you know anything about the fundamental accounting
  principles involved in tracking purchases?  If you're building
  systems to introduce novices to the world of online information,
  have you ever studied any human factors engineering?  If you're
  building trading systems for a Wall Street broker, do you have the
  slightest idea how stock and commodity exchanges work?

It may surprise some of you to find out that I don't have a Comp Sci
degree at all -- instead, I got a BA in Business with a focus on
Accounting.  This was ***tremendously*** helpful in setting me apart from
everyone else who was learning programming and systems analysis in those
days -- I could immediately communicate with the end users responsible for
the systems we were building, using their vocabulary, without having to be
trained -- in addition to the fact that I was a fair-to-middlin'
programmer :-).

If you are looking at going to college today (either because it's that
time in your life, or because the job market sucks right now), I would
suggest thinking about a primary major other than Comp Sci (with a Comp
Sci minor to keep your hand in on all the technical stuff).  The name of
the game is making yourself more valuable, relative to everyone else out
there -- and, quite frankly, there are more interesting things in the
world than just computers and web apps :-).

Craig


-
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]



Setting up JSTL---How?

2003-03-30 Thread joni santoso
Hi,

I have downloaded jakarta-taglibs-20030316.zip. I have 
unzipped and installed it to my tomcat 4.1.18.

Here is my test web-app's web.xml (is it wrong?) : 
!--
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app


  
  taglib
	taglib-urihttp://java.sun.com/jstl/core/taglib-uri
taglib-location/WEB-INF/c-1_0.tld/taglib-location
  /taglib

/web-app
--
and my test's web-inf has all the tld files from jakarta 
taglib. in the lib directory there are jstl.jar and 
standard.jar.

here is my test.jsp :

!--
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; 
%

Your name is : c:out value=$param.userName 
default=Unknown /
--

when i ran it, errors happened. this is the error:

please explain.

thx

type Exception report

message 

description The server encountered an internal error () 
that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException
	at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.NoClassDefFoundError
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:140)
	at 
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.getEvaluatorByName(ExpressionEvaluatorManager.java:146)
	at 
org.apache.taglibs.standard.tlv.JstlBaseTLV.validateExpression(JstlBaseTLV.java:202)
	at 
org.apache.taglibs.standard.tlv.JstlCoreTLV$Handler.startElement(JstlCoreTLV.java:181)
	at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
	at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
	at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:874)
	at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:591)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
	at 

Re: Setting up JSTL---How?

2003-03-30 Thread Dan Tran
suggestion!! download Struts-el example, load and run it.
And use it as template for your new jstl work.

-Dan

- Original Message -
From: joni santoso [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 11:15 PM
Subject: Setting up JSTL---How?


 Hi,

 I have downloaded jakarta-taglibs-20030316.zip. I have
 unzipped and installed it to my tomcat 4.1.18.

 Here is my test web-app's web.xml (is it wrong?) :
 !--
 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

 web-app

 

taglib
 taglib-urihttp://java.sun.com/jstl/core/taglib-uri
  taglib-location/WEB-INF/c-1_0.tld/taglib-location
/taglib

 /web-app
 --

 and my test's web-inf has all the tld files from jakarta
 taglib. in the lib directory there are jstl.jar and
 standard.jar.

 here is my test.jsp :

 !--
 %@ taglib prefix=c uri=http://java.sun.com/jstl/core;
 %

 Your name is : c:out value=$param.userName
 default=Unknown /
 --

 when i ran it, errors happened. this is the error:

 please explain.

 thx


 type Exception report

 message

 description The server encountered an internal error ()
 that prevented it from fulfilling this request.

 exception

 javax.servlet.ServletException
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
 at java.lang.Thread.run(Thread.java:536)


 root cause

 java.lang.NoClassDefFoundError
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:140)
 at

org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.getEvalu
atorByName(ExpressionEvaluatorManager.java:146)
 at

org.apache.taglibs.standard.tlv.JstlBaseTLV.validateExpression(JstlBaseTLV.j
ava:202)
 at

org.apache.taglibs.standard.tlv.JstlCoreTLV$Handler.startElement(JstlCoreTLV
.java:181)
 at

org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:459)
 at

org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
DocumentParser.java:221)
 at

org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBin
der.java:874)
 at

org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
va:591)
 at


Re: Too many session scoped form beans!

2003-03-30 Thread Dan Tran
Of course, your newest solution is better, but it still does not feel right
regarding the MAX_INDEX allowed ;-)

-D
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 10:44 PM
Subject: Re: Too many session scoped form beans!


 If this hacking scenario makes you nervous, you can set an acceptable max
index value :

 private static final int MAX_INDEX = 100;

 public void setItem(int index, Object obj) {
 if (index  MAX_INDEX) {
 throw new IndexOutOfBoundsException();
 }


 Nico.

  Nicolas,
 
  Your great suggestion makes me nervous ... It is possible for a hacker
to
  change the index so big that it can hog the CPU, which busy creating
empty
  node, for each request.
 
  However, I cant come up with another solution
 
  Any comments? anyone?
 
  -D
  - Original Message -
  From: Nicolas De Loof [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, March 28, 2003 5:19 AM
  Subject: Re: Too many session scoped form beans!
 
 
   Reading my own post I realize this code will throw an
  IndexOutOfBoundsException
  
   You need to put 'empty' datas on the List as needed :
  
   protected List item;
  
   public void setItem(int index, Object obj) {
   if (this.item == null) {
   this.item = new ArrayList(index);
   }
   for (int i = this.item.size(); i  index; i++) {
   this.item.add();
   }
   this.item.add(index, obj);
   }
  
   Nico.
  
I think you can use something like this in a request scoped
form-bean :
   
   
protected List item;
   
public void setItem(int index, Object obj) {
if (this.item == null) {
this.item = new ArrayList(index);
} else {
this.item.ensureCapacity(index);
}
this.item.add(index, obj);
}
   
This way, when form-bean population occurs, you will get a new
  Collection when needed.
   
Nico.
   
   
 I'd like to know if it's possible to avoid using to many session
  scoped
 form beans.

 I have a bean that contains a collection and I use nested:iterate
to
 display entry fields on my html:form. When the form is submitted,
I
  get
 an error in BeanUtils.populate(), because the new bean (when the
bean
  is
 request scoped) contains an empty collection and populate() tries
to
  set
 the properties of the elements that existed on the bean of the
  previous
 request.

 If I change the bean to session scope, everything works fine
(because
 now the bean is the same for both requests), but I think it's kind
of
 messy to have lots of session scoped beans.

 I'd appreciate to have any comments on this subject.

 Thanks

 Jorge Mascena


   
 -
 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]

 -
 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: Setting up JSTL---How?

2003-03-30 Thread joni santoso
where can i get that struts-el? 

still i am curious why the jstl didn't work :(.

On Sun, 30 Mar 2003 23:20:03 -0800
 Dan Tran [EMAIL PROTECTED] wrote:
suggestion!! download Struts-el example, load and run it.
And use it as template for your new jstl work.
-Dan

- Original Message -
From: joni santoso [EMAIL PROTECTED]
To: Struts Users Mailing List 
[EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 11:15 PM
Subject: Setting up JSTL---How?


Hi,

I have downloaded jakarta-taglibs-20030316.zip. I have
unzipped and installed it to my tomcat 4.1.18.
Here is my test web-app's web.xml (is it wrong?) :
!--
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web 
Application
2.2//EN
   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app



   taglib
taglib-urihttp://java.sun.com/jstl/core/taglib-uri
 taglib-location/WEB-INF/c-1_0.tld/taglib-location
   /taglib
/web-app
--
and my test's web-inf has all the tld files from jakarta
taglib. in the lib directory there are jstl.jar and
standard.jar.
here is my test.jsp :

!--
%@ taglib prefix=c 
uri=http://java.sun.com/jstl/core;
%

Your name is : c:out value=$param.userName
default=Unknown /
--
when i ran it, errors happened. this is the error:

please explain.

thx

type Exception report

message

description The server encountered an internal error ()
that prevented it from fulfilling this request.
exception

javax.servlet.ServletException
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)

root cause

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.getEvalu
atorByName(ExpressionEvaluatorManager.java:146)
at

org.apache.taglibs.standard.tlv.JstlBaseTLV.validateExpression(JstlBaseTLV.j
ava:202)
at

org.apache.taglibs.standard.tlv.JstlCoreTLV$Handler.startElement(JstlCoreTLV
.java:181)
at

org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:459)
at

org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
DocumentParser.java:221)
at

org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBin
der.java:874)
at

org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
va:591)
at


Re: Setting up JSTL---How?

2003-03-30 Thread Dan Tran
struts-el uses JSTL.  So if you follow the template of struts-el example
app, your JSTL will work.

struts-el is under struts distribution in contrib directory.


- Original Message -
From: joni santoso [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 11:24 PM
Subject: Re: Setting up JSTL---How?


 where can i get that struts-el?

 still i am curious why the jstl didn't work :(.

 On Sun, 30 Mar 2003 23:20:03 -0800
   Dan Tran [EMAIL PROTECTED] wrote:
 suggestion!! download Struts-el example, load and run it.
 And use it as template for your new jstl work.
 
 -Dan
 
 - Original Message -
 From: joni santoso [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Sunday, March 30, 2003 11:15 PM
 Subject: Setting up JSTL---How?
 
 
  Hi,
 
  I have downloaded jakarta-taglibs-20030316.zip. I have
  unzipped and installed it to my tomcat 4.1.18.
 
  Here is my test web-app's web.xml (is it wrong?) :
  !--
  ?xml version=1.0 encoding=ISO-8859-1?
 
  !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application
  2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
  web-app
 
  
 
 taglib
  taglib-urihttp://java.sun.com/jstl/core/taglib-uri
   taglib-location/WEB-INF/c-1_0.tld/taglib-location
 /taglib
 
  /web-app
  --
 
  and my test's web-inf has all the tld files from jakarta
  taglib. in the lib directory there are jstl.jar and
  standard.jar.
 
  here is my test.jsp :
 
  !--
  %@ taglib prefix=c
 uri=http://java.sun.com/jstl/core;
  %
 
  Your name is : c:out value=$param.userName
  default=Unknown /
  --
 
  when i ran it, errors happened. this is the error:
 
  please explain.
 
  thx
 
 
  type Exception report
 
  message
 
  description The server encountered an internal error ()
  that prevented it from fulfilling this request.
 
  exception
 
  javax.servlet.ServletException
  at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
  at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
n
 FilterChain.java:247)
  at
 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
h
 ain.java:193)
  at
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a
 va:260)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
 eNext(StandardPipeline.java:643)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
a
 va:191)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
 eNext(StandardPipeline.java:643)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
  at
 

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
0
 )
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
 eNext(StandardPipeline.java:643)
  at
 

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
.
 java:170)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
 eNext(StandardPipeline.java:641)
  at
 

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
2
 )
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
 eNext(StandardPipeline.java:641)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
a
 :174)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
 eNext(StandardPipeline.java:643)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
  org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  at
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
  at
 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
e
 ction(Http11Protocol.java:386)
  at
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
  at
 

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
v
 a:530)
  at java.lang.Thread.run(Thread.java:536)
 
 
  root cause
 
  java.lang.NoClassDefFoundError
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:140)
  at
 


Re: Too many session scoped form beans!

2003-03-30 Thread Nicolas De Loof
That is just an example, I don't know what MAX value can be used for the datas you 
want the user to submit.

Another solution would be to put form-bean into session scope and add a 
to-be-removed mecanism :

When an action puts some form-bean on session scope for editing, it can set a 
to-be-removed string in session scope
with the form-bean name.

Every action of the application has to do is job, and look for this to-be-removed. 
If it exists, remove the associated
objet from session.

This way :
- Your action sets the form-bean for editing, with an intialized ArrayList as item 
property.
- Jsp generates HTML text fields for items.
- If user follows the correct application behaviour, your edit-action gets its 
form-bean from session and can remove it
itself.
- If user clicks on menu or use a bookmark, form-bean will be removed by any other 
action.

Nico.

 Of course, your newest solution is better, but it still does not feel right
 regarding the MAX_INDEX allowed ;-)

 -D
 - Original Message -
 From: Nicolas De Loof [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Sunday, March 30, 2003 10:44 PM
 Subject: Re: Too many session scoped form beans!


  If this hacking scenario makes you nervous, you can set an acceptable max
 index value :
 
  private static final int MAX_INDEX = 100;
 
  public void setItem(int index, Object obj) {
  if (index  MAX_INDEX) {
  throw new IndexOutOfBoundsException();
  }
 
 
  Nico.
 
   Nicolas,
  
   Your great suggestion makes me nervous ... It is possible for a hacker
 to
   change the index so big that it can hog the CPU, which busy creating
 empty
   node, for each request.
  
   However, I cant come up with another solution
  
   Any comments? anyone?
  
   -D
   - Original Message -
   From: Nicolas De Loof [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Friday, March 28, 2003 5:19 AM
   Subject: Re: Too many session scoped form beans!
  
  
Reading my own post I realize this code will throw an
   IndexOutOfBoundsException
   
You need to put 'empty' datas on the List as needed :
   
protected List item;
   
public void setItem(int index, Object obj) {
if (this.item == null) {
this.item = new ArrayList(index);
}
for (int i = this.item.size(); i  index; i++) {
this.item.add();
}
this.item.add(index, obj);
}
   
Nico.
   
 I think you can use something like this in a request scoped
 form-bean :


 protected List item;

 public void setItem(int index, Object obj) {
 if (this.item == null) {
 this.item = new ArrayList(index);
 } else {
 this.item.ensureCapacity(index);
 }
 this.item.add(index, obj);
 }

 This way, when form-bean population occurs, you will get a new
   Collection when needed.

 Nico.


  I'd like to know if it's possible to avoid using to many session
   scoped
  form beans.
 
  I have a bean that contains a collection and I use nested:iterate
 to
  display entry fields on my html:form. When the form is submitted,
 I
   get
  an error in BeanUtils.populate(), because the new bean (when the
 bean
   is
  request scoped) contains an empty collection and populate() tries
 to
   set
  the properties of the elements that existed on the bean of the
   previous
  request.
 
  If I change the bean to session scope, everything works fine
 (because
  now the bean is the same for both requests), but I think it's kind
 of
  messy to have lots of session scoped beans.
 
  I'd appreciate to have any comments on this subject.
 
  Thanks
 
  Jorge Mascena
 
 

  -
  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]
 
  -
  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