help with installing a simple web app

2003-02-23 Thread bobd
Hi,
Obviously I'm a newbie...
I've successfully deployed the struts-example by
placing its .war in /webapps (the machine is Redhat
Linux 7.3, using Tomcat servlet container).

Now I'm trying to deploy my own app, but serious
obstacles have popped up.

The app is compiled and configured correctly as far as
I can tell.  The problem is that the app is not being
found when I go to the *defined* url (a 404).  I first
tried creating a .war and placing it in the webapps
directory (same problem), now I've copied the entire
app directory to webapps.  I added a 
element to server.xml under the Tomcat conf directory
as well.

I've tried everything I can possibly think of...I'm
sure it's something silly that I'm missing.

thanks for any reply
-bob


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



and

2003-02-24 Thread bobd
Hi,



The way I understand the above line is that an object
reference to the Bean class CurrentSchedule is created
if it does not already exist in the session (this is
working).  

Now I want to iterate over a collection object
retrieved from this Bean, but I'm having a hard time
understanding the difference between the id attribute
and the name attribute, and the relation to the
useBean call at the top of the page.



I was using 'currentschedule' for the name attribute,
but that returns an error informing me that the class
already exists.  What should name be??

thanks,
-bob









__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



bean constructors and

2003-03-03 Thread bobd
I have a JSP that is successfully creating an instance
of a bean class in the session, but I'm failing to
understand a problem with retrieving data from that
bean.

The bean's constructor (zero arguments) is apparently
not executing defined routines.  However, it can
retrieve private data members made accessible via
property getters.






The title property is retrieved because it is
basically hard-coded in the bean, not dependent on
anything in the constructor.  The list property is not
showing up at all, it is defined by a routine in the
bean's constructor.

anybody know what I'm doing wrong?

thanks,
-bob





__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



help with populating a select box from a bean

2003-03-04 Thread bobd
The following code successfully iterates over an array
coursetitles stored in bean reference courseCatalog.



 

I'm now trying to populate a select box and it looks
like  is not going to work to create
 elements.  What is the best way to do
this?

thanks,
-bob







__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



xslt in jsp

2003-03-08 Thread bobd
I have a jsp that needs to retrieve XML from a bean
(stored in the session) and then execute a
transformation.  

what is the easiest way to do this?  Having difficulty
using , as well as locating documentation
on this.  

thanks,
-b

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: xslt in jsp

2003-03-09 Thread bobd
I decided to use xtags since it seems to be the latest
and greatest XML/XSLT library...





One tricky thing I had to deal with is related to
xtags expecting an org.dom4j.document, so the bean
function getDoc() above has to do a conversion from
org.w3c to org.dom4j

-bob

