Re: db error

2004-03-25 Thread Larry Meadors
It has been a while since i used oracle, but that url looks wrong:

jdbc:oracle:thin:oci8:1521:ora9i

Can you have thin and oci in one url?

Larry

 [EMAIL PROTECTED] 03/25/04 4:10 AM 
Thanks chris,
so this is not because of any missing classes or jar files? is this a
connectivity issue? the database server isup and my other applications
sqlplusw can access it.
any pointers?
sorry about read reciept thing in my previous mail.
rajat
- Original Message -
From: McCormack, Chris [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 4:46 PM
Subject: RE: db error


Check your database is up before trying to connect to it. If it is and
you
can ping the database from your application server box, then check your
spelling in the data source definition.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:01
To: Struts Users Mailing List
Subject: db error


Hello All,
i am trying to connect a oracle database, and i get this stack trace,
can
someone please tell me what is wrong with it.
!-- stack trace --
javax.servlet.UnavailableException: Initializing application data source
org.apache.struts.action.DATA_SOURCE
 at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
ava:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569
)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


!-- end of stack trace --


--- data sources --

data-sources

!-- data-source type=org.apache.commons.dbcp.BasicDataSource
--
data-source
set-property property=driverClassName
value=oracle.jdbc.driver.OracleDriver /
set-property property=url
value=jdbc:oracle:thin:oci8:1521:ora9i /
set-property property=username value=*** /
set-property property=password value=*** /
set-property property=autoCommit value=true /
set-property property=maxCount value=4 /
set-property property=minCount value=2 /
set-property property=validationQuery value=SELECT 1+1 from
dual /
/data-source

/data-sources


-- code --
ServletContext context = servlet.getServletContext();
DataSource ds = (DataSource)
context.getAttribute(Action.DATA_SOURCE_KEY);
//DataSource ds = getDataSource(req);

try {
conn = ds.getConnection();
stmt = conn.createStatement();
rs = stmt.executeQuery(Select tname, tabtype from tab);

if (!rs.wasNull()) {
/**
 * some records where returned
 */
System.err.println(==);
while (rs.next()) {
System.err.println(Table Name:  +
rs.getString(1));
System.err.println(TabType:  + rs.getString(2));
   

Re: Exception handling in struts

2004-03-23 Thread Larry Meadors
type=java.lang.exception

There is not such class.

Think big E instead...

Larry

 [EMAIL PROTECTED] 03/23/04 9:10 AM 
I'm trying to write an exception handler in my struts-config to clean up
my application's exception behavior.  Well, I've followed the directions
in the docs to a T, I have this entry in my struts config:

global-exceptions

exception

key=uncaught_exception 

type=java.lang.exception 

path=/jsp/error.jsp 

handler=com.graysail.pgbadmecs.exceptions.exceptioncatcher 

scope=request/

/global-exceptions



my exception catcher extends GlobalExceptionHandler and bears an
execute() method.  Well, when an error of type exception goes off, the
catcher is never called to it?  What ingredient am I missing?


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



Re: Does instanceof work?

2004-03-21 Thread Larry Meadors
Neither are valid:

http://jakarta.apache.org/struts/api/org/apache/struts/taglib/logic/package-summary.html

According to the jstl doc I have, instanceof is reserved, but not
implemented.

If you are not concerned about subclasses of foo.MyType, you could
probably use this:

c:if test=${myBean.class eq foo.MyType} 
 ...
/c:if


Larry

 [EMAIL PROTECTED] 03/21/04 6:31 AM 
I've tried the Struts logic and the JSTL tag version of instanceof, like
these (below), but get errors returned implying that instanceof doesn't
exist as a valid option.
Does it exist? Am I doing something wrong? Can someone give me an
example,
please?

Thanks,
Frank.

*** examples ***

logic:instanceof name=myBean className=foo.MyType
 ...
/logic:instanceof


c:if test=${myBean instanceof foo.MyType} 
 ...
/c:if


-
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] Jericho == Struts 2.0?

2004-03-15 Thread Larry Meadors
Doing a google search for struts jericho might be a good start.

 :)

 [EMAIL PROTECTED] 03/15/04 8:40 AM 
On a more on-topic note, where can I get info on the new features /
differences in Struts 1.1 and 2.0?


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



Re: [OT] Search string tokenizer

2004-03-15 Thread Larry Meadors
String.split() may be able to do that if you are a regex stud (or know
one...or are good with google)..

Larry

 [EMAIL PROTECTED] 03/15/04 2:20 PM 
I did a google search on this and didn't really come up with anything
useful.
Before I implement this myself, is there an existing implementation of
parsing
a search string which would produce tokens similar to how Google or
other search
engines parse search strings.

For example, I would like to parse a search string into tokens where
tokens are 
delimited by either a blank space or a quoted phrase.

So the string:

'Struts web presentation tier' 

would return  2 tokens:
 - Struts
 - web presentation tier

but the string:

'Struts web presentation tier'

would return 4 tokens:
 - Struts
 - web
 - presentation
 - tier


Any help is appreciated.

robert







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



[OT] Jericho == Struts 2.0?

2004-03-12 Thread Larry Meadors
This name seems like a bad choice.

The city of Jericho was destroyed and all its inhabitants were put to
the sword.

That sounds like a bad thing to me.

Larry

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



Re: [OT]JSP Debugger

2004-03-10 Thread Larry Meadors
If you have the code to the tags, you can set breakpoints there, and
debug at that level.

I have found that to meet 100% of my debugging needs as far as JSP
debugging goes.

Larry

 [EMAIL PROTECTED] 03/10/04 7:48 AM 
1.First my apology for post this question which I have asked it already.

2.This is question reg Debugging JSP,I do understand that debugging JSP
is not really required if we are really follow MVC pattern as we are not
putting too much of logic in it...BUT just wanted to know that is there
any JSP debugger tool/plugin available for Eclipse? we know that
myeclipse works well with Tomcat as a separate container but when it
comes with JBoss Tomcat bundle I could not debug JSP using the same
tool.

Tnx in advance,

-Ramadoss

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

2004-03-10 Thread Larry Meadors
I have used both netbeans and eclipse (without myEclipse) for this with
tomcat and struts (never jboss, but I know people who are doing this
using the JPDA debugger).

Larry

 [EMAIL PROTECTED] 03/10/04 8:46 AM 
If you have the code to the tags, you can set breakpoints there, and
debug at that level.
I have found that to meet 100% of my debugging needs as far as JSP
debugging goes.

1.May I know which tool you are talking about..??
2.If you are talking about MyEclipse I agree that it works well with
Tomcat,JBoss as separate container...when it comes to JBoss 3.2.3
bundle(contains Tomcat) it doesn't works.

-Ramadoss


-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 10:39 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT]JSP Debugger


If you have the code to the tags, you can set breakpoints there, and
debug at that level.

I have found that to meet 100% of my debugging needs as far as JSP
debugging goes.

Larry

 [EMAIL PROTECTED] 03/10/04 7:48 AM 
1.First my apology for post this question which I have asked it already.

2.This is question reg Debugging JSP,I do understand that debugging JSP
is not really required if we are really follow MVC pattern as we are not
putting too much of logic in it...BUT just wanted to know that is there
any JSP debugger tool/plugin available for Eclipse? we know that
myeclipse works well with Tomcat as a separate container but when it
comes with JBoss Tomcat bundle I could not debug JSP using the same
tool.

Tnx in advance,

-Ramadoss

-
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: [OT]JSP Debugger

2004-03-10 Thread Larry Meadors
I think a better solution would be to use the tomcat (or even struts)
built-in exception handling. 

It works very well and doesn't force scriptlets into your jsps.

Larry

 [EMAIL PROTECTED] 03/10/04 9:21 AM 
In some circumstances it can help to put a try/catch around the whole
JSP 
and print the stack trace  error.

Paul

Global Equity Derivatives Technology
Deutsche Bank [/]





Larry Meadors [EMAIL PROTECTED]
10/03/2004 15:54
Please respond to Struts Users Mailing List

 
To: [EMAIL PROTECTED]
cc: 
Subject:RE: [OT]JSP Debugger


I have used both netbeans and eclipse (without myEclipse) for this with
tomcat and struts (never jboss, but I know people who are doing this
using the JPDA debugger).

Larry

 [EMAIL PROTECTED] 03/10/04 8:46 AM 
If you have the code to the tags, you can set breakpoints there, and
debug at that level.
I have found that to meet 100% of my debugging needs as far as JSP
debugging goes.

1.May I know which tool you are talking about..??
2.If you are talking about MyEclipse I agree that it works well with
Tomcat,JBoss as separate container...when it comes to JBoss 3.2.3
bundle(contains Tomcat) it doesn't works.

-Ramadoss


-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 10:39 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT]JSP Debugger


If you have the code to the tags, you can set breakpoints there, and
debug at that level.

I have found that to meet 100% of my debugging needs as far as JSP
debugging goes.

Larry

 [EMAIL PROTECTED] 03/10/04 7:48 AM 
1.First my apology for post this question which I have asked it already.

2.This is question reg Debugging JSP,I do understand that debugging JSP
is not really required if we are really follow MVC pattern as we are not
putting too much of logic in it...BUT just wanted to know that is there
any JSP debugger tool/plugin available for Eclipse? we know that
myeclipse works well with Tomcat as a separate container but when it
comes with JBoss Tomcat bundle I could not debug JSP using the same
tool.

Tnx in advance,

-Ramadoss

-
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: sorting drop down values in a drop box in jsp

2004-03-10 Thread Larry Meadors
Do it in the action?

 [EMAIL PROTECTED] 03/10/04 11:48 AM 
Hi,
 
Looking for  aeasy way to sort entries in the drop down in my jsp, that
are populated using the bean and html: select tag with options:
collection:
 
my code as of now is below:

select name=fullName style=width:225px

logic:iterate id=teacher name=teachers option value=bean:write
name=teacher property =employeeID/

