Re: Re: Good Struts-tiles example?

2003-06-18 Thread tnist
In addition to the below, I have found the following resource, Tiles 101/201, by 
Patrick Peak to be very helpful:
 
http://www.theserverside.com/resources/articles/Tiles101/article.html

Regards,

Todd G. Nist

> 
> From: "Alen Ribic" <[EMAIL PROTECTED]>
> Date: 2003/06/18 Wed AM 07:37:18 EDT
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: Re: Good Struts-tiles example?
> 
> ok.
> found this page:
> http://jakarta.apache.org/struts/userGuide/dev_tiles.html
> 
> seems to have it all. :)
> 
> bye.
> --Alen
> 
> 
> - Original Message - 
> From: "Alen Ribic" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 18, 2003 1:12 PM
> Subject: Good Struts-tiles example?
> 
> 
> > Hi all
> > 
> > Can anyone please point me to a good example of using Struts Tiles.
> > Sample code and some explanation would be good.
> > 
> > Thanks
> > --Alen
> > 
> > 
> > -
> > 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: RE: question

2003-03-05 Thread tnist
Koby,

You may want to email the author, James Mitchell.  You can find some information about 
the package at: 

 http://jakarta.apache.org/struts/news/news_2002_q4.html 

Along with a link to his email, [EMAIL PROTECTED]

If the above package is overkill, you can create your own class which extends the 
MessageResource class to pull the messages / resources from the DB vs. the property 
file.

Todd
> 
> From: "Koby Dabush" <[EMAIL PROTECTED]>
> Date: 2003/03/05 Wed AM 08:21:10 EST
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: question
> 
> This link does not work.
> I need something very simple
> instead of putting my messages in ApplicationResources file
> I just want to put it inside the DB (Oracle)
> Help Please...
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 3:20 PM
> To: Struts Users Mailing List
> Subject: Re: question
> 
> 
> Koby,
> 
> There is a package out there developed by James Mitchell called DBMessageResurces or 
> something like thate.  I believe that it use to be able to be downloaded from 
> www.open-tools.org/struts-atlanta/downloads.
> 
> Todd
> > 
> > From: "Koby Dabush" <[EMAIL PROTECTED]>
> > Date: 2003/03/05 Wed AM 08:01:09 EST
> > To: <[EMAIL PROTECTED]>
> > Subject: question
> > 
> > I'm new to struts.
> > How can I put my Messages in DB and use Message-Resource
> > to bring it from DB every time I need it in the Application?
> >  
> > Thanks,
> > Yaakov (Koby) Dabush
> >  
> >  
> >  
> > 1301 Shoreway Road, Suite 302, Belmont, CA 94002
> > Tel: +1.650.632.0101 Fax: +1.650.802.6709
> > 
> > Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAEL
> > Tel: +972.8.646.6350, Fax: +972.8.646.6354
> > 
> > http://www.entopia.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: question

2003-03-05 Thread tnist
Koby,

There is a package out there developed by James Mitchell called DBMessageResurces or 
something like thate.  I believe that it use to be able to be downloaded from 
www.open-tools.org/struts-atlanta/downloads.

Todd
> 
> From: "Koby Dabush" <[EMAIL PROTECTED]>
> Date: 2003/03/05 Wed AM 08:01:09 EST
> To: <[EMAIL PROTECTED]>
> Subject: question
> 
> I'm new to struts.
> How can I put my Messages in DB and use Message-Resource
> to bring it from DB every time I need it in the Application?
>  
> Thanks,
> Yaakov (Koby) Dabush
>
>  
>  
> 1301 Shoreway Road, Suite 302, Belmont, CA 94002
> Tel: +1.650.632.0101 Fax: +1.650.802.6709
> 
> Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAEL
> Tel: +972.8.646.6350, Fax: +972.8.646.6354
> 
> http://www.entopia.com   
> 
> 

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

Re: RE: Struts and Portlets

2003-02-25 Thread tnist
My fault, I guess I needed a couple more cups of coffee before typing up my response.  
Liferay has implemented an enterprise portal, which uses Struts 1.b2.  As for their 
adherence to the fore mentioned spec, JSR-168, I am not sure.

Sorry for the misinformation.

Todd

