[OT][JavaScript][Lazy] Product Rego number automatic JavaScript focus shifting

2002-09-26 Thread Andrew Hill




Doubtless their are tons on resources on the net but its Friday ,Im feeling
lazy, and Im sure many of you have already done this...


Ive got a product registration field on a form which consists in the html of
a few  fields.
I want the focus to shift automatically to the next field when the first is
completed.

Anyone out there already got a suitable JavaScript function I can set as one
of the onXXX handlers they could give me for this?




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




RE: How to call an array setter

2002-09-26 Thread mail

I was braindead.  This code took care of it:

for(int i = 0; i < determinationsArray.length; i++)
{
gridDeterminations = (GridDeterminations) determinationsArray[i];

msgCode[i] = gridDeterminations.getMessageCode();

}

responseProcessForm.setMsgCode(msgCode);


-Original Message-
From: Adrian Brown [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 11:49 PM
To: Struts Users Mailing List
Subject: RE: How to call an array setter


for this, try:

return new String[] { "string1", "string2", "string3",
"string4", "string5", "string6", "string7" };

Adrian


 --- mail <[EMAIL PROTECTED]> wrote: > I placed
this in the Action class and everything
> compiled, but it moved
> everything iteration of gridDetermination
> MessageCodes into only the first
> array iteration.  For example, if I have 7
> MessageCodes to load into the
> MsgCode array, I only get one MsgCode in the array.
> How should I do this to
> create an array of MsgCode's?
>
> Thanks!
>
> ResponseProcessAction:
>   responseProcessForm.setMsgCode(new String[]
> {gridDeterminations.getMessageCode()});
>
> ResponseProcessForm:
>   public void setMsgCode(String[] msgCode) {
>   this.msgCode = msgCode;
>   }
>
>   public String[] getMsgCode() {
>   return msgCode;
>   }
>
> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:54 PM
> To: Struts Users Mailing List
> Subject: Re: How to call an array setter
>
>
> setMsgCode(new String[] {
> gridDeterminations.getMessageCode() });
>
> If it's expecting an array, you'll have to give it
> one.
>
> mail wrote:
>
> >getMessageCode() returns a String.
> >
> >The error message I get is:
> > setMsgCode(java.lang.String[]) in
> com.coramhc.grid.ResponseProcessForm
> >cannot be applied to (java.lang.String)
> >
> >Any ideas?
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>

http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: org.apache.coyote.http11.Http11Processor.process taking a long time

2002-09-26 Thread Steve Vanspall

Ok two extra questions then

Do I need any extra taglib's for using JSTL?

and does the list itself need to be a variable in the form I am using, or
can it be a variable on the page?

Regards

Steve
- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 27, 2002 3:15 PM
Subject: Re: org.apache.coyote.http11.Http11Processor.process taking a long
time


> This belongs in tomcat-user or tomcat-dev.  I would suggest refactoring
> your "list" to have "html" as a property though (ie.
> getHTML()/setHTML()).  Then, you can use the JSTL to extract this value
> and do away with scriplets - which are simply evil.
>
> Once you do that, replace your scriplet with:
>
> 
>
> Steve Vanspall wrote:
>
> >Hi there, I have a Java object that stores html code in a string for in
order to speed my Web App up.
> >
> >Basically it Works similarly to an Array list, but updates the html code
for each bean as it is added/update, thus removing the need for getting the
JSP to iterate through an ArrayList and write the HTML specifically for it.
So basically in my JSP all i need do is but a scriplet <%=list.html()%>
where list is the the list of records.
> >
> >Now this part works fine. But if the there is alot of html code in the
string i.e. a large number of records, there seems to be a fairly slow
method being invoked in
> >
> >org.apache.coyote.http11.Http11Processor.process(java.io.InputStream,
java.io.OutputStream)
> >
> >as seems to be the case when I debug it.
> >
> >Does anyone know anything aobut this method, or under what Apache project
the source code may be so I can see what is causing the problem, and
hopefuly change my Web App to accomodate this.
> >
> >Any help would be great.
> >
> >Steve
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: How to call an array setter

2002-09-26 Thread Adrian Brown

for this, try:

return new String[] { "string1", "string2", "string3",
"string4", "string5", "string6", "string7" };

Adrian
 

 --- mail <[EMAIL PROTECTED]> wrote: > I placed
this in the Action class and everything
> compiled, but it moved
> everything iteration of gridDetermination
> MessageCodes into only the first
> array iteration.  For example, if I have 7
> MessageCodes to load into the
> MsgCode array, I only get one MsgCode in the array. 
> How should I do this to
> create an array of MsgCode's?
> 
> Thanks!
> 
> ResponseProcessAction:
>   responseProcessForm.setMsgCode(new String[]
> {gridDeterminations.getMessageCode()});
> 
> ResponseProcessForm:
>   public void setMsgCode(String[] msgCode) {
>   this.msgCode = msgCode;
>   }
> 
>   public String[] getMsgCode() {
>   return msgCode;
>   }
> 
> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:54 PM
> To: Struts Users Mailing List
> Subject: Re: How to call an array setter
> 
> 
> setMsgCode(new String[] {
> gridDeterminations.getMessageCode() });
> 
> If it's expecting an array, you'll have to give it
> one.
> 
> mail wrote:
> 
> >getMessageCode() returns a String.
> >
> >The error message I get is:
> > setMsgCode(java.lang.String[]) in
> com.coramhc.grid.ResponseProcessForm
> >cannot be applied to (java.lang.String)
> >
> >Any ideas?
> >
> 
> --
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
>  

http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends

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




RE: How to return changes made on a JSP iteration of object properties to the Action Class

2002-09-26 Thread mail

Thanks for the link.  Are there any complete working examples out there to
look at?

-Original Message-
From: Joe Latty [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 11:49 PM
To: Struts Users Mailing List
Subject: RE: How to return changes made on a JSP iteration of object
properties to the Action Class


http://www.husted.com/struts/tips/006.html

Joe

-Original Message-
From: mail [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 26 September 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: How to return changes made on a JSP iteration of object
properties to the Action Class


Hello,
I am creating an ArrayList of GridDetermination objects in session scope. I
sent this to a JSP which displays the arraylist properties. I then can make
changes to a property and hit submit, but when the action gets the arraylist
back (via the session.getAttribute) the changes are not there. The ArrayList
is the same as when I sent it.
Is there a step in the JSP that I am missing, like a setProperty, etc...,
that will store the changes into the ArrayList in the session scope?

Can anyone tell me how I can send an ArrayList of objects, iterate through
it to create a table on the web page, allow changes to each property, then
return that change to the Action class where I can perform operations based
upon the change?

Thanks in advance!

example of my JSP iterate:


 
 
 



CMPLD
OIS
RDA
BMA
PMA
DEN



Approve
Deny

 





--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: How to call an array setter

2002-09-26 Thread Adrian Brown

Hi,

A String cannot be handed in when it expects a String
array. Try

public String[] getMessageCode() {
 return new String[] { "string here" };
}

Adrian

 --- mail <[EMAIL PROTECTED]> wrote: >
getMessageCode() returns a String.
> 
> The error message I get is:
>  setMsgCode(java.lang.String[]) in
> com.coramhc.grid.ResponseProcessForm
> cannot be applied to (java.lang.String)
> 
> Any ideas?
> 
> -Original Message-
> From: Andrew Hill
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:43 PM
> To: Struts Users Mailing List
> Subject: RE: How to call an array setter
> 
> 
> The usual way to call an array setter method is with
> an array. Nulls are
> also acceptable.
> 
> getMessageCode() in the gridDeterminations thinghy
> returns what type?
> 
> What compilation / runtime error are you
> experiencing?
> 
> 
> -Original Message-
> From: mail [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 27, 2002 13:49
> To: [EMAIL PROTECTED]
> Subject: How to call an array setter
> 
> 
> I must be brain-dead right now.  Can anyone tell me
> how to call an array
> setter method?
> 
> ex.
> 
> ResponseProcessForm:
> 
>   private String[] msgCode = null;
> 
>   public void setMsgCode(String[] msgCode) {
>   this.msgCode = msgCode;
>   }
> 
>   public String[] getMsgCode() {
>   return msgCode;
>   }
> 
> ResponseProcessAction:
> 
>   /*
>*This does not work, but not sure how to call the
> method??
>*/
> 
>
responseProcessForm.setMsgCode(gridDeterminations.getMessageCode());
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
>  

http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends

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




RE: How to call an array setter

2002-09-26 Thread mail

I placed this in the Action class and everything compiled, but it moved
everything iteration of gridDetermination MessageCodes into only the first
array iteration.  For example, if I have 7 MessageCodes to load into the
MsgCode array, I only get one MsgCode in the array.  How should I do this to
create an array of MsgCode's?

Thanks!

ResponseProcessAction:
responseProcessForm.setMsgCode(new String[]
{gridDeterminations.getMessageCode()});

ResponseProcessForm:
public void setMsgCode(String[] msgCode) {
this.msgCode = msgCode;
}

public String[] getMsgCode() {
return msgCode;
}

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 10:54 PM
To: Struts Users Mailing List
Subject: Re: How to call an array setter


setMsgCode(new String[] { gridDeterminations.getMessageCode() });

If it's expecting an array, you'll have to give it one.

mail wrote:

>getMessageCode() returns a String.
>
>The error message I get is:
> setMsgCode(java.lang.String[]) in com.coramhc.grid.ResponseProcessForm
>cannot be applied to (java.lang.String)
>
>Any ideas?
>

--
Eddie Bush




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Struts and Together CC

2002-09-26 Thread David McLure

I wanted to make sure I properly posted the link to these instructions (my
web link may not have worked previously) :
http://www.mclures.net/java/struts/Together/index.html

David McLure wrote:

> >
> >
> >> Has anyone try to deploy a struts app on Together CC 6.0 with struts
> >> plugin?
> >
> >When doing it, my ApplicationResource.properties file does not get
> place
> >in the WAR file. any ideas?
> >
> >thanks in advanced.
> >
> >-gus
>
> Not sure which plugin you are referring to, but I've been using Together
> 6.+  (build 1762) to develop my Struts apps all summer with no
> problems.  The only trick I've found is that you need to completely
> remove the old Struts webapp prior to redeploying each time (I have a
> little script I run to do this as a part of my development cycle).
>
> The trick is getting your app set up the first time.  I learned this by
> following the instructions provided by James Banks, a TogetherSoft
> support tech.  I have posted these instructions (along with a few minor
> modifications and bug fixes, etc.) here for convenience.
>
> Enjoy!
>
> Dave McLure
> Fidelity Investments


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




RE: Struts and Together CC

2002-09-26 Thread David McLure

>
>
>> Has anyone try to deploy a struts app on Together CC 6.0 with struts
>> plugin?
>
>When doing it, my ApplicationResource.properties file does not get
place
>in the WAR file. any ideas?
>
>thanks in advanced.
>
>-gus

Not sure which plugin you are referring to, but I've been using Together
6.+  (build 1762) to develop my Struts apps all summer with no
problems.  The only trick I've found is that you need to completely
remove the old Struts webapp prior to redeploying each time (I have a
little script I run to do this as a part of my development cycle).

The trick is getting your app set up the first time.  I learned this by
following the instructions provided by James Banks, a TogetherSoft
support tech.  I have posted these instructions (along with a few minor
modifications and bug fixes, etc.) here for convenience.

Enjoy!

Dave McLure
Fidelity Investments


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




Re: How to call an array setter

2002-09-26 Thread Eddie Bush

setMsgCode(new String[] { gridDeterminations.getMessageCode() });

If it's expecting an array, you'll have to give it one.

mail wrote:

>getMessageCode() returns a String.
>
>The error message I get is:
> setMsgCode(java.lang.String[]) in com.coramhc.grid.ResponseProcessForm
>cannot be applied to (java.lang.String)
>
>Any ideas?
>

-- 
Eddie Bush




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




RE: How to call an array setter

2002-09-26 Thread mail

getMessageCode() returns a String.

The error message I get is:
 setMsgCode(java.lang.String[]) in com.coramhc.grid.ResponseProcessForm
cannot be applied to (java.lang.String)

Any ideas?

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 10:43 PM
To: Struts Users Mailing List
Subject: RE: How to call an array setter


The usual way to call an array setter method is with an array. Nulls are
also acceptable.

getMessageCode() in the gridDeterminations thinghy returns what type?

What compilation / runtime error are you experiencing?


-Original Message-
From: mail [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 13:49
To: [EMAIL PROTECTED]
Subject: How to call an array setter


I must be brain-dead right now.  Can anyone tell me how to call an array
setter method?

ex.

ResponseProcessForm:

private String[] msgCode = null;

public void setMsgCode(String[] msgCode) {
this.msgCode = msgCode;
}

public String[] getMsgCode() {
return msgCode;
}

ResponseProcessAction:

/*
 *This does not work, but not sure how to call the method??
 */
responseProcessForm.setMsgCode(gridDeterminations.getMessageCode());



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: How to call an array setter

2002-09-26 Thread Andrew Hill

The usual way to call an array setter method is with an array. Nulls are
also acceptable.

getMessageCode() in the gridDeterminations thinghy returns what type?

What compilation / runtime error are you experiencing?


-Original Message-
From: mail [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 13:49
To: [EMAIL PROTECTED]
Subject: How to call an array setter


I must be brain-dead right now.  Can anyone tell me how to call an array
setter method?

ex.

ResponseProcessForm:

private String[] msgCode = null;

public void setMsgCode(String[] msgCode) {
this.msgCode = msgCode;
}

public String[] getMsgCode() {
return msgCode;
}

ResponseProcessAction:

/*
 *This does not work, but not sure how to call the method??
 */
responseProcessForm.setMsgCode(gridDeterminations.getMessageCode());



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




How to call an array setter

2002-09-26 Thread mail

I must be brain-dead right now.  Can anyone tell me how to call an array
setter method?

ex.

ResponseProcessForm:

private String[] msgCode = null;

public void setMsgCode(String[] msgCode) {
this.msgCode = msgCode;
}

public String[] getMsgCode() {
return msgCode;
}

ResponseProcessAction:

/*
 *This does not work, but not sure how to call the method??
 */
responseProcessForm.setMsgCode(gridDeterminations.getMessageCode());



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




Re: org.apache.coyote.http11.Http11Processor.process taking a long time

2002-09-26 Thread Eddie Bush

This belongs in tomcat-user or tomcat-dev.  I would suggest refactoring 
your "list" to have "html" as a property though (ie. 
getHTML()/setHTML()).  Then, you can use the JSTL to extract this value 
and do away with scriplets - which are simply evil.

Once you do that, replace your scriplet with:



Steve Vanspall wrote:

>Hi there, I have a Java object that stores html code in a string for in order to 
>speed my Web App up. 
>
>Basically it Works similarly to an Array list, but updates the html code for each 
>bean as it is added/update, thus removing the need for getting the JSP to iterate 
>through an ArrayList and write the HTML specifically for it. So basically in my JSP 
>all i need do is but a scriplet <%=list.html()%> where list is the the list of 
>records.
>
>Now this part works fine. But if the there is alot of html code in the string i.e. a 
>large number of records, there seems to be a fairly slow method being invoked in 
>
>org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, 
>java.io.OutputStream)
>
>as seems to be the case when I debug it.
>
>Does anyone know anything aobut this method, or under what Apache project the source 
>code may be so I can see what is causing the problem, and hopefuly change my Web App 
>to accomodate this.
>
>Any help would be great.
>
>Steve
>

-- 
Eddie Bush




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




Re: use Jakarta TagLibs in Struts

2002-09-26 Thread Eddie Bush

I believe I saw a post in the commons-dev list that indicated the xsl 
taglib was "stale" and that a person should "upgrade" to the JSTL.

Billy Ng wrote:

>I am trying to use the Jakarta Taglibs in Struts.  I have a jsp page which
>has
>
><%@ taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0"; prefix="xsl" %>
>
>When I hit the jsp, I have the following error.  Would anybody tell me
>what's wrong?
>
-- 
Eddie Bush




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




Re: multiple sub projects

2002-09-26 Thread Eddie Bush

I'm not 100% sure I understand your question.  Let me state, however, 
that all of my JSP files are referenced from the application-root, not 
the module-root.  This is working fine for me.  If I understand you 
correctly, you're trying to use a module-relative path for the JSP-file 
itself.  I don't believe that will work.  Struts deals in the URL-space, 
not the filesystem-space.

Does that help, or just muddy the water?

Steven Leija wrote:

>I'm currently setting up our team environment to use the sub projects.
>But a question I have is this, are the jsp blind to this shift in the
>configuration files?  Basically, so I need to change the paths or
>anything in the jsp files to know that it should be pointed to a
>specific config file?  I wasn't under the impression that I did, but
>when I try to implement this, the action isn't finding the path.  It
>says "invalid path" and display the path I'm trying to invoke.  So I'm
>not sure where the disconnect is happening.  When starting up my server
>it loads the Resources file, so it's finding it in the file.  Any
>suggestions?
>
>Thanks!
>
>Steven
>

-- 
Eddie Bush




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




Re: Startup Problem

2002-09-26 Thread Eddie Bush

That's just how the specification states it must be.  Whatever is in lib 
is in the classpath (quite literally - like you would add a jar).  You 
have to have your package-heirarchy in the classes folder.  If you did 
jar up your classes, and drop the archive (JAR-file) into lib, it would 
work just fine.  I've done this.  If it doesn't work, file a bug on your 
container - that's how the spec says it should work, and any container 
that doesn't support it is "broke".

Kalaiselvan wrote:

>Hi All,,
> Thanx for all your reply.
>
>I have found where i made mistake..
>I put all my classes in WEB-INF/lib directory.
>After i put my all classes in WEB-INF/classes directory, i can able to run
>the application.
>
>Here i have a doubt
>Why the war file didnt take the class files from lib directory..?
>But my struts.jar in WEB-IN/lib directory..
>If  i jar my all classes into one jar  and  i put into WEB-INF/lib  whether
>it will be work or  not.
>
>Thanx
>Kalaiselvan.S
>

-- 
Eddie Bush




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




Re: Please help with iteration problem

2002-09-26 Thread Eddie Bush

I know David has committed it -- I got a ton of messages on it when he 
did (subscribe to the dev list and you too can keep up with things like 
this!).  Do a checkout from CVS.  If it's not there ... well, it's got 
to be.  Let me update my cvs and see.  Ok, I'm wrong.  It's been added 
but not commited apparantly.

To quote David:

>The library isn't in the form of a patch, it's an
>independent library, and the distribution is an attachment on the enhancement
>request (#12365)
>
http://issues.apache.org/bugzilla <- go here - enter ^ that ID. 
 Submit, download as struts-el.tgz (it will want to give it a .cgi filename)

That should have you set :-)

If you get stuck, just hollar.

Michael Bowman wrote:

>One further complication: I found that nested  tags work on Tomcat 
>4.0.3, but not on Tomcat 4.1.10. Thats kind of weird.
>
>I don't see the struts-el tags listed on the Struts Resources/Contributor Taglibs 
>page. Can you tell me where to find them? Thanks. 
>
>On Thu, 26 Sep 2002 17:48:30 -0500
>

-- 
Eddie Bush




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




Re: Startup Problem

2002-09-26 Thread Kalaiselvan

Hi All,,
 Thanx for all your reply.

I have found where i made mistake..
I put all my classes in WEB-INF/lib directory.
After i put my all classes in WEB-INF/classes directory, i can able to run
the application.

Here i have a doubt
Why the war file didnt take the class files from lib directory..?
But my struts.jar in WEB-IN/lib directory..
If  i jar my all classes into one jar  and  i put into WEB-INF/lib  whether
it will be work or  not.

Thanx
Kalaiselvan.S

- Original Message -
From: "Amit Badheka" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 27, 2002 10:16 AM
Subject: Re: Startup Problem


> Hi,
> make sure that the action/form class is declared public.
>
> Amit.
> - Original Message -
> From: "Kalaiselvan" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, September 27, 2002 7:56 AM
> Subject: Re: Startup Problem
>
>
> > Sorry, it was a pasting problem the package name is
> >
> > 
> >
> > Still i got the same error. Plz help where i made a mistake
> > its very urgent for me to solve.
> >
> > Thanx
> > Kalaiselvan.S
> >
> > - Original Message -
> > From: "Mark Maimone" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, September 26, 2002 10:54 PM
> > Subject: Re: Startup Problem
> >
> >
> > > I see that the package name for your LoginForm has .. in it
> > >
> > > 
> > >
> > >
> > > >>> [EMAIL PROTECTED] 09/26/02 13:13 PM >>>
> > > Hi All,
> > >
> > > Here i'm facing serious problem..
> > > I already configured test application in Struts.
> > >
> > > But when I configure my original Application i face serious problem..
> > >
> > > I got an error like
> > >
> > > "No action instance for path /login could be created"
> > > "The server encountered an internal error (No action instance for path
> > > /login could be created) that prevented it from fulfilling this
> > > request."
> > >
> > > I gave my code here
> > >
> > > struts-config.xml
> > > 
> > >
> > > 
> > >
> > >  > >   "-//Apache Software Foundation//DTD Struts Configuration
> > > 1.0//EN"
> > >
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > >type="com.login.LoginAction"
> > >name="loginForm"
> > >scope="request"
> > >input="/login.jsp">
> > >  
> > > 
> > > 
> > > 
> > >
> > > web.xml
> > > -
> > >
> > > 
> > >
> > >  > >   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > >   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> > >
> > > 
> > >
> > >   
> > >   
> > > action
> > >
> > > org.apache.struts.action.ActionServlet
> > > 
> > >   application
> > >
> > >
> com.openwave.careertracks.ApplicationResources
> > > 
> > > 
> > >   config
> > >   /WEB-INF/struts-config.xml
> > > 
> > > 
> > >   debug
> > >   2
> > > 
> > > 
> > >   detail
> > >   2
> > > 
> > > 
> > >   validate
> > >   true
> > > 
> > > 1
> > >   
> > >
> > >
> > >   
> > >   
> > > action
> > > *.do
> > >   
> > >
> > >
> > >   
> > >   
> > > login.jsp
> > >   
> > >
> > >   
> > >   
> > > /WEB-INF/app.tld
> > > /WEB-INF/app.tld
> > >   
> > >
> > >   
> > >   
> > > /WEB-INF/struts-bean.tld
> > > /WEB-INF/struts-bean.tld
> > >   
> > >
> > >   
> > > /WEB-INF/struts-html.tld
> > > /WEB-INF/struts-html.tld
> > >   
> > >
> > >   
> > > /WEB-INF/struts-logic.tld
> > > /WEB-INF/struts-logic.tld
> > >   
> > > 
> > >
> > > login.jsp
> > > ---
> > > <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
> > >
> > > 
> > >   
> > >   
> > >   
> > >   
> > > 
> > >
> > > login.html
> > > 
> > > 
> > > 
> > > ***Username:** > > type="text" name="userName" value="" size="15">
> > > 
> > > 
> > > 
> > > ***Password:** > > type="password" name="password" size="15">
> > >  > > border="0">
> > > 
> > >
> > >
> > > Please help
> > > where i made a mistake..
> > >
> > > Thanx in Advance
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: Startup Problem

2002-09-26 Thread Amit Badheka

Hi,
make sure that the action/form class is declared public.

Amit.
- Original Message -
From: "Kalaiselvan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 27, 2002 7:56 AM
Subject: Re: Startup Problem


> Sorry, it was a pasting problem the package name is
>
> 
>
> Still i got the same error. Plz help where i made a mistake
> its very urgent for me to solve.
>
> Thanx
> Kalaiselvan.S
>
> - Original Message -
> From: "Mark Maimone" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 26, 2002 10:54 PM
> Subject: Re: Startup Problem
>
>
> > I see that the package name for your LoginForm has .. in it
> >
> > 
> >
> >
> > >>> [EMAIL PROTECTED] 09/26/02 13:13 PM >>>
> > Hi All,
> >
> > Here i'm facing serious problem..
> > I already configured test application in Struts.
> >
> > But when I configure my original Application i face serious problem..
> >
> > I got an error like
> >
> > "No action instance for path /login could be created"
> > "The server encountered an internal error (No action instance for path
> > /login could be created) that prevented it from fulfilling this
> > request."
> >
> > I gave my code here
> >
> > struts-config.xml
> > 
> >
> > 
> >
> >  >   "-//Apache Software Foundation//DTD Struts Configuration
> > 1.0//EN"
> >   "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  >type="com.login.LoginAction"
> >name="loginForm"
> >scope="request"
> >input="/login.jsp">
> >  
> > 
> > 
> > 
> >
> > web.xml
> > -
> >
> > 
> >
> >  >   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> >   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> >
> > 
> >
> >   
> >   
> > action
> >
> > org.apache.struts.action.ActionServlet
> > 
> >   application
> >
> >
com.openwave.careertracks.ApplicationResources
> > 
> > 
> >   config
> >   /WEB-INF/struts-config.xml
> > 
> > 
> >   debug
> >   2
> > 
> > 
> >   detail
> >   2
> > 
> > 
> >   validate
> >   true
> > 
> > 1
> >   
> >
> >
> >   
> >   
> > action
> > *.do
> >   
> >
> >
> >   
> >   
> > login.jsp
> >   
> >
> >   
> >   
> > /WEB-INF/app.tld
> > /WEB-INF/app.tld
> >   
> >
> >   
> >   
> > /WEB-INF/struts-bean.tld
> > /WEB-INF/struts-bean.tld
> >   
> >
> >   
> > /WEB-INF/struts-html.tld
> > /WEB-INF/struts-html.tld
> >   
> >
> >   
> > /WEB-INF/struts-logic.tld
> > /WEB-INF/struts-logic.tld
> >   
> > 
> >
> > login.jsp
> > ---
> > <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
> >
> > 
> >   
> >   
> >   
> >   
> > 
> >
> > login.html
> > 
> > 
> > 
> > ***Username:** > type="text" name="userName" value="" size="15">
> > 
> > 
> > 
> > ***Password:** > type="password" name="password" size="15">
> >  > border="0">
> > 
> >
> >
> > Please help
> > where i made a mistake..
> >
> > Thanx in Advance
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



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




Re: Is httpServletRequest available in the ActionForm

2002-09-26 Thread Adrian Brown

Affirm!

And don't just take my word for it - check this link:

(it's not exactly the same situation, but close-ish!)

http://www.scioworks.net/devnews/strutsDistilled/updates/update-020906/validatingForm.html


Adrian

 --- Aladar The Dinosaur <[EMAIL PROTECTED]> wrote:
> Thanks for the info. So, the solution is to use an
> "action" rather than
> trying to do this from the actionForm?
> 
> Scott
> - Original Message -
> From: "Adrian Brown" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Thursday, September 26, 2002 10:45 PM
> Subject: Re: Is httpServletRequest available in the
> ActionForm
> 
> 
> > Hi Scott,
> >
> > I think what you want to do is initialise the form
> > values? If so, use a request parameter to define
> an
> > initialise call on your Action, like this say:
> >
> > http://yourapp/upload.do?action=initialise
> >
> > check for this action parameter in your perform()
> > method of your action, and then fill in the
> initial
> > values if it equals 'initialise' and return a
> mapping
> > back to the jsp where you want the values
> displayed.
> >
> > If this is confusing, let me know and I'll put
> more
> > info in.
> >
> > If it is too easy, you may wish to consider using
> > DispatchAction to do the above, where the Dispatch
> > action automatically chooses to run a method based
> on
> > the value of a request parameter.
> >
> > Adrian
> >
> >
> >  --- Aladar The Dinosaur <[EMAIL PROTECTED]>
> wrote:
> > > Hello,
> > >
> > > Is "request" object available in the ActionForm?
> If
> > > so, how do I access it?
> > >
> > > I'm trying to populate actionForm properties
> with
> > > the information stored in
> > > the session, but don't know how to access the
> > > request object... by the way,
> > > I'm fairly new to java so if this is a newbie
> > > question please excuse.
> > >
> > > Thank you,
> > > Scott
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> 
> > > For additional commands, e-mail:
> > > 
> > >
> >
> > http://mobile.yahoo.com.au - Yahoo! Messenger for
> SMS
> > - Always be connected to your Messenger Friends
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
>  

http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends

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




Re: Is httpServletRequest available in the ActionForm

2002-09-26 Thread Aladar The Dinosaur

Thanks for the info. So, the solution is to use an "action" rather than
trying to do this from the actionForm?

Scott
- Original Message -
From: "Adrian Brown" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 10:45 PM
Subject: Re: Is httpServletRequest available in the ActionForm


> Hi Scott,
>
> I think what you want to do is initialise the form
> values? If so, use a request parameter to define an
> initialise call on your Action, like this say:
>
> http://yourapp/upload.do?action=initialise
>
> check for this action parameter in your perform()
> method of your action, and then fill in the initial
> values if it equals 'initialise' and return a mapping
> back to the jsp where you want the values displayed.
>
> If this is confusing, let me know and I'll put more
> info in.
>
> If it is too easy, you may wish to consider using
> DispatchAction to do the above, where the Dispatch
> action automatically chooses to run a method based on
> the value of a request parameter.
>
> Adrian
>
>
>  --- Aladar The Dinosaur <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > Is "request" object available in the ActionForm? If
> > so, how do I access it?
> >
> > I'm trying to populate actionForm properties with
> > the information stored in
> > the session, but don't know how to access the
> > request object... by the way,
> > I'm fairly new to java so if this is a newbie
> > question please excuse.
> >
> > Thank you,
> > Scott
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
> - Always be connected to your Messenger Friends
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>



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




Re: Is httpServletRequest available in the ActionForm

2002-09-26 Thread Adrian Brown

Hi Scott,

I think what you want to do is initialise the form
values? If so, use a request parameter to define an
initialise call on your Action, like this say:

http://yourapp/upload.do?action=initialise

check for this action parameter in your perform()
method of your action, and then fill in the initial
values if it equals 'initialise' and return a mapping
back to the jsp where you want the values displayed.

If this is confusing, let me know and I'll put more
info in.

If it is too easy, you may wish to consider using
DispatchAction to do the above, where the Dispatch
action automatically chooses to run a method based on
the value of a request parameter.

Adrian


 --- Aladar The Dinosaur <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> Is "request" object available in the ActionForm? If
> so, how do I access it?
> 
> I'm trying to populate actionForm properties with
> the information stored in
> the session, but don't know how to access the
> request object... by the way,
> I'm fairly new to java so if this is a newbie
> question please excuse.
> 
> Thank you,
> Scott
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
>  

http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends

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




org.apache.coyote.http11.Http11Processor.process taking a long time

2002-09-26 Thread Steve Vanspall

Hi there, I have a Java object that stores html code in a string for in order to speed 
my Web App up. 

Basically it Works similarly to an Array list, but updates the html code for each bean 
as it is added/update, thus removing the need for getting the JSP to iterate through 
an ArrayList and write the HTML specifically for it. So basically in my JSP all i need 
do is but a scriplet <%=list.html()%> where list is the the list of records.

Now this part works fine. But if the there is alot of html code in the string i.e. a 
large number of records, there seems to be a fairly slow method being invoked in 

org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, 
java.io.OutputStream)

as seems to be the case when I debug it.

Does anyone know anything aobut this method, or under what Apache project the source 
code may be so I can see what is causing the problem, and hopefuly change my Web App 
to accomodate this.

Any help would be great.

Steve



Is httpServletRequest available in the ActionForm

2002-09-26 Thread Aladar The Dinosaur

Hello,

Is "request" object available in the ActionForm? If so, how do I access it?

I'm trying to populate actionForm properties with the information stored in
the session, but don't know how to access the request object... by the way,
I'm fairly new to java so if this is a newbie question please excuse.

Thank you,
Scott



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




use Jakarta TagLibs in Struts

2002-09-26 Thread Billy Ng

I am trying to use the Jakarta Taglibs in Struts.  I have a jsp page which
has

<%@ taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0"; prefix="xsl" %>

When I hit the jsp, I have the following error.  Would anybody tell me
what's wrong?

javax.servlet.ServletException: org/apache/xalan/xslt/XSLTInputSource
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
 at java.lang.Thread.run(Thread.java:536)

root cause
java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTInputSource
 at java.lang.Class.getDeclaredMethods0(Native Method)
 at java.lang.Class.privateGetDeclaredMethods(Class.java:1613)
 at java.lang.Class.getDeclaredMethods(Class.java:1102)
 at java.beans.Introspector$1.run(Introspector.java:1088)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1086)
 at java.beans.Introspector.getTargetMethodInfo(Introspector.java:950)
 at java.beans.Introspector.getBeanInfo(Introspector.java:359)
 at java.beans.Introspector.getBeanInfo(Introspector.java:132)
 at
org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
 at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:146
)
 at
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
rseEventListener.java:822)
 at
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
istener.java:151)
 at
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
tListener.java:1032)
 at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:217)
 at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:212)
 at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:852)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
 at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:213)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspSer

