Struts and state information

2002-10-13 Thread Brett Elliott

I would like to keep session state soley in cookies so I can use round robin
HTTP load balancing versus sticky load balancing(sticky load balancing as in
all requests are directed at a specific web server for a given user.

I read Professional JSP, perused this mailing list and looked on the web and
nothing really elaborates on where the state is stored by default.  I see
how the html:link /html:link directive is translated into a
href=http://...;jsessionid=X/a but where does it get X and where does it
store the session information related to X?  Does it rely on the jsession ID
being passed around in URLs then keep the associated session information
cached on the server?  So if you have multiple servers you will need to use
sticky load balancing to make sure users only use one webserver?

What options are there in case I want to keep all session state in cookies?
That is, ideally, I would generate an encrypted cookie w/ CRC containing the
logged in username and minimal information about the user.  And I would like
to do this within the confines of Struts.

Thanks for any help and I aplogize if this is a redundant question.


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




Uploading files with DynaForm

2002-09-26 Thread Brett

Hello,

Is there anyway of uploading files with a DynaForm.  If so what do I have to do to get 
it to work.  I have form uploading working in the usual way (as per the struts-upload 
example) but havent been able to reproduce the effect with DynaForm.

Thanks







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




Help needed uploading files

2002-09-25 Thread Brett



Hello, I know this has been discussed before but the struts site seems to be playing 
up and I cant get into it to search the list.  Anyway I am having problems getting 
files to upload to my server.  The problem I have is when I read from the InputStream 
opened from the Request I get -1.  In other words there is nothing to read.

Is there anything I have to configure with Struts so that the files in the HTML page 
are uploaded properly.  At the moment it seems as if they are not arriving correctly 
to the server.

(I have ENCTYPE set to multipart etc).

Thanks.


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




Executing code before each action

2002-09-10 Thread Brett

Hello,

I have a piece of code than I need to execute before each action (it checks which 
country the user is in the then sets a session variable).  I want to execute this 
before each action so that if a user bookmarks a page and returns without entering 
through the front door I still have the session variable.  

What is the best way of doing this.  I have thought about using the RequestProcesser 
but as I understood it that is for changing request behaviour rather than this type of 
thing.

Thanks in advance.
Brett




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




Re: Struts and X11

2002-05-12 Thread Brett Porter

That still won't help in a server environment where X may not even be 
installed. I believe JDK 1.4 introduced the ability to do some of these 
operations to an offscreen buffer - check out the what's new if you are 
interested.

- Brett

Richard Yee wrote:
 Micael,
 Is your display variable set to the machine that you are running on? It 
 should be the IP address of your machine:0.0.
 
 Regards,
 
 Richard
 
 At 10:15 PM 5/12/2002 -0700, you wrote:
 
 I presently am having difficulty using the awt with servlets to do 
 image reconstruction work on a RedHat 7.2 Linux platfrom, because I 
 get the following exception, which some think is a bug in JDK 1.4, but 
 seems to be something Sun has tolerated intentionally

 Exception in thread main java.lang.InternalError: Can't connect to 
 X11 window server using ':0,0' as the value of the DISPLAY variable.
 at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
 at 
 sun.awt.X11GraphicsEnvironment.clinit(11GraphicsEnvironment.java:126)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:130)
 at java.awt.Toolkit#2.run(Toolket.java:712)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
 at javax.swing.ImageIcon.(init(ImageIcon.java:81)
 at javax.swing.ImageIcon.init(ImageIcon.java:107)

 My ps aux says:

 /etc/X11/X -auth /var/lib/kdm/authfiles/A:0-0Dqymv

 for the X11 server.  Does anyone have an idea what I need to do at 
 this point?  Everything works on a pc, of course.

 This is not strictly a struts problem, of course, but it is something 
 that struts users that deal with multimedia will need to deal with 
 since it is essentially a server side problem.  I have no problem with 
 leaving an X11 server running to make this work.  I cannot live with 
 the client having to do anything special.  The problem is that I don't 
 want to use the graphics but do want to access the graphic functionality.

 Thanks for any assistance.

 Micael

 P.S. If you don't understand the above, please do not offer 
 suggestions.  Thanks for that too.



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

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


-- 
| Brett Porter [EMAIL PROTECTED] .
. f2 network ~ everything essential  |
 --



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




RE: off topic - ARGO UML - URGENT

2002-04-25 Thread Brett Porter

putting off topic in the subject doesn't excuse you to ask whatever you want
;)

I have no idea, but I think that Argo UML has a list of its own... I'm sure
they can give a better answer

-Original Message-
From: Jefferson Rodrigues de Oliveira e Silva
[mailto:[EMAIL PROTECTED]]
Sent: Friday, 26 April 2002 9:06 AM
To: '[EMAIL PROTECTED]'
Subject: off topic - ARGO UML - URGENT


Sorry about this question, but I really need some help
here.

How can I make a constructor using ARGO UML ? If
I just add a method with the same name as the class,
the tool puts a

void ?? ClassName()

How can I take the  void ?? out ?

Thanks
Jefferson




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



RE: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE) - P roxy problems?

2002-04-23 Thread Brett Porter

I'm really strecthing here, but:

* I was under the impression that it would use the dtd from the
struts.jar... are you using the v1.1 JAR in the webapp? Is there a problem
with the way 1.1 works, because I get this for v1.0:
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/var/www/shopping/dev/apps/webapps/shopping/WEB-INF/lib/struts-1.0
.1.jar
!/org/apache/struts/resources/struts-config_1_0.dtd'

* It is using crimson, but I didn't think that was what was included with
jdk1.4 (I could be wrong, I don't recall off-hand). If that's the case there
may be some sort of conflict, but there shouldn't be and it doesn't explain
the error.

* Have you tried using a small java program with a URLConnection to see what
happens when getting the URL? That'll affirm Java's network is at least
working correctly.

HTH, but maybe not :)
- Brett

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 23 April 2002 10:59 PM
To: 'Struts Users Mailing List'
Subject: RE: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE) -
P roxy problems?


No, going out to the internet directly. Have a real ip address. Am behind
a firewall however (same box). Bare in mind, though - fetch works ok.

Any more ideas?

Many thanks for the help so far and for (hopefully :) ) more in advance!