bean:write name=teacher property =fullName/

/option

/logic:iterate

/select

 

 

My other approach to create same drop down is:

html:select style=width:225px property=fullName 

html:options collection=teachers property=teacher
labelProperty=fullName/

/html:select

Thanks in advance



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

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



Re: Date attribute in ActionForm

2004-03-02 Thread Larry Meadors
Bean utils (what struts uses in this case) sucks when it comes to
parsing anything but Strings.

Generally what I do is make put String getter/setter methods on the
Form, then in those (or in the Action) use a SimpleDateFormat to parse
the string into a date. One other thing to note there is that the date
format MM/dd/yy will parse 1/1/04 as 01/01/2004, but 1/1/4 as
01/01/0004, so you need to handle that yourself.

Same trick with numeric classes.

Larry

 [EMAIL PROTECTED] 03/02/04 11:36 AM 
Hello,

I have and ActionForm with one element refering to a Date (from Util)
property and I get the following exception

java.lang.IllegalArgumentException: argument type mismatch


Is there a special treatment for these kind of attributes?

Thanks,

_
Vanessa Monteiro
Analista de Sistemas
Quality Software
3475-3000 r:5062

-
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] JSP or Velocity

2004-02-27 Thread Larry Meadors
 [EMAIL PROTECTED] 02/27/04 5:44 AM 
 I am starting to develop an application using struts and have been
 looking round the rest of the Jakarta project and came across the
 Velocity project.
 
 I was interested to see which which people recommended for a relative
 newbie

After looking at velocity, I am certainly of the opinion that it adds no
value over
jsp2/jstl. It offers absolutely nothing that the jsp2/jstl combination
does not.
The only difference is that velocity is a bit more terse (if/else/end
instead of
c:choose/c:when/c:otherwise) and that it uses # instead of the .

It is important to note that I am talking about jsp2 and tomcat 5, not
the jsp1 in 
tomcat 4.

A while back I looked in detail at the jsp/velocity comparison on the
velocity site.

There are several issues with the comparison. The person writing the
case study
was cleary biased towards velocity and had never even considered JSTL
(which 
in all fairness may not have been available at that time). Looking at
the code 
(both the velocity and jstl versions are below) I think that velocity
clearly had 
an influence on the jsp2/jstl constructs.

The first thing I noticed was that the two pages do not do the same
thing. 
The jsp turns off the session (the vm does not). The jsp stores
variables that 
are never used which were factored out in the vm version. The vm version

is missing required code (for example, the repCode and urlEvent
variables 
are never defined).

The jsp page is also *very* poorly written using scriptlets. You should
rarely need 
to use scriptlets in jsp1/jstl pages, and I suspect with jsp2/jstl, you
will not ever 
*need* to.

With struts, you do not need to use jsp:useBean tags either because
the controller 
does that for you.

The jsp2/jstl version is a bit more verbose because it is based on xml
so you
cannot have things like if/else/end because they are unbalanced, but
other than
that, there are no significant differences.

After converting the page to use JSTL and eliminating ALL of the % %
stuff, we
get something more like this:

===
The JSP version:
===
table width=600 border=0 cellspacing=0 cellpadding=4
   bgcolor=white
   tr
   td
   ibTopic: ${meeting.topic}/b/i
   
   c:forEach list=${meeting.storedEventsIterator}
var=event
   c:set var=yapper
value=${meeting.participation[event.fromId]} /
   c:choose
   c:when test=${event.class.name eq
'fqcn.URLPushedEvent'}
   c:choose
   c:when test=${yapper.role eq 'R'}
   c:set var=repId
value=${yapper.participantId} /
   font
color=#00b${yapper.name}:/b/font
   /c:when
   c:otherwise
   font
color=#f0b${yapper.name}:/b/font
   /c:otherwise
   /c:choose
   a
href=${event.storedData}${event.storedData}/a br
   /c:when
   c:when test=${event.class.name eq
'fqcn.ChatEvent'}
   c:choose
   c:when test=${yapper.role eq 'R'}
   font
color=#00b${yapper.name}:/b/font
   c:set var=repId
value=${yapper.participantId} /
   /c:when
   c:otherwise
   font
color=#f0b${yapper.name}:/b/font
   /c:otherwise
   /c:choose
   a
href=${event.storedData}${event.storedData}/a br
   /c:when
   /c:choose
   /c:forEach
   hr
   br${meeting.meetingId}:${repId}br
   /td
   /tr
/table
===
The velocity version:
===
table width=600 border=0 cellspacing=0 cellpadding=4
   bgcolor=white
   tr
   td
   ibTopic: $meeting.getTopic()/b/ip

   #foreach( $event in $meeting.getStoredEventsIterator() )
   #set( $yapper =
$meeting.getParticipation($event.getFromId()) )
   
   #if( $event.getClass().getName().equals($urlEvent) )
   
   #if( $repRole.equals($yapper.getRole()) )
   #set( $repId = $yapper.getParticipantId() )
   font
color=$blkb$yapper.getName()/b/font
   
   #else
   font
color=$blub$yapper.getName()/b/font
   #end
   
   a
href=$event.getStoredData()$event.getStoredData()/a br
   
   #elseif( $event.getClass().getName().equals($chatEvent) )
   
   #if($repRole.equals($yapper.getRole()) )
   #set( $repId = $yapper.getParticipantId() )
   font
color=$blkb$yapper.getName()/b/font
   
   #else
  

Re: Java source out of memory

2004-02-25 Thread Larry Meadors
Make more memory available.

 [EMAIL PROTECTED] 02/25/04 10:27 AM 
My jsp is heavily loaded with struts tags.
When weblogic tries to generate a Java source,
It throws out of memory error,
If I cut that page in half it works fine.

How to overcome with all struts tag intact ?

Panchasheel

-
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 converts null to 0 ?

2004-02-16 Thread Larry Meadors
Yeah, that is the joy of bean-utils.  It is best to leave it a stringon
the form and convert it yourself.

 [EMAIL PROTECTED] 02/16/04 7:45 AM 
I have a form with a Long property; I used Long instead of long to have
the property nullable, but if the (html) form includes such a property,
struts sets the corresponding bean property to 0, even if it has no
value (value=); what I'd like is struts to leave the property at
null!! It also behaves so if the (html) property has non numeric value!!
Any help is VERY appreciated

Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_



-
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: IBatis???

2004-02-16 Thread Larry Meadors
Go to www.ibatis.com for ibatis docs and downloads.

Go to http://reumann.net/do/struts/main for tutorials.

Use irc to get to #struts_users on irc.darkmyst.org to talk to people
who use it.

Larry

 [EMAIL PROTECTED] 02/14/04 7:00 AM 
can any one tell me what is  IBatis?
where can i get reference doc/tutorial for the same


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



Re: Double formating in html:text boxes

2004-02-12 Thread Larry Meadors
A few dozen, yes. :)

Look at the java.text.NumberFormat class.

Larry

 [EMAIL PROTECTED] 02/12/04 10:18 AM 
In my business logic I return a java.util.List to my action.  In this 
action I run through the list and use the BeanUtils.copyProperties() to 
convert the List elements into formbeans.  The problem is that in the 
business object the property actual is a Double and in the formBean 
it is a string.  This leads me to have text fields with 1.4779002E7 as 
the value.  I there any way to get around this?


Nathan Maves
Sun Microsystems




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



Re: Struts and Internationalization

2004-02-10 Thread Larry Meadors
That is probably the simplest way. 

Use the ApplicationResources.properties file to create the other
translations. Struts does much of the work for you.

If you are using tiles, you can even use it for i18n, too, so if you
have a different layout for different locations, it will do that for
you.

Larry

 [EMAIL PROTECTED] 02/10/04 3:27 PM 
Hi,

I had a quick question: What is the typical way to
'internationalize'/translate a Struts application? Is it simply to use a
PropertyResourceBundle?  Or are there drawbacks to this method? 


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



RE: ActionErrors deprecated?

2004-02-09 Thread Larry Meadors
..instead of the html:errors tag.

The ActionError and ActionErrors classes are going away. 

Avoid creating more dependencies on them now (and thus more pain later)
by using ActionMessage/ActionMessages instead. :-)

Larry

 [EMAIL PROTECTED] 02/09/04 1:29 PM 
 in jsp use this:
 html:text property=foo/
 struts-html:messages id=error property=foo
struts-bean:write name=error/
 /struts-html:messages

Maybe I'm dumb, but I can't make any sense of this. Use it for what?