Globals

2002-09-26 Thread Anthony Martin

Is it now recommended to use members of Global like in Global.ERROR_KEY
instead of Action.ERROR_KEY *even* in classes that extend Action?  I know
these members have not been marked as deprecated, but the note seems to
indecate that they are preferred:

"Global manifest constants for the entire Struts Framework. Many of these
constants were initially defined in Action, but were moved here so that they
could be referenced without referencing the Action class itself. For
backwards compatibility, constant references there point at this class, and
the constant values themselves have not changed."

So, it looks like either way is acceptable.  But will the old way be
deprecated sometime in the future?


Anthony

"The project purpose statement you wrote and understand will be seen
differently by everyone else." - Immutable Laws of Project Management

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




Re: Has anyone successfully implemented Jakarta Struts 1.0.2 iniPlanet 6.5?

2002-09-26 Thread huangzh

Hi,
 there is an place need to be change at the kregedit of the iplanet 6.5

start the the iplanet 6.5 's  kregedit  tool and move to the 

SOFTWARE\iPlanet\Application Server \6.5\CCS0\SYSTEM_JAVA\Versioning\
Set the Disable=1

and then you can try the struts again, hope this help you.


- Original Message - 
From: "Scott P. Bartle" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 10:56 PM
Subject: RE: Has anyone successfully implemented Jakarta Struts 1.0.2 in iPlanet 6.5?