Mike

 -Original Message-
 From: Alex Jones [mailto:[EMAIL PROTECTED]]
 Sent: 23 April 2002 10:18
 To: 'Struts Users Mailing List'
 Subject: RE: can't register struts-config dtd on tomcat 4.0.3 
 (1.4 LE) -
 Proxy problems?
 
 
 Are you behind a proxy? If so, you'll need to make sure that the JVM
 knows about it before ActionServlet starts trying to read the DTD. One
 way of doing this would be to subclass ActionServlet and override the
 init method to something like this:
 
 public class ProxyActionServlet extends ActionServlet
 {
   public void init(ServletConfig config)
   {
 System.setProperty (http.proxyHost,proxyserver);
 System.setProperty (http.proxyPort,proxyport);
 
 System.setProperty (https.proxyHost,secureproxy);
 System.setProperty (https.proxyPort,secureproxyport);
 
 System.setProperty (http.proxyUserName,username);
 System.setProperty (http.proxyPassword,password);
 
 super.init(config);
   }
 }
 
 (I've typed this from memory so it may not work if you just cut and
 paste). Then you'll need to make sure your web.xml file points to your
 new class.
 
 Cheers,
 Alex
 
 -Original Message-
 From: Mike Dewhirst [mailto:[EMAIL PROTECTED]] 
 Sent: 23 April 2002 09:08
 To: 'Struts Users Mailing List'
 Subject: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE)
 Importance: High
 
 Has anybody ever had this before? I am running struts on freebsd 4.4
 (custom), jdk1.4 (linux), tomcat 4.0.3 (1.4 LE), and struts 1.0.2
 (stable).
 
 Does anybody have any idea what could be causing this and how could I
 fix
 it?
 
 if i do a manual fetch of
 http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd - the file
 is
 downloaded no problem.
 
 register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
 'jar:file:/usr/local/tomcat4.0.3/webapps/callsystem/WEB-INF/li
 b/struts.j
 ar!/
 org/apache/struts/resources/web-app_2_3.dtd'
 resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
 1.1//EN', 
 'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd')
  Not registered, use system identifier
 Parse Fatal Error at line 5 column -1: External entity not found:
 http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;.
 java.net.UnknownHostException: jakarta.apache.org
 at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
 at
 org.apache.crimson.parser.Parser2.externalParameterEntity(Pars
 er2.java:2
 870)
 at
 org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
 at
 org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
 at
 org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
 at
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:89)
 at 
 org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
 org.apache.struts.action.ActionServlet.initMapping(ActionServl
 et.java:13
 32)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.jav
 a:91
 6)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
 java:808)
 at
 org.apache.catalina.core.StandardContext.loadOnStartup(Standar
 dContext.j
 ava:
 3266

RE: Forward after check-login

2002-04-23 Thread Brett Porter

I actually extended ActionServlet and intercept each request. From there, I
can check whether we are restricting certain paths, then check the login
cookie for the necessary permissions. If they haven't logged in, I forward
to the login page with the requested URL in an attribute.

This might not be the best approach. Can anyone suggest a better way while
still having it in the controller? Extending ActionServlet poses problems
for later if we start using Tiles with definitions when struts 1.1 is
released. Is there a way to plugin to the action servlet at the doPost/doGet
level as I currently do without extending it?

Whatever the case, this code should certainly reside in the controller, not
in a tag which is processed in the view because whatever the action is
doing, it has already processed it before checking auth.

- Brett

-Original Message-
From: Andy Timm [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 April 2002 2:13 AM
To: [EMAIL PROTECTED]
Subject: Forward after check-login


I have some pages which require a user to be logged in
and some which do not.  If the check-login tag
determines that there is no user logged in, the user
is forwarded to the login page.  I'd like to remember
where the user came from and forward them there after
a successful authentication.  I'm sure there are
multiple ways of doing this and I would like some
advice.  Thanks, Andrew Timm

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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



RE: struts and wls5.1sp9 problem

2002-04-17 Thread Brett Porter

I'd seriously recommend using sp11 - sp9 has some serious JSP issues that
might be the cause of this.

-Original Message-
From: Rakesh N R [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 17 April 2002 4:55 PM
To: [EMAIL PROTECTED]
Subject: struts and wls5.1sp9 problem 


Hi,

 I am using WLServer 5.1 sp9. While running the Struts sample example I
had got an exception

javax.servlet.ServletException: runtime failure in custom tag 'html'

While searching the net i found out that the site had suggested a
workaround
by setting CLASSPATH to WEB-INF/classes in startWeblogic.cmd (I am using

exploded format of war file). I did the same and still the problem of
ApplicationResource.properties not found persists. I also used the patch
for service pack 8 but it doesnt work with sp9. I would request you to
suggest a way to solve the problem. Thanks in Advance.

Rakesh






RE: (Urgent) Please help - validating checkboxes

2002-04-15 Thread Brett Porter

e.checked = !e.checked to toggle existing, or
e.checked = selectAllCB.checked

-Original Message-
From: days [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 April 2002 3:34 PM
To: Struts Users Mailing List
Subject: (Urgent) Please help - validating checkboxes


Thanks Joe, it works great, but upon unchecking the checkbox, it doesn't
uncheck the rest of the checkboxes. Do you have any solutions(anyone out
there has any solution to offer too)?

regards
--

On Tue, 16 Apr 2002 13:32:16  
 Joe Latty wrote:
This Javascript works in IE and NN 6.02

function CheckAll(form){
  for (var i=0;iform.elements.length;i++){
   var e = form.elements[i];
   if ((e.name == 'announcementID')  (e.type=='checkbox')) {
e.checked = true;
   }
  }
}//end of function

-Original Message-
From: days [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 April 2002 12:49 PM
To: Struts Users Mailing List
Subject: (Urgent) Please help - validating checkboxes

Hi I've got a Select All checkbox in my jsp that dynamically checks all
the checkboxes upon clicking on it. However I've got major problem trying
to
retrieve the value for my checkboxes. Not only do I get a Syntax error
alert box, the checkboxes also doesn't get checked when I click on the
Select All checkbox. Obviously, the javascript is not working and I have
zero idea why.

It appears as follows:

/***MY JAVASCRIPT**/
SCRIPT language=javascript
function CheckAll(){
 var len;
 len=document.announcementForm
 [0].announcementID.length;

 if(len==null){
   document.announcementForm[0].announcementID.checked
   = document.announcementForm[0].chkall.checked;
 }
 else{
  for (var i=0;ilen;i++){
document.announcementForm[0].announcementID
[i].checked = true;
  }
 }
}//end of function
/SCRIPT
/*MY CODES*/
html:form action=/deleteNews.do name=deleteNewsForm
type=portlio.news.form.deleteNewsForm

input type=checkBox name=chkall value=ON
Select All

logic:iterate id=news name=admin property=newss scope=session
html:checkbox property=id
value=%=((portlio.news.entity.News)news).getNewsId()%/

/html:form
/**END/

PS:I've been working on it since yesterday but to no avail. Please
help...thanks a lot :)

regards


See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_02020
1
/splash.asp

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


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




See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201
/splash.asp 

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



RE: Struts vs EJB, thoughts?

2002-04-14 Thread Brett Porter

I prefer apples to oranges because they don't take their name from their
colour.

FYI, we use Struts with EJBs. EJBs are the M of MVC, Struts is the VC. There
is little to no overlap. If you don't need the container support provided
for EJBs (remote invocation, pooling, transactions, etc), then you use plain
JBs as the M and struts as the VC.

(That may be simplifying it somewhat, but you get my drift).

Cheers,
Brett

-Original Message-
From: Kousek, Theron [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 13 April 2002 10:03 AM
To: 'Struts Users Mailing List'
Subject: Struts vs EJB, thoughts?


Not that I am looking for a job (I am not), I have been working with struts
for the last 4 months and don't mind it.  I see it as a poor mans EJB.  I
have no EJB experience but I don't think transitioning over to EJB after
working with struts as a big deal.  After all, they both act on server-side
beans.  Yeah, EJB has entity beans and session beans but you can easily
simulate both of those types of beans using JSP/Struts/tomcat.  Since
there's a gazillion people on the planet now that know how to program in
Java, getting an EJB position will be next to impossible (I guess) if you
don't have EJB experience.  Companies now have so many available Java
programmers to pick and choose from and are in a position to require salary
cuts for existing Java programmers on staff due to the plethoria of Java
developers available to work who would be willing to work for less$Being
a Java programmer is no longer an elite skill.   Now it's as common as
coding in Cobol once was  :-(   I have already read about the salaries of
Java programmers declining and I expect the trend to continue due to the bad
economy and the oversupply of qualified Java programmers in the market
place.  This is why so many companies can now demand specific product
experience with Java (ie, if you don't have 1 year of Bea Weblogic
experience, see you later!!  Next person please...)...

SO back to the Struts vs EJB issue:
If one is comfortable with struts, how much more difficult would EJB be to
get comfortable with?  

Also, seems like Struts is more useful for smaller companies and EJB is
more suitable for large corporations.  Is this pretty much a valid
statement?

thanks...

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



Struts 1.1b1, JDK1.4 and commons-logging

2002-04-01 Thread Brett Porter

Hi,

I've encountered problems with Struts1.1b1 and the logging module - getting
a NPE in ActionServlet.init() in Jdk14Logger.
I've more investigation to do, but nothing in the mail archives or bugzilla.
It only occurs with my webapp, the examples are fine. Checking the config
doesn't seem to have anything unusual. I'll need to obtain the source next
which'll take a while to download from home.

Has anyone else encountered this and have a shortcut solution?

Cheers,
Brett

~*~*~*~*~*~*~
Brett Porter - Web Developer
f2 Network ~ everything essential
Ph: +61 2 8596 4437
Email: [EMAIL PROTECTED]



RE: %@ include File = %= includefile% % is there a way doto this

2001-11-29 Thread Brett Porter

%@taglib uri='/WEB-INF/tlds/struts-bean.tld' prefix='bean' %
%@taglib uri='/WEB-INF/tlds/struts-logic.tld' prefix='logic' %

logic:present name='source'
bean:define name='mysourcebean' id='source' scope='session'
toScope='page' type='SourceBean' /
bean:include id='content' page='%= mysourcebean.getSource() %' /
%= content %
/logic:present
logic:notPresent name='source'
%@include file=/welcome.jsp %
/logic:notPresent

The logic:present parameters might not be right - its first up in the
morning :) You get the drift though.

To do it the way you were doing it, you could also have used jsp:include
flush='true' page='%= mysourcebean.getSource() %' / but I like the struts
way better :)

Cheers,
Brett

-Original Message-
From: Mohammed [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 29 November 2001 10:49 PM
To: Struts Users Mailing List
Subject: %@ include File = %= includefile%  % is there a way doto
this 


Hello evreybody,

in an action class SourceAction I am setting a variable in the session

SourceBean sourcebean = new SourceBean();
sourcebean.setSource(  myform.getcommand());
session.setAttribute(source, sourcebean);

in the jsp file I want to do the following

%
SourceBean mysourcebean = (SourceBean)session.getAttribute(source);

if(mysourcebean!=null) {
String includefile= mysourcebean.getSource();
%

%@ include File =  %= includefile%  %// this is not working -
ERROR:   file %= includefile% not found

%}

else {%
%@ include File =  welcome.jsp  %

%}%


Thanks for any help


Mohammed









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



RE: Getting line number in stacktrace

2001-11-29 Thread Brett Porter

compile with -g

If you use ant, set debug=on in the javac task. Also, don't compile with
-O (set optimize=off).

- Brett

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, 30 November 2001 1:08 PM
To: Struts Users Mailing List
Subject: Getting line number in stacktrace


Hi

I want to get a little more info when exceptions are thrown in my servlets.
Here is an example of the output I am getting at the moment,
TopAction.performAction() exception occured executing prepared statement.
java.sql.SQLException: ERROR:  parser: parse error at or near 

 at org.postgresql.Connection.ExecSQL(Connection.java:533)
 at org.postgresql.jdbc2.Statement.execute(Statement.java:294)
 at org.postgresql.jdbc2.Statement.executeUpdate(Statement.java:78)
 at 
org.postgresql.jdbc2.PreparedStatement.executeUpdate(PreparedStatemen
t.java:122)
 at jp.co.claire.ereal.TopAction.addMessageToDataBase(Unknown 
Source)
 at jp.co.claire.ereal.TopAction.perform(Unknown Source)
 at 
org.apache.struts.action.ActionServlet.processActionPerform(ActionSer
vlet.java:1786)
 at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:158
5)


I want to get the line number that the exception occured in 
addMessageToDataBase() instead of getting the message Unknown Source. 
  How can I get the
line number printed there like the rest of the stacktrace.

Regards

Antony





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



RE: Hidden Field in a form. Do I use struts taglib or vanilla ht ml?

2001-11-28 Thread Brett Porter

That's an interesting design decision. I have always had a form bean and
then another bean containing the actual data. The action copies it across,
processes it, and stores it.

The reason I'd do it that way is that I imagine the message is a business
class, and you don't really want you model polluted by extending an
ActionForm. Maybe I've been living in OOAD land too long though ;)

This can trip you up though - at least once I have added the form element,
added it to the bean, added it to the form bean, and forgetten to do the
setter in the action :) The way around that is probably a function in the
form bean that says fill my business class and fill from a business
class. Actually, I might put that in my todo list :D

Cheers,
Brett

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 29 November 2001 12:48 PM
To: Struts Users Mailing List
Subject: Re: Hidden Field in a form. Do I use struts taglib or vanilla
ht ml?


The data I am storing in the bean is logically different from what the 
hidden field value is,  I have a message

message
{
   string  Recipent
   string  From
   string  MessageBode
}

And the hidden field is   action=sendMessage and I didn't think that

message
{
   string  Action
   string  Recipent
   string  From
   string  MessageBode
}

would be the correct thing to do, but I am open to suggestions.  If it 
works out easier to put this extra field in my message formbean then I 
will do it.  What do you think?

Cheers

Tony



Brett Porter wrote:

 The question I ask is why you wouldn't put it in your form bean?
 
 I prefer form.getAction() over httpServletRequest.getParameter( action )
 any day! :)
 
 -Original Message-
 From: Yee Keat [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 29 November 2001 12:36 PM
 To: Struts Users Mailing List
 Subject: Re: Hidden Field in a form. Do I use struts taglib or vanilla
 html?
 
 
 Yup, using the taglib makes it compulsory to have that field in your
 FormBean
 
 On Thursday 29 November 2001 09:25 am, you wrote:
 
Hi

I want to include a hidden field in a form which I have.  I do not want
this information to be included in the formbean which is defined for
this page.  How can I do this?  Should I just use plain html

INPUT TYPE=hidden NAME=action VALUE=send

without using the html taglib supplied with struts?

Cheers

Tony

 




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



RE: What does CRUD mean?

2001-11-27 Thread Brett Porter

did I see remove AND delete? oh dear... :)

-Original Message-
From: Brett Porter 
Sent: Tuesday, 27 November 2001 1:53 PM
To: 'Struts Users Mailing List'
Subject: RE: What does CRUD mean?


create, remove, update, delete. Database terminology, usually.

-Original Message-
From: Francisco Hernandez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 27 November 2001 1:52 PM
To: [EMAIL PROTECTED]
Subject: What does CRUD mean?


Ive seen people use the word (or acronym) CRUD, what does this mean?



RE: Struts Error Page Approach - Recommended / Struts Support

2001-11-27 Thread Brett Porter

a combination of 2 and 4 works well. ie, put together ActionErrors, forward
to the page where they are displayed with html:errors/

Of course, you don't have to use ActionErrors - and list will do, but why
not? :)

- Brett

-Original Message-
From: Greg Callaghan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 28 November 2001 1:41 PM
To: [EMAIL PROTECTED]
Subject: Struts Error Page Approach - Recommended / Struts Support


Hi,

Wondering what the typical struts approach is to handling and passing back 
errors to the user is.   I'm not talking about ActionForm validation, but 
rather the situation where an Action determines there is a error (ie either 
directly itself or via an exception from a business object).

What is recommended approach with struts?
- use of servlet errorpage specified in Web.xml?
  (not sure how this works yet, still have to find good doco)
- use of struts errorpage as GLOBAL FORWARD to JSP which
  assumes maybe a ERROR_MESSAGE in request scope?
- incorporate use of struts validation error infrastruture somehow?
  (eg re-use ActionErrors perhaps)?
- would creating an ActionError in the Action itself and forwarding
  back to the original JSP page be possible in the case where there
  is not normally form validation on this page.  ie leverage off
  ability to put html:errors/ in JSP just to handle presentation
  of backend errors (ie not formbean validation errors).

I'm assuming the general approach overall is to throw business logic errors 
up the chain until hitting the Action classes so one may then present an 
appropriate error message to the user (via one of the approaches above?).


cheers
Greg

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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



RE: Problem with Iterating-No getter method for property....... Any Ideas?

2001-11-26 Thread Brett Porter

It isn't directly related, but:
 public void Messages()
 {

should be 
 public Messages()
 {

I seem to remember something about beans needing to have a public default
construtor to work. If this helps, you may also need public Message() {} in
your other class.

Good luck,
Brett

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 27 November 2001 2:24 PM
To: Struts Users Mailing List
Subject: Re: Problem with Iterating-No getter method for property...
Any Ideas?


I am still getting the same error.  When I create the bean, I am using

Messages message = new Messages();
session.setAttribute(Messages, messages);

and in the jsp code I now have

logic:iterate id=messagestag name=Messages property=messages 
scope=session

Can you see what I am doing wrong?

Thanks for all the help.

Cheers

Tony




RE: All the jar files cann't be read

2001-11-22 Thread Brett Porter

Hi Lily,

I'm not sure which version of Tomcat you are using, but you need to read up
a bit on webapps, because it seems that the JSP's are not being handled by
Tomcat (perhaps Apache) or for some reason are being served as static files.
Tomcat 4 has some good documentation on how to set up a web application:
(should apply to 3 too). Sorry, can't send the link - jakarta.apache.org is
down :(

As for struts.jar, there is a doc on the struts site - probably in the FAQ
or kickstart FAQ, about where struts.jar can and can't be. I think it pretty
much says must be in web application's classpath - and nothing else. So
you can't put it in the CLASSPATH variable, jre/ext/lib, or tomcat's common
lib directory - that will make it available to Tomcat, other Java classes,
and other webapps, which will make things break.

Can I suggest you try getting the examples up and running first, then use
them as a model for your own system? That's what I found easiest.

Cheers,
Brett

-Original Message-
From: Lily Zou [mailto:[EMAIL PROTECTED]]
Sent: Friday, 23 November 2001 2:31 AM
To: Struts Users Mailing List
Subject: RE: All the jar files cann't be read


 I put the struts.jar file in that folder and put it into my classpath.
Maybe that is the reason why it shows that path. May I ask where I could
config this ?

 By the way, I still got blank page but if I click view source, I can see
all the jsp code is there, which means that all the taglib or related lib
files could not be found or linked.  I think I put all the lib files in
right place. May I ask where I could config this path other than at the top
of each JSP page ?

 Tons of thanks.

 Lily

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 6:04 PM
To: 'Struts Users Mailing List'
Subject: RE: All the jar files cann't be read


That's a normal message in startup. However, the directory looks a bit
suspect - there should be a WEB-INF/lib somewhere in there. eg here is mine:
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/home/bporter/cvs/shopping/product-db/tomcat/webapps/shopping/WEB-
INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'

for me, CATALINA_BASE = /home/bporter/cvs/shopping/product-db/tomcat

-Original Message-
From: Lily Zou [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 22 November 2001 9:24 AM
To: Struts Users Mailing List
Subject: RE: All the jar files cann't be read


  Thank you very much, Brett. The jar file did corrupted even though I just
copied from somewhere else. This time I got:  


   register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 
 
'jar:file:/C:/opt/redknee/product/s2100/1_0_1/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'

New org.apache.struts.action.ActionMapping


   May I ask why I got this ?

   
Lily


-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 5:09 PM
To: 'Struts Users Mailing List'
Subject: RE: All the jar files cann't be read


My guess is that it got corrupted in the download, or perhaps because you
have two paths in the webapp name (s2100\si) - I've never seen that before,
not sure if it should work.

Can you unjar the struts.jar file manually into a temp dir to check it is
not corrupt?

- Brett

-Original Message-
From: Lily Zou [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 22 November 2001 9:06 AM
To: 'Struts Users Mailing List'
Subject: All the jar files cann't be read


I put struts.jar and commons-*.jar file under WEB-INF\lib folder.
However every time I started tomcat, I got following error msg ( every time
it complains different jar file name ) and the page is just blank.   Could
anybody tell me what is the most likely reseason for this ? I am the first
person in my company to try struts so I have no help around. Looking forward
to any advice.  

cannot load servlet name: jsp:
C:\opt\redknee\product\s2100\1_0_1\webapps\s2100\si\WEB-INF\lib\struts.jar
is not a directory or zip/jar file or if it's a zip/ja
r file then it is corrupted.

register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN',
'jar:file:/C:/opt/redknee/product/s2100/1_0_1/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'

resolveEntity('-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Resolving to alternate DTD
'jar:file:/C:/opt/redknee/product/s2100/1_0_1/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'

 New org.apache.struts.action.ActionMapping

 Set org.apache.struts.action.ActionMapping properties

Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addFormBean, type=org.apache.struts.actions.AddFormBeanAction])

Pop org.apache.struts.action.ActionMapping

RE: All the jar files cann't be read

2001-11-21 Thread Brett Porter

My guess is that it got corrupted in the download, or perhaps because you
have two paths in the webapp name (s2100\si) - I've never seen that before,
not sure if it should work.

Can you unjar the struts.jar file manually into a temp dir to check it is
not corrupt?

- Brett

-Original Message-
From: Lily Zou [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 22 November 2001 9:06 AM
To: 'Struts Users Mailing List'
Subject: All the jar files cann't be read


I put struts.jar and commons-*.jar file under WEB-INF\lib folder.
However every time I started tomcat, I got following error msg ( every time
it complains different jar file name ) and the page is just blank.   Could
anybody tell me what is the most likely reseason for this ? I am the first
person in my company to try struts so I have no help around. Looking forward
to any advice.  

cannot load servlet name: jsp:
C:\opt\redknee\product\s2100\1_0_1\webapps\s2100\si\WEB-INF\lib\struts.jar
is not a directory or zip/jar file or if it's a zip/ja
r file then it is corrupted.

register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN',
'jar:file:/C:/opt/redknee/product/s2100/1_0_1/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'

resolveEntity('-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Resolving to alternate DTD
'jar:file:/C:/opt/redknee/product/s2100/1_0_1/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'

 New org.apache.struts.action.ActionMapping

 Set org.apache.struts.action.ActionMapping properties

Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addFormBean, type=org.apache.struts.actions.AddFormBeanAction])

Pop org.apache.struts.action.ActionMapping


   
Lily 




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



RE: All the jar files cann't be read

2001-11-21 Thread Brett Porter

That's a normal message in startup. However, the directory looks a bit
suspect - there should be a WEB-INF/lib somewhere in there. eg here is mine:
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/home/bporter/cvs/shopping/product-db/tomcat/webapps/shopping/WEB-
INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'

for me, CATALINA_BASE = /home/bporter/cvs/shopping/product-db/tomcat

-Original Message-
From: Lily Zou [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 22 November 2001 9:24 AM
To: Struts Users Mailing List
Subject: RE: All the jar files cann't be read


  Thank you very much, Brett. The jar file did corrupted even though I just
copied from somewhere else. This time I got:  


   register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 
 
'jar:file:/C:/opt/redknee/product/s2100/1_0_1/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'

New org.apache.struts.action.ActionMapping


   May I ask why I got this ?

   
Lily


-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 5:09 PM
To: 'Struts Users Mailing List'
Subject: RE: All the jar files cann't be read


My guess is that it got corrupted in the download, or perhaps because you
have two paths in the webapp name (s2100\si) - I've never seen that before,
not sure if it should work.

Can you unjar the struts.jar file manually into a temp dir to check it is
not corrupt?

- Brett

-Original Message-
From: Lily Zou [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 22 November 2001 9:06 AM
To: 'Struts Users Mailing List'
Subject: All the jar files cann't be read


I put struts.jar and commons-*.jar file under WEB-INF\lib folder.
However every time I started tomcat, I got following error msg ( every time
it complains different jar file name ) and the page is just blank.   Could
anybody tell me what is the most likely reseason for this ? I am the first
person in my company to try struts so I have no help around. Looking forward
to any advice.  

cannot load servlet name: jsp:
C:\opt\redknee\product\s2100\1_0_1\webapps\s2100\si\WEB-INF\lib\struts.jar
is not a directory or zip/jar file or if it's a zip/ja
r file then it is corrupted.

register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN',
'jar:file:/C:/opt/redknee/product/s2100/1_0_1/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'

resolveEntity('-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Resolving to alternate DTD
'jar:file:/C:/opt/redknee/product/s2100/1_0_1/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'

 New org.apache.struts.action.ActionMapping

 Set org.apache.struts.action.ActionMapping properties

Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/admin/
addFormBean, type=org.apache.struts.actions.AddFormBeanAction])

Pop org.apache.struts.action.ActionMapping


   
Lily 




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

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



RE: What is the good Weblogic version to use with Struts?

2001-11-12 Thread Brett Ramdeen

You need to ftp the archive in binary format.


-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 08, 2001 3:10 PM
To: struts-user@jakarta. apache. org (E-mail)
Subject: What is the good Weblogic version to use with Struts?


Hi,

I will REALLY appreciate any help I could get porting my 
application to Weblogic. Before porting my application I 
wanted to first try porting struts Example application 
successfully. I am running against time to get the 
application into production environment. SO.. PLEASE 
HELP. Could 6.0 version be a problem?

-Nimmi

Here's what I did:

I have version 6.0 of Weblogic app server and got its sample 
applications running fine.
But struts-example application is giving errors. I copied 
'struts-example.war' into 
wlserver6.0/config/sqcadm/applications directory and started 
the weblogic server. I am not sure if there is any other step 
that I had to follow. 'sqcadm' is my domain.

I did see this message during ftp of 'struts-example.war' 
from my NT machine to remoteweblogic server:

ftp put struts-example.war
200 PORT command successful.
150 Opening ASCII mode data connection for struts-example.war.
226-WARNING! 1666 bare linefeeds received in ASCII mode
   File may not have transferred correctly.
226 Transfer complete.
434601 bytes sent in 0.51 seconds (850.49 Kbytes/sec)

Is this a regular warning. 

Here's the error from the weblogic.log file:

Nov 8, 2001 1:43:58 PM CST Error Management otis 
sqcsrv main sy
stem  141004 IOException opening application 
sqcadm:Name=struts-example,Ty
pe=Application, loading from path 
./config/sqcadm/applications/struts-example.wa
r
java.util.zip.ZipException: invalid END header (bad central 
directory offset)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(Unknown Source)
at java.util.jar.JarFile.init(Unknown Source)
at java.util.jar.JarFile.init(Unknown Source)
at 
weblogic.utils.jars.VirtualJarFile.init(VirtualJarFile.java, Compil
ed Code)
at 
weblogic.management.mbeans.custom.Application.adminLoad(Application.j
ava, Compiled Code)
at 
weblogic.management.mbeans.custom.Application.load(Application.java,
Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java, Compiled Code)
at 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java, Compiled Code)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java, Compiled Code)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java, C
ompiled Code)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java, C
ompiled Code)
at 
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java, Compi
led Code)
at 
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java, Compi
led Code)
at $Proxy11.load(Unknown Source)
at 
weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java, Compiled Code)
at 
weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java, Compiled Code)
at 
weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java, Compiled Code)
at 
weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java, Compiled Code)
at 
weblogic.management.mbeans.custom.ApplicationManager.update(Applicati
onManager.java, Compiled Code)
at 
weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java, Compiled Code)
at 
weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java, Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java, Compiled Code)
at 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java, Compiled Code)
at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java, Compiled Code)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java, C
ompiled Code)
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java, C
ompiled Code)
at 
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java, Compi
led Code)
at 
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java, Compi
led Code)
at $Proxy3.start(Unknown Source)
at 
weblogic.management.Admin.configureFromJavaProperties(Admin.java, Com
piled Code)
at 
weblogic.management.Admin.configureFromJavaProperties(Admin.java, Com
piled Code)
at 

RE: Problem with Struts and Weblogic 6.1 SP1

2001-11-01 Thread Brett Ramdeen

No you do not need struts.jar in the classpath for WLS 5.1, 6.0 or 6.1.
Struts.jar should only be in the WEB-INF/lib directory of your web app.

-Original Message-
From: Darryl Pentz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 5:51 AM
To: Struts Users Mailing List
Subject: RE: Problem with Struts and Weblogic 6.1 SP1


I last worked with Weblogic at v5.2 so bear that in mind with 
my comments.

WL has 2 classpaths... one for itself, the application 
server, and one for
the applications it runs. My guess is that you DO need to 
include struts.jar
in the classpath for WL since the servlet is installed before 
WL looks at
the WAR file.

thanks,
Darryl

 -Original Message-
 From: Jeff Mikres [mailto:[EMAIL PROTECTED]]
 Sent: 01 November 2001 08:01
 To: [EMAIL PROTECTED]
 Subject: Problem with Struts and Weblogic 6.1 SP1


 I'm having problems running a sample application that a 
basic JSP with
 struts tags that causes a POST to the actionservlet, using 
an ActionForm
 subclass and an Action subclass.  What I'm getting is a
 NoClassDefFoundError
 saying basically that it can't find 
org.apache.Struts.action.ActionForm
 class.  I have read all the posts that you must have the 
struts.jar in the
 WEB-INF/lib directory in your .WAR file, so this is not the 
problem.  In
 addition, I do not have the struts.jar in the weblogic 
classpath.  When my
 app is loaded when I start weblogic server I can see that 
ActionServlet is
 initialized so it must know where the struts.jar file is
 (WEB-INF/lib).  Any
 help with this would be greatly appreciated.  I've got Struts 1.0
 installed,
 running on Win2k with WebLogic SP1.

 Regards,

 J Mikres


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




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




RE: Problem with Struts and Weblogic 6.1 SP1

2001-11-01 Thread Brett Ramdeen

If you have struts.jar in your WEB-INF/lib dir you should be ok.  It should
definitely not be in your system classpath.

It sounds like you have it set up ok.  Can you send me your
startWeblogic.cmd and the war file you are testing?

Brett

-Original Message-
From: Jeff Mikres [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 1:01 AM
To: [EMAIL PROTECTED]
Subject: Problem with Struts and Weblogic 6.1 SP1


I'm having problems running a sample application that a basic JSP with
struts tags that causes a POST to the actionservlet, using an 
ActionForm
subclass and an Action subclass.  What I'm getting is a 
NoClassDefFoundError
saying basically that it can't find 
org.apache.Struts.action.ActionForm
class.  I have read all the posts that you must have the 
struts.jar in the
WEB-INF/lib directory in your .WAR file, so this is not the 
problem.  In
addition, I do not have the struts.jar in the weblogic 
classpath.  When my
app is loaded when I start weblogic server I can see that 
ActionServlet is
initialized so it must know where the struts.jar file is 
(WEB-INF/lib).  Any
help with this would be greatly appreciated.  I've got Struts 
1.0 installed,
running on Win2k with WebLogic SP1.

Regards,

J Mikres


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



RE: ~~ Confusion with triggering an Action ~~

2001-10-22 Thread Brett Porter



/processTrivia.do is in fact "root-slash-processTrivia" - but in relation 
to your current context. If your webapp is named sports, then it will have to be 
/sports/processTrivia.do

How 
you get around this depends on your servlet container. In Tomcat 4, you could 
make sports the default webapp, so /processTrivia.do would go to the sports 
webapp. Other containers probably have a similar method. However, I don't 
recommend any of these, especially if you have multiple web 
applications.

Cheers,
Brett

  -Original Message-From: Jonathan Asbell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 11:38 
  AMTo: [EMAIL PROTECTED]Subject: ~~ 
  Confusion with triggering an Action ~~Importance: 
  High
  in my jsp page http://localhost/sports/trivia.jspI 
  have a Struts form html:form action="/processTrivia.do"
  
  Considering this, the following is 
  true:
  1) the directory I am currently in is 
  "/sports"
  2) the request I am submitting to is 
  "/processTrivia.do"
  
  When I create my mapping inside struts-config.xml 
  action path="/processTrivia"  the action is not triggered when 
  the form submits. This is because for some reason I have to match to the 
  path "/sports/processTrivia". This does not make sense to me, because I 
  am actually submitting to "/processTrivia" inside my form, and not 
  "/sports/processTrivia" even though I am actually in the "/sports" 
  directory. When I submit a form to "/processTrivia.do", I expect that it 
  will actually submit to "root-slash-processTrivia". Can someone clarify 
  this. I have mentioned this before and noone seemed to respond. In 
  addition, my collegues also feel this is misleading. The result is that 
  I have to make mapping entries for this action in each level of the directory 
  where I want this service.


RE: ~~ Confusion with triggering an Action ~~

2001-10-22 Thread Brett Porter



I'm 
talking about webapps from the perspective of the servlet specification. I don't 
think it's the same thing. (Think WAR files, WEB-INF 
subdirectories)
Some 
servlet containers don't support/require this structure so you may not be using 
them (eg older WebLogic).

What 
container/servlet spec.are you using?

Cheers,
Brett

  -Original Message-From: Jonathan Asbell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 11:53 
  AMTo: [EMAIL PROTECTED]Subject: Re: ~~ 
  Confusion with triggering an Action ~~
  My default web application is not "/sports", but 
  rather just "localhost". If the site was live the web app would be "http://www.mysite.com", and I would be in the 
  "/sports" directory. What can I do to get the behavior I am 
  expecting?
  
- Original Message - 
From: 
Brett Porter 
To: '[EMAIL PROTECTED]' 

Sent: Monday, October 22, 2001 9:42 
PM
Subject: RE: ~~ Confusion with 
triggering an Action ~~

/processTrivia.do is in fact "root-slash-processTrivia" - but in 
relation to your current context. If your webapp is named sports, then it 
will have to be /sports/processTrivia.do

How you get around this depends on your servlet container. In Tomcat 
4, you could make sports the default webapp, so /processTrivia.do would go 
to the sports webapp. Other containers probably have a similar method. 
However, I don't recommend any of these, especially if you have multiple web 
applications.

Cheers,
Brett

  -Original Message-From: Jonathan Asbell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 11:38 
  AMTo: [EMAIL PROTECTED]Subject: ~~ 
  Confusion with triggering an Action ~~Importance: 
  High
  in my jsp page http://localhost/sports/trivia.jspI 
  have a Struts form html:form 
  action="/processTrivia.do"
  
  Considering this, the following is 
  true:
  1) the directory I am currently in is 
  "/sports"
  2) the request I am submitting to is 
  "/processTrivia.do"
  
  When I create my mapping inside 
  struts-config.xml action path="/processTrivia"  the action 
  is not triggered when the form submits. This is because for some 
  reason I have to match to the path "/sports/processTrivia". This 
  does not make sense to me, because I am actually submitting to 
  "/processTrivia" inside my form, and not "/sports/processTrivia" even 
  though I am actually in the "/sports" directory. When I submit a 
  form to "/processTrivia.do", I expect that it will actually submit to 
  "root-slash-processTrivia". Can someone clarify this. I have 
  mentioned this before and noone seemed to respond. In addition, my 
  collegues also feel this is misleading. The result is that I have to 
  make mapping entries for this action in each level of the directory where 
  I want this 
service.


RE: ~~ Confusion with triggering an Action ~~

2001-10-22 Thread Brett Porter



If you 
got more sp10 to work, more power to you. It leaks about 1gb of RAM an hour for 
me :)

Have 
you got something like this?

weblogic.httpd.webApp.strutsexample=c:/jakarta-struts/webapps/struts-example.war 



Or are 
you just using a servletclasses/ type set up?

If you 
are using the first, my first instructions still hold. If you are doing a lot of 
servlet configurations in weblogic.properties, then I'm not sure because that 
will completely change the way it works. I haven't used struts with that older 
method before.

Cheers,
Brett

  -Original Message-From: Jonathan Asbell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 12:17 
  PMTo: [EMAIL PROTECTED]Subject: Re: ~~ 
  Confusion with triggering an Action ~~
  currently weblogic 5.1 sp 10, with the default 
  webapp set as I mentioned
  
- Original Message - 
From: 
Brett Porter 
To: '[EMAIL PROTECTED]' 

Sent: Monday, October 22, 2001 9:58 
PM
Subject: RE: ~~ Confusion with 
triggering an Action ~~

I'm talking about webapps from the perspective of the servlet 
specification. I don't think it's the same thing. (Think WAR files, WEB-INF 
subdirectories)
Some servlet containers don't support/require this structure so you 
may not be using them (eg older WebLogic).

What container/servlet spec.are you using?

Cheers,
Brett

  -Original Message-From: Jonathan Asbell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 11:53 
  AMTo: [EMAIL PROTECTED]Subject: Re: ~~ 
  Confusion with triggering an Action ~~
  My default web application is not "/sports", 
  but rather just "localhost". If the site was live the web app would 
  be "http://www.mysite.com", and I 
  would be in the "/sports" directory. What can I do to get the 
  behavior I am expecting?
  
- Original Message - 
From: 
Brett Porter 
To: '[EMAIL PROTECTED]' 

Sent: Monday, October 22, 2001 9:42 
PM
Subject: RE: ~~ Confusion with 
triggering an Action ~~

/processTrivia.do is in fact "root-slash-processTrivia" - but in 
relation to your current context. If your webapp is named sports, then 
it will have to be /sports/processTrivia.do

How you get around this depends on your servlet container. In 
Tomcat 4, you could make sports the default webapp, so /processTrivia.do 
would go to the sports webapp. Other containers probably have a similar 
method. However, I don't recommend any of these, especially if you have 
multiple web applications.

Cheers,
Brett

  -Original Message-From: Jonathan Asbell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 
  11:38 AMTo: 
  [EMAIL PROTECTED]Subject: ~~ Confusion with 
  triggering an Action ~~Importance: 
High
  in my jsp page http://localhost/sports/trivia.jspI 
  have a Struts form html:form 
  action="/processTrivia.do"
  
  Considering this, the following is 
  true:
  1) the directory I am currently in is 
  "/sports"
  2) the request I am submitting to is 
  "/processTrivia.do"
  
  When I create my mapping inside 
  struts-config.xml action path="/processTrivia"  the 
  action is not triggered when the form submits. This is because 
  for some reason I have to match to the path 
  "/sports/processTrivia". This does not make sense to me, because 
  I am actually submitting to "/processTrivia" inside my form, and not 
  "/sports/processTrivia" even though I am actually in the "/sports" 
  directory. When I submit a form to "/processTrivia.do", I expect 
  that it will actually submit to "root-slash-processTrivia". Can 
  someone clarify this. I have mentioned this before and noone 
  seemed to respond. In addition, my collegues also feel this is 
  misleading. The result is that I have to make mapping entries 
  for this action in each level of the directory where I want this 
  service.


RE: ~~ Confusion with triggering an Action ~~

2001-10-22 Thread Brett Porter



SoD:/myapp/WEB-INF/web.xml contains the action servlet 
configuration. In that case /processTrivia.do should be the same as http://www.server.com/processTrivia.do, 
because defaultWebApp maps to /

I'm 
not sure about this one - perhaps Struts thinks your webapp is named sports. 
Perhaps it is a weblogic problem.
I have 
never had to reference anything other than the mapped name, unless I use a 
"normal" href or form.
eg:

mapping: /logon in webapp "project"
html:form action='/logon'
but 
form action="/project/logon.do"

Sorry, 
I don't think I've been much help in the end :)

Cheers,
Brett


  -Original Message-From: Jonathan Asbell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 1:16 
  PMTo: [EMAIL PROTECTED]Subject: Re: ~~ 
  Confusion with triggering an Action ~~
  here is the ONLY setting I made in 
  weblogic.properties:
  weblogic.httpd.defaultWebApp=D:/myapp
  
  Everything else came preinstalled that 
  way
  
  
  
- Original Message - 
From: 
Brett Porter 
To: '[EMAIL PROTECTED]' 

Sent: Monday, October 22, 2001 10:25 
PM
Subject: RE: ~~ Confusion with 
triggering an Action ~~

If 
you got more sp10 to work, more power to you. It leaks about 1gb of RAM an 
hour for me :)

Have you got something like this?

weblogic.httpd.webApp.strutsexample=c:/jakarta-struts/webapps/struts-example.war 



Or 
are you just using a servletclasses/ type set up?

If 
you are using the first, my first instructions still hold. If you are doing 
a lot of servlet configurations in weblogic.properties, then I'm not sure 
because that will completely change the way it works. I haven't used struts 
with that older method before.

Cheers,
Brett

  -Original Message-From: Jonathan Asbell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 12:17 
  PMTo: [EMAIL PROTECTED]Subject: Re: ~~ 
  Confusion with triggering an Action ~~
  currently weblogic 5.1 sp 10, with the 
  default webapp set as I mentioned
  
- Original Message - 
From: 
Brett Porter 
To: '[EMAIL PROTECTED]' 

Sent: Monday, October 22, 2001 9:58 
PM
Subject: RE: ~~ Confusion with 
triggering an Action ~~

I'm talking about webapps from the perspective of the servlet 
specification. I don't think it's the same thing. (Think WAR files, 
WEB-INF subdirectories)
Some servlet containers don't support/require this structure so 
you may not be using them (eg older WebLogic).

What container/servlet spec.are you 
using?
    
Cheers,
Brett

  -Original Message-From: Jonathan Asbell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 
  11:53 AMTo: 
  [EMAIL PROTECTED]Subject: Re: ~~ Confusion 
  with triggering an Action ~~
  My default web application is not 
  "/sports", but rather just "localhost". If the site was live the 
  web app would be "http://www.mysite.com", and I would 
  be in the "/sports" directory. What can I do to get the behavior 
  I am expecting?
  
    - Original Message - 
From: 
Brett Porter 
To: '[EMAIL PROTECTED]' 

Sent: Monday, October 22, 2001 
9:42 PM
Subject: RE: ~~ Confusion with 
triggering an Action ~~

/processTrivia.do is in fact "root-slash-processTrivia" - but 
in relation to your current context. If your webapp is named sports, 
then it will have to be /sports/processTrivia.do

How you get around this depends on your servlet container. In 
Tomcat 4, you could make sports the default webapp, so 
/processTrivia.do would go to the sports webapp. Other containers 
probably have a similar method. However, I don't recommend any of 
these, especially if you have multiple web 
applications.

Cheers,
Brett

  -Original Message-From: 
  Jonathan Asbell [mailto:[EMAIL PROTECTED]]Sent: 
  Tuesday, 23 October 2001 11:38 AMTo: 
  [EMAIL PROTECTED]Subject: ~~ Confusion 
  with triggering an Action ~~Importance: 
  High
  in my jsp page http://localhost/sports/trivia.jspI 
  have a Struts form html:form 
  action="/processTrivia.do"
  
  Considering this, the following is 
  true:
  1) the directory 

RE: tomcat 4.0 and struts problem

2001-10-04 Thread Brett Porter
Title: RE: tomcat 4.0 and struts problem





Hi,


There was a similar problem discussed last week. My solution at the time was similar, and a bit dodgy :)
I've just read the Tomcat 4 Class Loader HOWTO today and that explains the problems - as you've said its all to do with XML parsers.

I think the suggestion from them is to move crimson and jaxp to $CATALINE_HOME/common/lib from jasper/lib, and not to put anything in your WEB-INF/lib directory. If you need Xerces 1.3+ instead, remove crimson  jaxp from jasper/lib and put Xerces in common/lib (not WEB-INF/lib).

I'm about to see if it fixes my struts mapping problems, and repost if not.


Cheers,
Brett


-Original Message-
From: Domingo Aguilera [mailto:[EMAIL PROTECTED]]
Sent: Friday, 5 October 2001 12:28 AM
To: [EMAIL PROTECTED]
Subject: RE: tomcat 4.0 and struts problem



I had the same problem.


What I did was:


1 - Download Jboss ( www.jboss.org )


2 - In the directory lib of jboss you can find crimson.jar and jaxp.jar
files.


3 - Copy the two files to your $TOMCAT/webapps/yourapp/WEB-INF/lib


4 - Restart tomcat.





RE: Struts DB example

2001-10-04 Thread Brett Porter
Title: RE: Struts DB example





Castor has a mailing list you can subscribe to from http://www.exolab.org. The examples it comes with are quite good, and the list will be helpful in getting them configured for you.

As far as using it with Struts (as I do), I've placed a wrapper around the persistence mechanism and retrieving/updating the business objects from my action classes, then calling methods on them. This is because most of the actions are simple and there was no need to shadow business classes with a data object.

Cheers,
Brett


-Original Message-
From: Viet Kevin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 4 October 2001 7:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Struts DB example



On Thu, 4 Oct 2001 14:03:04 +0530
Amitkumar J Malhotra [EMAIL PROTECTED] wrote:


 
 
 Micheal
 please could you tell me something more about castor JDO
 
 Thanx
 Amit
 


I'm interested too in Castor JDO, it will be cool i can have real-code examples to understand the whole thing





Error: MAPPING configuration error for request URI

2001-10-04 Thread Brett Porter
Title: Error: MAPPING configuration error for request URI





Hi,


I'm getting this error out of either struts or Tomcat. I'm a bit confused - the number of them (13) at a time, matches the number of action mappings I have, so it appears to be Struts related, but grepping the source doesn't reveal it. It isn't an exception - just a message like so:

2001-10-04 17:33:11 StandardHost[localhost]: MAPPING configuration error for request URI
x13


I only noticed after introducing Xerces as the parser instead of Crimson/JAXP - this is a requirement of Castor (just using Xerces in WEB-INF/lib causes some other problems).

It isn't critical - it doesn't actually cause anything to break as far as I can see, but I'd prefer to resolve it to make sure.

I've found nothing on either web or the mailing list archives for struts or tomcat to see what this might be caused by.


Cheers,
Brett








RE: collection attribute in html:options tag

2001-10-03 Thread Brett Porter
Title: RE: collection attribute in html:options tag





Have a look at the struts examples webapps (there is a taglib one, as well as struts-example itself).


- Brett


-Original Message-
From: Fang, Frank [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 4 October 2001 8:39 AM
To: '[EMAIL PROTECTED]'
Subject: collection attribute in html:options tag



Does any one know or have some sample code on how to use collection attribute in html:options tag, I tried two ways, but It doesn't work. one of them is defining a arraylist in form bea, but I don't know how to referece it, another is putting an collection on session and in collection attribute reference it, both failed.

can you give me some helpful suggestion 
Thanks 
Frank 
-Original Message- 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 03, 2001 5:02 PM 
To: [EMAIL PROTECTED] 
Subject: Re: Tiles: using tileContent inside another tile 



David Corbin wrote: 
[snip] 
 
 --start standardList.jsp 
 tiles:insert template=standardPage.jsp 
 tiles:put name=titletiles:getAsString name=title//tiles:put 
 tiles:put name=body 
 table border=6 background="silver" 
 tiles:getAsString name=listBody/ 
 /table 
 /tiles:put 
 /tiles:insert 
 end 
 
 and 
 
 start exampleList.jsp 
 tiles:insert template=standardPage.jsp 
 tiles:put name=title value=Home Page 
 tiles:put name=listBody 
 TR 
 TDRow1/TD 
 /TR 
 TR 
 TDRow2/TD 
 /TR 
 /tiles:put 
 /tiles:insert 
 end 



Super! This is exactly the kind of nesting I need to do. Downloading Tiles as I 
 write this. Thanks for the pointers. 
 Eric 
-- 
Eric Rizzo, Software Engineer 
OpenNetwork Technologies 
http://www.opennetwork.com 
- 
I embrace my personality flaws, for without them 
I might have no personality at all. 





RE: Struts DB example

2001-10-03 Thread Brett Porter
Title: RE: Struts DB example





have a closer look.


-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 4 October 2001 9:50 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts DB example



Francisco,


That is not a database example.


Thanks though.


-Original Message-
From: Francisco Hernandez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 4:43 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Struts DB example



check out the struts example, its very simple
- Original Message -
From: Bill G [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 3:19 PM
Subject: Struts DB example



 I'm looking for a working Struts DB example that demonstrates the
following;

 Four screens - insert a record, update a record, delete a record and
select
 records
 From one table with 3 columns ID, FirstName, LastName.

 I've looked around various places and cannot find this.

 Thanks!









RE: Struts DB example

2001-10-03 Thread Brett Porter
Title: RE: Struts DB example



The 
struts example struts-config.xml file has an example of how to create a 
connection pool. However, from what I now understand that is deprecated. The 
struts-documentation webapp does have details about it though if you are 
interested.
I 
thought there was a struts taglib example that shows how to use the JDBC 
features from JSP pages, but I think I was mistaken there - it must be in the 
commons project.
That 
being the case this isn't really a struts issue - you should look at the 
jakarta-commons (it has DB connection pooling with good examples, although it 
isn't really up to a release, you'll have to check out the 
CVS).
Specific database examples will depend on which database you use, and 
which JDBC driver you use, and anything else you choose to layer on that (app 
server, connection pooling, etc.).
You 
should consult those sources and the web for more examples.

Cheers,
Brett

  -Original Message-From: Bill G 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, 4 October 2001 10:19 
  AMTo: [EMAIL PROTECTED]Subject: RE: Struts 
  DB example
  
  Bret,
  
  Sorry, I should be more specific.
  
  The sample app that 
  you and Franciscorefer to does not illustrate connecting to a real RDMS 
  nor does not illustrateconnection 
  pooling, where the connection logic goes 
  etc...
  
  That's the kind of 
  stuff I'm interested in. A sample struts app that works with a real 
  RDMS and illustratesCRUD would be 
  great.
  
  
  
-Original Message-From: Brett Porter 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 03, 
2001 4:53 PMTo: 
'[EMAIL PROTECTED]'Subject: RE: Struts DB 
example
have a closer look. 
-Original Message- From: 
Bill G [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 4 October 2001 9:50 AM To: [EMAIL PROTECTED] Subject: 
RE: Struts DB example 
Francisco, 
That is not a database example. 
Thanks though. 
-Original Message- From: 
Francisco Hernandez [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 03, 2001 4:43 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Subject: Re: Struts DB example 
check out the struts example, its very simple 
- Original Message - From: 
"Bill G" [EMAIL PROTECTED] To: 
[EMAIL PROTECTED] Sent: 
Wednesday, October 03, 2001 3:19 PM Subject: Struts 
DB example 
 I'm looking for a working Struts DB example that 
demonstrates the following;   Four screens - insert a record, 
update a record, delete a record and select 
 records  From one table 
with 3 columns ID, FirstName, LastName.  
 I've looked around various places and cannot find 
this.   
Thanks!   
  



RE: Tomcat 4.0 and Struts.

2001-10-01 Thread Brett Porter
Title: RE: Tomcat 4.0 and Struts.





I had the same problem. I removed jaxp.jar from the tomcat lib directory, as it seemed to be conflicting with Xerces. Removing Xerces from the classpath also works, but I use another library that depends on it.

Cheers,
Brett


-Original Message-
From: Domingo Aguilera [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 2 October 2001 3:52 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 4.0 and Struts.



I made a mistake when writing about the location of the xml parser...


It is Xerces 1.4.1 and is placed in $TOMCAT/webapps/myapp/WEB-INF/lib


-Mensaje original-
De: Domingo Aguilera [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 01 de Octubre de 2001 12:47 p.m.
Para: [EMAIL PROTECTED]
Asunto: Tomcat 4.0 and Struts.



Is there any issue regarding the use of Tomcat 4.0 and struts when dealing
with the digester parsing of the struts-config.xml ?


This is what´s been written to log file in tomcat 4.0


2001-10-01 11:28:58 StandardContext[/extranet]: Servlet /extranet threw
load() exception
javax.servlet.ServletException: Servlet.init() for servlet action threw
exception
 at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
 at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source)
 at org.apache.catalina.core.StandardContext.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
 at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
 at org.apache.catalina.core.StandardHost.install(Unknown Source)
 at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
 at org.apache.catalina.startup.HostConfig.start(Unknown Source)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardEngine.start(Unknown Source)
 at org.apache.catalina.core.StandardService.start(Unknown Source)
 at org.apache.catalina.core.StandardServer.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at org.apache.catalina.startup.Catalina.process(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
 at java.lang.reflect.Method.invoke(Method.java:313)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
- Root Cause -
java.lang.NullPointerException
 at org.apache.commons.digester.Digester.parse(Digester.java:859)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1273)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:460)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
 at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source)
 at org.apache.catalina.core.StandardContext.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
 at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
 at org.apache.catalina.core.StandardHost.install(Unknown Source)
 at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
 at org.apache.catalina.startup.HostConfig.start(Unknown Source)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardEngine.start(Unknown Source)
 at org.apache.catalina.core.StandardService.start(Unknown Source)
 at org.apache.catalina.core.StandardServer.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at org.apache.catalina.startup.Catalina.process(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
 at java.lang.reflect.Method.invoke(Method.java:313)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)


This is the struts-config.xml ( with some changes to not show password ,
etc.)


struts-config.xml--


?xml version=1.0 encoding=ISO-8859-1 ?


!DOCTYPE struts-config PUBLIC
 -//Apache Software Foundation//DTD Struts Configuration 1.0//EN
 http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd


struts-config



data-sources
 data-source
 set-property property

RE: Tomcat 4.0 and Struts.

2001-10-01 Thread Brett Porter
Title: RE: Tomcat 4.0 and Struts.



yep, 
sorry. $CATALINA_HOME/common/lib/jaxp.jar was the one I renamed. This may or may 
not be the best solution, but I haven't encountered any problems so far. AFAIK 
Xerces contains all the classes supplied by JAXP, but not 
vice-versa.

Cheers,
Brett

  -Original Message-From: Domingo Aguilera 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 2 October 
  2001 9:24 AMTo: [EMAIL PROTECTED]Subject: 
  RE: Tomcat 4.0 and Struts.
  There is no jaxp.jar in $TOMCAT/lib but these 
files:
  
  jasper-runtime.jar
  naming-factory.jar
  
  In 
  $TOMCAT/commons/lib are the crimson files:
  
  crimson.jar and jaxp.jar , but don't know if you are talking about 
  these files.
  
  Thanks.
  
  -Mensaje original-De: Brett Porter 
  [mailto:[EMAIL PROTECTED]]Enviado el: Lunes, 01 de Octubre 
  de 2001 07:06 p.m.Para: 
  '[EMAIL PROTECTED]'Asunto: RE: Tomcat 4.0 and 
  Struts.
  I had the same problem. I removed jaxp.jar from the tomcat lib 
  directory, as it seemed to be conflicting with Xerces. Removing Xerces from 
  the classpath also works, but I use another library that depends on 
  it.
  Cheers, Brett 
  -Original Message- From: 
  Domingo Aguilera [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, 2 October 2001 3:52 AM To: [EMAIL PROTECTED] Subject: RE: 
  Tomcat 4.0 and Struts. 
  I made a mistake when writing about the location of the xml 
  parser... 
  It is Xerces 1.4.1 and is placed in 
  $TOMCAT/webapps/myapp/WEB-INF/lib 
  -Mensaje original- De: Domingo 
  Aguilera [mailto:[EMAIL PROTECTED]] 
  Enviado el: Lunes, 01 de Octubre de 2001 12:47 p.m. 
  Para: [EMAIL PROTECTED] Asunto: Tomcat 4.0 and Struts. 
  Is there any issue regarding the use of Tomcat 4.0 and struts 
  when dealing with the "digester parsing" of the 
  struts-config.xml ? 
  This is what´s been written to log file in tomcat 4.0 
  
  2001-10-01 11:28:58 StandardContext[/extranet]: Servlet 
  /extranet threw load() exception javax.servlet.ServletException: Servlet.init() for servlet action 
  threw exception 
   at 
  org.apache.catalina.core.StandardWrapper.load(Unknown Source) 
   at 
  org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source) 
   at 
  org.apache.catalina.core.StandardContext.start(Unknown Source) 
   at 
  org.apache.catalina.core.ContainerBase.addChild(Unknown Source) 
   at 
  org.apache.catalina.core.StandardHost.addChild(Unknown Source) 
   at 
  org.apache.catalina.core.StandardHost.install(Unknown Source) 
   at 
  org.apache.catalina.startup.HostConfig.deployApps(Unknown Source) 
   at 
  org.apache.catalina.startup.HostConfig.start(Unknown Source) 
   at 
  org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source) 
   at 
  org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown 
  Source)  
  at org.apache.catalina.core.ContainerBase.start(Unknown 
  Source)  at 
  org.apache.catalina.core.ContainerBase.start(Unknown Source) 
   at 
  org.apache.catalina.core.StandardEngine.start(Unknown Source) 
   at 
  org.apache.catalina.core.StandardService.start(Unknown Source) 
   at 
  org.apache.catalina.core.StandardServer.start(Unknown Source) 
   at 
  org.apache.catalina.startup.Catalina.start(Unknown Source) 
   at 
  org.apache.catalina.startup.Catalina.execute(Unknown Source) 
   at 
  org.apache.catalina.startup.Catalina.process(Unknown Source) 
   at 
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
   at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42 
  )  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl 
  .java:28) 
   at 
  java.lang.reflect.Method.invoke(Method.java:313) 
   at 
  org.apache.catalina.startup.Bootstrap.main(Unknown Source) - Root Cause - java.lang.NullPointerException 
   at 
  org.apache.commons.digester.Digester.parse(Digester.java:859) 
   at 
  org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1273) 
   at 
  org.apache.struts.action.ActionServlet.init(ActionServlet.java:460) 
   at 
  javax.servlet.GenericServlet.init(GenericServlet.java:258) 
   at 
  org.apache.catalina.core.StandardWrapper.load(Unknown Source) 
   at 
  org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source) 
   at 
  org.apache.catalina.core.StandardContext.start(Unknown Source) 
   at 
  org.apache.catalina.core.ContainerBase.addChild(Unknown Source) 
   at 
  org.apache.catalina.core.StandardHost.addChild(Unknown Source) 
   at 
  org.apache.catalina.core.StandardHost.install(Unknown Source) 
   at 
  org.apache.catalina.startup.HostConfig.deployApps(Unknown Source) 
   at 
  org.apache.catalina.startup.HostConfig.start(Unknown Source) 
   at 
  org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source) 
   at 
  org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown 
  Source)  
  at org.apache.catalina.core.ContainerBase.start(Unknown

RE: WML version of Struts?

2001-09-26 Thread Brett Porter
Title: RE: WML version of Struts?





Have a look around the struts website. It's already listed.
http://jakarta.apache.org/struts/todo-1.1.html


It doesn't have a volunteer yet, so it is a way off. If you are going to do it anyway, maybe you should discuss it with the maintainers and write it for struts.

Cheers,
Brett


-Original Message-
From: Matt Parker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 27 September 2001 2:09 AM
To: [EMAIL PROTECTED]
Subject: WML version of Struts?



Hi there,


Are there any plans to incorporate WML support into Struts?


Is it simply a matter of wrapping the WML tags like Struts currently
does for HTML?


TIA,


Matt





RE: example struts app

2001-09-26 Thread Brett Porter



I 
believe if you use Tomcat 3.2 there are additional steps required (check in the 
install docs). Tomcat 4.0 should work as is.
The 
example may be using a PostgeSQL database (I've seen the data source in the 
setup), but it seemed to work for me without one set up. I deployed it into 
Resin 2.0 as is without a problem.

Perhaps you could post the actual exception (the top 5 - 10 
lines).

Cheers,
Brett

  -Original Message-From: Seetharaman Narayanan 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, 27 
  September 2001 9:40 AMTo: 
  '[EMAIL PROTECTED]'Subject: example struts 
  app
  Hello 
  All
   
  Can anyone tell me what are the prerequisites to run the example application 
  which comes with the struts download? I tries running tha app, but couldnt 
  getpass the index.jsp, because when I click on any of the links in index.jsp, 
  I get a Servlet Exception.
  
  Here is what I 
  did. I copied the war file into the C:\Tomcat\Webapps directory. I started 
  Tomcat and pointed my browser to localhost/struts-example and I am taken to 
  index.jsp. From there on the problem beginto arise. 
  
  I need 
  urgent help as after seeing them work, I have to get on to our 
  project.
  
  Thanks
  Seetharaman Narayanan Software Engineer Keynote Systems 
  Inc., 
  


RE: example struts app

2001-09-26 Thread Brett Porter



From 
the installation guide... 
Tomcat 3.1 and prior - Not 
recommended. Use Tomcat 3.2.1 or later. 

It 
seems to me it's using an old servlet spec.

You 
shouldn't need struts.jar in the classpath (and its probably best not to), 
because it is in the examples' WEB-INF/lib directory (where it is supposed to be 
:)

Hope 
this helps,
Brett


  -Original Message-From: Seetharaman Narayanan 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, 27 
  September 2001 10:03 AMTo: 
  '[EMAIL PROTECTED]'Subject: RE: example struts 
  app
  
  Hi Brett,
   
  Thank you for being a nice help. Here is what I got. I think I have set up all 
  the pre-requisites(otherwise I wouldnt even seen the index.jsp). 
  
  The war file after its 
  deployed creates a directory and puts in all the files in exact locations. 
  This is what the installation notes was saying.
  Only concern is do we need to 
  point to struts.jar in the script which starts the Tomcat 3.1 ? 
  
  
  Thanks 
Again
  Seetharaman
  
  Error: 500
  Location: /StrutsDemo/registration.jspInternal Servlet 
  Error:javax.servlet.ServletException: cant remove Attributes from request scope
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)
	at _0002fregistration_0002ejspregistration_jsp_0._jspService(_0002fregistration_0002ejspregistration_jsp_0.java, Compiled Code)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:163)
	at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
	at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code)
	at java.lang.Thread.run(Thread.java:479)

  
-Original Message-From: Brett Porter 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, September 26, 
2001 4:44 PMTo: 
'[EMAIL PROTECTED]'Subject: RE: example struts 
app
I 
believe if you use Tomcat 3.2 there are additional steps required (check in 
the install docs). Tomcat 4.0 should work as is.
The example may be using a PostgeSQL database (I've seen the data 
source in the setup), but it seemed to work for me without one set up. I 
deployed it into Resin 2.0 as is without a problem.

Perhaps you could post the actual exception (the top 5 - 10 
lines).

Cheers,
Brett

  -Original Message-From: Seetharaman Narayanan 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, 27 
  September 2001 9:40 AMTo: 
  '[EMAIL PROTECTED]'Subject: example struts 
  app
  Hello 
  All
   
  Can anyone tell me what are the prerequisites to run the example 
  application which comes with the struts download? I tries running tha app, 
  but couldnt getpass the index.jsp, because when I click on any of the 
  links in index.jsp, I get a Servlet Exception.
  
  Here is what I 
  did. I copied the war file into the C:\Tomcat\Webapps directory. I started 
  Tomcat and pointed my browser to localhost/struts-example and I am taken 
  to index.jsp. From there on the problem beginto arise. 

  
  I need 
  urgent help as after seeing them work, I have to get on to our 
  project.
  
  Thanks
  Seetharaman Narayanan Software Engineer Keynote Systems Inc., 
  


RE: Bad File Argument to include error

2001-09-26 Thread Brett Porter
Title: RE: Bad File Argument to include error






Looks to me like you are specify a file to include that doesn't exist with jsp:include/ or %@include file= %


BTW, posting a 30 line exception will not help as much as the 1 line (line 10 of index.jsp) where the error occured (and perhaps a few more around it for context).

Cheers,
Brett


-Original Message-
From: Bhamidi Krishna [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 27 September 2001 2:38 PM
To: [EMAIL PROTECTED]
Subject: Bad File Argument to include error



Hi,


I get an exception which reads like this :


org.apache.jasper.compiler.CompileException: 
C:\tomcat\webapps\struts_practice\index.jsp(10,0) Bad file argument to 
include.


I am using tomcat on Windows 98. Can someone help me how to solve this 
problem. The stack trace follows if that is of any help.


Krishna.


org.apache.jasper.compiler.CompileException: 
C:\tomcat\webapps\struts_practice\index.jsp(10,0) Bad file argument to 
include
 at 
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:728)
 at 
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
 at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)





RE: ActionError() problem

2001-09-26 Thread Brett Porter
Title: ActionError() problem



You 
have answered your own question :)

Use a 
message properties file, and have the property value as something like 


error.lineError=error at line {0}

then 
call 

new 
ActionError( "error.lineError", lineNo );

the 
{0} will be replaced with value0
(likewise {1} and {2} if you use the other constructors for 
ActionError)

Cheers,
Brett

  -Original Message-From: Gao, Gang 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, 27 September 2001 9:33 
  AMTo: [EMAIL PROTECTED]Subject: 
  ActionError() problem
  Hi, How can I use ActionError() to construct the error message that is not 
  define in the message property file? Who can give me a example. I want display 
  a dynamic error message such as "ith line got some error !".
  Who can give me a explanation about second 
  parameter for following ActionError method 
  
  public ActionError(java.lang.String 
  key,  
  java.lang.Object value0) 
  
Construct an action error with the specified 
replacement values. 
  Parameters: 
  
key - 
Message key for this error message value0 - First replacement 
value Thanks in advance! 
Gang 



RE: Need explanation: include tag in struts.tld and bean:include tag

2001-09-25 Thread Brett Porter
Title: RE: Need explanation: include tag in struts.tld and bean:include tag





The comment at the beginning of struts.tld says that is has been deprecated and is present only for backwards compatibility. You should use bean:include instead.

Cheers,
Brett


-Original Message-
From: Paradis, André [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 26 September 2001 6:36 AM
To: [EMAIL PROTECTED]
Subject: Need explanation: include tag in struts.tld and bean:include
tag



Hi,


I'd like to know what is the status of struts.tld. It defines an include
tag
wich performs the equivalent of a jsp:include tag. Is it deprecated ? 


There is also the bean:include ... tag defined in struts-bean.tld.
From the code, 
I understand that the framework is computing an url, and then retrieve
the data using an URLConnection object. The data is then made available
in a page scope bean. I fear this is quite slow when one only want to
include JSP pages defined in forward statements in the struts-config.xml
file. 


What is the best way of performing the equivalent of an jsp:include
tag of a forward statement defined in the struts config file?


Regards,


Andre Paradis





How do you load information into a bean that your form uses before displaying it?

2001-07-19 Thread Brett G. Palmer

I have a struts html:form which uses a struts Form bean.  I'd like to read
data from a database and use that data as the default data for the form.

What is the best way to do this?

Read the data and set the value parameter of the html:text html:select
and html:checkbox tags?

Load the data into a Form bean and use that bean for the form?

I'm not sure how to do either of these options or if there is a third better
way to do it?

Thanks,
Brad






Null PointerException when run with Apache/SSL/Tomcat

2001-06-04 Thread Brett G. Palmer

We are getting a NullPionterException which seems to originate from the the
struts-html tag libraries.  The error only occurs when we run Struts with
Tomcat/Apache and SSL.  If we bypass SSL and just go through Apache (port
80) we do not see the error.  Has anyone else seen this problem when running
Struts through SSL?  Any suggestions would be appreciated.  The error
message is shown below.

Thanks in advance for your help.

Brett

/ ERROR Message **/

Error: 500
Location: /mvelopes05/index.jsp
Internal Servlet Error:

javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.
java:553)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
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:853)
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:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
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.NullPointerException
at org.apache.struts.taglib.html.LinkTag.hyperlink(LinkTag.java:492)
at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:317)
at
_0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.
java:145)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
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:853)
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:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
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)