--
Tim Slattery
[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: help with xml syntax of JSP with taglibs

2004-02-05 Thread Larry Meadors
can you use the jstl xml tags to do that? I am guessing you can, but
don't have time now to look it up...

LArry

 [EMAIL PROTECTED] 02/05/04 1:57 PM 
Hello...

I have a file called /foo/bar.jsp.

The file bar.jsp is an XML syntax JSP.  The file is only being used by a
'forward' therefore the URL in the browser window stays the same (for
example: http://localhost/webapp/index.jsp).

index.jsp forwards to /foo/bar.jsp like this:
jsp:forward page=/foo.bar.jsp/


Bar.jsp requires the use of a CSS that is located in /css/main.css
 I refer to the css in the XML JSP like this:
link href=/css/main.css rel=stylesheet type=text/css/

The problem is that /css/main.css is not valid!  It does not generate
the
proper path!   I have been advised to use this instead:
link href=html:rewrite page='/css/main.ss' rel=stylesheet type
=text/css/

The problem is that the this does not work since it is not valid XML.

Am I missing something here?  How do I refer to a stylesheet in a JSP
(that
will only be used by forward's) and maintain the proper paths

Does the html or any other taglib do this for me???

Thanks in advance for the help!

TJ Herring
[EMAIL PROTECTED]




The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received
this in error, please contact the sender and delete the material from
any
computer.



-
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: small trouble with the validator

2004-02-02 Thread Larry Meadors
It is because beanutils converts anything that is invalid to a 0, and
therefore, it is present, meeting the requirement for the required
dependancy.

Stupid, huh?

Larry

 [EMAIL PROTECTED] 02/02/04 1:25 PM 
All of my other forms validate perfect.  This form will only validate 
the name field and not the two breakpoint fields.

I have tried everything  Any ideas?

action path=/admin/UpdateMetric 
type=dashboard.presentation.actions.admin.UpdateMetricAction 
name=MetricForm validate=true input=/pages/admin/EditMetric.jsp 
scope=request attribute=metricForm
forward name=success redirect=false 
path=/pages/admin/EditMetric.jsp /
forward name=failure redirect=false 
path=/pages/admin/EditMetric.jsp /
/action

form-bean name=MetricForm 
type=org.apache.struts.validator.DynaValidatorActionForm
form-property name=id type=java.lang.Integer /
form-property name=name type=java.lang.String /
form-property name=archiveFlag type=java.lang.Boolean /
form-property name=rollable type=java.lang.Boolean /
form-property name=frequency type=java.lang.Integer /
form-property name=exculde type=java.lang.Boolean /
form-property name=entryLevel type=java.lang.Integer /
form-property name=complianceDirection type=java.lang.Integer /
form-property name=description type=java.lang.String /
form-property name=type type=java.lang.Integer /
form-property name=greenBreakpoint type=java.lang.Float /
form-property name=redBreakpoint type=java.lang.Float /
/form-bean


form name=/admin/UpdateMetric
field property=name depends=required,maxlength
varvar-namemaxlength/var-namevar-value150/var-value/var
arg0 key=app.metric.name /
arg1 name=maxlength key=${var:maxlength} resource=false /
/field
field property=description depends=maxlength
varvar-namemaxlength/var-namevar-value1300/var-value/var
arg0 key=app.metric.description /
arg1 name=maxlength key=${var:maxlength} resource=false /
/field
field property=greenBreakpoint depends=required
arg0 key=app.metric.greenBreakpoint /
/field
field property=redBreakpoint depends=requiredarg0 
key=app.metric.redBreakpoint /
/field
/form


-
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?]Tomcat multiple users developing

2004-01-21 Thread Larry Meadors
 1) How do you share the same application development? Do you use
 a strategy? We are testing our business objects outside struts,

Are you all sharing a single tomcat instance for development? If so,
stop now! :-)

Set up a version control system (like cvs), and use one instance of
tomcat per developer (on each workstation). That way only your changes
affect you. Update from cvs often and commit when your code works.

 2) Is there another way to tell Tomcat that a class has been changed
 instead of reload the application or set the reload=true attribute
 in the context?

No.

Larry



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



RE: Using struts I18N fonctionnalities from an action

2004-01-21 Thread Larry Meadors
Use the MessageResources class.

 I use struts:i18n ... tags in my application and it works
 well. Now, i need to use Struts' internationnalization
functionalities
 from an action (use case : I forward to a presentation framework and
do
 not have acces to JSP, I can only use presentation components wich
have
 things like setTitle(String theTitle), but I'd like to have the
title
 internationnalized by Struts)


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



RE: struts and ibatis

2004-01-19 Thread Larry Meadors
We use it where I work on a daily basis. It is simple to use, rock
solid, and very durable.

There are two major components to iBATIS: the DAO layer and the SqlMap
API.

The DAO layer provides a way to create Data Access Objects to hide the
implmentation from the application. For example, we have DAOs based on
SQL, a filesystem, and LDAP. None of the applications know or care about
the source of the data, only the interface needed to get the data. To
the application, the interface is the same, regardless of how the data
is fetched under the hood.

The SQLMap API provides a way to use JDBC without having to deal with
all the junk that comes with it (i.e., the nested
try{}catch(){}finally{} blocks to make sure resources get allocated and
deallocated properly). It takes the SQL ResultSet objects and converts
them to more generic classes (like Lists, Maps, and beans) that allow
your application to work with data without making it a mess because of
the JDBC code. Because it removes the JDBC dependancies from your code,
it fits nicely with the DAO layer.

If you need help getting started, go to http://www.reumann.net and read
the tutorials. Rick does a great job making this clearer.

As Daniel mentioned, since you get the source with it, you can track
down issues when you come across them. Speaking from experience, they
are few and far between, but when you do run into one, the code is
pretty simple to follow, and Clinton Begin is real open to patches and
suggestions, and fast to get them in.