> For those of you interested in the answer to this "issue"...  there are
> two solutions that have proved to work.
> 
> SOLUTION 1 (provided by Jerod Wilkerson, [[EMAIL PROTECTED]]):
> Simply move the curly-brace from above the AddDataSourceRule definition
> to below it (changing it from a top-level to an inner class) and make it
> private.  
> 
> SOLUTION 2 (provided by Mike Billings,
> [[EMAIL PROTECTED]]):
> Take the class definition for AddDataSourceRule out of the ActionServlet
> and put it into its own file.
> 
> For some reason (we think it might have to do with customization of the
> iPlanet ClassLoader), iPlanet cannot handle multiple top-level class
> definitions in the same servlet class file.  Had this not been a
> "serlvet" class, it would have worked fine.  I'm not sure if this is a
> Stuts bug, or an iPlanet bug... 
> 
> Hope this helps!!  Thanks, Jerod and Mike!
> -spb
> 
> 
> -Original Message-
> From: Scott P. Bartle [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, June 27, 2002 2:32 PM
> To: [EMAIL PROTECTED]
> Subject: Has anyone successfully implemented Jakarta Struts 1.0.2 in
> iPlanet 6.5?
> 
> 
> I have been working on this issue for the past 3 days, and I've read a
> lot of questions on a variety of forums and mailing lists, but I have
> yet to find a solution to this problem.  The problem I am running into
> is the notorious IllegalAccessError.  Mapping the name "Director" to my
> ActionServlet, here is what I am seeing:
> 
> Error in executing servlet Director: java.lang.IllegalAccessError: try
> to access class org.apache.struts.action.AddDataSourceRule from class
> org.apache.struts.action.ActionServlet
> [27/Jun/2002 11:25:33:9] error: APPLOGIC-caught_exception: Caught
> Exception:
> java.lang.ClassCastException: java.lang.IllegalAccessError
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.reportError(Unkn
> own Source)
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
> Source)
> at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at java.lang.Thread.run(Thread.java:484)
> 
> I have also tried to deploy the struts-example.war, and although it does
> successfully deploy, it fails and throws the above IllegalAccessError
> upon initializing the ActionServlet.
> 
> I have been out to read Matt Raible's document
> (http://www.icsynergy.com/downloads/struts/strutsHowTo.html), and I have
> read the "Using Jakarta Struts on iPlanet Application Server"
> document(http://developer.iplanet.com/appserver/samples/struts/docs/stru
> ts.pdf), provided by Sun--both excellent documents if you haven't read
> them, yet.  Regardless of what I have tried, however, I have yet to see
> a successful implementation of Jakarta Struts with iPlanet 6.5.  I get
> the impression that others have had success with Jakarta Struts on prior
> releases of iPlanet, so I am hoping there is an answer to this issue for
> release 6.5, as well.
> 
> All ideas are welcome!!
> 
> Thanks for your help,
> -spb
> 
>  If we find an answer to this issue, I will post the answer to all 3
> lists, as well.  Thanks, again.>
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

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




Re: Startup Problem

2002-09-26 Thread Kalaiselvan

Sorry, it was a pasting problem the package name is



Still i got the same error. Plz help where i made a mistake
its very urgent for me to solve.

Thanx
Kalaiselvan.S

- Original Message -
From: "Mark Maimone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 10:54 PM
Subject: Re: Startup Problem


> I see that the package name for your LoginForm has .. in it
>
> 
>
>
> >>> [EMAIL PROTECTED] 09/26/02 13:13 PM >>>
> Hi All,
>
> Here i'm facing serious problem..
> I already configured test application in Struts.
>
> But when I configure my original Application i face serious problem..
>
> I got an error like
>
> "No action instance for path /login could be created"
> "The server encountered an internal error (No action instance for path
> /login could be created) that prevented it from fulfilling this
> request."
>
> I gave my code here
>
> struts-config.xml
> 
>
> 
>
>"-//Apache Software Foundation//DTD Struts Configuration
> 1.0//EN"
>   "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
>
> 
> 
> 
> 
> 
> 
> 
> 
> type="com.login.LoginAction"
>name="loginForm"
>scope="request"
>input="/login.jsp">
>  
> 
> 
> 
>
> web.xml
> -
>
> 
>
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
> 
>
>   
>   
> action
>
> org.apache.struts.action.ActionServlet
> 
>   application
>
> com.openwave.careertracks.ApplicationResources
> 
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   debug
>   2
> 
> 
>   detail
>   2
> 
> 
>   validate
>   true
> 
> 1
>   
>
>
>   
>   
> action
> *.do
>   
>
>
>   
>   
> login.jsp
>   
>
>   
>   
> /WEB-INF/app.tld
> /WEB-INF/app.tld
>   
>
>   
>   
> /WEB-INF/struts-bean.tld
> /WEB-INF/struts-bean.tld
>   
>
>   
> /WEB-INF/struts-html.tld
> /WEB-INF/struts-html.tld
>   
>
>   
> /WEB-INF/struts-logic.tld
> /WEB-INF/struts-logic.tld
>   
> 
>
> login.jsp
> ---
> <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
>
> 
>   
>   
>   
>   
> 
>
> login.html
> 
> 
> 
> ***Username:** type="text" name="userName" value="" size="15">
> 
> 
> 
> ***Password:** type="password" name="password" size="15">
>  border="0">
> 
>
>
> Please help
> where i made a mistake..
>
> Thanx in Advance
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




A useful piece of code for pre-populating DynaForms

2002-09-26 Thread James Turner

Sometimes you have an Action that is going to forward to a JSP page with a 
form that should be pre-populated, but isn't the form that the Action is 
associated with.

For example, you might have a login form who's Action needs to pre-populate 
several different forms on a "change your address/credit card" page.  The 
login form needs to have access to these DynaForm objects to prepopulate 
them.  Here's a code example that will do just that:

ApplicationConfig appConfig =
 (ApplicationConfig)request.getAttribute(Action.APPLICATION_KEY);

FormBeanConfig formBeanConfig =
  appConfig.findFormBeanConfig("myDynaActionForm");

String beanType = formBeanConfig.getType();

DynaActionForm bean;

DynaActionFormClass formClass =
  DynaActionFormClass.createDynaActionFormClass(formBeanConfig);

bean = (DynaActionForm) formClass.newInstance();

request.setAttribute("myDynaActionForm", bean);


James



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




RE: multiple sub projects

2002-09-26 Thread Steven Leija

I'm currently setting up our team environment to use the sub projects.
But a question I have is this, are the jsp blind to this shift in the
configuration files?  Basically, so I need to change the paths or
anything in the jsp files to know that it should be pointed to a
specific config file?  I wasn't under the impression that I did, but
when I try to implement this, the action isn't finding the path.  It
says "invalid path" and display the path I'm trying to invoke.  So I'm
not sure where the disconnect is happening.  When starting up my server
it loads the Resources file, so it's finding it in the file.  Any
suggestions?

Thanks!

Steven

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 26, 2002 2:26 PM
To: Struts Users Mailing List
Subject: RE: multiple sub projects



> -Original Message-
> From: Taylor, Jason [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 11:28 AM
> To: 'Struts Users Mailing List'
> Subject: RE: multiple sub projects
> 
> 
> My interest in multiple sub-apps is more related to maintenence and
> post-launch life cycle issues. 
> 
> Modular development is nice, but to me fine-grained control 
> of override
> behavior for every aspect of the deployed application is 
> crucial-- that way
> I can add functionality or upgrade any feature of an 
> application without
> touching any of the original version's code/media/configuration, while
> keeping it all in one deployment unit.

I'm not following you here...do you mean that it's easier because you
only have to upgrade the sub-app for which you are making upgrades?

> 
> This makes it possible to more organically migrate (or 
> rollback) from one
> version to another.  It also reduces the amount of duplicated
> code/JSPs/media/etc drastically when closely similar versions 
> can share
> things.  

Also not following you...how does having multiple sub-apps reduce
duplicated code/JSPs?


> 
> -Original Message-
> From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:20 AM
> To: Struts Users Mailing List
> Subject: RE: multiple sub projects
> 
> 
> Pardon me if this questions seems a bit daft, but what does 
> using multiple
> sub-applications buy you other than splitting the app. into 
> logical chunks,
> each with its own config file?  
> 
> > -Original Message-
> > From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 26, 2002 10:23 AM
> > To: Struts Users Mailing List
> > Subject: Re: multiple sub projects
> > 
> > 
> > I believe what you're trying to do is covered by the 
> contextRelative 
> > attribute of the forward.  Have you tried setting 
> > 'contextRelative="true"' on a forward?  What it does is tell Struts 
> > "Interpret this as though it's relative to the APPLICATION 
> > context (not 
> > module context)".  I know this works for global forwards, and 
> > I believe 
> > it would also work for a local one.  Note that by specifying 
> > contextRelative="true" you must provide a path which is, in fact, 
> > relative to the application and not the module :-)
> > 
> > Anthony Martin wrote:
> > 
> > >What about situations where a common .jsp file is used as a 
> > target for
> > >forward by multiple sub-applications?
> > >
> > 
> > -- 
> > Eddie Bush
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Retrieving list of Roles defined in web.xml

2002-09-26 Thread Vinh Tran

I would like to get a list of Roles listed in web.xml.  Is there a simple
way to retrieve info from this file or do I need to use a Digester?

 
  
   Admin
   Tomcat
   Role1
 

Thanks



Re: About some odd postings...

2002-09-26 Thread Peter A. J. Pilgrim

Galbreath, Mark wrote:
> Thanks, Pier - that guy is one big PITA.
PITA == "A type of bread"
PUTA == "Son of a . (gun)" old western movie
-- 
Peter Pilgrim +-\ +-+++++
Java Technologist | | | ||||| 'n' Shine
   |  O  | | ||  --+| ---+
 /\| ._  / | | \  \ ||
/  \   | | \ \ | |+--  || ---+ A new day
   /_  _\  "Up"| | | | | ||||| is coming
 ||+-+ +-+ +-+++++
http://www.xenonsoft.demon.co.uk/"; />


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




Re: About some odd postings...

2002-09-26 Thread Peter A. J. Pilgrim

Pier Fumagalli wrote:
> Ok, user removed and banned, but we go back a long time, so I know that he's
> going to pop up again using a different email address, or impersonating
> someone else...
> 

> Pier (putting up with this guy since a couple of years now)

And then, as if unremarkedly as it was spectular, spontaneous applause
erupted across the entire planet.
-- 
Peter Pilgrim +-\ +-+++++
Java Technologist | | | ||||| 'n' Shine
   |  O  | | ||  --+| ---+
 /\| ._  / | | \  \ ||
/  \   | | \ \ | |+--  || ---+ A new day
   /_  _\  "Up"| | | | | ||||| is coming
 ||+-+ +-+ +-+++++
http://www.xenonsoft.demon.co.uk/"; />


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




Re: [FRIDAY] Middle East Policy

2002-09-26 Thread David Derry

Mark ou're TOO MUCH!!   But I love it!!!


  - Original Message - 
  From: Galbreath, Mark 





--





Re: Please help with iteration problem

2002-09-26 Thread Michael Bowman

Correction, it seems that the version of Tomcat doesn't matter after all. A JSP with 
nested  tags worked before, but not now. Maybe it was with an earlier 
version of Struts. Does anyone know if the behavior of  changed with 
respect to nesting the tags between Struts 1.0 and Struts 1.1b?

On Thu, 26 Sep 2002 19:02:19 -0400
Michael Bowman <[EMAIL PROTECTED]> wrote:

> One further complication: I found that nested  tags work on Tomcat 
>4.0.3, but not on Tomcat 4.1.10. Thats kind of weird.
> 
> I don't see the struts-el tags listed on the Struts Resources/Contributor Taglibs 
>page. Can you tell me where to find them? Thanks. 
> 
> On Thu, 26 Sep 2002 17:48:30 -0500
> Eddie Bush <[EMAIL PROTECTED]> wrote:
> 
> > Find out about, download, install, and use the new contributed taglib 
> > struts-el.
> > 
> > Michael Bowman wrote:
> > 
> > >Thanks for the reply. I'm going to try it. As a matter of fact, I do have IDs 
>that I'm using for the segments and objects contained within the segments. I want to 
>use  tags within the loops to build links displaying various information 
>about these objects.
> > >
> > >Do you know if I can use Struts tags inside of the JSTL tags? If the JSTL tags 
>just put beans in some scope, will the Struts tags know any difference?
> > >
> > >
> > >On Thu, 26 Sep 2002 15:20:45 -0500
> > >Eddie Bush <[EMAIL PROTECTED]> wrote:
> > >
> > >>
> > >>- or -
> > >>
> > >>- or -
> > >>
> > >>- or -
> > >>
> > >>
> > >
> > >Do I need the above if I put the java.util.List on the request object in my 
>Struts Action class prior to forwarding to the JSP?
> > >
> > No.  You could reference it as ${requestScope['key']} I believe.  In 
> > fact ... *ponder* ... you could possible access it by ${key}.  I think 
> > that may work too.  I always go through the scope ...
> > 
> > -- 
> > Eddie Bush
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> > 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

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




[FRIDAY] Middle East Policy

2002-09-26 Thread Galbreath, Mark





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


Re: Please help with iteration problem

2002-09-26 Thread Michael Bowman

One further complication: I found that nested  tags work on Tomcat 
4.0.3, but not on Tomcat 4.1.10. Thats kind of weird.

I don't see the struts-el tags listed on the Struts Resources/Contributor Taglibs 
page. Can you tell me where to find them? Thanks. 

On Thu, 26 Sep 2002 17:48:30 -0500
Eddie Bush <[EMAIL PROTECTED]> wrote:

> Find out about, download, install, and use the new contributed taglib 
> struts-el.
> 
> Michael Bowman wrote:
> 
> >Thanks for the reply. I'm going to try it. As a matter of fact, I do have IDs that 
>I'm using for the segments and objects contained within the segments. I want to use 
> tags within the loops to build links displaying various information about 
>these objects.
> >
> >Do you know if I can use Struts tags inside of the JSTL tags? If the JSTL tags just 
>put beans in some scope, will the Struts tags know any difference?
> >
> >
> >On Thu, 26 Sep 2002 15:20:45 -0500
> >Eddie Bush <[EMAIL PROTECTED]> wrote:
> >
> >>
> >>- or -
> >>
> >>- or -
> >>
> >>- or -
> >>
> >>
> >
> >Do I need the above if I put the java.util.List on the request object in my Struts 
>Action class prior to forwarding to the JSP?
> >
> No.  You could reference it as ${requestScope['key']} I believe.  In 
> fact ... *ponder* ... you could possible access it by ${key}.  I think 
> that may work too.  I always go through the scope ...
> 
> -- 
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

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




Re: Please help with iteration problem

2002-09-26 Thread Eddie Bush

Find out about, download, install, and use the new contributed taglib 
struts-el.

Michael Bowman wrote:

>Thanks for the reply. I'm going to try it. As a matter of fact, I do have IDs that 
>I'm using for the segments and objects contained within the segments. I want to use 
> tags within the loops to build links displaying various information about 
>these objects.
>
>Do you know if I can use Struts tags inside of the JSTL tags? If the JSTL tags just 
>put beans in some scope, will the Struts tags know any difference?
>
>
>On Thu, 26 Sep 2002 15:20:45 -0500
>Eddie Bush <[EMAIL PROTECTED]> wrote:
>
>>
>>- or -
>>
>>- or -
>>
>>- or -
>>
>>
>
>Do I need the above if I put the java.util.List on the request object in my Struts 
>Action class prior to forwarding to the JSP?
>
No.  You could reference it as ${requestScope['key']} I believe.  In 
fact ... *ponder* ... you could possible access it by ${key}.  I think 
that may work too.  I always go through the scope ...

-- 
Eddie Bush




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




Re: [OT] CMA in WebSphere iAS 3.5

2002-09-26 Thread Eddie Bush

Oh - in case it matters - my buddy is looking of a database-oriented 
solution - ie JDBC.

Eddie Bush wrote:

> This isn't for me.  It's kind of urgent though, so please don't 
> hesitate to respond quickly if you have a clue how to do it :-)  A 
> friend is finding a lot of resistance to using CMA in his app because 
> people are saying you can only do CMA in iAS 3.5 using EJBs -- and 
> they don't want to use EJBs.
>
> Is this fact or fiction?  Does anyone have a URL I can forward to my 
> friend on how it can be done, or can you give me some idea of 
> page/section he can quote from the manual for his rebuttal?  Neither 
> he nor myself can find anything about this that points to a non-EJB 
> solution.  I find it hard to believe there isn't one.
>
> Thanks!
>

-- 
Eddie Bush




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




[OT] CMA in WebSphere iAS 3.5

2002-09-26 Thread Eddie Bush

This isn't for me.  It's kind of urgent though, so please don't hesitate 
to respond quickly if you have a clue how to do it :-)  A friend is 
finding a lot of resistance to using CMA in his app because people are 
saying you can only do CMA in iAS 3.5 using EJBs -- and they don't want 
to use EJBs.

Is this fact or fiction?  Does anyone have a URL I can forward to my 
friend on how it can be done, or can you give me some idea of 
page/section he can quote from the manual for his rebuttal?  Neither he 
nor myself can find anything about this that points to a non-EJB 
solution.  I find it hard to believe there isn't one.

Thanks!

-- 
Eddie Bush



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




Re: Please help with iteration problem

2002-09-26 Thread Michael Bowman

Thanks for the reply. I'm going to try it. As a matter of fact, I do have IDs that I'm 
using for the segments and objects contained within the segments. I want to use 
 tags within the loops to build links displaying various information about 
these objects.

Do you know if I can use Struts tags inside of the JSTL tags? If the JSTL tags just 
put beans in some scope, will the Struts tags know any difference?


On Thu, 26 Sep 2002 15:20:45 -0500
Eddie Bush <[EMAIL PROTECTED]> wrote:

> 
> - or -
> 
> - or -
> 
> - or -
> 

Do I need the above if I put the java.util.List on the request object in my Struts 
Action class prior to forwarding to the JSP?

> 
> 
> 
> Route ID: 
> 
> 
> Segment ID: 
> 
> 
> 
> (I don't know if your routes/segments have an id property - it's just an 
> example)
> 
> I'm reasonably certain this should work.  I use basically the same 
> construct to go over an ArrayList (exposed as a Collection) and it's 
> nested ArrayList (again, exposed as a Collection).
> 
> Michael Bowman wrote:
> 
> >I am trying to nest iterate tags. I've tried   and 
> without success. Here's what I want to do.
> >
> >
> >   write stuff about the route.
> >   
> >  write stuff about the segment
> >   
> >
> >
> >"routes" points to a java.util.List of RouteBeans. Each RouteBean has a method, 
>getSegments() that returns a java.util.List of SegmentBeans.
> >
> >I've looked at the documents and examples for the nested tag, but I don't see 
>anything about this type of nesting. I don't have a "monkey" with a single "bunch" of 
>bananas, instead I simply have a java.util.List of bunches, each of which has a 
>java.util.List of bananas.
> >
> >I'd really appreciate any help ya'll can give me. I'm up for using any tag type 
>(struts-logic, struts-nested, or JSTL). I'd just rather not fall back on scriptlets 
>if I can help it.
> >
> >Thanks,
> >Michael Bowman
> >
> 
> -- 
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

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