Re: Null PointerException when run with Apache/SSL/Tomcat

2001-06-04 Thread Brett G. Palmer

Thanks for everyone's suggestions.  Updating to Struts beta-3 fixed the
problem.  I also tried configuring SSL according the Bugzilla record #992,
but it didn't fix the problem.

Brett



- Original Message -
From: Bryan Field-Elliot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 04, 2001 12:24 PM
Subject: Re: Null PointerException when run with Apache/SSL/Tomcat


 I had an extremely similar (though not quite exact) problem last week. I
 posted as you did, but no one responded. This morning, I upgraded from
 Struts beta-1 to beta-3, and so far it appears to have magically fixed
 the SSL problem. Hopefully a similar path will fix yours too.

 Good luck,

 Bryan

 Brett G. Palmer wrote:

 We are getting a NullPionterException which seems to originate from the
the
 struts-html tag libraries.  The error only occurs when we run Struts with
 Tomcat/Apache and SSL.  If we bypass SSL and just go through Apache (port
 80) we do not see the error.  Has anyone else seen this problem when
running
 Struts through SSL?  Any suggestions would be appreciated.  The error
 message is shown below.
 
 Thanks in advance for your help.
 
 Brett
 
 / ERROR Message **/
 
 Error: 500
 Location: /mvelopes05/index.jsp
 Internal Servlet Error:
 
 javax.servlet.ServletException
  at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