--- Michael Lee <[EMAIL PROTECTED]> wrote:
> Here's what we do and it's a VERY easy process.
>
http://jakarta.apache.org/taglibs/doc/xsl-doc/xsl-1.0/index.html#apply
> 
> This is deprecated so I'm going to change it to
> JSTL. Very similar. But its 
> part of J2EE spec so it's going to be around a
> while.
> http://www.manning.com/bayern/appendixA.pdf
> 
> Another good option is the supported jakarta taglib
> XTags.
>
http://jakarta.apache.org/taglibs/doc/xtags-doc/index.html#style
> 
> We still haven't moved away from the deprecated tags
> for the simple reason 
> that it works. Also, the JSTL is horrifically
> documented.
> 
> I saw someone earlier mention letting the browser
> perform the translation 
> for you. I don't know if I recommend this because
> you never know what your 
> getting. You can get inconsistent results per
> browser. You do it on your 
> side and you get the same results. How the browser
> now displays that html is 
> a different discussion! Another reason to let the
> server do it is you may 
> want to just change the xsl and allow a different
> format (pdf, csv, 
> whatever).
> Michael Lee
> 
> 
> 
> 
> 
> 
> 
> >From: Tom Ziemer <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> >Subject: Re: xslt in jsp
> >Date: Sun, 09 Mar 2003 13:09:25 +0100
> >
> >Hi,
> >
> >what I'm doing is this: I've got a custom tag in my
> JSP page, that uses a 
> >transformer to process the xml input. So my page
> looks like this:
> >...
> > > title="index.title"
> > heading="index.heading">
> >
> > 
> > 
> > 
> >
> >
> >Hope this helps,
> >
> >Tom
> >
> >>On Sat, 8 Mar 2003, Jörg Maurer wrote:
> >>
> >>} definitly give JSTL a try! Myself not applied
> it, but read book by Bayer
> >>} Shawn - devoted taglibs to xml and xml
> transformation for usage in jsp.
> >>}
> >>} -Original Message-
> >>} From: bobd [mailto:[EMAIL PROTECTED]
> >>} Sent: Samstag, 08. März 2003 20:02
> >>} To: [EMAIL PROTECTED]
> >>} Subject: xslt in jsp
> >>}
> >>}
> >>} I have a jsp that needs to retrieve XML from a
> bean
> >>} (stored in the session) and then execute a
> >>} transformation.
> >>}
> >>} what is the easiest way to do this?  Having
> difficulty
> >>} using , as well as locating
> documentation
> >>} on this.
> >>}
> >>} thanks,
> >>} -b
> >>}
> >>}
> __
> >>} Do you Yahoo!?
> >>} Yahoo! Tax Center - forms, calculators, tips,
> more
> >>} http://taxes.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]
> >>}
> >>}
> >>
> >>
>
>>
> >>Guido Garcia Bernardo
> >>[EMAIL PROTECTED]
> >>[EMAIL PROTECTED]
> >> "stat
> rosa pristina
> >> nomine, nomina
> nuda tenemus."
>
>>
>
>>http://members.ud.com/services/teams/team.htm?id=D8624419-BFB6-4772-A01A-0045631F979F
> >>
>
>>-
> >>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]
> 
> 
>
_
> Help STOP SPAM with the new MSN 8 and get 2 months
> FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



parameter pass to xslt

2003-03-09 Thread bobd

I'm having some problems with passing a DOM Document
as a parameter in an XSL transform.

TransformerFactory tFac =
TransformerFactory.newInstance();
Transformer trans = tFac.newTransformer(xsl-source);

trans.setParameter("sched", w3c-DomDoc);
trans.transform(DOMSource, DOMResult);

Without the setParameter attempt, everything is fine.

The error I am getting is something about a
Malformed-URI - "scheme is not conformant".

All doc about this has examples of passing simple
String type parameters, not DOM objects.  I am missing
a critical step and I can't find it.  Doing this exact
procedure using the xalan command line works fine...


thanks for any help,
-bob







__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



relative path problem

2003-03-10 Thread bobd
This is a rather silly problem I have been putting off
and now I really need to fix it...

In my Struts app, bean classes are parsing and writing
XML files on disk.  These files are currently being
pulled in using a full directory path! (i.e.
"/usr/local/...)  Attempts to use relative paths (from
the location of the bean .class file) have not been
successful.  In my view layer, JSPs can use relative
paths just fine.  What's the trick?

thanks,

-bob

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



Re: relative path problem

2003-03-12 Thread bobd
That is my problem...how do you get the relative path
(in an action class)?  Could you provide or point me
to some example code?

OR, even an example of using
'ApplicationResources.Properties' to read in a path
value would satisfy me.

thanks


--- Stephen Smithstone <[EMAIL PROTECTED]>
wrote:
> try using an action that gets the relative path then
> pass that path to the 
> bean maybe 
> 
> 
> 
> On Tuesday 11 March 2003 6:52 am, bobd wrote:
> > This is a rather silly problem I have been putting
> off
> > and now I really need to fix it...
> >
> > In my Struts app, bean classes are parsing and
> writing
> > XML files on disk.  These files are currently
> being
> > pulled in using a full directory path! (i.e.
> > "/usr/local/...)  Attempts to use relative paths
> (from
> > the location of the bean .class file) have not
> been
> > successful.  In my view layer, JSPs can use
> relative
> > paths just fine.  What's the trick?
> >
> > thanks,
> >
> > -bob
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Web Hosting - establish your business
> online
> > http://webhosting.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!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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