RE: Sub Project Example

2002-09-26 Thread Taylor, Jason

I can't give you my stuff, but I started with downloading Camino 2.0.3 and
looking at the example 6 of "Horoscope IIex" or something like that.  Camino
is a tool that can purportedly manage sub-applications (I still haven't
bothered to get the IDE itself running).

-Original Message-
From: Steven Leija [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 3:03 PM
To: Struts Users Mailing List
Subject: Sub Project Example


Does anyone have a working example of how the sub project configuration?


 

Currently I'm trying to implement this using Struts 1.1 b2 from
September 26 and not having any success.  There isn't much documentation
so I'm going blind here.  

 

Thanks for any help!

 

Steven




Re: Sub Project Example

2002-09-26 Thread Eddie Bush

Have you tried searching the archive?  I've personally given several 
examples of this - one of which was quite comprehensive.  Others have 
given examples too ...

Steven Leija wrote:

>Does anyone have a working example of how the sub project configuration? 
>
>Currently I'm trying to implement this using Struts 1.1 b2 from
>September 26 and not having any success.  There isn't much documentation
>so I'm going blind here.  
>
>Thanks for any help!
>
>Steven
>

-- 
Eddie Bush




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




RE: Declarative exception handling

2002-09-26 Thread Charles McClain

Juan:

Yes.  I cribbed some code from the Struts example app that was reworked
for Struts 1.12b.  It appears below:









-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 26, 2002 5:43 PM
To: Struts
Subject: Declarative exception handling


Does anyone know of a way to include the exception message in the body
of an error page one has declared in the global-exceptions section of
struts-config.xml

EX:

 
  

  

I want to be able to display the exception message in /admin/failure.jsp

I did not find anything on the archives on this.

Thanks

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Sub Project Example

2002-09-26 Thread Steven Leija

Does anyone have a working example of how the sub project configuration?


 

Currently I'm trying to implement this using Struts 1.1 b2 from
September 26 and not having any success.  There isn't much documentation
so I'm going blind here.  

 

Thanks for any help!

 

Steven




RE: Declarative exception handling

2002-09-26 Thread Trieu, Danny

No .. You can use Action.Globals.EXCEPTION_KEY to get it from the request ..


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 26, 2002 2:52 PM
To: 'Struts Users Mailing List'
Subject: RE: Declarative exception handling


I'm not certain, but wouldn't the exception be in ActionErrors?

-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 5:43 PM

Does anyone know of a way to include the exception message in the body of an
error page one has declared in the global-exceptions section of
struts-config.xml

EX:

 
  

  

I want to be able to display the exception message in /admin/failure.jsp

I did not find anything on the archives on this.

Thanks

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Logout in a container-managed security environment -- Follow-up

2002-09-26 Thread Charles McClain

Eddie:

Yes, I'm aware of the drawback of having Tomcat service static content;
however, somewhere (perhaps in the Tomcat documentation, although since
the Tomcat documentation changed format with the release of Tomcat 4.0,
I could never find it again) I recall seeing a strong recommendation to
pass everything through to Tomcat in an Apache/Tomcat environment -- the
reason being that only in that way could you be sure that all of your
mappings and other servlet configurations were being enforced.

I'm trying to learn all of this stuff in such a short period of time,
and have read so much in a short period of time, that I've filed away
all of these "kernels" in my mind, having no idea where they came from.
Dangerous, I know.  But in any event, I do understand that total
pass-through is a two-edged sword.

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 26, 2002 5:17 PM
To: Struts Users Mailing List
Subject: Re: Logout in a container-managed security environment --
Follow-up


The only drawback I see to this approach is that static content will be 
served by Tomcat.  Typically, a person uses Tomcat in conjunction with 
Apache in order to allow Apache to serve the static content.  Thank you 
for the update :-)  I'm nearly certain there has to be a better way -- 
although I'm not 100% sure.  Maybe Craig will spot this and have 
something to chip-in.

Thanks for you kind words, and I'm glad to hear you managed to get it 
"working" (acceptably, I hope).

Charles McClain wrote:

>All:
>
>I made the original post in this thread, and thanks to the replies I 
>received, was able to implement FORM-based CMA in my application.
>
>As you can see in the message below, I was left with one residual
>problem:  Although FORM-based CMA worked fine in a standalone Tomcat 
>environment, when I switched to an integrated Apache-Tomcat 
>environment, I got a 404 not-found error from Apache for 
>"j_security_check"; in other words, Apache never passed this request 
>through to Tomcat.
>
>Again thanks to several replies I received, I've been able to resolve 
>this problem.  Eddie Bush, in particular, was helpful and asked me to 
>post the solution on this list when I found it.  So here goes.  Bear in