p
 l.java:459)
  at

_0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1
.
 java:553)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.j
a
 va:130)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
a
 va:282)
  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:853)
  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:7
9
 7)
  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
  at

org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnectio
n
 (Ajp13ConnectionHandler.java:160)
  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.NullPointerException
  at org.apache.struts.taglib.html.LinkTag.hyperlink(LinkTag.java:492)
  at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:317)
  at

_0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1
.
 java:145)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.j
a
 va:130)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
a
 va:282)
  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:853)
  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:7
9
 7)
  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
  at

org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnectio
n
 (Ajp13ConnectionHandler.java:160)
  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)
 
 
 







displaying errors using struts

2001-05-08 Thread Procek, Brett

Can someone point me to a good reference for the mechanism 
of displaying errors using strut's custom tags?

Thanks,
Brett 



RE: displaying errors using struts

2001-05-08 Thread Procek, Brett

I'm still having problems despite reading a bunch of materials on this
stuff.
I copied the related code snippet from various files I have.  I'm
guessing that I'm 
missing something obvious.  I'd really appreciate if someone can lend a
hand.
Here is what I have so far:

Web.xml---

  servlet
servlet-nameaction/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-namevalidate/param-name
  param-valuetrue/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet


ApplicationResources.properties---

error.username.required=Required Username
errors.header=h3font color=redValidation Error!/font/h3
errors.footer=brbr
---