Larry

 [EMAIL PROTECTED] 01/19/04 3:07 AM 
 BTW, What is iBATIS?

  -Original Message-
  From: Kelly Goedert [mailto:[EMAIL PROTECTED] 
  To: Struts Users Mailing List
  
  Hello,
  
  has anyone ever used iBATIS in a production environment? Is it
stable 
  enough?

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



Re: Struts plugin question

2004-01-16 Thread Larry Meadors
That seems like a questionable design (dependancies between plug-ins),
but one possible solution might be to make plug-ins #2..n not really
plugins, but components that plug-in #1 uses. Then use the configuration
for plug-in #1 to specify which components to make available. 

That would also eliminate a Struts dependancy from your 2..n components.

Larry

 [EMAIL PROTECTED] 01/16/04 10:12 AM 
Hi all,
In my application I have to connect to MBean server and
registers some
MBeans, that will be then available (thru an interface) to my
application.
For doing that, I was thinking of writing a plugin that contains my
JMXAgent  (plugin1) to abstract the connection to MBean server
(different implementation may have different way to connect to it) and
one plugin for each MBean that I need to register (let's say, plugIn2 ..
n)

Plugin2...n will retrieve plugIn1 in order to register themselves with
MBean server.

Assuming that I adopt this solution, plugin1 must be loaded before any
other plugIn.. and I was wondering if struts was loading plugIn in the
same order that I declare them or randomly..

Anyone can answer?

Thanx in advance and regards
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: sql statements

2004-01-16 Thread Larry Meadors
Go to www.ibatis.com and look at the sqlmap stuff. It lets you put all
the SQL in xml files and then call them by name.

If you need help getting started, look at http://reumann.net

Rick's tutorials are great.

Larry

 [EMAIL PROTECTED] 01/16/04 10:51 AM 
I read somewhere that it's possible to have your sql statements on a 
.properties file, instead of a class.


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



Re: beginng with struts

2004-01-13 Thread Larry Meadors
Gabriel, look at these examples:

http://reumann.net

 [EMAIL PROTECTED] 01/13/04 8:23 AM 
hi
i'm starting to program with java struts

snip

somebody have a struts tutorial than help me to learn
about java struts?


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



Re: BeanUtils.copyProperties()

2004-01-07 Thread Larry Meadors
Yeah, beanutils is a pain that way. 

It does the same (and worse IMO) with other data types (i.e., set fred
into an Integer, and it becomes 0, not null, and no exception is
thrown).

You might want to try PropertyUtils.copyProperties() instead. 

It *might* work.

Larry


 [EMAIL PROTECTED] 01/07/04 3:22 PM 
I'm doing a copyProperties to an Entity from a DTO. Why is it that if a
date field is null, a date is returned as if I had passed a value of 0
to the copy method for the date. I.E. I passed a null date into
copyProperties, but I got back a non-null date. 

What gives? 

Thx,
/tim

-
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: iBatis DAO + Hibernate?

2003-12-16 Thread Larry Meadors
I am working in an environment where we are mixing the two. 

My advice to you is to *not* do it. Pick one and use it as it was
intended to be used.

I personally prefer iBATIS. It is very simple; it plays well with
existing databases; it allows you the flexibility, commodity and
performance tuning of sql; it provides object wrappers for your data.
All while staying in your DAO and out of your application.

From my experience, if you are using hibernate, you write hibernate
applications, not java applications that use hibernate - even if you try
to wrap it so that it is not used directly. Trust me, we did. If you are
willing to accept that, hibernate may work for you.

Some other factors to consider: 
 - How many developers know hql vs sql?
 - How much time will it take for a new person to learn the
idiosyncrasies of the tool (and they both have them)?

Larry

 [EMAIL PROTECTED] 12/16/03 9:40 AM 
We're needing to roll out DAO and ORM in our webapp... been evaluating
hibernate and it looks awesome, but we'd like to insulate our app from
that,
has anyone tried using iBatis' DAO layer then plugging hibernate
underneath
that?
-David


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



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



Re: .Net Struts?

2003-12-16 Thread Larry Meadors
Would you call it .NUTS?

 [EMAIL PROTECTED] 12/16/03 12:55 PM 
Is anyone working on struts in .Net?

Curious..

Pritpal Dhaliwal


-
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: iBatis DAO + Hibernate?

2003-12-16 Thread Larry Meadors
The iBATIS DAO is for sure *not* sqlmap or jdbc specific. 

I have used the iBATIS DAO for LDAP and file system based data access.

Larry

 [EMAIL PROTECTED] 12/16/03 3:35 PM 
 From: Ted Husted [mailto:[EMAIL PROTECTED] 
 You might be confiusing the iBATIS SqlMaps framework with the 
 seperate and distict iBATIS DAO framework.
 The DAO framework is not linked to SqlMaps and should work with 
 anything. Otherwise, it could not be a DAO framework, since the whole 
 idea is that you can change persistence implementations.

Do you have a link to the iBATIS DAO framework?  All I can find is this:
http://www.ibatis.com/common/download.html (iBATIS DB Layer) but the pdf
is all about SqlMap.  

Specifically, I'm looking for a DAO framework that does NOT assume JDBC.
I've already written my own, I just followed the J2EE Data Access
Objects pattern/blueprint, but I'd like to see if I can crib some
additional features and generally see if I can improve mine.

Thanks,
-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
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: [OFF TOPIC] STRUTS PROGRAMMER JOB.

2003-12-11 Thread Larry Meadors
$4.75?! 

Dang, I am getting robbed!

Larry

 [EMAIL PROTECTED] 12/11/03 4:36 PM 
Actually that figure is a bit high .. 4.75/hr if you want Health Insurance
Saludos,
Martin
- Original Message - 
From: Marcus Peixoto [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 1:28 PM
Subject: Re: [OFF TOPIC] STRUTS PROGRAMMER JOB.


 Are you kidding ? Are programmers for sale in US ?

 Em Qui, 2003-12-11 às 20:59, Martin Gainty escreveu:
  Going rate is about 6$/hr
  - Original Message - 
  From: Tiago Henrique Costa Rodrigues Alves
  [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Thursday, December 11, 2003 1:37 PM
  Subject: RE: [OFF TOPIC] STRUTS PROGRAMMER JOB.
 
 
   I wrote my email wrong: [EMAIL PROTECTED]
  
   YOU DONT NEED TO REPLY TO THE MAILING LIST send me an email
   ([EMAIL PROTECTED])
  
   Sorry for the off topic, but I just need to hear from you guys...
  
   I am looking for an American Job, I live in Brazil and I have 2 years
   experience in Java + Struts + OJB + Apache + TomCat + UML + PHP + ASP.
Web
   in General
  
   How much an Web/Java Developer can make?
  
   How easy can I get a job from Brazil?
  
   Thanks,
   Tiago Henrique C. R. Alves
  
   -
   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: Question regarding ActionForms.

2003-12-01 Thread Larry Meadors
Welcome to java 101, formerly known as the struts-users mailing list.

Object references are passed to method calls. While that reference
cannot be changed, the object that it references can. On the other hand,
if you create a new action form and assign it to the form parameter,
nothing will happen because that reference cannot be changed.

Larry

 [EMAIL PROTECTED] 12/01/03 8:42 AM 
Hi,

I am currently using Struts 1.0.2 and have notice something with regard
to
handling of ActionForms.

Why is it, that in the perform() method of my Action I am able to
modify
the passed-in ActionForm and all modifications that I make to the
ActionForm in my Action have effect on the ActionForm in the session,
without the need to reset the modified form in the session. e.g.

public ActionForward peform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response,
)throws IOException, ServletException

{
  MyForm myForm = (MyForm)form;

  form.setMemberA(valA);
  form.setMemberB(valB);

  // why dont I have to do the following: session.setAttribute
(myFormName, myForm);

  return success;

}

I thought that since Java passes method arguments by value and not by
reference, then I would have to reset my modifed copy back into the
session
for changes on the form to be visible in the form in the session ?

Any insights on how this mechanism works would be greatly appreciated.

Thanks,

Sepand



-
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 do you deprecate a method?

2003-11-20 Thread Larry Meadors
For the love of all that is good in the universe people!

Repeat after me: GOOGLE IS MY FRIEND.

http://www.google.com/search?q=java+deprecate+method

Larry

 [EMAIL PROTECTED] 11/20/03 4:02 AM 
hi ALl


Sorry for posting this question here, but it will be highly appreciated
if
anyone can explain

Ques: CAn anyone tell me how to depreciate a method in Java



Regards
Gary



-
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: Lazy questions on this list

2003-11-20 Thread Larry Meadors
I agree.

At the same time I do not think that How do I deprecate a method? or
What is JSTL? kinds of questions should be answered with anything more
involved than a link or reference to google.

Remember the parable about giving a man a fish vs. teaching him how to
fish? As long as these questions are answered, they will continue to be
asked. 

Larry

 [EMAIL PROTECTED] 11/20/03 10:03 AM 
Well, a list meant exclusively for newbies doesn't
serve the purpose as we will miss the expert advice
and words of wisdom of the experienced Struts gurus on
this list!!

Shyam,
(eternally newbie!)


--- Linda Coleman [EMAIL PROTECTED] wrote:
 Would it be possible to create a newbie list? As a
 newbie I would much 
 rather read  post messages on a list targeted to
 people just starting out.
 A lazy question to experienced developer could be a
 valid newbie question...
 
 L:)
 
 
 Paul McCulloch wrote:
 
 Is it my imagination or are the number of downright
 lazy requests to this
 list getting worse?
 
 If the only replies any lazy questions ever got was
 http://www.catb.org/~esr/faqs/smart-questions.html
 then maybe people would
 get the point. Has anyone got any other ideas about
 how we can reduce the
 amount of lazy and totally off-topic posts to the
 list?
 
 
 Paul
 
 
 
 **
 Axios Email Confidentiality Footer
 Privileged/Confidential Information may be
 contained in this message. If you are not the
 addressee indicated in this message (or responsible
 for delivery of the message to such person), you may
 not copy or deliver this message to anyone. In such
 case, you should destroy this message, and notify us
 immediately. If you or your employer does not
 consent to Internet email messages of this kind,
 please advise us immediately. Opinions, conclusions
 and other information expressed in this message are
 not given or endorsed by my Company or employer
 unless otherwise indicated by an authorised
 representative independent of this message.
 WARNING:
 While Axios Systems Ltd takes steps to prevent
 computer viruses from being transmitted via
 electronic mail attachments we cannot guarantee that
 attachments do not contain computer virus code.  You
 are therefore strongly advised to undertake anti
 virus checks prior to accessing the attachment to
 this electronic mail.  Axios Systems Ltd grants no
 warranties regarding performance use or quality of
 any attachment and undertakes no liability for loss
 or damage howsoever caused.
 
 

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


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.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: Lazy questions on this list

2003-11-20 Thread Larry Meadors
..or maybe the newbies just need to get thicker skins and be taught how
to think.

 :-)

Larry

 [EMAIL PROTECTED] 11/20/03 10:07 AM 
Maybe you're right, but I think there might be enough people who read 
the newbie list that could help people starting out. Maybe there could 
be a few volunteers
from the rank of experienced developers that could help shepherd we 
newbies in right direction. :)

L:)


Shyam A wrote:

Well, a list meant exclusively for newbies doesn't
serve the purpose as we will miss the expert advice
and words of wisdom of the experienced Struts gurus on
this list!!

Shyam,
(eternally newbie!)


--- Linda Coleman [EMAIL PROTECTED] wrote:
  

Would it be possible to create a newbie list? As a
newbie I would much 
rather read  post messages on a list targeted to
people just starting out.
A lazy question to experienced developer could be a
valid newbie question...

L:)


Paul McCulloch wrote:



Is it my imagination or are the number of downright
  

lazy requests to this


list getting worse?

If the only replies any lazy questions ever got was
http://www.catb.org/~esr/faqs/smart-questions.html
  

then maybe people would


get the point. Has anyone got any other ideas about
  

how we can reduce the


amount of lazy and totally off-topic posts to the
  

list?


Paul



**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be
  

contained in this message. If you are not the
addressee indicated in this message (or responsible
for delivery of the message to such person), you may
not copy or deliver this message to anyone. In such
case, you should destroy this message, and notify us
immediately. If you or your employer does not
consent to Internet email messages of this kind,
please advise us immediately. Opinions, conclusions
and other information expressed in this message are
not given or endorsed by my Company or employer
unless otherwise indicated by an authorised
representative independent of this message.


WARNING:
While Axios Systems Ltd takes steps to prevent
  

computer viruses from being transmitted via
electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You
are therefore strongly advised to undertake anti
virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no
warranties regarding performance use or quality of
any attachment and undertakes no liability for loss
or damage howsoever caused.


  

-


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]





__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.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: Lazy questions on this list

2003-11-20 Thread Larry Meadors
PREACH IT BROTHER!

 [EMAIL PROTECTED] 11/20/03 9:18 AM 
I disagree, there is a clear distinction - asking a question without
having
read the docs shouldn't seem valid to a newbie.  I agree that a lot of
these
concepts are not obvious, and a lot of the documentation is lacking -
that's
why this list is essential.  However, the order of learing should be
docs -
list archive - post question; not the inverse.