> 
> From: "Mitchell Morris" <[EMAIL PROTECTED]>
> Date: 2003/02/25 Tue AM 11:11:55 EST
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Subject: RE: Struts and Portlets
> 
> Ummm ... JSR-168 is still being held under NDA. Their page
> (http://www.jcp.org/en/jsr/detail?id=168) says that they'll expose the spec
> in March sometime. How did you get a copy of the spec in advance, and aren't
> you concerned about violating the NDA? Also, can we look at the spec too?
> I'm exceedingly curious to see what's in it.
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 25, 2003 7:02 AM
> > To: Struts Users Mailing List
> > Subject: Re: Struts and Portlets
> >
> >
> > You could take a look at www.liferay.com, there latest
> > implementation (1.8) follows the Porlet Spec, JSR-168, and is
> > using Struts 1.1b2.
> >
> > Regards,
> > Todd G. Nist
> >
> > >
> > > From: [EMAIL PROTECTED]
> > > Date: 2003/02/25 Tue AM 01:52:38 EST
> > > To: [EMAIL PROTECTED]
> > > Subject: Struts and Portlets
> > >
> > > Hi,
> > >
> > > is there an intention to implement the JSR-168 (Portlet
> > API) into struts?
> > >
> > > In my opinion three important features like multiple output
> > formats with XSLT, workflows and the support of portlets
> > would be very important for the future.
> > >
> > > The ability to create standardised portlets with struts
> > would be very interesting. I think the the actions and jsp
> > are not much mightful for the future. The development of the
> > jsp/action with tiles a.s.o. is fine but too slow and theres
> > still a limited reuse. In my opinion there should/could be
> > more abstraction for project comprehensive reuse. Such
> > portlets could create configurable components with
> > jsp/actions and beans. I dont have access to the portlets
> > specification, but I am sure that this aspects are included there.
> > >
> > > Any comments?
> > >
> > > Juraj
> > >
> > >
> > >
> > >
> > >
> > -
> > > 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: Struts and Portlets

2003-02-25 Thread tnist
You could take a look at www.liferay.com, there latest implementation (1.8) follows 
the Porlet Spec, JSR-168, and is using Struts 1.1b2.

Regards,
Todd G. Nist

> 
> From: [EMAIL PROTECTED]
> Date: 2003/02/25 Tue AM 01:52:38 EST
> To: [EMAIL PROTECTED]
> Subject: Struts and Portlets
> 
> Hi,
> 
> is there an intention to implement the JSR-168 (Portlet API) into struts? 
> 
> In my opinion three important features like multiple output formats with XSLT, 
> workflows and the support of portlets would be very important for the future. 
> 
> The ability to create standardised portlets with struts would be very interesting. I 
> think the the actions and jsp are not much mightful for the future. The development 
> of the jsp/action with tiles a.s.o. is fine but too slow and theres still a limited 
> reuse. In my opinion there should/could be more abstraction for project 
> comprehensive reuse. Such portlets could create configurable components with 
> jsp/actions and beans. I dont have access to the portlets specification, but I am 
> sure that this aspects are included there.
> 
> Any comments?
> 
> Juraj
> 
> 
> 
> 
> -
> 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 Console

2003-02-21 Thread tnist
Edgar,

You can currently use Struts Console with Eclipse, see the below link for 
configuration information.

http://www.jamesholmes.com/struts/console/help.html#eclipse

Regards,
Todd
> 
> From: Edgar Dollin <[EMAIL PROTECTED]>
> Date: 2003/02/21 Fri AM 08:12:58 EST
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Struts Console
> 
> James or any other Struts Console maven:
>  
> I have started working more with Struts Console and find it interesting
> since it is always presenting all the options available on actions, etc.
> Also, that it is doing xml validation against the dtd is very nice as well.
> I still do enjoy using my editor (emacs) on the config files for cut and
> paste and search and replace, but find the default struts-console xml output
> format difficult.  
>  
> Is it possible that struts-console 'pretty' will not toss comments and also
> be available under eclipse?   Even better would be the ability to add
> comments to each xml property.  Better still would be a 'copynew' function
> for major items such as tiles-definitions and action mappings.  Of course if
> you do 'copynew' you would need search and replace.
>  
> I hope you take this commentary in the spirit in which it is meant, as a
> thanks for a program useful enough to be worth commenting about.
>  
> Thanks
>  
> Edgar
> 
> 


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




Re: Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED

2003-01-15 Thread tnist
Kiuma,

As per Microsoft Support site, you will need to place another set of meta tags after 
the closing  tag.  This has to do with the way the headers are evaluated and 
the caching algorithm utilized by IE.  So your ending code would look something like 
this.



---




Text in the Browser Window








Keep in mind there is also an issue with the pragma tag in IE5 and you may need to set 
the following:

  

There is a fairly good article at the below link wich explains it in more detail.

http://www.htmlgoodies.com/beyond/nocache.html#ie5

HTH,

Todd G. Nist
> 
> From: kiuma <[EMAIL PROTECTED]>
> Date: 2003/01/15 Wed AM 08:00:12 EST
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: AW: Refresh on MSIE, PLEASE HELP!!  NOT SOLVED
> 
> Hirschmann, Bernhard ha scritto:
> 
> >>Sadly this doesn't solve the problem!
> >>
> >>
> >
> >Does your browser use a http proxy? Maybe this is the reason.
> >
> >Bernhard
> >
> >--
> >To unsubscribe, e-mail:   
> >For additional commands, e-mail: 
> >
> >.
> >
> >  
> >
> No proxy set.
> The fact is that with Mozilla works but not with MSIE.
> I'm using tiles  and I see this strange bheav.
> 
> I'm using tiles
> 
> so I have
> 
> <%@ taglib uri="/WEB-INF/struts-tiles.tld"
> prefix="tiles" %>
> <%@ taglib uri="/WEB-INF/struts-bean-el.tld"
> prefix="bean-el" %>
> 
> 
> 
> 
> 
>  content='/secure/activitycenteredit_center.jsp'/>
> 
> 
> 
> I write the server current time in '/secure/menu.jsp' and 
> '/secure/activitycenteredit_center.jsp' which contains the form.
> 
> but, while in men the time is update when i access the page, 
> /secure/activitycenteredit_center.jsp continue to hold old values.
> 
> 
> in skel.jsp'   header I've put
> 
> 
> 
> 
> 
> 
> The problem is only with MSIE!!
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Runtime dynamic form/jsp from XML

2002-11-21 Thread tnist
Andrew,

You may want to have a look at STXX.  It is available at 
http://www.openroad.ca/opencode/stxx.

Here is a generial description from the site:

Struts for transforming XML with XSL (stxx) is an extension of the struts framework to 
support XML and XSL without changing the functionality of struts .  

stxx sit's on top of struts, extending it's existing functionality to allow Action 
classes to return XML that will be transformed by an XSL file. 
The idea of stxx is to remove the need to be use JSP and TagLibs for the presentation 
layer of this framework. However, stxx does not force you to go the XML/XSL route, 
both technologies will work side by side. 

Regards,
Todd G. Nist

> 
> From: Andrew B Forman <[EMAIL PROTECTED]>
> Date: 2002/11/21 Thu AM 10:13:42 EST
> To: List - Struts-User <[EMAIL PROTECTED]>
> Subject: Runtime dynamic form/jsp from XML
> 
> 
> project: create an xml-driven set of screens within the struts framework.
> 
> concept: we're attempting to create a rapid-release framework for rolling
> out new products.  the idea is to have a portion of the framework driven
> by xml.  the xml would contain information on what fields to display to
> the user, validation rules for the fields, bean routing & database mappings
> for that bean to use.  all this fun stuff would be assembled at runtime
> into a jsp using a dynaForm with a map for all the form data.  after
> form submittal, the validation is run, the map is sent to the bean
> which uses the db mappings & a insert/update/delete parameter to tell
> it what to do where.
> 
> question: in searching the archives i've found plenty of references to
> people wanting to develop similar projects - but very little concrete
> information on how one might accomplish it =).
> 
> has anyone built a system similar to this?
>  (especially someone who's code i could have =)
> 
> any suggestions on better design/methedology?
> 
> much thanks,
> andrew
> 
> _\|/_
>   andrew b forman
>   aim ph0rman
> 
> _\|/___
>   generation-d development
>   andrew b forman
>   aim ph0rman
>   v820-2422
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [STRUTS] Form error handling

2002-09-17 Thread tnist

Kiuma,

You can use one of the following:
 tag:

If placed at the top of a page, this will cause the errors to be displayed 
there.  You should also ensure that errors.header and errors.footer messages are 
defined in your application resources file.  This will help in the formatting of the 
resulting error messages.  Something like:
 error.header=
 error.footer=

You could also use the validator tag which comes with the Struts Validation extension. 
 It works similar except it acts as an iterator over all error messages.
 
 
 
 
 
 
 

There is a good write up on this provide by Ted Husted, Struts Tip #17.  You can 
obtain a copy by joining the mvc-programmers forum hosted by BaseBeans.com.

Hope that helps.

Regards,

Todd G. Nist



> 
> From: kiuma <[EMAIL PROTECTED]>
> Date: 2002/09/17 Tue AM 07:00:28 EDT
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: [STRUTS] Form  error handling
> 
> Hello,
> mine is a newbie question:
> 
> When validate fails i put some code like this:
> 
> newError = new ActionError("myform.error", "")
> errors.add( ActionErrors.GLOBAL_ERROR, newError );
> 
> in my properties file I put the key relative to myform.error.
> 
> in struts-config.xml
> 
>  path="/listedUser" type="com.wingstech.webappointments.ListedUserAction" 
> parameter="action" validate="true">
>  redirect="true" />
>   
> 
> When validate() returns error, struts should dirve me to input page.
> 
> How can I parse errors in my jsp page, then?
> 
> thanks,
> kiuma
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Including file from different server

2002-09-12 Thread tnist

Khan,

If I understand the question, you can use the JSTL and the import tag.

 http://www.somesite.com/someresource.html";>
 http://www.somesite.com/someresource.gif";>
 ftp://ftp.somesite.com/someresource";>

The above would cause the resource to be inserted into you page where referenced.

You could also store the resource/content into a vaialbe for manipulation prior to 
placing it on the page:
 http://www.somesite.com/someresource.txt"; var="myVar">

Not sure if that's what your looking for.

Regards,

Todd G. Nist
> 
> From: "Khan, Manuchehar A (ACF)" <[EMAIL PROTECTED]>
> Date: 2002/09/12 Thu AM 11:02:02 EDT
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: Including file from different server
> 
> How can we add a page that resides on different server in all of our pages
> as banner.
> 
> 
> -Original Message-
> From: Donald Ball [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 10:52 AM
> To: [EMAIL PROTECTED]
> Subject: accessing path information from a jsp page
> 
> 
> In my jsp page, I want to know one or more of these things:
> 
> * the incoming URL
> * the path of the ActionMapping the incoming URL was mapped to
> * the path and name of the view (the jsp page) to which the request was
> forwarded
> 
> presumably i can get the first by querying the request - something like:
> 
> 
> 
> no idea about the others. Any suggestions?
> 
> - donald
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: Reference Struts HTML tags from within a custom tag? *Please help!*

2002-09-12 Thread tnist

John,

If you want to create your own tag and still leverage the existing BaseTag, HtmlTag or 
anyone of the strut tags, you can create a reference to them by doing the following in 
you tag:

public class YourTag extends TagSupport {

protected org.apache.struts.tag.ib.html.BaseTag baseTag = new 
org.apache.struts.tablib.html.BaseTag();

protected org.apache.struts.tag.ib.html.HtmlTag htmlTag = new 
org.apache.struts.tablib.html.HtmlTag();


public int doStartTag() throws JspException {
//standard struts html tag
htmlTag.doStartTag();

//your code here

baseTag.doStartTag();
baseTag.doEndTag();

//any additional code


return (EVAL_PAGE);
}

public int doEndTag() throws JspException {
//your code here
htmlTag.doEndTag();

return (EVAL_PAGE);
}

public void release() {
// release any resources you allocate

// release resources from standard struts tags
htmlTag.release();
baseTag.release();
}

// other methods

} //  End Class 

Hope this helps.

Regards,
Todd G. Nist

> 
> From: "John Averty" <[EMAIL PROTECTED]>
> Date: 2002/09/11 Wed PM 07:59:47 EDT
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>, 
>   <[EMAIL PROTECTED]>
> Subject: Re: Reference Struts HTML tags from within a custom tag? *Please help!*
> 
> > Well, honestly, Struts has more to offer than you think.  Since you're new
> > to it, you should at least try reading Chuck Cavaness' chapters on the
> > serverside.com.
> 
> I did read that book. It explains how cool Struts is, but I felt that he
> didn't really explained me HOW do do stuff. Also, what I'm trying to get to
> is not in the book (at least not the chapters that are posted).
> Then, I've also gone thru the tutorial and a bunch of other docs and
> examples, and haven't found any hint on how to achieve the modularity I'm
> looking for.
> 
> I've been playing with Struts a bit, and I'm able to do pretty much anything
> "within the mold". ActionsForms, dynaForms, client and server validation,
> redirects, etc.
> 
> But, I'm still new and are just asking for some pointers of what could be an
> approach to acheive something more out of the box. I hope you gurus guys
> could give me another prospective, before I start digigng in the code (I'm
> on schedule...)
> 
> The closer I got to something was the concept of having an Actionform backed
> by a map, and then insert scriplets in the JSP, but I don't really like this
> approach as I prefer to insert code in the tags instead of the page itself.
> It is a lot more maintenable for programmers and for non-struts engineers
> (aka professional services), and a lot less prone to involuntary sabotage.
> I'm also worried about the performance of the code generated if I want my
> component to be pretty big/powerfull.
> 
> > Word of advice.  If you think "it would be nice if Struts does this".  It
> > has probably already been done or at least spec'd out.
> ... then let me know where or how!!
> 
> If I'm missing something obvious or if there is an approach on how to
> achieve what I'm trying to do, please point me to it instead of sending me a
> rtfm kind of answer.
> Or.. if you don't know or don't see a way, let me know also and I'll respect
> your judgement as you seem to be quite a guru with the stuff.
> 
> > And if not, do it and contribute it back to the community.
> No problem, if I have to build something, I'll contribute... But before, I
> need to figure out how...
> 
> 
> In the mean time, your answer was not helpful at all...
> 
> John.
> 
> 
> - Original Message -
> From: "James Mitchell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 11, 2002 4:35 PM
> Subject: RE: Reference Struts HTML tags from within a custom tag? *Please
> help!*
> 
> 
> > Well, honestly, Struts has more to offer than you think.  Since you're new
> > to it, you should at least try reading Chuck Cavaness' chapters on the
> > serverside.com.  It's free.  Be sure to setup a decent working environment
> > while you are reading it.  Go through each tutorial/sample and really dig
> > into the code and see what's happening.  Follow the threads from http
> > request through the container into the framework and out to the jsp.
> >
> > Word of advice.  If you think "it would be nice if Struts does this".  It
> > has probably already been done or at least spec'd out.  And if not, do it
> > and contribute it back to the community.
> >
> > Later John!
> >
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://www.open-tools.org/struts-atlanta
> >
> >
> >
> >
> > > -Original Message-
> > > From: John Averty [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, September 11, 2002 7:07 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Refer

Re: RE: Security and Struts

2002-09-10 Thread tnist

Darren,

Have you looked at the SecurityFilter project by Max Cooper?  Not sure what all you 
need to achieve but this project provides a fairly extensible Security module.  You 
can find it at:  http://securityfilter.sourceforge.net/

Regards,
Todd G. Nist
> 
> From: Darren Hill <[EMAIL PROTECTED]>
> Date: 2002/09/10 Tue PM 12:23:53 EDT
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Security and Struts
> 
> Michael ... I've tried the same and thought it was a little messy.
> 
> I was hope to find an example to uses roles 'n' such.
> 
> -Original Message-
> From: Michael Lee [mailto:[EMAIL PROTECTED]]
> Sent: September 10, 2002 11:13 AM
> To: Struts Users Mailing List
> Subject: Re: Security and Struts
> 
> 
> They have a good login example in the example war in the struts/webapps dir.
> That's the way I've done it in the past. The way I'm currently doing it is
> to use container managed security. This means NOT using struts for
> authorization/authentication (for J2EE security). Since your using JSP your
> probably gonna do form base authentication so just post your form to
> action="j_security_check" and make sure your form username and password
> fields are j_username and j_password appropriately. Check your container
> documentation for how to hook this into its security model.
> I'm currently actually having a problem with this in that I need for the
> user information to be stored in the session at login. I may just put a tag
> at the top of every page but that seems to get rid of the 'niceties' of
> using J2EE security. I want to set the locale based upon the loaded user
> object. Problem is, it goes right to the requested jsp page after login
> without loading the user and his preferences. Not sure how I'm going to
> handle this but in the mean time, that is how I handle security.
> Mike
> 
> 
> - Original Message -
> From: "Darren Hill" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 10, 2002 10:24 AM
> Subject: Security and Struts
> 
> 
> > Hey all,
> >
> > I'm looking for a job document and example about best practices in
> > implementing security in struts.
> > I've got the general idea about placing all my JSP's under WEB-INF, but a
> > doc/example might really solidify it for me.  Thanks in advance.
> >
> > Darren.
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: logic:iterator - how to determine if this is the first time t hrough an iteration

2001-12-20 Thread tnist

Viplava,

I would take a look at the RowTag available at
http://husted.com/struts/resources/rowtag.zip.

Works great and requires no scriplets, which is what you will have to resort
to otherwise.  Perhaps something like this, but again, I would strongly
encourage the RowTag.

<%! String[] colors = new String[2]; int i = 0; %>
<% colors[0]="#EE"; colors[1]="#CECECE"; i = 0;%>


<% i = 1 - i; %>

 >
...




Regards,

Todd G. Nist

-Original Message-
From: Nekkalapudi, Viplava [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 5:10 PM
To: 'Struts Users Mailing List'
Subject: RE: logic:iterator - how to determine if this is the first time
t hrough an iteration


Hi,
   Is there any way to specify the value or name dynamically?
   Basically I want to display some rows of data with different 
   back ground colors. From indexId, I can get either 0 or 1 
   using mod. What is the best way to get this?
   The following code gives me an option for the first row only.
 
  Example: 
  

bgcolor="#FF"
   
 > 
   display something...
  
 

Thanks, 
Viplava.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 2:27 PM
To: [EMAIL PROTECTED]
Subject: RE: logic:iterator - how to determine if this is the first time
t hrough an iteration


Duh, 

I did not realize there as an indexId property on the logic:iterator tag
which indicates the current iteration.  By using this in conjunction with
the logic:equal tag it is quite easy.





   


  
 
   
 
 
 


Sorry for the wasted bandwidth.

Todd

 -Original Message-
From: Todd G. Nist [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 11:56 AM
To: [EMAIL PROTECTED]
Subject: logic:iterator - how to determine if this is the first time
through an iteration


Hello,

Is there a way when iterating through a collection to determine if this is
the first time through the iteration when using the logic:iterator tag?

Thanks in advance,

Todd G. Nist



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: logic:iterator - how to determine if this is the first time through an iteration

2001-12-20 Thread tnist

Duh, 

I did not realize there as an indexId property on the logic:iterator tag
which indicates the current iteration.  By using this in conjunction with
the logic:equal tag it is quite easy.





   


  
 
   
 
 
 


Sorry for the wasted bandwidth.

Todd

 -Original Message-
From: Todd G. Nist [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 11:56 AM
To: [EMAIL PROTECTED]
Subject: logic:iterator - how to determine if this is the first time
through an iteration


Hello,

Is there a way when iterating through a collection to determine if this is
the first time through the iteration when using the logic:iterator tag?

Thanks in advance,

Todd G. Nist



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Iterator - determining that this is the first time through

2001-12-20 Thread tnist

Duh, 

I did not realize there as an indexId property on the logic:iterator tag
which indicates the current iteration.  By using this in conjunction with
the logic:equal tag it is quite easy.





   


  
 
 
 
 
 


Sorry for the wasted bandwidth.

Todd

-Original Message-
From: Todd G. Nist [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 11:18 AM
To: [EMAIL PROTECTED]
Subject: Iterator - determining that this is the first time through


Hi folks,

If I have a two collections, one representing the rows, and one representing
the columns for a given row and I want to take some action based on the
first iteration of the columns collection (say make it a html:link and pass
a map for parameters), how can I determine that this is the first iteration?
Is there away to test to see if this is the first Iteration and if so take
some action?

Thanks in advance

Todd G. Nist



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




CachedRowSet and toCollection() method

2001-12-05 Thread tnist

Hello,

I am using the CachedRowSet object from sun for our data access and
manipulation within Struts.  There is a method on it, "toCollection()" which
according to the documentation should return a collection of the rows.  My
code is generating a valid result set but when I issue the "toCollection()"
method on the CachedRowSet I get the following exception thrown:

java.lang.ClassCastException: java.util.TreeMap
at
sun.jdbc.rowset.CachedRowSet.toCollection(CachedRowSet.java:1057)

The basic code fragment which throws the exception looks like this:

Collection myCollection = null;
CachedRowSet crs = null;

// do necessary setup and obtain valid CachedRowSet;
try{
crs.execute(getCon());
crs.first();
myCollection = crs.toCollection();
}

I am not sure where the "Casting" exception is coming from. 

Any suggestions are greatly appreciated.

Regards,

Todd G. Nist 
Email:   [EMAIL PROTECTED] 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HOW TO: set up a pager with struts

2001-11-14 Thread tnist

Chuck,

May I also get a copy of this example?  

Thanks,



-Original Message-
From: Chuck Stern [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 8:13 AM
To: Struts Users Mailing List; 'Oleg V Alexeev'
Subject: RE: HOW TO: set up a pager with struts


If possible can you post an example to the list.  I've been struggling with
this same problem.

Thanks!

-Original Message-
From: storck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 5:09 AM
To: 'Struts Users Mailing List'; 'Oleg V Alexeev'
Subject: AW: HOW TO: set up a pager with struts


Could you send me some examples?

Many Thanks!

-Ursprungliche Nachricht-
Von: Oleg V Alexeev [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 14. November 2001 11:23
An: Struts Users Mailing List; [EMAIL PROTECTED]
Betreff: Re: HOW TO: set up a pager with struts


Hello storck,

I can suggest you my way. On base of query parameters, offset and page
length values generate container or array of objects from database and
store total value of records. Container or array you can display with
iterate tag. For purposes of page links generation I can suggest bean
and tag for you - I can send it for you.

Wednesday, November 14, 2001, 1:09:06 PM, you wrote:

s> Hi,

s> I am developing a webapp with struts and EJB's. In some cases I only have
to
s> display a list of Items. The problem is, that I cant show the whole list
...
s> sure to big ...
s> For retrieving the list I will either use the "Fast-Lane Reader Pattern"
and
s> the "Page-by-Page Iterator Pattern". In the "Pet Store Demo" they
s> implemented the "Page-by-Page Iterator" as a applicationspecific Tag, but
I
s> think it should also be possible to implement it with struts (I am
right).
s> Now I NEED your HELP. How must I set it up correct?

s> Any suggestions and comments are welcome !!!


s> --
s> To unsubscribe, e-mail:

s> For additional commands, e-mail:




--
Best regards,
 Olegmailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Exception: Cannot retrieve mapping for action

2001-11-02 Thread tnist

Thank you, I realize that the *.do will work, I had it that way initially.
However, I was reviewing the "Artimus" example by Ted Husted and liked how
he had the URL mapping setup and the struts-conf.xml file so I thought I
would give it a try.  But so far, it has not worked at all in my
application, but works just fine in the example and I can not see where the
difference is at.

Again, thanks for the reply.

Regards,

Todd

-Original Message-
From: Chilakala, Laxminarsimha [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:32 PM
To: 'Struts Users Mailing List'
Subject: RE: Exception: Cannot retrieve mapping for action


try using 




action
/*.do
  


instead of


action
/do/*
  

LN

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:26 PM
To: [EMAIL PROTECTED]
Subject: Exception: Cannot retrieve mapping for action


Hello,

I have the following Strut-Config file.

  
  



  



  
  

  


  
  







My web.xml maps the action to /do/* like below.

  
  
action
/do/*
  

My pages are all located under the WEB-INF directory to prevent prying eyes
from looking at the JSP code.

The main index checks to see if you have logon to the system and if not
forwards you to the logon page as follows:


  


When the forward is called I keep encountering an exception:

javax.servlet.ServletException: Exception forwarding for name logon:

  javax.servlet.ServletException: Cannot retrieve mapping for action
/do/logon

What am I missing here?  

Thanks for your assistance.

Regards,

Todd G. Nist 
Email:   [EMAIL PROTECTED] 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Exception: Cannot retrieve mapping for action

2001-11-02 Thread tnist

Hello,

I have the following Strut-Config file.

  
  



  



  
  

  


  
  







My web.xml maps the action to /do/* like below.

  
  
action
/do/*
  

My pages are all located under the WEB-INF directory to prevent prying eyes
from looking at the JSP code.

The main index checks to see if you have logon to the system and if not
forwards you to the logon page as follows:


  


When the forward is called I keep encountering an exception:

javax.servlet.ServletException: Exception forwarding for name logon:

  javax.servlet.ServletException: Cannot retrieve mapping for action
/do/logon

What am I missing here?  

Thanks for your assistance.

Regards,

Todd G. Nist 
Email:   [EMAIL PROTECTED] 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Newbe - problem with Struts-Config.xml

2001-11-02 Thread tnist

Hello,

I am relatively new to Struts and am encountering a problem with the
struts-config.xml file.  I have set up a global-forwards like below:



Then I set up an action like below:




Then I wrote the following index.jsp page:

<%@ page language="java" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>


Now when I hit index.jsp, I receive a blank page from Tomcat 4.0.  If I
review the Tomcat logs, I see that it encountered a 404, but why?  I thought
it should have found the action "/Menu" and forward it to the menu.jsp.

I am sure this is something simple, but I can't seem to see what wrong with
the above.  This is running under Struts 1.0 and Tomcat 4.0.

Any assistance is greatly appreciated.

Regards,

Todd G. Nist 
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




HTML taglib - dynamic sizing and formatting of elements

2001-11-01 Thread tnist

Hello,

I have a question with regards to the html tag library.  We would like to
have the ability to set the size, format and other attributes for the html
tags dynamically.  The attributes would be set in the action form by the
action class as it queries the database and would use the meta data to
determine size, format, etc...  I realize that I can do this and then use
the standard <%=mybean.myproperty%> to set the size, maximum, and others.
But I would rather have that information pulled from the action form when
ever I reference a property on my ActionForm in the jsp inside the
 tags.  

This does not appear to currently be possible with Struts 1.0, is this
planed or is this just the wrong approach?

Thanks in advance.

Regards,


Todd G. Nist 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to handle a PopUp Form from another Form?

2001-10-24 Thread tnist

Dan,

There is an example of called "Simulating Modal Dialog Windows" available at
the below URL:
 
http://developer.netscape.com/viewsource/goodman_modal/goodman_modal.html

HTH,

Todd G. Nist

-Original Message-
From: Dan Hodge [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 5:51 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle a PopUp Form from another Form?


Correct me if I'm wrong, but it sounds like you want to popup window to 
behave like a modal dialog box. I can't think of any standard
javascript/HTML 
construct that would allow that, short of using alert() to pop up a modal 
dialog box, but that's not going to help you. Has anyone seen or built a web

app with this kind of functionality?

-Dan

On Monday 22 October 2001 16:47, you wrote:
> It is an indexed link. I already know how to get the indexed link to
> include the part number.
>
> What I want to do is:
>
> This link should point to an action class, say "partInfo.do", which
> retrieves the complete information about that part and puts it into an
> ActionForm and then forwards to a JSP in a "NEW" window(with no location
> bar,no tool bar,etc.)on top of the originator window.
>
> User submits to this ActionForm have to follow the normal ActionForm
> features, i.e., bring back the part form screen in case of actionerrors.
> And If the update is successful then the part changes are to be saved to
> the database and the popup window closed and user allowed to continue work
> on the originator window
>
> Until the user has successfully updated the data and the popup window is
> closed, he/she should not be able to get to the originator form.
>
> I hope someone has handle this situation and can help me.
>
> -Nimmi
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 22, 2001 3:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to handle a PopUp Form from another Form?
>
>
>
>
> Perhaps you can use a indexed link which brings up the data in the popup
> form.
>
> As for the second part, could you use javascript onload function in the
> original page, which checks to see if popup exists, and if it does puts
> focus back on it?
>
> Cheers,
>
> Dave
>
>
>
>
>
> Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
> 10/22/2001 02:50:51 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   "struts-user@jakarta. apache. org (E-mail)"
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  How to handle a PopUp Form from another Form?
>
>
>
> Hi,
>
> I am looking for suggestions on how to handle this situation:
>
> I have a grid form (i.e., a form with tabular data). One of the columns of
> this tabular data is "PartNumber" which when clicked on a row should popup
> a form in a new window bringing up all the information about this part,
> e.g., description, dimensions,price, etc. from the database and the user
> should be able to modify this part data.
>
> 1.The popup form has to be just another ActionForm where the control
> returns to the form if any validation errors encountered.
>
> 2. The user should not be able to go back to the Originator form until
done
> with the popup form.
>
>
> Thanks.
>
> -Nimmi

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



RE: Please - a little help with "NoSuchMethodError" with Tomcat, Struts and Apache

2001-10-03 Thread tnist

Rick,

I took your advice and started with a clean install of Tomcat 3.2.3.  I then
installed struts and placed the struts*.war file in the tomcat webapps dir.
I then tested it in standalone and all worked fine.  So then I added back in
the mod_jk and ajp13 connection to Apache and low and behold it worked.  I
am not sure what step I missed the first time, but it is up and running now.

Thanks for all your time and input.  On a side note, I brought up Tomcat 4.0
prior to doing the above, and placed the strut*.war file in the webapps dir
and had it up and running in about 5 minutes.

Obviously I missed something in my environment, but what it is I am not sure
of; though I will keep looking.  If I find the actual answer I will post it.

Again thanks for your assistance and time.

Regards,

Todd G. Nist
[EMAIL PROTECTED]

-Original Message-
From: Rick Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 9:35 AM
To: [EMAIL PROTECTED]; Todd Nist
Subject: Re: Please - a little help with "NoSuchMethodError" with
Tomcat, Struts and Apache


I don't know what to tell you. I would start with a clean install of 
Tomcat 3.2.3 somewhere other than where you have it now and add the 
struts-example.war to webapps and start Tomcat standalone and see what 
happens. I'm running on Linux but I can't imagine that would make a 
difference with Java.

The root cause is NoSuchMethodError called createAttribute in 
TagLibraryInfoImpl but looking at the Tomcat 3.2.3 source code in 
Jasper.jar it appears to be in there. So, correct me if I'm wrong, but 
doesn't that suggest either the way it is being called is incorrect or 
that Jasper.jar isn't visible to the struts example application.

Rick
[EMAIL PROTECTED] wrote:

> Rick,
> 
> I placed them there after receiving the NoSuchMethodError thinking that
> perhaps they would make a difference, but they did not.
> 
> Thanks,
> 
> Todd
> 
> -Original Message-
> From: Rick Smith [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 9:00 AM
> To: [EMAIL PROTECTED]; Todd Nist
> Subject: Re: Please - a little help with "NoSuchMethodError" with
> Tomcat, Struts and Apache
> 
> 
> Hmmm, I just installed Tomcat 3.2.3 and added struts-examples from 1.0 
> and I don't have the commons*.jar files in my WEB-INF\lib. How did they 
> get in there? All I have is struts.jar.
> 
> Rick
> 
> [EMAIL PROTECTED] wrote:
> 
> 
>>Rick,
>>
>>I have removed all the sub directories of the "work" directory under
>>
> Tomcat
> 
>>and this has made no difference.
>>
>>I have set the jasper log to "debug" to try to see if it would shed any
>>light on what was happening.  I did the following test:
>>  1.  First I hit the standard examples provided by Tomcat to ensure
>>that they are still working correctly and they are.
>>  2.  Hit "struts-documentation" and it worked as expected.  
>>  3.  Hit the "struts-example" webapp, I got the error show below.
>>
>>I have included a copy the jasper.log and servlet.log for anyone's input
>>
> on
> 
>>this.
>>
>>Thanks for the assistance.
>>
>>Regards,
>>
>>Todd G. Nist
>>[EMAIL PROTECTED]
>>
>><- jasper.log ->
>>2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:26:32 - Scratch dir for the JSP engine is:
>>D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples
>>2001-10-03 07:26:32 - IMPORTANT: Do not modify the generated servlets
>>2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:26:35 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:26:37 - Parent class loader is: AdaptiveClassLoader(  )
>>2001-10-03 07:27:20 - JspEngine --> /jsp/snp/snoop.jsp
>>2001-10-03 07:27:20 -  ServletPath: /jsp/snp/snoop.jsp
>>2001-10-03 07:27:20 - PathInfo: null
>>2001-10-03 07:27:20 - RealPath:
>>D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp
>>2001-10-03 07:27:20 -   RequestURI:
>>
> /examples/jsp/snp/snoop.jsp
> 
>>2001-10-03 07:27:20 -  QueryString: null
>>2001-10-03 07:27:20 -   Request Params: 
>>2001-10-03 07:27:20 - Classpath according to the Servlet Engine is:
>>D:\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes
>>2001-10-03 07:27:20 - Package name is: jsp.snp
>>2001-10-03 07:27:20 - Class file name is:
>>
>>
>
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00
> 
>>02fsnoop_0002ejspsnoop.class
>>2001-10-03 07:27:20 - Java file name is:
>>
>>
>
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_000

RE: Please - a little help with "NoSuchMethodError" with Tomcat, Struts and Apache

2001-10-03 Thread tnist

Rick,

I placed them there after receiving the NoSuchMethodError thinking that
perhaps they would make a difference, but they did not.

Thanks,

Todd

-Original Message-
From: Rick Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 9:00 AM
To: [EMAIL PROTECTED]; Todd Nist
Subject: Re: Please - a little help with "NoSuchMethodError" with
Tomcat, Struts and Apache


Hmmm, I just installed Tomcat 3.2.3 and added struts-examples from 1.0 
and I don't have the commons*.jar files in my WEB-INF\lib. How did they 
get in there? All I have is struts.jar.

Rick

[EMAIL PROTECTED] wrote:

> Rick,
> 
> I have removed all the sub directories of the "work" directory under
Tomcat
> and this has made no difference.
> 
> I have set the jasper log to "debug" to try to see if it would shed any
> light on what was happening.  I did the following test:
>   1.  First I hit the standard examples provided by Tomcat to ensure
> that they are still working correctly and they are.
>   2.  Hit "struts-documentation" and it worked as expected.  
>   3.  Hit the "struts-example" webapp, I got the error show below.
> 
> I have included a copy the jasper.log and servlet.log for anyone's input
on
> this.
> 
> Thanks for the assistance.
> 
> Regards,
> 
> Todd G. Nist
> [EMAIL PROTECTED]
> 
> <- jasper.log ->
> 2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:26:32 - Scratch dir for the JSP engine is:
> D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples
> 2001-10-03 07:26:32 - IMPORTANT: Do not modify the generated servlets
> 2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:26:35 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:26:37 - Parent class loader is: AdaptiveClassLoader(  )
> 2001-10-03 07:27:20 - JspEngine --> /jsp/snp/snoop.jsp
> 2001-10-03 07:27:20 -  ServletPath: /jsp/snp/snoop.jsp
> 2001-10-03 07:27:20 - PathInfo: null
> 2001-10-03 07:27:20 - RealPath:
> D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp
> 2001-10-03 07:27:20 -   RequestURI:
/examples/jsp/snp/snoop.jsp
> 2001-10-03 07:27:20 -  QueryString: null
> 2001-10-03 07:27:20 -   Request Params: 
> 2001-10-03 07:27:20 - Classpath according to the Servlet Engine is:
> D:\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes
> 2001-10-03 07:27:20 - Package name is: jsp.snp
> 2001-10-03 07:27:20 - Class file name is:
>
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00
> 02fsnoop_0002ejspsnoop.class
> 2001-10-03 07:27:20 - Java file name is:
>
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00
> 02fsnoop_0002ejspsnoop_jsp_0.java
> 2001-10-03 07:27:20 - Class name is:
> _0002fjsp_0002fsnp_0002fsnoop_0002ejspsnoop_jsp_0
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(9,20)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(11,13)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(13,18)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(15,14)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(17,11)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(19,17)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(21,14)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(23,16)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(25,14)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(27,13)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.compiler.Parser$Expression
> at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(29,13)
> 2001-10-03 07:27:20 - Accepted
org.apache.jasper.com

RE: Please - a little help with "NoSuchMethodError" with Tomcat, Struts and Apache

2001-10-03 Thread tnist

Rick,

I have removed all the sub directories of the "work" directory under Tomcat
and this has made no difference.

I have set the jasper log to "debug" to try to see if it would shed any
light on what was happening.  I did the following test:
1.  First I hit the standard examples provided by Tomcat to ensure
that they are still working correctly and they are.
2.  Hit "struts-documentation" and it worked as expected.  
3.  Hit the "struts-example" webapp, I got the error show below.

I have included a copy the jasper.log and servlet.log for anyone's input on
this.

Thanks for the assistance.

Regards,

Todd G. Nist
[EMAIL PROTECTED]

<- jasper.log ->
2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:32 - Scratch dir for the JSP engine is:
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples
2001-10-03 07:26:32 - IMPORTANT: Do not modify the generated servlets
2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:35 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:37 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:27:20 - JspEngine --> /jsp/snp/snoop.jsp
2001-10-03 07:27:20 -ServletPath: /jsp/snp/snoop.jsp
2001-10-03 07:27:20 -   PathInfo: null
2001-10-03 07:27:20 -   RealPath:
D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp
2001-10-03 07:27:20 - RequestURI: /examples/jsp/snp/snoop.jsp
2001-10-03 07:27:20 -QueryString: null
2001-10-03 07:27:20 - Request Params: 
2001-10-03 07:27:20 - Classpath according to the Servlet Engine is:
D:\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes
2001-10-03 07:27:20 - Package name is: jsp.snp
2001-10-03 07:27:20 - Class file name is:
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00
02fsnoop_0002ejspsnoop.class
2001-10-03 07:27:20 - Java file name is:
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00
02fsnoop_0002ejspsnoop_jsp_0.java
2001-10-03 07:27:20 - Class name is:
_0002fjsp_0002fsnp_0002fsnoop_0002ejspsnoop_jsp_0
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(9,20)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(11,13)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(13,18)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(15,14)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(17,11)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(19,17)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(21,14)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(23,16)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(25,14)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(27,13)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(29,13)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(31,13)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(33,16)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(35,13)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(37,22)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(39,8)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp

Unable to get Struts working with Tomcat and Apache - NoSuchMethodError (Day 3)

2001-10-03 Thread tnist

Hello,

I apologize for this duplicate post and its length, but I have not received
much input on my first post, so I am trying again with some additional
information.

My environment is as follow:

Struts 1.0
Tomcat 3.2.3
Apache 1.3.14
Windows 2000
mod_jk implemented and working

I am a new-bie to the Struts world, but not Tomcat and Apache.  I followed
the instructions in the installations (tomcat-apache.conf). However, I must
have missed something somewhere since when I try to run an example like
struts-example, I am encountering the below error, NoSuchMethodError. I have
included the JkMount /*.do ajp13 in my mod_jk.conf-prod file referenced by
Apache, and it appears correct.

I have enabled "debug" for the jasper.log file.  I did the following test to
validate the configuration:
1.  First I hit the standard examples provided by Tomcat to ensure
that they are still working correctly and they are.
2.  Hit "struts-documentation" and it worked as expected.  
3.  Hit the "struts-example" webapp, I got the error show below,
NoSuchMethodError.

I have included a copy the jasper.log, servlet.log, and the error produced
for anyone's input on this.  It appears from the log that the request is
failing at the point it references the "Handling Directive: taglib
{uri=/WEB-INF/struts-bean.tld, prefix=bean}", but everything appears to be
in place.

Since I am new to the Struts world, I feel sure that it is something that I
missed in the setup/configuration of Struts, but I have been through the
documentation for 3 days now trying several different approaches but still
am unable to get this to work.

Any assistance in resolving this matter is greatly appreciated.

Regards,

Todd G. Nist 
Email:   [EMAIL PROTECTED] 

<- jasper.log ->
2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:32 - Scratch dir for the JSP engine is:
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples
2001-10-03 07:26:32 - IMPORTANT: Do not modify the generated servlets
2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:35 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:26:37 - Parent class loader is: AdaptiveClassLoader(  )
2001-10-03 07:27:20 - JspEngine --> /jsp/snp/snoop.jsp
2001-10-03 07:27:20 -ServletPath: /jsp/snp/snoop.jsp
2001-10-03 07:27:20 -   PathInfo: null
2001-10-03 07:27:20 -   RealPath:
D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp
2001-10-03 07:27:20 - RequestURI: /examples/jsp/snp/snoop.jsp
2001-10-03 07:27:20 -QueryString: null
2001-10-03 07:27:20 - Request Params: 
2001-10-03 07:27:20 - Classpath according to the Servlet Engine is:
D:\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes
2001-10-03 07:27:20 - Package name is: jsp.snp
2001-10-03 07:27:20 - Class file name is:
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00
02fsnoop_0002ejspsnoop.class
2001-10-03 07:27:20 - Java file name is:
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00
02fsnoop_0002ejspsnoop_jsp_0.java
2001-10-03 07:27:20 - Class name is:
_0002fjsp_0002fsnp_0002fsnoop_0002ejspsnoop_jsp_0
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(9,20)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(11,13)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(13,18)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(15,14)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(17,11)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(19,17)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(21,14)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(23,16)
2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(25,14)
2001-1

RE: Please - a little help with "NoSuchMethodError" with Tomcat, Stru ts and Apache

2001-10-02 Thread tnist

John,

I tried as you suggested, but to no avail.  The same error is still being
produced.  Any other ideas as to where to look?

Regards,

Todd

-Original Message-
From: John Raley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Please - a little help with "NoSuchMethodError" with
Tomcat, Stru ts and Apache


Try cleaning out your tomcat work directory (i.e. delete everything in 
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples).

[EMAIL PROTECTED] wrote:

>I followed the instructions in the installations (tomcat-apache.conf).
>However, when I try to run an example like struts-example, I am
encountering
>the below error, NoSuchMethodError. I have included the JkMount /*.do ajp12
>in my mod_jk.conf-prod file referenced by Apache, and it appears correct. I
>have reviewed the jasper.log file and it appears as though the request is
>valid:
>
>
>2001-09-09 11:39:01 - Scratch dir for the JSP engine is:
>D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples
>2001-09-09 11:39:01 - IMPORTANT: Do not modify the generated servlets
>2001-09-09 11:39:23 - JspEngine --> /index.jsp
>2001-09-09 11:39:23 - ServletPath: /index.jsp
>2001-09-09 11:39:23 - PathInfo: null
>2001-09-09 11:39:23 - RealPath:
>D:\jakarta-tomcat-3.2.3\webapps\struts-example\index.jsp
>2001-09-09 11:39:23 - RequestURI: /struts-example/index.jsp
>2001-09-09 11:39:23 - QueryString: null
>2001-09-09 11:39:23 - Request Params: 
>2001-09-09 11:39:23 - Classpath according to the Servlet Engine is:
>D:\jakarta-tomcat-3.2.3\webapps\struts-example\WEB-INF\classes;D:\jakarta-t
o
>mcat-3.2.3\webapps\struts-example\WEB-INF\lib\struts.jar
>
>I have no idea what is causing this error.  I am running Apache 1.3.14,
>Tomcat 3.2.3, and Struts 1.0.  The above seems to indicate that it is
>finding the page ok so I would have to conclude that I missed something
>somewhere during the setup, but am not sure where else to look.
>
>Any assistance is greatly appreciated. Thanks in advance.
>
>Todd G. Nist 
>Email:   [EMAIL PROTECTED] 
>
>< Error Encountered >
>Error: 500
>Location: /struts-example/index.jsp
>Internal Servlet Error:
>
>javax.servlet.ServletException
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>   at
>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>   at org.apache.tomcat.core.Handler.service(Handler.java:287)
>   at
>org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>   at
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:8
1
>2)
>   at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>   at
>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnectio
n
>(Ajp12ConnectionHandler.java:166)
>   at
>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>   at
>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>   at java.lang.Thread.run(Thread.java:484)
>
>Root cause: 
>java.lang.NoSuchMethodError
>   at
>org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInf
o
>Impl.java:524)
>   at
>org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoI
m
>pl.java:432)
>   at
>org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.j
a
>va:385)
>   at
>org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233)
>   at
>org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEv
e
>ntListener.java:706)
>   at
>org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingLis
t
>ener.java:116)
>   at
>org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
>   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
>   at
>org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
>   at
>org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
>   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
>   at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspS
e
>rvlet.java:258)
>   at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
a
>va:268)
>   at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>   at
>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>   at org.apache.tomcat.core.Handler.service(Handler.java:287)
>   at
>or

Please - a little help with "NoSuchMethodError" with Tomcat, Struts and Apache

2001-10-02 Thread tnist

I followed the instructions in the installations (tomcat-apache.conf).
However, when I try to run an example like struts-example, I am encountering
the below error, NoSuchMethodError. I have included the JkMount /*.do ajp12
in my mod_jk.conf-prod file referenced by Apache, and it appears correct. I
have reviewed the jasper.log file and it appears as though the request is
valid:


2001-09-09 11:39:01 - Scratch dir for the JSP engine is:
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples
2001-09-09 11:39:01 - IMPORTANT: Do not modify the generated servlets
2001-09-09 11:39:23 - JspEngine --> /index.jsp
2001-09-09 11:39:23 - ServletPath: /index.jsp
2001-09-09 11:39:23 - PathInfo: null
2001-09-09 11:39:23 - RealPath:
D:\jakarta-tomcat-3.2.3\webapps\struts-example\index.jsp
2001-09-09 11:39:23 - RequestURI: /struts-example/index.jsp
2001-09-09 11:39:23 - QueryString: null
2001-09-09 11:39:23 - Request Params: 
2001-09-09 11:39:23 - Classpath according to the Servlet Engine is:
D:\jakarta-tomcat-3.2.3\webapps\struts-example\WEB-INF\classes;D:\jakarta-to
mcat-3.2.3\webapps\struts-example\WEB-INF\lib\struts.jar

I have no idea what is causing this error.  I am running Apache 1.3.14,
Tomcat 3.2.3, and Struts 1.0.  The above seems to indicate that it is
finding the page ok so I would have to conclude that I missed something
somewhere during the setup, but am not sure where else to look.

Any assistance is greatly appreciated. Thanks in advance.

Todd G. Nist 
Email:   [EMAIL PROTECTED] 

< Error Encountered >
Error: 500
Location: /struts-example/index.jsp
Internal Servlet Error:

javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

Root cause: 
java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfo
Impl.java:524)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
pl.java:432)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:385)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:706)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


The information in this el

Error: 500 - Getting examples to work with Tomcat and Apache

2001-10-02 Thread tnist

Hello,

I followed the instructions in the installations (tomcat-apache.conf). But
when trying to run an example like struts-example, I am encountering the
below error, 500.  I have included the JkMount /*.do ajp12 in my
mod_jk.conf-prod file referenced by Apache, and it appears correct.  I have
reviewed the jasper.log file and it appears as though the request is valid:

2001-09-09 11:39:01 - Scratch dir for the JSP engine is:
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples
2001-09-09 11:39:01 - IMPORTANT: Do not modify the generated servlets
2001-09-09 11:39:23 - JspEngine --> /index.jsp
2001-09-09 11:39:23 -ServletPath: /index.jsp
2001-09-09 11:39:23 -   PathInfo: null
2001-09-09 11:39:23 -   RealPath:
D:\jakarta-tomcat-3.2.3\webapps\struts-example\index.jsp
2001-09-09 11:39:23 - RequestURI: /struts-example/index.jsp
2001-09-09 11:39:23 -QueryString: null
2001-09-09 11:39:23 - Request Params: 
2001-09-09 11:39:23 - Classpath according to the Servlet Engine is:
D:\jakarta-tomcat-3.2.3\webapps\struts-example\WEB-INF\classes;D:\jakarta-to
mcat-3.2.3\webapps\struts-example\WEB-INF\lib\struts.jar

The above seems to indictate that it is finding the page ok.  I think the
error is related to the "NoSuchMedhodError", but I am not sure what would be
causing this.

Any assistance is greatly appreciated.  Thanks in advance.

Regards,

Todd G. Nist
[EMAIL PROTECTED]

Error: 500
Location: /struts-example/index.jsp
Internal Servlet Error:

javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

--> Error here, what would cause this <--
Root cause: 
java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfo
Impl.java:524)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
pl.java:432)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:385)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:706)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

Todd G. Nist 
Chief Technology Officer 
FBO Systems Inc. 
3555 Koger Blvd. 
Suite 300 
Dulu

RE: Configuring Struts with Tomcat and Apache

2001-10-02 Thread tnist

Martin,

Thank you for the response.  I have included the JkMount /*.do ajp12 and it
still has not alleviated the problems.  I no longer think that it is related
directly to the mod_jk now.  I have noticed the following in the jasper.log
file:

2001-09-09 11:39:01 - Scratch dir for the JSP engine is:
D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples
2001-09-09 11:39:01 - IMPORTANT: Do not modify the generated servlets
2001-09-09 11:39:23 - JspEngine --> /index.jsp
2001-09-09 11:39:23 -ServletPath: /index.jsp
2001-09-09 11:39:23 -   PathInfo: null
2001-09-09 11:39:23 -   RealPath:
D:\jakarta-tomcat-3.2.3\webapps\struts-example\index.jsp
2001-09-09 11:39:23 - RequestURI: /struts-example/index.jsp
2001-09-09 11:39:23 -QueryString: null
2001-09-09 11:39:23 - Request Params: 
2001-09-09 11:39:23 - Classpath according to the Servlet Engine is:
D:\jakarta-tomcat-3.2.3\webapps\struts-example\WEB-INF\classes;D:\jakarta-to
mcat-3.2.3\webapps\struts-example\WEB-INF\lib\struts.jar

So this would indictate that it is finding the page ok.  I think the error
is related to the "NoSuchMedhodError", but I am not sure what would be
causing this.

Thanks in advance.

Regards,

Todd G. Nist
[EMAIL PROTECTED]

Error: 500
Location: /struts-example/index.jsp
Internal Servlet Error:

javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

--> Error here, what would cause this <--
Root cause: 
java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfo
Impl.java:524)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
pl.java:432)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:385)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:706)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


-Original Message-
From: Martin Samm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 3:40 AM
To: [EMAIL PROTECTED]
Subject: Re: Configuring Struts with Tomcat and Apache


had this problem with the same setup as yourself - i though mod_jk.conf
w

Configuring Struts with Tomcat and Apache

2001-10-01 Thread tnist

I am a new-bie to Struts and have just installed 1.0 with Tomcat 3.2.2 and
Apache.  I followed the instructions in the installations
(tomcat-apache.conf). But when trying to run an example like struts-example,
I am encountering the below error. In the documentation there is a
description for tomcat-apache.conf to add an ADDHANDLER *.do after the
"corresponding line for the .jsp extension), but I am using mod_jk under
Window 2000 and therefore mod_jk.conf; so I would guess that I need to add
an entry to the mod_jk.conf file, but where?  I have modified my mod_jk.conf
file to include the line "JkMount /*.do ajp12" but it does not appear to be
carried over to the mod_jk.conf-auto created by tomcat.  What am I doing
wrong?

All suggestions are welcome.

Environment:
Windows 2000
Tomcat: 3.2.2
Apache: 1.3.14

Error: 500
Location: /struts-example/index.jsp
Internal Servlet Error:

javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Root cause: 
java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfo
Impl.java:524)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
pl.java:432)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:385)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:706)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


Regards,

Todd G. Nist 
[EMAIL PROTECTED]


The information in this electronic mail ("e-mail") message may
be confidential and for use of only the named recipient.  The
information may be protected by privilege, work product immunity
or other applicable law.  If you are not the intended recipient
the retention, dissemination, distribution or copying of this
e-mail message is strictly prohibited.  If you receive this e-mail
message in error please notify us immediately by telephone
at 770-723-1011 or [EMAIL PROTECTED]  Thank you. 





RE: Struts Development : tep by step.

2001-03-22 Thread tnist
Title: Struts Development : tep by step.



The 
url for Bluestone is below:
 

  
  HP Bluestone is pleased to offer you another free 
  download: Struts Trail Map 
  www.bluestone.com/download. 
Regards,Todd

  
  -Original Message-From: Nanduri, Amarnath 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 22, 
  2001 9:55 AMTo: '[EMAIL PROTECTED]'Subject: 
  RE: Struts Development : tep by step.
  Bluestone page has a very decent example with diagrams. i forgot the 
  url though...
  
-Original Message-From: Tewathia, Atul 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, March 22, 
2001 6:16 AMTo: [EMAIL PROTECTED]Subject: 
Struts Development : tep by step.
Is there any link/tutorial where a step by step 
approach of developing a struts-application is given. I am finding it a bit 
slippery to get a grip on the examples provided with 
  struts.



The information in this electronic mail ("e-mail") message may

be confidential and for use of only the named recipient.  The

information may be protected by privilege, work product immunity

or other applicable law.  If you are not the intended recipient

the retention, dissemination, distribution or copying of this

e-mail message is strictly prohibited.  If you receive this e-mail

message in error please notify us immediately by telephone

at 770-723-1011 or [EMAIL PROTECTED]  Thank you.