login.jsp--

form:errors/
---

LoginAction.java--

  ActionErrors errors = new ActionErrors();

if ((username.equals(test))  (password.equals(test1)))
{
  servlet.log(Successfully Logged in +username);
  return mapping.findForward(success);
}
else
{
  errors.add(username,new ActionError(error.username.required));
  saveErrors(request, errors);
  servlet.log(Login failure for +username);
  return (new ActionForward(mapping.getInput()));
}
  }



Thanks,
Brett Procek

-Original Message-
From: Nigel Ainslie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 5:24 PM
To: '[EMAIL PROTECTED]'
Subject: RE: displaying errors using struts 


Brett,
the doc in
jakarta-struts\src\share\org\apache\struts\taglib\html\package.html
gives an
overview and indicates where to find the struts supplied examples.
Just remember to add the message texts to your ApplicationResources
properties file.
Nige

-Original Message-
From: Procek, Brett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 9 May 2001 7:24
To: [EMAIL PROTECTED]
Subject: displaying errors using struts 


Can someone point me to a good reference for the mechanism 
of displaying errors using strut's custom tags?

Thanks,
Brett 



still not getting struts to work yet with Tomcat 3.2.1

2001-05-07 Thread Procek, Brett

Hello,

I've been trying for awhile to get my own version of the 'logon' example
to work.  I've done everything essentially the exact same as the struts
example, except using 'login' where I saw 'logon'.  
Upon starting up Tomcat, there is a bunch of output generated.  After
reading this output, it seems that my action classes and action mappings
are not getting set up in the servlet context, since I do not see any
output - though I do see all the struts example servlet contexts getting
setup. For example: 'ActionServlet.addMapping(...)'.