--
Voytek Jarnot
Quantum materiae materietur marmota monax si marmota monax materiam
possit
materiari?


 -Original Message-
 From: Long, Robert [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 20, 2003 10:14 AM
 To: Struts Users Mailing List
 Subject: RE: Lazy questions on this list
 
 
 What may seem like a lazy question to some, may seem like a 
 valid question for a newbie. 
 Some people just need to remember what it was like to try to 
 learn this stuff for the first time.
 
 Also remember, you have total control of your delete key. 
 
  -Original Message-
 From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 20, 2003 9:51 AM
 To:   Struts Users Mailing List (E-mail)
 Subject:  Lazy questions on this list
 
 Is it my imagination or are the number of downright lazy 
 requests to this
 list getting worse?
 
 If the only replies any lazy questions ever got was
 http://www.catb.org/~esr/faqs/smart-questions.html then maybe 
 people would
 get the point. Has anyone got any other ideas about how we 
 can reduce the
 amount of lazy and totally off-topic posts to the list?
 
 
 Paul

-
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: Lazy questions on this list

2003-11-20 Thread Larry Meadors
You are correct, a reference to
http://www.catb.org/~esr/faqs/smart-questions.html may not help, but a
reference to google or some other appropriate search reference *will*
help in this area by reducing the traffic to a READABLE level and
getting people into the habit of thinking and looking before giving up
and asking the list mindless questions.

Larry

 [EMAIL PROTECTED] 11/20/03 9:33 AM 

In those curcumstance, some people find more easy to sent help email on 
the list instead of trying to understand their pb by themself. And if 
the only response they can receive from users mailing-list is a 
http://www.catb.org/~esr/faqs/smart-questions.html
I don't think that we achieve the gaol of such mailing-list.


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



Re: Lazy questions on this list

2003-11-20 Thread Larry Meadors
I could not disagree more. :-D

Give away the fish or teach people how to fish. What is the better
long-term solution?

Larry

 [EMAIL PROTECTED] 11/20/03 10:23 AM 
IMHO, the very best way to handle easy questions is with a link to the 
answer.


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



RE: Lazy questions on this list

2003-11-20 Thread Larry Meadors
HAHAHAH! Dang I missed a veggie tales thread!

Why do I doubt Mark was in on that one?

Larry

 [EMAIL PROTECTED] 11/20/03 10:40 AM 


-Original Message-
From: Long, Robert [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 11:36 AM
To: Struts Users Mailing List
Subject: RE: Lazy questions on this list

So from what I'm hearing here, as a newb,  it is safe to 
assume that all answers to my questions will be www.google.com...

Actually, a good number of answers will come from taking that route
first.

Well, that is typically the first place to look. I guess my 
next search should for a more newbie friendly list...

This is it. It ain't perfect, but it works.

Btw, the experts here have spent more time b*tching about 
lazy questions than any other topic I've seen here. Kind of funny.

You should have seen the great veggietales outbreak ... now that was
fun! :-)

--- back to lurk mode ---

Me too. :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

Wisdom is not the prerogative of the academics. - Peter Chappell

-
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: Lazy questions on this list

2003-11-20 Thread Larry Meadors
 [EMAIL PROTECTED] 11/20/03 10:36 AM 
 So from what I'm hearing here, as a newb,  it is safe to assume 
 that all answers to my questions will be www.google.com...

If your questions are What is JSTL? or How do I deprecate a method?,
then yes 100% of them will be.

 Well, that is typically the first place to look. I guess my next 
 search should for a more newbie friendly list...

We *are* newbie-friendly! 

Just not *stupid-question* newbie friendly. :-D

 Btw, the experts here have spent more time b*tching about 
 lazy questions than any other topic I've seen here. Kind of 
 funny.

It is ironic, isn't it! I guess the original post was intelligently
written.

Larry

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



Re: [OT] Veggie Tales! (was: Lazy questions on this list)

2003-11-20 Thread Larry Meadors
Dang, I was going to ask what the latest one was, but a friend suggested
using GOOGLE INSTEAD!

What a great idea!

Heheh

Larry

 [EMAIL PROTECTED] 11/20/03 10:47 AM 
Has anyone caught the most recent LarryBoy adventure?

 [EMAIL PROTECTED] 11/20/2003 10:40:09 AM 


-Original Message-
From: Long, Robert [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2003 11:36 AM
To: Struts Users Mailing List
Subject: RE: Lazy questions on this list

So from what I'm hearing here, as a newb,  it is safe to 
assume that all answers to my questions will be www.google.com...

Actually, a good number of answers will come from taking that route
first.

Well, that is typically the first place to look. I guess my 
next search should for a more newbie friendly list...

This is it. It ain't perfect, but it works.

Btw, the experts here have spent more time b*tching about 
lazy questions than any other topic I've seen here. Kind of funny.

You should have seen the great veggietales outbreak ... now that was
fun! :-)

--- back to lurk mode ---

Me too. :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED] 
Java Programming Specialist  www.landsend.com 
Lands' End, Inc.   (608) 935-4526

Wisdom is not the prerogative of the academics. - Peter Chappell

-
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: Lazy questions on this list

2003-11-20 Thread Larry Meadors
..and all I ask is that when you get there, use your head first and my
inbox next! :-D

I will gladly help if I can.

Larry

 [EMAIL PROTECTED] 11/20/03 10:20 AM 
Well, a newbie like me is happy as long as I know I'm
not fishing in troubled waters:)

--- Larry Meadors [EMAIL PROTECTED] wrote:
 I agree.
 
 At the same time I do not think that How do I
 deprecate a method? or
 What is JSTL? kinds of questions should be
 answered with anything more
 involved than a link or reference to google.
 
 Remember the parable about giving a man a fish vs.
 teaching him how to
 fish? As long as these questions are answered, they
 will continue to be
 asked. 
 
 Larry
 
  [EMAIL PROTECTED] 11/20/03 10:03 AM 
 Well, a list meant exclusively for newbies doesn't
 serve the purpose as we will miss the expert advice
 and words of wisdom of the experienced Struts gurus
 on
 this list!!
 
 Shyam,
 (eternally newbie!)
 
 
 --- Linda Coleman [EMAIL PROTECTED] wrote:
  Would it be possible to create a newbie list? As a
  newbie I would much 
  rather read  post messages on a list targeted to
  people just starting out.
  A lazy question to experienced developer could be
 a
  valid newbie question...
  
  L:)
  
  
  Paul McCulloch wrote:
  
  Is it my imagination or are the number of
 downright
  lazy requests to this
  list getting worse?
  
  If the only replies any lazy questions ever got
 was
 
 http://www.catb.org/~esr/faqs/smart-questions.html
  then maybe people would
  get the point. Has anyone got any other ideas
 about
  how we can reduce the
  amount of lazy and totally off-topic posts to the
  list?
  
  
  Paul
  
  
  
  **
  Axios Email Confidentiality Footer
  Privileged/Confidential Information may be
  contained in this message. If you are not the
  addressee indicated in this message (or
 responsible
  for delivery of the message to such person), you
 may
  not copy or deliver this message to anyone. In
 such
  case, you should destroy this message, and notify
 us
  immediately. If you or your employer does not
  consent to Internet email messages of this kind,
  please advise us immediately. Opinions,
 conclusions
  and other information expressed in this message
 are
  not given or endorsed by my Company or employer
  unless otherwise indicated by an authorised
  representative independent of this message.
  WARNING:
  While Axios Systems Ltd takes steps to prevent
  computer viruses from being transmitted via
  electronic mail attachments we cannot guarantee
 that
  attachments do not contain computer virus code. 
 You
  are therefore strongly advised to undertake anti
  virus checks prior to accessing the attachment to
  this electronic mail.  Axios Systems Ltd grants no
  warranties regarding performance use or quality of
  any attachment and undertakes no liability for
 loss
  or damage howsoever caused.
  
  
 

-
  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]
  
 
 
 __
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now
 http://companion.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]
 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.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: IDE

2003-11-19 Thread Larry Meadors
Just bear in mind that all IDEs suck and that you will not find one that meets all of 
your needs.

For what I need to do today, eclipse is the one that sucks the *least*, but make no 
mistake: it still sucks. Nice fast java editing. XML and jsp editors totally suck 
though.

Netbeans is good if you are learning jstl, and need code completion in jsp tags. It's 
xml editor is still far superior to anything I have seen in eclipse. But it is slow - 
even the newest releases are slower than eclipse. I know - I have used them.

Larry

-Original Message-
From: Gonzalez Comesaña, Sergio Eduardo 
Subject: IDE

Hello, 
  Someone knows a good editor for Java and Struts ??  I use Jdeveloper 9.03 but I 
would like change it. 


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



Re: Form being submitted twice in Websphere App Server 4.0

2003-11-19 Thread Larry Meadors
 [EMAIL PROTECTED] 11/19/03 10:02 AM 
 Anything to do with Struts ?
 

Sure doesn't sound like it...

 
 In IE 5, this does not happen and we are able to see 6 pages if 
 we have 30 records and 5 recrods per page.
 
 In IE 6, we are sometimes able to view 4 pages (24 records) 
 and sometimes 3 pages (18 records).
 

Sounds pretty clear that it works in one version of the browser and not
another. Sounds like a browser issue.

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



Re: Different session handling between websphere and tomcat

2003-11-18 Thread Larry Meadors
If you do not require the collection after the page is rendered, you could put it into 
request scope. This is what I do to populate listboxes, tables, etc..

That way they don't hang around any longer than they need to - they get used to render 
tha page, then get discarded. If you are using a DAO layer with caching (like iBATIS), 
the performance is great.

Larry

 [EMAIL PROTECTED] 11/18/03 7:49 AM 

I didn´t find a workaround for this problem yet! What is the recommended way of 
passing an object (not necessarily a bean, in my case a collection) from an action 
class to a jsp? Is this a configuration or an programming issue?


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



RE: Accessing a static final constant from Class in JSP

2003-11-18 Thread Larry Meadors
I don't think there is one, but maybe somone will educate me. ;-)

Why not put this in ApplicationResources and then use the bean:message
tag?

Larry

 [EMAIL PROTECTED] 11/18/03 8:31 AM 

which tag do u use to access the constants from the class as I don't
want to use JSP Scriplets???

Thanks,
S!

 [EMAIL PROTECTED] 11/17/03 05:41PM 
Import the class in your jsp, then you can directly access it.

%@ page import=GSOPConstants%

-Original Message-
From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 17, 2003 2:17 PM
To: [EMAIL PROTECTED] 
Subject: Accessing a static final constant from Class in JSP


Hi,
 I have a class called ProjConstants.java which is a static class
with
some static final constants here is the sample

public class GSOPConstants{
  public static final String LINK_EDIT = linkEdit;
}

   How can I access this LINK_EDIT  constant from JSP
without
using scriplets???

   Any help appreciated.

Regards,
S!
  


-
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: Form data vs request attributes

2003-11-18 Thread Larry Meadors
The reason I don't do this is because if the form is in session scope,
it hangs around consuming memory until the session goes away. 

As a caching mechanism, this bites rocks, because it is cached for each
user. :-/

By putting this type of stuff in request scope instead of on the form,
it becomes transient regardless of where the form resides. But if you
use a DAO layer with caching (like iBATIS), one copy of this stuff can
be cached (globally) so you are not hitting the database all the time.

Larry

 [EMAIL PROTECTED] 11/18/03 4:41 PM 
 From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
 Although, I don't really see a major problem with storing the 
 options in the form itself (just to make things simple).  
 Anybody have a compelling reason NOT to do this?
 i.e. I put my statesCollection as a property on my ActionForm 
 with a List datatype.  Then I can just use the form property to 
 populate my options.

Every time Struts instantiates your Form object, it also creates that
list of states.  If you have 'state' on more than one form, there's
another list, times how ever many users have forms going at any one
time.

Since the list of states is unlikely to change, I think it makes more
sense to put the list in application scope (as a context parameter) and
have only one instance of it.