>mind that, in the example below, "ebps" is the name of my application 
>domain.
>
>The solution involved modifying Tomcat's mod_jk.conf file.  The 
>original set of mappings in mod_jk.conf for my application context was:
>
>JkMount /ebps/servlet/*  ajp13
>JkMount /ebps/*.jsp ajp13
>JkMount /ebps/  ajp13
>JkMount /ebps/*.do  ajp13
>
>On spec, I tried adding various mappings that assigned 
>"j_security_check" to the ajp13 worker.  The mapping that worked is:
>
>JkMount /ebps/*  ajp13
>
>.which in effect maps ALL requests to the ajp13 worker.  I've done 
>some light testing, and there do not seem to be any adverse side 
>effects to including this mapping, but I do have to caution everyone 
>that I haven't yet done through testing.
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Declarative exception handling

2002-09-26 Thread Galbreath, Mark

I'm not certain, but wouldn't the exception be in ActionErrors?

-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 5:43 PM

Does anyone know of a way to include the exception message in the body of an
error page one has declared in the global-exceptions section of
struts-config.xml

EX:

 
  

  

I want to be able to display the exception message in /admin/failure.jsp

I did not find anything on the archives on this.

Thanks

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: [OT] Bad case of the hiccups?

2002-09-26 Thread James Mitchell

;P

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 4:27 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Bad case of the hiccups?
> 
> 
> Nice try.  Unfortunately, you didn't manage to shoot them all off in the 
> same second - and you did a poor copy/paste job too! :-P
> 
> James Mitchell wrote:
> 
> >that's weird, I haven't noticed it.
> >
> >James Mitchell
> >Software Engineer\Struts Evangelist
> >Struts-Atlanta, the "Open Minded Developer Network"
> >http://www.open-tools.org/struts-atlanta
> >
> 
> -- 
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Declarative exception handling

2002-09-26 Thread Juan Alvarado \(Struts List\)

Does anyone know of a way to include the exception message in the body of an
error page one has declared in the global-exceptions section of
struts-config.xml

EX:

 
  

  

I want to be able to display the exception message in /admin/failure.jsp

I did not find anything on the archives on this.

Thanks

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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




RE: About some odd postings...

2002-09-26 Thread Galbreath, Mark

I am NOT a paranoid schizophrenic, and neither am I!  So STOP talking about
me behind my back!!

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 5:31 PM
To: Struts Users Mailing List
Subject: RE: About some odd postings...


Muchas gracias.  Dealing with schizophrenics always puts me on edge (even if
it's only by email). 

Whoah!  Don't get your panties in a wad, Mark, I wasn't talking about YOU.
;) :)

peace,
Joe

> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 2:32 PM
> To: 'Struts Users Mailing List'
> Subject: RE: About some odd postings...
> 
> 
> Thanks, Pier - that guy is one big PITA.
> 
> -Original Message-
> From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 5:28 PM
> To: [EMAIL PROTECTED]
> Subject: About some odd postings...
> 
> 
> Ok, user removed and banned, but we go back a long time, so I 
> know that he's
> going to pop up again using a different email address, or 
> impersonating
> someone else...
> 
> Let me know if you notice anything wrong... Either to me or to
> [EMAIL PROTECTED] :-/
> 
> Pier (putting up with this guy since a couple of years now)
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: About some odd postings...

2002-09-26 Thread Joe Barefoot

Muchas gracias.  Dealing with schizophrenics always puts me on edge (even if it's only 
by email). 

Whoah!  Don't get your panties in a wad, Mark, I wasn't talking about YOU. ;) :)

peace,
Joe

> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 2:32 PM
> To: 'Struts Users Mailing List'
> Subject: RE: About some odd postings...
> 
> 
> Thanks, Pier - that guy is one big PITA.
> 
> -Original Message-
> From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 5:28 PM
> To: [EMAIL PROTECTED]
> Subject: About some odd postings...
> 
> 
> Ok, user removed and banned, but we go back a long time, so I 
> know that he's
> going to pop up again using a different email address, or 
> impersonating
> someone else...
> 
> Let me know if you notice anything wrong... Either to me or to
> [EMAIL PROTECTED] :-/
> 
> Pier (putting up with this guy since a couple of years now)
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 



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




Re: About some odd postings...

2002-09-26 Thread Eddie Bush

Great to see you're still involved in things Pier - thanks so much for 
your help in this matter!

Pier Fumagalli wrote:

>Ok, user removed and banned, but we go back a long time, so I know that he's
>going to pop up again using a different email address, or impersonating
>someone else...
>
>Let me know if you notice anything wrong... Either to me or to
>[EMAIL PROTECTED] :-/
>
>Pier (putting up with this guy since a couple of years now)
>

-- 
Eddie Bush




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




RE: About some odd postings...

2002-09-26 Thread Galbreath, Mark

Thanks, Pier - that guy is one big PITA.

-Original Message-
From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 5:28 PM
To: [EMAIL PROTECTED]
Subject: About some odd postings...


Ok, user removed and banned, but we go back a long time, so I know that he's
going to pop up again using a different email address, or impersonating
someone else...

Let me know if you notice anything wrong... Either to me or to
[EMAIL PROTECTED] :-/

Pier (putting up with this guy since a couple of years now)


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: logic:iterate with nested html:img

2002-09-26 Thread Galbreath, Mark

Use the indexId and then put a matching List URL String:





This assumes you have a 1:1 correlation between the images and their values.

Mark

-Original Message-
From: Vinh Tran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 4:51 PM
To: [EMAIL PROTECTED]
Subject: logic:iterate with nested html:img


Anyone know how to set properties to an html:img tag within a logic:iterate
tag?

For example:





Thanks all.

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




About some odd postings...

2002-09-26 Thread Pier Fumagalli

Ok, user removed and banned, but we go back a long time, so I know that he's
going to pop up again using a different email address, or impersonating
someone else...

Let me know if you notice anything wrong... Either to me or to
[EMAIL PROTECTED] :-/

Pier (putting up with this guy since a couple of years now)


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




Re: Logout in a container-managed security environment -- Follow-up

2002-09-26 Thread Eddie Bush

The only drawback I see to this approach is that static content will be 
served by Tomcat.  Typically, a person uses Tomcat in conjunction with 
Apache in order to allow Apache to serve the static content.  Thank you 
for the update :-)  I'm nearly certain there has to be a better way -- 
although I'm not 100% sure.  Maybe Craig will spot this and have 
something to chip-in.

Thanks for you kind words, and I'm glad to hear you managed to get it 
"working" (acceptably, I hope).

Charles McClain wrote:

>All:
>
>I made the original post in this thread, and thanks to the replies I
>received, was able to implement FORM-based CMA in my application.
>
>As you can see in the message below, I was left with one residual
>problem:  Although FORM-based CMA worked fine in a standalone Tomcat
>environment, when I switched to an integrated Apache-Tomcat environment,
>I got a 404 not-found error from Apache for "j_security_check"; in other
>words, Apache never passed this request through to Tomcat.
>
>Again thanks to several replies I received, I've been able to resolve
>this problem.  Eddie Bush, in particular, was helpful and asked me to
>post the solution on this list when I found it.  So here goes.  Bear in
>mind that, in the example below, "ebps" is the name of my application
>domain.
>
>The solution involved modifying Tomcat's mod_jk.conf file.  The original
>set of mappings in mod_jk.conf for my application context was:
>
>JkMount /ebps/servlet/*  ajp13
>JkMount /ebps/*.jsp ajp13
>JkMount /ebps/  ajp13
>JkMount /ebps/*.do  ajp13
>
>On spec, I tried adding various mappings that assigned
>"j_security_check" to the ajp13 worker.  The mapping that worked is:
>
>JkMount /ebps/*  ajp13
>
>.which in effect maps ALL requests to the ajp13 worker.  I've done
>some light testing, and there do not seem to be any adverse side effects
>to including this mapping, but I do have to caution everyone that I
>haven't yet done through testing.
>

-- 
Eddie Bush




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




Re: logic:iterate with nested html:img

2002-09-26 Thread Eddie Bush

1) RTE
2) Use JSTL
3) Use Stuts-EL

Those are your alternatives.  I would go with 3.  Both 2 and 3 are good 
solutions.

Vinh Tran wrote:

>Anyone know how to set properties to an html:img tag within a logic:iterate
>tag?
>
>For example:
>
>
>
>
>
>Thanks all.
>

-- 
Eddie Bush




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




Form/Bean population and tag

2002-09-26 Thread Charles McClain

All:

My app is backended by an Oracle database in which each entity is keyed
by an artificial key.  I'm using JRF as the persistence framework.  I
populate my formbeans from JRF data beans using BeanUtils.describe() and
BeanUtils.populate(), and the commit function reverses this flow,
populating JRF data beans from my formbeans.

In the early stages of development, I displayed the artificial keys on
my JSPs with  tags, because I wanted to see the key values;
however, when my app reaches production, I don't want the user to see
the artificial keys, or in fact even know that there is such a thing.

However, when I changed the tags on my JSPs to , the
artificial key fields seemed no longer to be populated by BeanUtils.  I
think I may have seen something about BeanUtils methods not operating on
hidden fields back when BeanUtils was a Struts package, but I got caught
in the transfer of BeanUtils to the Commons project.  I did check the
current BeanUtils documentation, but of course since BeanUtils is now a
Commons component rather than Struts, there's no mention of any
relationship to Struts tags.

I searched this mailing list's archives and could not find anything on
this topic.  The behavior I'm seeing seems aberrant, since it seems to
me that BeanUtils utilizes only the relationship between the formbean
and the data bean, and has no knowledge of Struts tags.

So, my question is twofold:  Do BeanUtils methods operate on hidden
fields?  If not, how do I manage transfer of a field that I want hidden
on the JSP?  -- hiding an artificial key seems like a routine thing to
do, and I apologize for raising the question here, but I've done at
least some homework and can't find anything definitive.

Charles McClain
Phone:  603.659.2046
email:[EMAIL PROTECTED]


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




RE: using tiles and j_security_check

2002-09-26 Thread Holman, Cal

This happens to me infrequently running a web app from my IDE - the context
for tomcat gets screwed up and the submit for the form based auth does not
return to the container correctly.  This has never happened with a WAR
deployed to Tomcat - only through the IDE (Together).  The IDE is using
Tomcat 3.2.  I use Tiles with struts 1.1b2 on Tomcat 4.1.9 and have never
had the same issue.

Cal 

http://www.calandva.com/   

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 12:53
To: Struts Users Mailing List
Subject: Re: using tiles and j_security_check

Vincent Stoessel wrote:

> Hello,
> I am using tomcat's realm authentication
> to protect my struts 1.1 app. The actual
> form is constructed using tiles. This works
> fine for the most part but occasionaly I will submit the
> login form and get stuck at a blank page with a
> url of http:/mysite/j_security_check

Odd - can't imagine what it could be.  I would be inclined to say it's a
server issue, but I have nothing to substantiate that.  Having
j_security_check appear in the address bar indicates to me that things
are processing right.  What is your server setup?  Did you demo under a
different setup than you developed under?

> Usually I have to retry it a few times and then
> it will work. Has anyone seen this behavior?
> Should I feed tiles a plain html and not use tiles for that?
> I am also looking to see if this could be some
> kind of session problem. Of course the first time this problem showed
> up was when I was demoing my struts app in front of the
> suits. argh!

D'oh!  That ... sucks :-O

--
Eddie Bush




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




logic:iterate with nested html:img

2002-09-26 Thread Vinh Tran

Anyone know how to set properties to an html:img tag within a logic:iterate
tag?

For example:





Thanks all.



RE: options

2002-09-26 Thread Robert Taylor

1.1b2

I found it while browsing the taglib/html package source code.

robert

> -Original Message-
> From: Aaron Steele [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 3:50 PM
> To: 'Struts Users Mailing List'
> Subject: RE: options
> 
> 
> What version of Struts is that in?
> 
> Aaron Steele
> Java Consultant
> 817.401.0831
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 2:35 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: options
> 
> 
>  label="label" value="value"/>
> 
> robert
> 
> > -Original Message-
> > From: Jefferson R. de O. e Silva [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 26, 2002 3:17 PM
> > To: [EMAIL PROTECTED]
> > Subject: options
> >
> >
> > I have a bean called dataImportBean in my session. It has a
> > property called labelTypes which is an ArrayList,
> > and it has some LabelValueBean objects.
> >
> > I want to put each of the LabelValueBeans in a html:options, but
> > all I tried failed.
> >
> > Can any help me with this ?
> >
> > Thanks
> >
> > Jeff
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 

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




RE: Question

2002-09-26 Thread Tiago Nodari


 ahn?
 the only selects I had to populate I used the 
org.apache.struts.util.LabelValueBean, which is really usefull for selects

At 04:19 PM 9/26/2002 -0400, you wrote:
>gotcha ... but i'll need to create a bean rather then embed it in my
>dynaactionform
>
>-Original Message-
>From: Tiago Nodari [mailto:[EMAIL PROTECTED]]
>Sent: September 26, 2002 4:10 PM
>To: Struts Users Mailing List
>Subject: Re: Question
>
>
>
>  to populate a select there is an example in the html tag
>documentation or in the users manual, also in the subscrition.jsp (I think)
>it uses a ArrayList or vector...
>
>  tiago
>
>At 04:04 PM 9/26/2002 -0400, you wrote:
> >Can DynaActionForm contain non-String parameters.
> >
> >ie.  Can it contain a HashMap for a form-property?
> >
> >I want to populate a Select form field.
> >
> >--
> >To unsubscribe, e-mail:
>
> >For additional commands, e-mail:
>
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




Re: [OT] Bad case of the hiccups?

2002-09-26 Thread Eddie Bush

Nice try.  Unfortunately, you didn't manage to shoot them all off in the 
same second - and you did a poor copy/paste job too! :-P

James Mitchell wrote:

>that's weird, I haven't noticed it.
>
>James Mitchell
>Software Engineer\Struts Evangelist
>Struts-Atlanta, the "Open Minded Developer Network"
>http://www.open-tools.org/struts-atlanta
>

-- 
Eddie Bush




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




RE: Question

2002-09-26 Thread Darren Hill

gotcha ... but i'll need to create a bean rather then embed it in my
dynaactionform

-Original Message-
From: Tiago Nodari [mailto:[EMAIL PROTECTED]]
Sent: September 26, 2002 4:10 PM
To: Struts Users Mailing List
Subject: Re: Question



 to populate a select there is an example in the html tag 
documentation or in the users manual, also in the subscrition.jsp (I think) 
it uses a ArrayList or vector...

 tiago

At 04:04 PM 9/26/2002 -0400, you wrote:
>Can DynaActionForm contain non-String parameters.
>
>ie.  Can it contain a HashMap for a form-property?
>
>I want to populate a Select form field.
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Please help with iteration problem

2002-09-26 Thread Eddie Bush


- or -

- or -

- or -




Route ID: 


Segment ID: 



(I don't know if your routes/segments have an id property - it's just an 
example)

I'm reasonably certain this should work.  I use basically the same 
construct to go over an ArrayList (exposed as a Collection) and it's 
nested ArrayList (again, exposed as a Collection).

Michael Bowman wrote:

>I am trying to nest iterate tags. I've tried   and 
> without success. Here's what I want to do.
>
>
>   write stuff about the route.
>   
>  write stuff about the segment
>   
>
>
>"routes" points to a java.util.List of RouteBeans. Each RouteBean has a method, 
>getSegments() that returns a java.util.List of SegmentBeans.
>
>I've looked at the documents and examples for the nested tag, but I don't see 
>anything about this type of nesting. I don't have a "monkey" with a single "bunch" of 
>bananas, instead I simply have a java.util.List of bunches, each of which has a 
>java.util.List of bananas.
>
>I'd really appreciate any help ya'll can give me. I'm up for using any tag type 
>(struts-logic, struts-nested, or JSTL). I'd just rather not fall back on scriptlets 
>if I can help it.
>
>Thanks,
>Michael Bowman
>

-- 
Eddie Bush




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




Re: Question

2002-09-26 Thread Tiago Nodari


 to populate a select there is an example in the html tag 
documentation or in the users manual, also in the subscrition.jsp (I think) 
it uses a ArrayList or vector...

 tiago

At 04:04 PM 9/26/2002 -0400, you wrote:
>Can DynaActionForm contain non-String parameters.
>
>ie.  Can it contain a HashMap for a form-property?
>
>I want to populate a Select form field.
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




Question

2002-09-26 Thread Darren Hill

Can DynaActionForm contain non-String parameters.

ie.  Can it contain a HashMap for a form-property?

I want to populate a Select form field.

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




RE: options

2002-09-26 Thread Mark . Easparro


I am having a similiar problem.  In my case my form bean contains an ArrayList
of strings.  I have tried what you suggest below :



It starts up ok, but the default order of the strings html:select is backwards.
However, when I click the reset button, the order is the way it should be.
Also, upon unsuccessful validation, I get the following exception :

java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988)
at
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904)
at
org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2061)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

Any additional suggestions ?


Thanks
>




 Any additional suggestions ?




   
 
   
 
  To: "'Struts Users Mailing List'" 
<[EMAIL PROTECTED]>,   
 "Aaron Steele"   [EMAIL PROTECTED] 
 
 <[EMAIL PROTECTED]cc:  
 
 om>  Subject: RE: options 
 
 26 Sep 2002 03:30 PM  
 
 Please respond to 
 
 "Struts Users Mailing 
 
 List" 
 
   
 
   
 



I just finished a page that had similar functionality. The way I handled it
was to, in your case, have your dataImportBean have to properties
optionLabels and optionValues. then use the  as follows.




Aaron Steele
Java Consultant
817.401.0831
[EMAIL PROTECTED]

-Original Message-
From: Jefferson R. de O. e Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 2:17 PM
To: [EMAIL PROTECTED]
Subject: options


I have a bean called dataImportBean in my session. It has a property called
labelTypes which is an ArrayList,
and it has some LabelValueBean objects.

I want to put each of the LabelValueBeans in a html:options, but all I tried
failed.

Can any help me with this ?

Thanks

Jeff

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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





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




Re: [OT] Bad case of the hiccups?

2002-09-26 Thread Michael Delamere

LOL

- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 9:53 PM
Subject: RE: [OT] Bad case of the hiccups?


> that's weird, I haven't noticed it he he he ;)
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -Original Message-
> > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 26, 2002 3:08 PM
> > To: Struts Users Mailing List
> > Subject: Re: [OT] Bad case of the hiccups?
> >
> >
> > a BIG YES !
> >
> > I thought it must be my ISP but obviously not
> >
> > Regards,
> >
> > Michael
> >
> >
> > - Original Message -
> > From: "Eddie Bush" <[EMAIL PROTECTED]>
> > To: "Struts Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, September 26, 2002 7:32 PM
> > Subject: [OT] Bad case of the hiccups?
> >
> >
> > > I'm getting multiple copies of some messages.  I know they're the same
> > > message because of the timestamp.  Is anyone else experiencing this?
> > >  I'm guessing this is a continuation of the problems we had
> > yesterday ...
> > >
> > > --
> > > Eddie Bush
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: options

2002-09-26 Thread Aaron Steele

What version of Struts is that in?

Aaron Steele
Java Consultant
817.401.0831
[EMAIL PROTECTED]

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 2:35 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: options




robert

> -Original Message-
> From: Jefferson R. de O. e Silva [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 3:17 PM
> To: [EMAIL PROTECTED]
> Subject: options
>
>
> I have a bean called dataImportBean in my session. It has a
> property called labelTypes which is an ArrayList,
> and it has some LabelValueBean objects.
>
> I want to put each of the LabelValueBeans in a html:options, but
> all I tried failed.
>
> Can any help me with this ?
>
> Thanks
>
> Jeff
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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


RE: [OT] Bad case of the hiccups?

2002-09-26 Thread James Mitchell

that's weird, I haven't noticed it he he he ;)

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 3:08 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Bad case of the hiccups?
>
>
> a BIG YES !
>
> I thought it must be my ISP but obviously not
>
> Regards,
>
> Michael
>
>
> - Original Message -
> From: "Eddie Bush" <[EMAIL PROTECTED]>
> To: "Struts Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 26, 2002 7:32 PM
> Subject: [OT] Bad case of the hiccups?
>
>
> > I'm getting multiple copies of some messages.  I know they're the same
> > message because of the timestamp.  Is anyone else experiencing this?
> >  I'm guessing this is a continuation of the problems we had
> yesterday ...
> >
> > --
> > Eddie Bush
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: [OT] Bad case of the hiccups?

2002-09-26 Thread James Mitchell

that's weird, I haven't noticed it.

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 3:08 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Bad case of the hiccups?
>
>
> a BIG YES !
>
> I thought it must be my ISP but obviously not
>
> Regards,
>
> Michael
>
>
> - Original Message -
> From: "Eddie Bush" <[EMAIL PROTECTED]>
> To: "Struts Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 26, 2002 7:32 PM
> Subject: [OT] Bad case of the hiccups?
>
>
> > I'm getting multiple copies of some messages.  I know they're the same
> > message because of the timestamp.  Is anyone else experiencing this?
> >  I'm guessing this is a continuation of the problems we had
> yesterday ...
> >
> > --
> > Eddie Bush
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: [OT] Bad case of the hiccups?

2002-09-26 Thread James Mitchell

that's weird, I haven't noticed it.

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 3:08 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Bad case of the hiccups?
>
>
> a BIG YES !
>
> I thought it must be my ISP but obviously not
>
> Regards,
>
> Michael
>
>
> - Original Message -
> From: "Eddie Bush" <[EMAIL PROTECTED]>
> To: "Struts Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 26, 2002 7:32 PM
> Subject: [OT] Bad case of the hiccups?
>
>
> > I'm getting multiple copies of some messages.  I know they're the same
> > message because of the timestamp.  Is anyone else experiencing this?
> >  I'm guessing this is a continuation of the problems we had
> yesterday ...
> >
> > --
> > Eddie Bush
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: options

2002-09-26 Thread Robert Taylor



robert

> -Original Message-
> From: Jefferson R. de O. e Silva [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 3:17 PM
> To: [EMAIL PROTECTED]
> Subject: options
>
>
> I have a bean called dataImportBean in my session. It has a
> property called labelTypes which is an ArrayList,
> and it has some LabelValueBean objects.
>
> I want to put each of the LabelValueBeans in a html:options, but
> all I tried failed.
>
> Can any help me with this ?
>
> Thanks
>
> Jeff
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




RE: multiple sub projects

2002-09-26 Thread Joe Barefoot



> -Original Message-
> From: Taylor, Jason [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 11:28 AM
> To: 'Struts Users Mailing List'
> Subject: RE: multiple sub projects
> 
> 
> My interest in multiple sub-apps is more related to maintenence and
> post-launch life cycle issues. 
> 
> Modular development is nice, but to me fine-grained control 
> of override
> behavior for every aspect of the deployed application is 
> crucial-- that way
> I can add functionality or upgrade any feature of an 
> application without
> touching any of the original version's code/media/configuration, while
> keeping it all in one deployment unit.

I'm not following you here...do you mean that it's easier because you only have to 
upgrade the sub-app for which you are making upgrades?

> 
> This makes it possible to more organically migrate (or 
> rollback) from one
> version to another.  It also reduces the amount of duplicated
> code/JSPs/media/etc drastically when closely similar versions 
> can share
> things.  

Also not following you...how does having multiple sub-apps reduce duplicated code/JSPs?


> 
> -Original Message-
> From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:20 AM
> To: Struts Users Mailing List
> Subject: RE: multiple sub projects
> 
> 
> Pardon me if this questions seems a bit daft, but what does 
> using multiple
> sub-applications buy you other than splitting the app. into 
> logical chunks,
> each with its own config file?  
> 
> > -Original Message-
> > From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 26, 2002 10:23 AM
> > To: Struts Users Mailing List
> > Subject: Re: multiple sub projects
> > 
> > 
> > I believe what you're trying to do is covered by the 
> contextRelative 
> > attribute of the forward.  Have you tried setting 
> > 'contextRelative="true"' on a forward?  What it does is tell Struts 
> > "Interpret this as though it's relative to the APPLICATION 
> > context (not 
> > module context)".  I know this works for global forwards, and 
> > I believe 
> > it would also work for a local one.  Note that by specifying 
> > contextRelative="true" you must provide a path which is, in fact, 
> > relative to the application and not the module :-)
> > 
> > Anthony Martin wrote:
> > 
> > >What about situations where a common .jsp file is used as a 
> > target for
> > >forward by multiple sub-applications?
> > >
> > 
> > -- 
> > Eddie Bush
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 

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




RE: options

2002-09-26 Thread Aaron Steele

I just finished a page that had similar functionality. The way I handled it
was to, in your case, have your dataImportBean have to properties
optionLabels and optionValues. then use the  as follows.




Aaron Steele
Java Consultant
817.401.0831
[EMAIL PROTECTED]

-Original Message-
From: Jefferson R. de O. e Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 2:17 PM
To: [EMAIL PROTECTED]
Subject: options


I have a bean called dataImportBean in my session. It has a property called
labelTypes which is an ArrayList,
and it has some LabelValueBean objects.

I want to put each of the LabelValueBeans in a html:options, but all I tried
failed.

Can any help me with this ?

Thanks

Jeff

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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


options

2002-09-26 Thread Jefferson R. de O. e Silva

I have a bean called dataImportBean in my session. It has a property called labelTypes 
which is an ArrayList, 
and it has some LabelValueBean objects.

I want to put each of the LabelValueBeans in a html:options, but all I tried failed.

Can any help me with this ?

Thanks 

Jeff

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




Storing a bean in my FormBean

2002-09-26 Thread glen_roberts



My FormBean 
has a property that is a custom type 
(com.mycompany.myclass).
I have added 
this property to my form definition in struts-config.
My 
ActionClass does a 
request.setAttribute("beanname",instanceOfmyclass);.
Back on my 
jsp, it is really easy to bean:write from my 
instanceOfclass.
The question 
is, how can I then put instanceOfmyclass back into my FormBean as a property so 
subsequent calls to the ActionClass can access it?
 
Thanks 
alot,
Glen 
Roberts

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


Please help with iteration problem

2002-09-26 Thread Michael Bowman

I am trying to nest iterate tags. I've tried   and 
 without success. Here's what I want to do.


   write stuff about the route.
   
  write stuff about the segment
   


"routes" points to a java.util.List of RouteBeans. Each RouteBean has a method, 
getSegments() that returns a java.util.List of SegmentBeans.

I've looked at the documents and examples for the nested tag, but I don't see anything 
about this type of nesting. I don't have a "monkey" with a single "bunch" of bananas, 
instead I simply have a java.util.List of bunches, each of which has a java.util.List 
of bananas.

I'd really appreciate any help ya'll can give me. I'm up for using any tag type 
(struts-logic, struts-nested, or JSTL). I'd just rather not fall back on scriptlets if 
I can help it.

Thanks,
Michael Bowman

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




Re: [OT] Bad case of the hiccups?

2002-09-26 Thread Michael Delamere

a BIG YES !

I thought it must be my ISP but obviously not

Regards,

Michael


- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 7:32 PM
Subject: [OT] Bad case of the hiccups?


> I'm getting multiple copies of some messages.  I know they're the same
> message because of the timestamp.  Is anyone else experiencing this?
>  I'm guessing this is a continuation of the problems we had yesterday ...
>
> --
> Eddie Bush
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: multiple sub projects

2002-09-26 Thread Joe Barefoot

Thanks for the evaluation.  I'm going to have to politely disagree with your 
assessment that "you can multi-task the development better because of having a 
configuration file for each module".  Unless you're in an environment without source 
control, I don't buy the argument that maintaining multiple config files is easier 
than just one.  

We were doing exactly this at my last gig, by using an Ant task to push our multiple 
config files into a single struts-config.xml, and, quite frankly, it was just a pain 
in the ass.  I'd rather just use logical divisions within a single config file to 
group actions that belong together.  That way I only have to have one config file open 
if I'm making spot changes in different parts of the application, and I also don't 
have to worry about which sub-app I'm in or transfering to a different sub-app, 
regarding the URLs in my JSPs.

Judging from the traffic on the list, using multiple sub-apps. creates more confusion 
than it does clarity, which is what I believe was its original intent.  Of course, if 
it works for you and your team, that's all that matters. :)


peace,
Joe


> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:48 AM
> To: Struts Users Mailing List
> Subject: Re: multiple sub projects
> 
> 
> That's a very good question.  Personally, I see added overhead 
> (necessity for multiple instances of certain things to be 
> loaded) in the 
> current implementation.  The positive side is that I can 
> configure each 
> module with it's own "look and feel" - and tell which one I am in. 
>  You're right though, the biggest thing is that you can 
> multi-task the 
> development better because of having a configuration file for each 
> module.  That was the primary goal, I believe.  They did a 
> good job of 
> accomplishing that.
> 
> I *really like* the sub-app idea, but I think that it needs 
> to be taken 
> further.  Having the default sub-app act as a "global" sub-app (which 
> the others could share the config of) would, I believe, be 
> ideal.  Yes, 
> you can get away from duplicate effort by having your build 
> concatenate 
> property files and the like, but, unless I miss my guess, you're 
> necessitating the instantiation of unnecessary objects --- 
> one of which 
> could be a pretty "big thing": data-source.  I don't 
> personally use the 
> Struts-configured data-source, so it's not an issue to me, but, by 
> partitioning into sub-apps you would have to define a data-source for 
> each module that needed data access.  Unfortunately, as I see 
> it, doing 
> this blows all kinds of holes in "pool management" 
> strategies.  How do 
> you possibly configure the pool so that you're not asking for 
> connections you don't have enough licenses to cover, for example?
> 
> If for only pieces of the configuration, I believe the next 
> logical step 
> is to evolve the default sub-app into a "global" sub-app, which would 
> get checked for config objects, absent those same objects in 
> the current 
> module.  Yes, I'm talking about module inheritence.  I 
> wouldn't think it 
> would be that difficult do implement -- the current module's 
> config is 
> placed in request scope, and the "default" sub-app's config 
> is placed in 
> application scope.  You'd just have to refactor things to check one - 
> then the other - before deciding things didn't exist.
> 
> Joe Barefoot wrote:
> 
> >Pardon me if this questions seems a bit daft, but what does 
> using multiple sub-applications buy you other than splitting 
> the app. into logical chunks, each with its own config file?
> >
> 
> -- 
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




bean:write formatKey doesn't work with Strings?

2002-09-26 Thread Morycz, Felicia V

I have been looking into the formatKey option of the bean:write tag.

I have format.creditlimit=$###,###,##0.00 in my property file.

My jsp has the following:


I am trying to work only with strings between by controller and view, so I
originally had the getCreditLimit() method return a String.  This did not
work, the string was not formatted in the resulting html.  ex. 006500

However, when I changed getCreditLimit to return an int, then the formatting
was applied.  ex. $6,500

I understand why bean:write formatter would expect a number.  Is there a way
to still use Strings in your getters and setters of your form beans when you
want to use the format features of bean:write?

Felicia Morycz
EDS Solutions Consulting
phone: +01-614-823-4720
mailto:[EMAIL PROTECTED]
www.eds.com




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




RE: multiple sub projects

2002-09-26 Thread Taylor, Jason

My interest in multiple sub-apps is more related to maintenence and
post-launch life cycle issues. 

Modular development is nice, but to me fine-grained control of override
behavior for every aspect of the deployed application is crucial-- that way
I can add functionality or upgrade any feature of an application without
touching any of the original version's code/media/configuration, while
keeping it all in one deployment unit.

This makes it possible to more organically migrate (or rollback) from one
version to another.  It also reduces the amount of duplicated
code/JSPs/media/etc drastically when closely similar versions can share
things.  

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 10:20 AM
To: Struts Users Mailing List
Subject: RE: multiple sub projects


Pardon me if this questions seems a bit daft, but what does using multiple
sub-applications buy you other than splitting the app. into logical chunks,
each with its own config file?  

> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:23 AM
> To: Struts Users Mailing List
> Subject: Re: multiple sub projects
> 
> 
> I believe what you're trying to do is covered by the contextRelative 
> attribute of the forward.  Have you tried setting 
> 'contextRelative="true"' on a forward?  What it does is tell Struts 
> "Interpret this as though it's relative to the APPLICATION 
> context (not 
> module context)".  I know this works for global forwards, and 
> I believe 
> it would also work for a local one.  Note that by specifying 
> contextRelative="true" you must provide a path which is, in fact, 
> relative to the application and not the module :-)
> 
> Anthony Martin wrote:
> 
> >What about situations where a common .jsp file is used as a 
> target for
> >forward by multiple sub-applications?
> >
> 
> -- 
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: [OT] Bad case of the hiccups?

2002-09-26 Thread Galbreath, Mark

+1

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 1:33 PM
To: Struts Users List
Subject: [OT] Bad case of the hiccups?


I'm getting multiple copies of some messages.  I know they're the same 
message because of the timestamp.  Is anyone else experiencing this? 
 I'm guessing this is a continuation of the problems we had yesterday ...

-- 
Eddie Bush



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: multiple sub projects

2002-09-26 Thread Eddie Bush

That's a very good question.  Personally, I see added overhead 
(necessity for multiple instances of certain things to be loaded) in the 
current implementation.  The positive side is that I can configure each 
module with it's own "look and feel" - and tell which one I am in. 
 You're right though, the biggest thing is that you can multi-task the 
development better because of having a configuration file for each 
module.  That was the primary goal, I believe.  They did a good job of 
accomplishing that.

I *really like* the sub-app idea, but I think that it needs to be taken 
further.  Having the default sub-app act as a "global" sub-app (which 
the others could share the config of) would, I believe, be ideal.  Yes, 
you can get away from duplicate effort by having your build concatenate 
property files and the like, but, unless I miss my guess, you're 
necessitating the instantiation of unnecessary objects --- one of which 
could be a pretty "big thing": data-source.  I don't personally use the 
Struts-configured data-source, so it's not an issue to me, but, by 
partitioning into sub-apps you would have to define a data-source for 
each module that needed data access.  Unfortunately, as I see it, doing 
this blows all kinds of holes in "pool management" strategies.  How do 
you possibly configure the pool so that you're not asking for 
connections you don't have enough licenses to cover, for example?

If for only pieces of the configuration, I believe the next logical step 
is to evolve the default sub-app into a "global" sub-app, which would 
get checked for config objects, absent those same objects in the current 
module.  Yes, I'm talking about module inheritence.  I wouldn't think it 
would be that difficult do implement -- the current module's config is 
placed in request scope, and the "default" sub-app's config is placed in 
application scope.  You'd just have to refactor things to check one - 
then the other - before deciding things didn't exist.

Joe Barefoot wrote:

>Pardon me if this questions seems a bit daft, but what does using multiple 
>sub-applications buy you other than splitting the app. into logical chunks, each with 
>its own config file?
>

-- 
Eddie Bush




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




cancel and session-scope form

2002-09-26 Thread Angie Lin

Hi there,

How can I prevent a cancel button from populating the form bean? 
Normally this isn't a problem, except that my form bean is in 
session-scope (for an wizard-like implementation).

I've considered reconfiguring it so that the form stays in request-scope 
for each page in the wizard.  I would then instantiate the form in 
session-scope myself and manage the copying of form fields from each 
page manually depending on if the user submitted or cancelled.  But I 
was hoping for a simpler solution.

thanks,
Angie


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




RE: Logout in a container-managed security environment -- Follow-up

2002-09-26 Thread Charles McClain

All:

I made the original post in this thread, and thanks to the replies I
received, was able to implement FORM-based CMA in my application.

As you can see in the message below, I was left with one residual
problem:  Although FORM-based CMA worked fine in a standalone Tomcat
environment, when I switched to an integrated Apache-Tomcat environment,
I got a 404 not-found error from Apache for "j_security_check"; in other
words, Apache never passed this request through to Tomcat.

Again thanks to several replies I received, I've been able to resolve
this problem.  Eddie Bush, in particular, was helpful and asked me to
post the solution on this list when I found it.  So here goes.  Bear in
mind that, in the example below, "ebps" is the name of my application
domain.

The solution involved modifying Tomcat's mod_jk.conf file.  The original
set of mappings in mod_jk.conf for my application context was:

JkMount /ebps/servlet/*  ajp13
JkMount /ebps/*.jsp ajp13
JkMount /ebps/  ajp13
JkMount /ebps/*.do  ajp13

On spec, I tried adding various mappings that assigned
"j_security_check" to the ajp13 worker.  The mapping that worked is:

JkMount /ebps/*  ajp13

.which in effect maps ALL requests to the ajp13 worker.  I've done
some light testing, and there do not seem to be any adverse side effects
to including this mapping, but I do have to caution everyone that I
haven't yet done through testing.

-Original Message-
From: Charles McClain [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 25, 2002 8:18 AM
To: 'Struts Users Mailing List'
Subject: RE: Logout in a container-managed security environment --
Follow-up


All:

Just to close the loop:

The 404 not-found error I was receiving was coming from the Apache
webserver; when I switched to using the Tomcat servlet container
standalone, FORM-based authentication -- set up as per the advice of
those of you who replied  --  worked properly.

I *thought* that I had Apache configured to pass everything through to
Tomcat, but obviously, I have something wrong in my Apache
configuration.  I'll take a look at that in the near future.

Thanks again,

-- Charlie

-Original Message-
From: Charles McClain [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 24, 2002 7:10 PM
To: Struts User Mailing List
Subject: Logout in a container-managed security environment -- Follow-up


All:

I received several replies to my original question, all of which
indicated that, in order to do a forceful logout, I needed to use
FORM-based CMA rather than BASIC.  One of the replies recommended an
article on the topic, which I downloaded and read.

I implemented FORM-based authentication, making the changes to my
web.xml, indicating the login form and error page, etc.  The container
(Tomcat 4.0) seems to know that I want FORM-based authentication, since
it pops up my login page.  I did, by the way, include the fields
j_username and j_password, and my form action is j_security_check, as
per the instructions.

However, when I press the submit button, my browser gives me a 404
not-found error on the (nonexistent, of course) page j_security_check.
I've checked the Apache and Tomcat logs, and one of the Tomcat logs
tells me that it has "Configured an authenticator for method FORM", but
it still seems to be looking for a page by that name rather than
invoking the method.

Anyone have any ideas?

Charles McClain
Phone:  603.659.2046
email:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




[OT] Bad case of the hiccups?

2002-09-26 Thread Eddie Bush

I'm getting multiple copies of some messages.  I know they're the same 
message because of the timestamp.  Is anyone else experiencing this? 
 I'm guessing this is a continuation of the problems we had yesterday ...

-- 
Eddie Bush



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




RE: multiple sub projects

2002-09-26 Thread Joe Barefoot

Pardon me if this questions seems a bit daft, but what does using multiple 
sub-applications buy you other than splitting the app. into logical chunks, each with 
its own config file?  

> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:23 AM
> To: Struts Users Mailing List
> Subject: Re: multiple sub projects
> 
> 
> I believe what you're trying to do is covered by the contextRelative 
> attribute of the forward.  Have you tried setting 
> 'contextRelative="true"' on a forward?  What it does is tell Struts 
> "Interpret this as though it's relative to the APPLICATION 
> context (not 
> module context)".  I know this works for global forwards, and 
> I believe 
> it would also work for a local one.  Note that by specifying 
> contextRelative="true" you must provide a path which is, in fact, 
> relative to the application and not the module :-)
> 
> Anthony Martin wrote:
> 
> >What about situations where a common .jsp file is used as a 
> target for
> >forward by multiple sub-applications?
> >
> 
> -- 
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: Startup Problem

2002-09-26 Thread Mark Maimone

I see that the package name for your LoginForm has .. in it 




>>> [EMAIL PROTECTED] 09/26/02 13:13 PM >>>
Hi All,

Here i'm facing serious problem..
I already configured test application in Struts.

But when I configure my original Application i face serious problem..

I got an error like

"No action instance for path /login could be created"
"The server encountered an internal error (No action instance for path
/login could be created) that prevented it from fulfilling this
request."

I gave my code here

struts-config.xml




http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>










   




web.xml
-



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



  
  
action
   
org.apache.struts.action.ActionServlet

  application
 
com.openwave.careertracks.ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

1
  


  
  
action
*.do
  


  
  
login.jsp
  

  
  
/WEB-INF/app.tld
/WEB-INF/app.tld
  

  
  
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  

  
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
  

  
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
  


login.jsp
---
<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>


  
  
  
  


login.html



***Username:**



***Password:** 




Please help
where i made a mistake..

Thanx in Advance


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




Re: multiple sub projects

2002-09-26 Thread Eddie Bush

I believe what you're trying to do is covered by the contextRelative 
attribute of the forward.  Have you tried setting 
'contextRelative="true"' on a forward?  What it does is tell Struts 
"Interpret this as though it's relative to the APPLICATION context (not 
module context)".  I know this works for global forwards, and I believe 
it would also work for a local one.  Note that by specifying 
contextRelative="true" you must provide a path which is, in fact, 
relative to the application and not the module :-)

Anthony Martin wrote:

>What about situations where a common .jsp file is used as a target for
>forward by multiple sub-applications?
>

-- 
Eddie Bush




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




RE: Startup Problem

2002-09-26 Thread Taylor, Jason

LOOK AT YOUR CONSOLE!!

-Original Message-
From: Kalaiselvan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 6:32 AM
To: Struts Users Mailing List
Subject: Startup Problem


Hi All,

Here i'm facing serious problem..
I already configured test application in Struts.

But when I configure my original Application i face serious problem..

I got an error like

"No action instance for path /login could be created"
"The server encountered an internal error (No action instance for path
/login could be created) that prevented it from fulfilling this request."

I gave my code here

struts-config.xml




http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>










   




web.xml
-



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



  
  
action
org.apache.struts.action.ActionServlet

  application
 
com.openwave.careertracks.ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

1
  


  
  
action
*.do
  


  
  
login.jsp
  

  
  
/WEB-INF/app.tld
/WEB-INF/app.tld
  

  
  
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  

  
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
  

  
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
  


login.jsp
---
<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>


  
  
  
  


login.html



   Username:  



   Password:   




Please help
where i made a mistake..

Thanx in Advance



RE: multiple sub projects

2002-09-26 Thread Taylor, Jason

try 

-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 9:50 AM
To: Struts User List (E-mail)
Subject: Re: multiple sub projects


What about situations where a common .jsp file is used as a target for
forward by multiple sub-applications?


  
  


In this case, I have a sub-app called "foo" and the url to hit the above
action is "/myApp/foo/bar.do".  A .jsp exists in the root of the context
called "myApp/success.jsp" for when there's a successful "bar" action.

Now, the forward actually constructs a success mapping of
"/myApp/foo/../success.jsp" which works, but doesn't smell right.  Maybe
what we need is a new attribute in the  tag in addition to "path"
called "contextPath" so a forward could look like this:

  
  

If added, one could even go as far as to express this:

  
  


Anthony

"Welcome to \"Itchy and Scratchy Land\", where nothing could possibleye go
wrong ... hmm ... that's the first thing that's ever gone wrong."

--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: DTD

2002-09-26 Thread Ditlinger, Steve


Hi Jeff:

It appears you have a mismatch of identifier (1.1) with DTD (1.0) in your
!DOCTYPE tag.  Change your identifier to 1.0 to be consistent with the DTD
URL and then your app should work whether the struts site is up or not.
(Assuming your app is a Struts 1.0 app) 

The ActionServlet will use the DTD in the struts.jar if it recognizes the
identifier.  That's what we've been doing with Struts 1.1 successfully on a
server with no web access.

Good luck,
Steve


-Original Message-
From: Lowe, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 7:49 AM
To: 'Struts Users Mailing List'
Subject: DTD


I'm new to this list, so forgive me if this question has been posted
recently.

Yesterday my Struts application stopped working.  I finally traced the
problem to the following line in struts-config.xml:

http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>

Apparantly the Apache domain was unavailable for awhile on the web and this
caused the parser to hang.  (I was surprised not to see any mention of this
anywhere.  I would have thought that Struts apps all around the world would
have stopped working.)

To fix the problem I placed a copy of struts-config_1_0.dtd in the same
directory as struts-config.xml and changed the reference to:



When I start the application, I get a parser error stating that it can't
find the resource in the directory that the VM (i.e. Weblogic) was started
from.  According to the XML spec, the SYSTEM specifier should tell the
parser to look for the resource in a path relative to struts-config.xml, in
this case - the same directory.  Anyone have any insight into this?

Thanks,
-Jeff

Jeff Lowe
Software Architect
CELT Corporation
199 Forest St.
Marlboro, MA 01752

508-624-4474 x1237
[EMAIL PROTECTED]


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




Re: [OT] Disabling jsessionid parameter in Struts forms

2002-09-26 Thread Will Etson

We use resin and according to 
http://www.caucho.com/resin/ref/app-config.xtp#session-config
you can indepently turn off either cookie sessions or url-sessions. 

I'm not 100% sure what effect this will have but it sounds like it might solve your 
problem.

>>> Gemes Tibor <[EMAIL PROTECTED]> 09/26/02 02:11AM >>> 
2002. szeptember 26. 11:59 dátummal Ori Tend ezt írtad: 
> Thanks for the reply! 
> I'm not sure I understand.. if I use in my JSP the standard  tag I 
> dont get this jsessionid parameter when browsing to the page. Is there a 
> way to use struts'  tag and not get this jsessionid? 

If you use FORM based auth and disable cookies and don't use the EncodeURL() 
you have to reauthenticate yourself for every request. 

I can see the jsessionid appended only on the first page after the login page 
if I have cookies enabled. 

> I suspect that the jsessionid is added to the url by calling EncodeURL() at 
> the struts taglib. 
> I know that this may introduce problems to cookie-disabled visitors, but I 
> don't want the jsessionid to appear. 

Create a filter which processes the output and cut off from "jsessionid" to 
the first ";" in each page for each occurence of "jsessionid". 
If you insist. 

Why does it bother you? 

Tib 



Re: multiple sub projects

2002-09-26 Thread Anthony Martin

What about situations where a common .jsp file is used as a target for
forward by multiple sub-applications?


  
  


In this case, I have a sub-app called "foo" and the url to hit the above
action is "/myApp/foo/bar.do".  A .jsp exists in the root of the context
called "myApp/success.jsp" for when there's a successful "bar" action.

Now, the forward actually constructs a success mapping of
"/myApp/foo/../success.jsp" which works, but doesn't smell right.  Maybe
what we need is a new attribute in the  tag in addition to "path"
called "contextPath" so a forward could look like this:

  
  

If added, one could even go as far as to express this:

  
  


Anthony

"Welcome to \"Itchy and Scratchy Land\", where nothing could possibleye go
wrong ... hmm ... that's the first thing that's ever gone wrong."

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




Re: Startup Problem

2002-09-26 Thread Eddie Bush

I wouldn't hazard a guess, personally.  When the app is loaded and 
initializes it should spit out a stack trace (this is obviously a 
mistake in your config file).  Find that trace and you'll find your problem.

Kalaiselvan wrote:

>Hi All,
>
>Here i'm facing serious problem..
>I already configured test application in Struts.
>
>But when I configure my original Application i face serious problem..
>
>I got an error like
>
>"No action instance for path /login could be created"
>"The server encountered an internal error (No action instance for path /login could 
>be created) that prevented it from fulfilling this request."
>

-- 
Eddie Bush




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




Re: using tiles and j_security_check

2002-09-26 Thread Eddie Bush

Vincent Stoessel wrote:

> Hello,
> I am using tomcat's realm authentication
> to protect my struts 1.1 app. The actual
> form is constructed using tiles. This works
> fine for the most part but occasionaly I will submit the
> login form and get stuck at a blank page with a
> url of http:/mysite/j_security_check 

Odd - can't imagine what it could be.  I would be inclined to say it's a 
server issue, but I have nothing to substantiate that.  Having 
j_security_check appear in the address bar indicates to me that things 
are processing right.  What is your server setup?  Did you demo under a 
different setup than you developed under?

> Usually I have to retry it a few times and then
> it will work. Has anyone seen this behavior?
> Should I feed tiles a plain html and not use tiles for that?
> I am also looking to see if this could be some
> kind of session problem. Of course the first time this problem showed
> up was when I was demoing my struts app in front of the
> suits. argh!

D'oh!  That ... sucks :-O

-- 
Eddie Bush




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




  1   2   >