I think the problem might be related to resolving the DTD entity in my
struts-config.xml file.  Here is a snippet for the output I receive
after staring Tomcat.  Has anyone seen this problem at all.  I would
appreciate any help.

Thanks,
Brett Procek


Starting tomcat. Check logs/tomcat.log for error messages 
...
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN',
'jar:file:/export/home/tomcat/webapps/TestApp/WEB-INF/lib/struts.jar!/or
g/apache/struts/resources/struts-config_1_0.dtd')
 Not registered, use system identifier
...




struts newbie trying to get onboard

2001-05-04 Thread Procek, Brett

Hello all, this is my first posting.  I'm trying to get onboard here
with one of those simple login
application I'm sure you've all seen.  I've spent some time trying to
get this to work.
I went through all steps to install struts on my workstation for Tomcat
3.2.1 and verified them several times. I even have the struts-example
application working, so I've come a little ways already.  

I'm using the sample login.jsp that one can find almost anywhere, but I
keep getting the same exception:

-
Root cause: 
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:703)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441)
at
_0002flogin_0002ejsplogin_jsp_1._jspService(_0002flogin_0002ejsplogin_js
p_1.java:71)

-

I'm sure my taglibs are set up correctly, and I do have the struts.jar
file appended to the classpath.
Any help would be appreciated.
Thanks,
Brett