However, memory is cheap, so it's probably not going to matter where you
put it as long as you're happy with your decision.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 



-
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: PDF File Display in JSP-Struts

2003-11-12 Thread Larry Meadors
Are you using the jsp writer, or the servlet output stream? 

JSP writer assumes char data and totally borks the pdf. 

SOS assumes binary data.

Larry

===
Hi All,
 I want to display one PDF file in my websphere struts framework. when i
do
it without struts (only servlets ) it works but when i use JSP along
with
struts it does not work. it does not read binary data properly... Is
there
any body to help me out

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



RE: PDF File Display in JSP-Struts

2003-11-12 Thread Larry Meadors
Why would you ever do this? This looks like a complete and total kludge.

If you are sending back binary data (application/pdf), just do it from the action 
class using the response.getOutputStream() and return null from the execute method.

Advantages: 
 - you already have everything you need right there
 - you eliminate the entry in struts-config
 - you eliminate a useless jsp
 - you can specify any content type (not just one per jsp)
 - you get better exception handling
 - the list could go on and on...

Larry

 [EMAIL PROTECTED] 11/12/03 11:43 AM 
It may be an issue with using white space inside your jsp.  I normally do
something like this (using a custom fo to pdf bean)...  (note: everything up
to, and including, the c:set var=junkWhiteSpace is on one line)


%@ page contentType=application/pdf %%@ taglib prefix=c
uri=http://java.sun.com/jstl/core; %c:import var=blahFo
url=/test/blah.fo /c:set var=junkWhiteSpace

jsp:useBean id=foToPdf scope=page class=com...FoToPdf /

c:set target=${foToPdf} property=inputFo value=${blahFo} /

/c:setc:out value=${foToPdf.pdf} escapeXml=false /

Regards,
Jarrod Lugo


-Original Message-
From: David Gagnon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 1:24 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: PDF File Display in JSP-Struts


It's not the Internet Explorer problem with pdf ?  Check
http://xml.apache.org/fop/servlets.html#ie

Let me know ... I can give clue on how I solved it.

/David

-Message d'origine-
De : Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Envoyé : 10 novembre, 2003 07:55
À : Struts Users Mailing List
Cc : WebSphere User Group Tech Q  A Forum
Objet : PDF File Display in JSP-Struts



Hi All,
 I want to display one PDF file in my websphere struts framework. when i do
it without struts (only servlets ) it works but when i use JSP along with
struts it does not work. it does not read binary data properly... Is there
any body to help me out


regards  thankx in advace...
Abhijeet Mahalkar


-
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: PDF File Display in JSP-Struts

2003-11-12 Thread Larry Meadors
 [EMAIL PROTECTED] 11/12/03 3:14 PM 
Am Mittwoch, 12. November 2003 21:31 schrieb Craig R. McClanahan:
 Quoting Larry Meadors [EMAIL PROTECTED]:
  Why would you ever do this? This looks like a complete and total
  kludge.
 
  If you are sending back binary data (application/pdf), just do it
  from the action class using the response.getOutputStream() and
  return null from the execute method.
 
  Advantages:
   - you already have everything you need right there
   - you eliminate the entry in struts-config
   - you eliminate a useless jsp
   - you can specify any content type (not just one per jsp)
   - you get better exception handling
   - the list could go on and on...

 There's actually a much more fundamental reason than all of the above
 (which are true nonetheless) -- JSP pages are not allowed to create
 binary output.  They never call response.getOutputStream().

That's how it's meant to be, and JSPs themselves don't, but you
can always shed in a scriptlet to make them behave otherwise.

But that is the point - Why would you?

It is like using a screwdriver as a hammer because you like
screwdrivers.

 I've seen people doing just ridiculous things with JSPs, some
of them routinely putting a % at the top and a % at the end,
and then went on happily putting everything imaginable in-bet-
ween, usually with lengthy %@ page import=[xy] % state-
ments on top. Won't support Mark Galbreath on this matter,
so if there may be a grain of truth in his direction, I'm still
just telling from my personal experiences, limited to a
single case, thankfully. But never underestimate human
ingenuity ;-)

Heheh, you will sometimes see stupidity coming disguised as ingenuity -
beware!

Larry


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



Re: free ftp utils

2003-11-05 Thread Larry Meadors
javamail from sun will do email + attachments

commons-net will do some, too


 [EMAIL PROTECTED] 11/05/03 1:24 PM 
Hi All,

Is any  free java utils to send mails , aatchements,  ftp  files using 
java ?

Thanks,
Rachid.




-
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: free ftp utils

2003-11-05 Thread Larry Meadors
Heheh, if there were, how many copies of this do you suppose would get 
sold?

Write the code or buy it you lazy bum. ;-)

Larry

 [EMAIL PROTECTED] 11/05/03 1:51 PM 
Thanks,  but what I meant is something  like iNet Factory from jscape

checkout this website http://www.jscape.com/inetfactory/index.html


David Graham wrote:

--- Rachid Drissi [EMAIL PROTECTED] wrote:
  

Hi All,

Is any  free java utils to send mails , aatchements,  ftp  files using

java ?



http://java.sun.com/products/javamail/

David

  

Thanks,
Rachid.




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





__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-
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: Javadoc Warning

2003-11-03 Thread Larry Meadors
Yes.

 [EMAIL PROTECTED] 11/03/03 11:56 AM 
 Hi,
 I getting the following warning while generating 
 Javadoc from ant build file..
 
 is there anyway I can get rid of these warning.??



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



Re: Iterating List of Lists

2003-10-31 Thread Larry Meadors
Are you saying you use the member tag just so you can look at the html
and see that it is being output?

Larry

 [EMAIL PROTECTED] 10/31/03 1:34 AM 
No matter what, just a sign for our debugging in Browser.


From: javen fang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Iterating List of Lists
Date: Thu, 30 Oct 2003 23:03:35 -0800 (PST)

Where is member tag from???

Your own taglib?

--- Choopong C. [EMAIL PROTECTED] wrote:
  Try like this
 
  table
  logic:iterate id=organization
  name=organizations
  member
  trtd
  bean:write name=organization
  property=title/
  logic:iterate id=item name=organization
  property=items
  member
  br/-bean:write name=item
  property=title/
  /member
  /logic:iterate
 
  /td/tr
  /member
  /logic:iterate
  /table
 
 
  From: Chris Gastin [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
  [EMAIL PROTECTED]
  To: Struts Users Mailing List
  [EMAIL PROTECTED]
  Subject: Iterating List of Lists
  Date: Thu, 30 Oct 2003 21:55:53 -0600
  
  I have List of Lists of DataObjects. I want to
  iterate through that List of
  Lists to get access to the Data Object, where I
  will print the values of
  the
  attributes on the data object. I have the outer
  loop working, but I don't
  understand how to get the Data out of the list in
  the inner loop.
  
  This is my latest attempt:
  
  logic:iterate id=list name=di3List
  scope=request
   logic:iterate id=data
  collection=list
   libean:write
  name=data property=word/ -
  bean:write name=data
  property=definition//li
   /logic:iterate
  /logic:iterate
  
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
_
  Protect your PC - get McAfee.com VirusScan Online
 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
 
-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


-
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 - JavaScript] Setting value on a html:select/

2003-10-29 Thread Larry Meadors
Disabled controls are not sent - that is an HTTP thing. You can use a
hidden field or some other trick to get it there (or rely on the value
of the radio button).

Last I checked, the first form works only in IE. If you are writing only
for IE, that's ok, but it is something to consider. The second works in
almost any browser.

Larry

 [EMAIL PROTECTED] 10/29/03 9:44 AM 
Been screwing around with this all morning, and can't seem to find an
answer.

I've got two radio buttons on a form.  If the user clicks the second
radio
button, I need to force the value of a following html:select/ to a
specific value, and disable the select.  So, using JavaScript, on my
radio
button I fire an onclick event that run a real simple javascript
function.
In this function I've tried using 

document.formName.selectVar.value = default value // is
accepted, but the default value isn't passed to my form bean
document.formName.selectVar.option[0].selected = true   // 
ditto
document.formName.selectVar.option[0].value = default value
// ditto
document.formName.selectVar.option[0].isSelected =
true//
ditto

JavaScript seems to accept all of these formats, but the setter method
in my
form bean for 'selectVar' is never getting called.  This is going to be
a
'Doh!' moment, but how do I do this?