Here is the login.jsp file:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-form.tld prefix=form %

  form:form action=login.do

Username: form:text property=username /br/

Password: form:password property=password/br/

form:submit value=Logon /
  /form:form
-





RE: struts newbie trying to get onboard

2001-05-04 Thread Procek, Brett

You are correct, my ActionServlet is not starting up property.  I looked
at the output and I listed some of it below.
For some odd reason Struts cannot resolve a certain DTD that it needs.
Please take a quick look.  

Thanks for the help!
Brett


Starting tomcat. Check logs/tomcat.log for error messages 
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Not registered, use system identifier
Parse Fatal Error at line 5 column -1: External entity not found:
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;.
org.xml.sax.SAXParseException: External entity not found:
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;.
at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
at
com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2506)
at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
at org.apache.struts.digester.Digester.parse(Digester.java:716)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:13
01)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnSta
rtupInterceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:49
1)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: action
register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN',
'jar:file:/export/home/tomcat/webapps/TestApp/WEB-INF/lib/struts.jar!/or
g/apache/struts/resources/struts-config_1_0.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
'jar:file:/export/home/tomcat/webapps/TestApp/WEB-INF/lib/struts.jar!/or
g/apache/struts/resources/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'jar:file:/export/home/tomcat/webapps/TestApp/WEB-INF/lib/struts.jar!/or
g/apache/struts/resources/web-app_2_3.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Resolving to alternate DTD
'jar:file:/export/home/tomcat/webapps/TestApp/WEB-INF/lib/struts.jar!/or
g/apache/struts/resources/struts-config_1_0.dtd'
New org.apache.struts.action.ActionMapping