TIA!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be
confidential and
is intended solely for the use of the individual or entity to which it
is
addressed. If you are not the intended recipient or the person
responsible for
delivering the transmission to the intended recipient, be advised that
you
have received this transmission in error and that any use,
dissemination,
forwarding, printing, or copying of this information is strictly
prohibited.
If you have received this transmission in error, please immediately
notify
LabOne at the following email address:
[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: Dynamic JSPs and STRUTS

2003-10-24 Thread Larry Meadors
Yes, JSTL plays very well with struts even though there is a great deal
of overlap.

I use JSTL exclusively for non-form elements - i.e., pure presentation /
output stuff.

Larry

 [EMAIL PROTECTED] 10/24/03 12:11 PM 
The web app was developed using Struts.  This is a new section of the
app I
am developing.  I wanted to continue using Struts  libraries/components
to
construct dynamic JSP pages.  Does JSTL integrate nicely with Struts? 
Or
does Struts have similar components that do the same thing?


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



Re: far reaching db question

2003-10-24 Thread Larry Meadors
Hmm, odds are that a project small enough to not require a database
layer is small enough to not require struts either. 

Heck if you have 5 pages, why use either, just use the SQL tags in jstl
and be done with it.

Larry

 [EMAIL PROTECTED] 10/24/03 10:52 AM 

--- Vic Cekvenich [EMAIL PROTECTED] wrote:
 Best practice is not to code to JDBC. (Just like do not code to
servlet 
 but to Struts).

JDBC is a perfectly suitable technology to use for persistence.  Not
every
project requires an O/R mapping tool.

 Best practice is to USE a DAO, like iBatis or Hibernate, thus not
having
 
 to code to low level API, but just the application itself and use 
 persistence, as opposed to bit twiddling. 

Using DAOs is certainly a best practice but does not preclude the use of
JDBC.  Your DAOs can be implemented using a variety of technologies
including JDBC, XML, EJB, Hibernate, etc...

 Take a look at DB Layer .PDF 
 on iBatis.com.

The Jakarta Commons DbUtils project greatly simplifies JDBC coding. 
It's
in the sandbox right now but it's moving towards promotion to commons
proper.

http://jakarta.apache.org/commons/sandbox/dbutils/index.html

David

 .V
 
 Sasha Borodin wrote:
  You could use a PreparedStatement, which automatically escapes
single
  quotes, I believe:
  
 String sqlStmt = INSERT INTO table1 (col1) VALUES (?);
  
 pstmt = con.prepareStatement(sqlStmt);
  
 pstmt.setString(1, someStringWhichMightHaveQuotes);
 
 rs = pstmt.executeQuery();
  
  HTH,
  
  -Sasha
  
  
  
  On 10/24/03 09:42, Manuel Lenz [EMAIL PROTECTED] wrote:
  
  
 
 
 
 
 I create DB-Inserts from my struts application.
 But If an user types in the sign ' any dynamicly created inserts
fail.
 This ist because of the sql-syntax which divides the string which
will
 be
 saved with '.
 
 For example: insert into table test (name, number) values ('mr
burns',
 '01723256477');
 
 How can I handle inserts in html-formulars which have the typed sign
'
 ?
 
 Greetings,
 Manuel
 
 
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -- 
 Victor Cekvenich,
 Struts Instructor
 (215) 321-9146
 
 Advanced Struts Training
 http://basebeans.com/do/cmsPg?content=TRAINING Server Side Java
 training with Rich UI, mentoring, designs, samples and project
recovery
 in North East.
 Simple best practice basic Portal, a Struts CMS, Membership, Forums,
 Shopping and Credit processing, http://basicportal.com software,
ready
 to develop/customize; requires a db to run.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.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: [OT] Db usage in bean [design issue]

2003-10-24 Thread Larry Meadors
If you want some examples, check out Rick Reumann's struts / ibatis
stuff. 

Simple and really easy to follow:

   http://www.reumann.net/

Larry

 [EMAIL PROTECTED] 10/24/03 12:17 PM 
Thanks tim (newbie here!!) I am looking into these products right now.
But what is torque then for. I am sorry if I am sounding so silly!. But
it all seems like a new land fr me. I come from php/java development
background.

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 24, 2003 10:45 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Db usage in bean [design issue]


That's what the DAO design pattern will do for you.
Look at Hibernate or iBatis or any other DAO project or implement your
own using JDBC. -Tim

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 24, 2003 1:36 PM
To: [EMAIL PROTECTED]
Subject: Db usage in bean [design issue]


Hello all,
I am new to servlets development as such. And have this design issue. I
want to ensure that the applications that I build can be used with other
databases, which might have different tables or column names or
different structures on the whole.

I mean the basic buisness logic remains the same and other things around
it might change. This is what I am doing right now.

My Action - extended - Struts Action  - the execute / perform method
calls the buisness logic bean.

The buisness logic bean is passed the connection resource (orginally
created in the action bean itself). 

This connection resource is used by the methods inside the bean for
getting their data.

I am not sure, but is there a possibility that I have buisness beans in
such a way that they don't have anytihng to do with the database
connection and all they need is data as arguments and return data back
_AND_ I am also don't need to clutter up my (extended) action class with
SQL fetches!.

This essentially means that there will be 
A. a buisness logic bean. Which contains the buisness logic to do
datamanipulation. B. a database put ur technical name here bean which
does the work of fetching and returning back data to the db. C. an
extended action class which manages both of these.


All this might sound rather silly, but there are times when I really
drive my self nuts about keeping all the tiers clean and independent of
each other.

Can someone shed some light on this. (other alternatives being, turn on
the floodlights ;) )

Also any pointers on design patterns...

Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]


-
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: Bug tracking software

2003-10-20 Thread Larry Meadors
scarab.tigris.org

Pretty decent, a few stupid quirks, but not bad.

Larry

 [EMAIL PROTECTED] 10/20/03 3:30 PM 
Is there any web based open source/free bug tracking software available?
 We are using struts, but it doesn't have to be struts based as long as
it is Java. :-)

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



Re: reading the xml file

2003-10-19 Thread Larry Meadors
Doing it the way you describe will only work from a servlet. If that is
ok, stop reading and do it that way. :-)

A more general way would be to use a classloader instead. There are many
good articles on how to do this (google for 'classloader resource'), but
 one simple way is this:

  InputStream is = 
getClass().getClassLoader().
getResourceAsStream(foo.xml);

To do this, the resource foo.xml *must* be on your classpath. If it is
in a package, you need to specify that in the call made to the
getResourceAsStream() method. Also this cannot be done in a static
context. If you are in a static block of code, you can use this instead:

  InputStream is = 
Thread.currentThread().getContextClassLoader().
getResourceAsStream(foo.xml);

Larry

 [EMAIL PROTECTED] 10/19/03 10:22 AM 
Hallo,
I thinkin how I can read the xml file from /WEB-INF directory.

I found something as 
InputStream is =
servletContext.getResourceAsStream(/WEB-INF/something.xml)

but how I can get servletContext?. Or, is t good way to read data, as 
datasource names, from xml file and store it as instance of config file
in 
session? is there any better way?

Thanks for help,
Jiri


-
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/tiles switch from windows to Linux

2003-10-15 Thread Larry Meadors
Yep, Tim's right. 

Search your app for \ characters. Odds are you have some config file
that has one. Change 'em to / and it will work in either OS.

Tim's always right. He is one fart smeller, er, umm smart feller.

Larry

 [EMAIL PROTECTED] 10/15/03 11:42 AM 
From the initial look of it.. It is not having a problem with finding
/tiles/CoolMenu.jsp but rather having a problem with code within
CoolMenu.jsp page. (Not that the exception is ServletException in
/tiles/CoolMenu.jsp not within the page that included it).
-Tim

-Original Message-
From: Witt, Mike (OH35) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 15, 2003 12:46 PM
To: [EMAIL PROTECTED]
Subject: struts/tiles switch from windows to Linux


I have a webapp I've developed in windows.  The production environment
is
Linux.  On windows, I am using Tomcat 4.1.24.  In Linux, it is Tomcat
4.1.27
(standalone).  Here is the problem: I have a tiles tag that says:

tiles:put name=menu value = /tiles/CoolMenu.jsp /

This worked fine in my windows version, but on Linux I get:

[ServletException in:/tiles/CoolMenu.jsp] The menu repository could not
be
found.
I should mention that the tiles directory is at the upper level of my
web
app's root.

Anybody have any idea why this would be seen differently in Linux vs.
Windows?  Am I inadvertantly addressing the file path wrong?  I tried a
relative path tile/CoolMenu.jsp and that didn't work in Windows
(though I
didn't get an error message, it just didn't show up) and I tried using
the
root name: /rootname/tiles/CoolMenu.jsp and that didn't work at all.

Thanks, Mike Witt


-
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: IMPORTANT: how to tell

2003-10-15 Thread Larry Meadors
Brandon,

It is not that you are a stupid person per se, but that idea is quite
possibly the stupidest thing I have heard a *mammal* suggest.

Larry

 [EMAIL PROTECTED] 10/15/03 10:06 AM 
How about we set up a review board that examines every post to the list.
Discards pointless discussions (like this one) and rates them according
to a scale of importance to the community. Then they place them into
bugzilla where they will be propagated to the struts list subscribers as
tasks.

:-\

Thoughts? Further Sarcasm? :-D

-
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: IMPORTANT: how to tell

2003-10-15 Thread Larry Meadors
Well, I tried this once, (note to self: bad):

No...the dress is fine, the jelly donuts make you look fat.

Larry

 [EMAIL PROTECTED] 10/15/03 12:17 PM 
A close second would be:

'Fatter than what, dear?

-jeff

On Wednesday, October 15, 2003, at 01:12  PM, Chen, Gin wrote:

 The most stupid (note the grammer Larry ;) thing for a mammal to say 
 is:
 Yes Dear.. That dress *does* make you look fat
 -Tim

 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 15, 2003 1:52 PM
 To: [EMAIL PROTECTED]
 Subject: Re: IMPORTANT:  how to tell


 Brandon,

 It is not that you are a stupid person per se, but that idea is quite
 possibly the stupidest thing I have heard a *mammal* suggest.

 Larry

 [EMAIL PROTECTED] 10/15/03 10:06 AM 
 How about we set up a review board that examines every post to the 
 list.
 Discards pointless discussions (like this one) and rates them
according
 to a scale of importance to the community. Then they place them into
 bugzilla where they will be propagated to the struts list subscribers 
 as
 tasks.

 :-\

 Thoughts? Further Sarcasm? :-D

 -
 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: java printing (off-topic)

2002-06-26 Thread Larry Meadors

I did some printing to a HP JetDirect using an open source line print
requester. Very simple to use!

http://sourceforge.net/projects/jlpr/

If your printer can handle pdfs natively (some can now), you could do it
that way. If not, could you maybe do it with PostScript?

Larry

 I meant printing on a shared device 
 from the web server


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




Re: Can not forward error

2002-05-23 Thread Larry Meadors

It looks like your jsp is trying to do a forward too. 
 
I seem to remember hitting this long ago - if you have ANY output in a
jsp, you cannot do a forward.
 
Larry

 [EMAIL PROTECTED] 05/22/02 04:40PM 
In my action I have defined:

String idxPage = /jsp/thankyou.jsp;

and later in the code, based on error situation, I did a:
return (new ActionForward(idxPage));

and got this error:

- Root Cause -
javax.servlet.jsp.JspException: java.lang.IllegalStateException:
Cannot
forward after response has been committed
at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
at org.apache.jsp.thankyou$jsp._jspService(thankyou$jsp.java:218)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)

Pls help.  Thanks for the time.

Thinh


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





Re: Debugging under Netbeans 3.3.1

2002-05-15 Thread Larry Meadors

If you use the JPDA debugger, you can use any version of tomcat *on any
machine* with the NB debugger.
 
Mount all the jars in the $CATALINA_HOME/common/lib directory.
Mount all the jars in then your-context/WEB-INF/lib directory.
Mount the your-context/WEB-INF/classes directory.
 
Next, set an environment variable CATALINA_OPTS to this:
  -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

Then start tomcat.
 
Now, you can connect from netbeans: Debug  Attach...
 Debugger Type: Default debugger (JPDA)
 Connector: SocketAttach
 Transport: dt_socket
 Host: localhost
 Port: 8000

 
If you have source versions of the jars, you can mount the directories
(or jars) with the source and debug them too. For example, for jdk1.4,
mount $JAVA_HOME/src.zip and you can debug all they way down to
java.lang.Object if you are into that sort of thing.
 
I usually unzip/unjar all source (java, tomcat, struts,
jakarta-commons, etc...) into one directory tree, that way I can mount
that one directory and debug everything. Another nice benefit of this
approach is that you can run javadoc on that tree and have one place for
all your javadocs...
 
Larry

 [EMAIL PROTECTED] 05/15/02 03:27AM 
Hi World!
I have got Struts 1.0.2 (particularly struts-example) running under
NetBeans 3.3.1 (built-in Tomcat 3.2.1).




Re: I need help building tiles from src - please

2002-05-13 Thread Larry Meadors

Gee, I had the exact same problem at my house this weekend. ;-)
 
The build for struts was trying to build tiles, but it looked like when
using relative paths for my struts build, the tiles build looked in the
wrong directories for supporting jars and puked. 
 
I changed one build.xml file and got one example to compile, then found
the setting to NOT build the webapps. Once I turned that off, I got
struts to compile, albeit without tiles.
 
I suspect that if you used absolute paths that it would work, and hope
that the next released build will work better with relative paths.
 
I may spend some more time this week to try and get it going...
 
Larry

 [EMAIL PROTECTED] 05/13/02 09:11AM 
Hi,

I've been trying to build tiles and am struggling a bit.

I downloaded and ran a build of 'jakarta-struts-1.1-b1-src' only to
find 
that it doesn't automatically build tiles. When I finish building 
struts, I can see a contrib directory which contains a tiles 
subdirectory with the tiles source in it.

When I read the build.xml notes, it says make sure this file is in the

root of the struts-src directory.

This is going to override the existing struts build.xml - which is 
surely not what we want.

What is the best way to arrange things?




Re: How to productively use Netbeans and Struts?

2002-05-10 Thread Larry Meadors

This is how I use them (and ant with tomcat 4 instead of 3 now, but real
similar setup on tomcat 3). I do not know that this is the *best* way,
but it works pretty good for me. ;-)
 
I mount the docRoot of my tomcat context in netbeans. When using 3.3.1,
it creates a real useful project view for you (mounts all jars in
WEB-INF/lib, etc). I am not sure, but this may require a build.xml in
the context somewhere? :-/
 
Then I set up tomcat to allow remote debugging by setting the
CATALINA_OPTS environment variable to:
 -Xdebug Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
 
Then I can use the remote debugger from netbeans: Debug  Attach...
 Debugger Type: Default debugger (JPDA)
 Connector: SocketAttach
 Transport: dt_socket
 Host: localhost
 Port: 8000
 
I set my context to reload, so changes get reloaded by tomcat (no
restarts!).

 
Hope this helps, if you have questions, feel free to ask!
 
Larry

 [EMAIL PROTECTED] 05/09/02 07:11AM 
So far I have been able to mount the struts.jar open the struts-example
file
and debug within Netbeans using the built in tomcat 3. Is this the best
way
to write software using Netbeans?




RE: Struts Beginner - Looking for *decent* documentation

2002-05-10 Thread Larry Meadors

The husted.com site has some good stuff.
 
  http://husted.com/struts/
 
Larry

 [EMAIL PROTECTED] 05/09/02 10:05PM 
I agree.  The documentation is a little hard to follow.

There are many other places that have docs and samplescheck out
some of
these links.

http://jakarta.apache.org/struts/resources.html 

JM




RE: Question about select multiple='true' ...

2002-05-07 Thread Larry Meadors

I got it...I think.
 
There were two setters:
public void setUnt(int index, String unt) {
  this.unt[index] = unt;
}

public void setUnt(String[] unt) {
  this.unt = unt;
}

When the multi-select results got sent, they DID get sent as an array
(my bad). However, they got sent to the first setter, and since it was
not expecting an array, it puked and died.
 
After removing the first version, it now works. 
 
So, now I am wondering if the right way to deal with this is to have
two properties: unt and untList where unt is the single item
indexed property and untList is the multiple item property?
 
Larry

 [EMAIL PROTECTED] 05/01/02 09:34AM 
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]] 

OK, I have this html:

select name='unt' multiple='yes' disabled='yes' size='5'
  option value='MAINE'Maine/option
  option value='FLTHD'Flathead/option
  option value='CLRWT'Clearwater/option
  option value='RKYPR'Rockies Purchased Logs/option
  option value='WNFLD'Winnfield/option
  option value='HUTTG'Huttig/option
  option value='OREGN'Oregon/option
  option value='CRSET'Crossett/option
/select

and these setters in my form bean:

public void setUnt(int index, String unt) {
  this.unt[index] = unt;
}

public void setUnt(String[] unt) {
  this.unt = unt;
}

But I get an IllegalArgumentException when I submit my page before
either method gets called.

What am I missing?





RE: Question about select multiple='true' ...

2002-05-06 Thread Larry Meadors

Second, a select sends only its value(s); you are (apparently)
expecting
the options' index position and text in your first mutator.

That was the question: How do those values get sent? 
 
Clearly, they are not sent one at a time with an index.
 
Clearly, they are not sent all at once as an array.
 
Should I be watching for a carrier pigeon? :-)
 
Larry

-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]

OK, I have this html:

select name='unt' multiple='yes' disabled='yes' size='5'
  option value='MAINE'Maine/option
  option value='FLTHD'Flathead/option
  option value='CLRWT'Clearwater/option
  option value='RKYPR'Rockies Purchased Logs/option
  option value='WNFLD'Winnfield/option
  option value='HUTTG'Huttig/option
  option value='OREGN'Oregon/option
  option value='CRSET'Crossett/option
/select

and these setters in my form bean:

public void setUnt(int index, String unt) {
  this.unt[index] = unt;
}

public void setUnt(String[] unt) {
  this.unt = unt;
}

But I get an IllegalArgumentException when I submit my page before
either method gets called.

What am I missing?




Re: Form based security

2002-05-01 Thread Larry Meadors

Pete,
 
You sound like you are on the same path I am. The last application used
a custom model that was written in-house, based on jsp tags and struts
action servlets. 
 
With the current project, we are using TC to provide the security (via
LDAP to a Novell NDS tree). 
 
So far, the only surprise is that form-based authentication is a real
stinker for development. When a class gets reloaded, the login
information goes south, and you have to login again to refresh your
page. Grrr. If you change to BASIC authentication, this is not a
problem, but you have to be sure that if you are running over an
untrusted network you are always going over SSL because the
userid/password is sent as clear text with every request.
 
One of the reasons we went with TC-based security instead of the
roll-your-own variety was because now we can more easily harvest the
web logs (that are automatically generated) for usage information using
webtrends or other tools. Based on the logs (which contain the userid),
we have a good idea of who uses what, when they use it, how often, what
time of day, what day of the week or month, etc...
 
We can then look at what users really use and focus our efforts instead
of guessing based upon who complains the loudest. ;-)
 
Larry

 [EMAIL PROTECTED] 04/29/02 02:12PM 
curious how other developers are approaching security. If you are
using
application server managed security, have you run into any
limitations,
or has it been a better approach than a custom solution?  Thanks,




Question about select multiple='true' ...

2002-05-01 Thread Larry Meadors

OK, I have this html:
 
select name='unt' multiple='yes' disabled='yes' size='5'
  option value='MAINE'Maine/option  option
value='FLTHD'Flathead/option  option
value='CLRWT'Clearwater/option  option value='RKYPR'Rockies
Purchased Logs/option  option value='WNFLD'Winnfield/option 
option value='HUTTG'Huttig/option  option
value='OREGN'Oregon/option  option
value='CRSET'Crossett/option/select








 
and these setters in my form bean:
 
 public void setUnt(int index, String unt) {
  this.unt[index] = unt;
 }
 
 public void setUnt(String[] unt) {
  this.unt = unt;
 }

But I get an IllegalArgumentException when I submit my page before
either method gets called.
 
What am I missing?
 
Larry
 






Re: Connection Pooling

2002-02-01 Thread Larry Meadors

You could use Oracle's connection pooling. You can use either the oci or
thin client (in fact, the jdbc url is the same for pooling).

The only difference I saw was that you get connections from the pool
instead of from the driver manager.

The pool class is oracle.jdbc.pool.OracleConnectionCacheImpl, and it
implements the javax.sql.DataSource interface so you could (in theory, I
have not tried this) swap out the pooling mechanism if needed with
another pooling implementation.

Larry

 [EMAIL PROTECTED] 02/01/02 12:31AM 
I've only taken a cursory look at Poolman and I'm a little unclear as
to what
benefits it provides.  I'm using an Oracle server, and using the Oracle
JDBC
thin client to connect to it.  The thin client has support for
connection
pooling.

If I were to use Poolman, would it replace Oracle's thin client, or sit
on top
of it?  What benefits are there to using Poolman?  Or am I completely
missing
the point?


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