---







-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 2:31 PM
To: [EMAIL PROTECTED]
Subject: RE: struts newbie trying to get onboard


Is the struts ActionServlet configured and starting up OK?  You should
not
be using struts-form.tld either, it's deprecated. If you are using
Struts
0.5, don't, use the Struts 1.0 beta.

 -Original Message-
 From: Procek, Brett [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 04, 2001 12:56 PM
 To: [EMAIL PROTECTED]
 Subject: struts newbie trying to get onboard


 Hello all, this is my first posting.  I'm trying to get onboard here
 with one of those simple login
 application I'm sure you've all seen.  I've spent some time trying to
 get this to work.
 I went through all steps to install struts on my workstation
 for Tomcat
 3.2.1 and verified them several times. I even have the struts-example
 application working, so I've come a little ways already.

 I'm using the sample login.jsp that one can find almost
 anywhere, but I
 keep getting the same exception:

 -
 Root cause:
 javax.servlet.jsp.JspException: Cannot find ActionMappings or
 ActionFormBeans collection
   at
 org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:703)
   at
 org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441)
   at
 _0002flogin_0002ejsplogin_jsp_1._jspService(_0002flogin_0002ej
 splogin_js
 p_1.java:71)

 -

 I'm sure my taglibs are set up correctly, and I do have the struts.jar
 file appended to the classpath.
 Any help would be appreciated.
 Thanks,
 Brett



 Here is the login.jsp file:
 
 %@ page language=java %
 %@ taglib uri=/WEB-INF/struts-form.tld prefix=form %

   form:form action=login.do

   Username: form:text property=username /br/

   Password: form:password property=password/br/

   form:submit value

RE: struts newbie trying to get onboard

2001-05-04 Thread Procek, Brett

Actually, I must include the struts.jar file in my classpath.  However,
this is done automatically in the tomcat.sh script. The script
automatically includes all jar/zip files in the /lib directory.  Should
I remove this functionality?

Brett

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: Re: struts newbie trying to get onboard




Don't include struts.jar in your classpath.  Make sure that struts.jar
is in
your WEB-INF/lib directory.

See

http://www.husted.com/about/struts/threads.htm

for an explanation.

-Donnie Hall




|+---
||  procek@lucent|
||  .com |
||   |
||  05/04/2001   |
||  11:56 AM |
||  Please   |
||  respond to   |
||  struts-user  |
||   |
|+---
 
---
-|
  |
|
  |   To: [EMAIL PROTECTED]
|
  |   cc: (bcc: Donnie Hall/Enron Communications)
|
  |   Subject: struts newbie trying to get onboard
|
 
---
-|



Hello all, this is my first posting.  I'm trying to get onboard here
with one of those simple login
application I'm sure you've all seen.  I've spent some time trying to
get this to work.
I went through all steps to install struts on my workstation for Tomcat
3.2.1 and verified them several times. I even have the struts-example
application working, so I've come a little ways already.

I'm using the sample login.jsp that one can find almost anywhere, but I
keep getting the same exception:

-
Root cause:
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
   at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:703)
   at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441)
   at
_0002flogin_0002ejsplogin_jsp_1._jspService(_0002flogin_0002ejsplogin_js
p_1.java:71)

-

I'm sure my taglibs are set up correctly, and I do have the struts.jar
file appended to the classpath.
Any help would be appreciated.
Thanks,
Brett



Here is the login.jsp file:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-form.tld prefix=form %

  form:form action=login.do

 Username: form:text property=username /br/

 Password: form:password property=password/br/

   form:submit value=Logon /
  /form:form
-









RE: struts newbie trying to get onboard

2001-05-04 Thread Procek, Brett

Ok, what I did was simply remove the reference to the DTD in the
struts-config.xml file.  Now, the ActionServlet does load up.  However,
I am getting one more problem:

javax.servlet.jsp.JspException: Cannot retrieve mapping for action
/login
at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:714)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441)
at
_0002flogin_0002ejsplogin_jsp_3._jspService(_0002flogin_0002ejsplogin_js
p_3.java:71)


The example I am coping is exactly the same.  Here is my
struts-config.xml file:


  form-beans
form-bean name=loginForm type=login.LoginForm/
  /form-beans


 action-mappings

!-- Login Action --
action path=/login 
type=login.LoginAction 
name=login 
scope=request 
validate=false
  forward name=success path=/success.jsp/
/action

  /action-mappings



I'm sure when I can get this to work it'll all be worth it.
Thanks!!
Brett



Another bean:iterate question

2001-04-17 Thread Brett G. Palmer

I've been working on this bean:iterate ...  problem for some time now.  I
finally had to use a scriplet to get it to work.  I am trying to get a list
of FieldTypes from a record controller (PrimaryServer below) which implement
an AbstractField object (this may be the entire problem ... let me know if
Abstract objects will cause problems).  The controller has a method called
getFieldList which returns an Iterator of these AbstractField objects.  I
then want to get the name of each field using the property getFielName().
The following is a snippet of my Jsp page.  Tomcat always returns with an
error saying it "can't find bean 'field' in scope null".

logic:iterate id="field" name="PrimaryServer" property="fieldList"
type="com.iic.dbsync.IntField"
  tr
td align="center" jsp:getProperty name="PrimaryServer"
property="fieldList"/
  bean:write name="field" property="fielName"/ /td
td html:text property="field2" size="100"  //td
  /tr
/logic:iterate

Here is the scriplet that I wrote to finally get the results that I wanted.


% Iterator iter = PrimaryServer.getFieldList();
while( iter.hasNext() ) {
AbstractField field = (AbstractField) iter.next();
String fieldName = field.getFieldName();
%
  tr
td align="center" %=fieldName% /td
td html:text property="field2" size="100" //td
  /tr
%}
%

The iterator tag still trips me up from time to time.  If anyone has any
suggestions I would appreciate them.  I have enjoyed reading the previous
postings concerning the iterator tag.

Thanks again,

Brett





FormAction Bean for dynamically created forms

2001-04-17 Thread Brett G. Palmer

What is the best way to develop a FormAction bean for HTML forms that are
dynamically generated?  In other words, the FormAction bean won't know the
parameters names of the form until runtime.  For example, if I wanted to
process HTML forms for relational database tables dynamically.  Each input
element could represent a column in the table.  I have a Record class that
contains a HashTable of the fields for a particular table.  The Record class
can be used to verify that the submitted values are correct for each field,
but I can't have a static FormAction bean that knows every form paramter.

Any suggestions would be greatly appreciated.

Thanks in advance.

Brett




RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-10 Thread Brett Ramdeen
Title: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts





Struts with Weblogic 5.1 SP8 on NT or Unix (Linux or Solaris) can be set up as follows:


1. Make sure that struts.jar is NOT in your classpath or your JRE ext directory.


2. Copy struts.jar to the WEB-INF/lib directory of your web app.


3. Add the following to your web.xml:
 context-param
  param-nameweblogic.jsp.precompile/param-name
  param-valuetrue/param-value
 /context-param


4. Make sure that the load order for the servlets defined in web.xml is set. IE:
 servlet
  .
  . (other stuff here)
  .
  load-on-startup2/load-on-startup
 /servlet


Hope this helps,


Brett


 -Original Message-
 From: Brian Knorr [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 09, 2001 8:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Problems in setting up Weblogic5.1 + SP8 + 
 Jakarta-Struts
 
 
 My experience with WLS 5.1 sp8 has been very tiresome... 
 many days of trial and error getting it to work with struts 
 (and yes I followed the directions on the struts page for 
 wls sp8 -- maybe this works on Windows but definitely not on 
 unix)... 
 
 Anyway -- the only way to get around the issue you are 
 encountering is to take out the following line in your web.xml:
 
 load-on-startup1/load-on-startup
 
 Now as a consequence of doing this you will need to follow 
 these two steps every time you restart your weblogic instance:
 
 1. Load a jsp page through your browser before doing 
 anything else (especially a post). This fixes the 
 classloader problem with weblogic 5.1.
 2. Next, load the ActionServlet by posting to an action 
 class. This will also load your application.properties. 
 
 
 Also I found with this fix you don't have to set the WL 
 classpath as it is stated in the instructions.
 
 Hope this helps...
 
 --Brian 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 09, 2001 1:58 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Problems in setting up Weblogic5.1 + SP8 + 
 Jakarta-Struts
 
 
 
 This is the error you will see when WL can't find the 
 properties file. You
 are positive that the properties file is in the proper 
 directory? Also you
 must restart WL after you copy the file.
 
 If this still doesn't work then I am sorry I don't have any other
 suggestions for deploying in the WAR :( However, another 
 option is to
 expand the WAR file and set the WL classpath- see the instructions.
 
 -Bob 
 
 
 -Original Message-
 From: Lu, Wei [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 09, 2001 2:19 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Problems in setting up Weblogic5.1 + SP8 + 
 Jakarta-Struts
 
 
 
 Thank you very much ofr your response. 
 
 The class package reads org.apache.struts.example. So I opened the 
 struts-example.war file and copied 
 ApplicationResources.properties and 
 appended in the folder example. However, I still got the 
 enclosed 
 error message. Thank you for help. Wei Lu
 
 Mon Apr 09 14:14:31 EDT 2001:I 
 ServletContext-struts-example *.jsp:
 param wo
 rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war
 Mon Apr 09 14:14:31 EDT 2001:I 
 ServletContext-struts-example *.jsp:
 param pa
 geCheckSeconds initialized to: 1
 Mon Apr 09 14:14:31 EDT 2001:I 
 ServletContext-struts-example *.jsp:
 initiali
 zation complete
 Mon Apr 09 14:14:31 EDT 2001:I 
 ServletContext-struts-example *.jsp:
 ##
 
 
 ##
 pageCheckSeconds over-ruled in JSPServlet to : 1
 ##
 
 
 ##
 
 Mon Apr 09 14:14:32 EDT 2001:E 
 ServletContext-struts-example Servlet
 failed
 with Exception
 javax.servlet.ServletException: runtime failure in custom tag 'html'
 at jsp_servlet._index._jspService(_index.java:449)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:105)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:123)
 at
 weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
 textImpl.java:742)
 at
 weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
 textImpl.java:686)
 at
 weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
 ContextManager.java:247)
 at
 weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
 a:361)
 at
 weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
 
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
 Mon Apr 09 14:14:32 EDT 2001:E 
 ServletContext-struts-example root cause
 of S
 ervletException
 javax.servlet.ServletException: runtime failure in custom 
 tag 'message'
 at jsp_servlet._index._jspService(_index.java:105)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:105)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:123