RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Yee, Richard K,,DMDCWEST
Larry,
For debugging purposes, the org.apache.soap.util.net.TcpTunnelGui utility is
useful. It's in the Jakarta Soap project jar file. It will let you view the
headers and the markup sent to/from your browser.

-Richard


-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 26, 2004 11:47 AM
To: 'Struts Users Mailing List'
Subject: RE: Why there is no getHeader(String headerName) and getHeaders()
met hod in HttpServletResponse?


Richard,

Thanks for your answers. I think that makes great sense; though I still
think to have getHeader() or getHeaders() may be helpful when doing debug
for response object.

Larry

-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 12:06 PM
To: Struts Users Mailing List
Subject: Re: Why there is no getHeader(String headerName) and
getHeaders() met hod in HttpServletResponse?


Larry,
I'll go out on a limb here and say that since the
response is being generated on the server by a servlet
or JSP, there is no need for getHeader() or
getHeaders() methods because the developer is setting
them. The HttpServletResponse interface has
addHeader() and addXXXHeader() methods to add headers
to the response. There is also the containsHeader()
method which returns a boolean.

-Richard

--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote:
> Folks, this may be an off topic question, but I am
> curious to understand why.
> 
> We know that Http protocol has features such as
> Headers. Both response and request have HTTP
> headers. It is easy to get the headers in J2EE from
> a HttpServletRequest objects using getHeader()
> and/or getHeaders() methods, however, there is no corresponding 
> methods in HttpServletResponse. What is the reasoning behind this 
> design?
> 
> Thanks.
> 
> Larry Zhang
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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


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

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



RE: pre-populating DynaValidatorForm

2004-03-25 Thread Yee, Richard K,,DMDCWEST
Takhar,
Yes. If you are using modules, then you'd have to add:

 fbc.setModuleConfig(mapping.getModuleConfig());

-Richard

-Original Message-
From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 4:47 AM
To: Struts Users Mailing List
Subject: RE: pre-populating DynaValidatorForm


Isn't this assuming there are no modules?

sandeep

-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 7:11 PM
To: 'Struts Users Mailing List'
Subject: RE: pre-populating DynaValidatorForm


Dean,
Here's the essential code in order to instantiate a DynaActionForm from
within an Action class.

 FormBeanConfig fbc = new FormBeanConfig();  fbc.setName("myForm");
DynaActionFormClass dafc =
DynaActionFormClass.createDynaActionFormClass(fbc);
 DynaActionForm formBean = (DynaActionForm) dafc.newInstance();
formBean.set("myProperty", "someValue");
request.setAttribute("myDynaForm",formBean);

-Richard
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 7:48 AM
To: Struts Users Mailing List
Subject: Re: pre-populating DynaValidatorForm


See http://www.mail-archive.com/[EMAIL PROTECTED]/msg96035.html

hth,
Hubert

--- "Dean A. Hoover" <[EMAIL PROTECTED]> wrote:
> I am using struts 1.1, and I am directly instantiating a 
> DynaValidatorForm in my Action class. I am hesitant to embrace struts 
> 1.2 at this time, especially if
> the difference between 1.1 and 1.2 is as large as betwee 1.0 and 1.1. Is 
> there
> some other way to accomplish it?
> 
> Dean Hoover
> 
> Hubert Rabago wrote:
> 
> >What version of Struts are you using?  How are you instantiating your
> >Dyna*Form?  Struts 1.1 didn't really have direct support for 
> >instantiating DyanForms from an Action object.  Struts 1.2.0/nightly 
> >build does.  Is it possible that you're using 1.1 and instantiating the
form incorrectly?
> >
> >  
> >


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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

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

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

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



RE: pre-populating DynaValidatorForm

2004-03-24 Thread Yee, Richard K,,DMDCWEST
Dean,
Here's the essential code in order to instantiate a DynaActionForm from
within an Action class.

 FormBeanConfig fbc = new FormBeanConfig();
 fbc.setName("myForm");
 DynaActionFormClass dafc =
 DynaActionFormClass.createDynaActionFormClass(fbc);
 DynaActionForm formBean = (DynaActionForm) dafc.newInstance();
 formBean.set("myProperty", "someValue");
 request.setAttribute("myDynaForm",formBean);

-Richard
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 7:48 AM
To: Struts Users Mailing List
Subject: Re: pre-populating DynaValidatorForm


See http://www.mail-archive.com/[EMAIL PROTECTED]/msg96035.html

hth,
Hubert

--- "Dean A. Hoover" <[EMAIL PROTECTED]> wrote:
> I am using struts 1.1, and I am directly instantiating a
> DynaValidatorForm in
> my Action class. I am hesitant to embrace struts 1.2 at this time, 
> especially if
> the difference between 1.1 and 1.2 is as large as betwee 1.0 and 1.1. Is 
> there
> some other way to accomplish it?
> 
> Dean Hoover
> 
> Hubert Rabago wrote:
> 
> >What version of Struts are you using?  How are you instantiating your 
> >Dyna*Form?  Struts 1.1 didn't really have direct support for 
> >instantiating DyanForms from an Action object.  Struts 1.2.0/nightly 
> >build does.  Is it possible that you're using 1.1 and instantiating the
form incorrectly?
> >
> >  
> >


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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

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



Re: Executing Struts-layout

2004-03-18 Thread Khalid K.
Just take a close look at the stack trace and read it from buttom up, and see
where the code fails...Usually it is something like:
NullPointerException
com.blablah.myAction (myAction:30)

which means the nullpointerexception happened at line 30 of "myAction" or
whatever class you are calling..

Khalid

Quoting Zakaria khabot <[EMAIL PROTECTED]>:

> Hi all,
> when I execute an Action which forward to a JSP I receive a null pointer
> exception.
> in my JSP I have :
>  styleClass="FORM" >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> "tab" in an ArrayList witch I got from the Database.
> 
> can someone help me.
> 
> thanks
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Khalid K.

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



RE: help ,action path

2004-03-09 Thread Khalid K.
Do you have the tag libraries defined on top of the page

Example:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

???

Khalid



modified the jsp file to the below still doesnt work


or


You can also do a "view source" and look the html generated by tag


and ,I think I need an explaination of this, and what should be the right 
way? (I think I m doing the right which I described in my last mail(below)  
)

thank you all

>From: "Mu Mike" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: help ,action path
>Date: Wed, 10 Mar 2004 03:18:51 +
>
>I got this jsp page:
>
>sample.jsp:
>
>
>
>  
>
>
>
>
>
>it is saved in
>
>/contextPath/rv/sample.jsp
>
>this is part of my web.xml
>
>web.xml:
>
>
>config/rv
>/WEB-INF/struts-rv-config.xml
>
>
>this is part of my struts-rv-config.xml
>
>struts-rv-config.xml:
>
>type="com.viador.rv.action.RunReportAction"
>name="OpenReportForm"
>scope="session">
>
>
>when I try to access the jsp page directly by this url 
>http://localhost/myapp/rv/sample.jsp
>
>there is an error says
>Cannot retrieve mapping for action /openReport
>why?
>
>
>even when I modified the jsp page as the below
>
>action="/rv/openReport.do"> or action="myapp/rv/openReport.do
>
>it still doesnt work
>
>but if I use the form element of HTML instead of that of struts,
>smaple.jsp works!
>
>why is this?
>
>_
>与联机的朋友进行交流,请使用 MSN Messenger:
>http://messenger.msn.com/cn
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  


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



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004
 


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



RE: Life, the Universe and Everything (was: RE: [OT] RE: Memory usage)

2004-03-02 Thread P K
so you reckon that hinting to my Manager, whom we both report to, about my 
frustrations isn't going to help much?

Thanks for the suggestion about the small company though. Looking back, the most fun I 
had at work was working for a small company.
 
Simons, Your suggestion # 4 is great nad #5 really interesting. Thanks.

Andrew Hill <[EMAIL PROTECTED]> wrote:
Ive found the best way to avoid those kind of morons is to work at small
companies where any deadwood has nowhere to hide and is quickly pruned :-)
Our tech leads really know their stuff here.


-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 2 March 2004 06:28
To: Struts Users Mailing List
Subject: Life, the Universe and Everything (was: RE: [OT] RE: Memory
usage)


While the original flame war was less helpful, the question that has emerged
from it's ashes is a good one. I don't claim to have all the answers, but I
can offer some personal observations. Feel free to disagree.

1. You can do nothing about those who choose not to learn. I've tried
changing them and it doesn't work. I consider this a basic fact.

2. You have a great deal of control over your ability to learn. If you
aren't big time into learning, then I recommend catching some enthusiasm for
it.

3. There will be always be good and bad tech leads. I am a tech lead; I try
to be a good one. I can put a String to standard out or standard error! ;-)

4. I had the same frustrations that you have. I made the decision that the
best way to restore the balance of good in the universe, was to try to
become the kind of tech lead that I would have wanted when I was a
newbie/humble grunt. I teach a class on learning Java one lunchtime a week
and try to bestow a little wisdom and encouragement whenever I can. I am a
Java mentor here and I lead a study group of us that are seeking our Java
Certification.

5. No one reads documentation. This is a fact. Learn what is "drop dead
fired and escorted from the building" important and then try to
auto-generate it. :-)

6. Leadership is a rare commodity. There's a lot of management out there,
but precious little leadership. Again, deal with it. Become a leader and
just do what needs to be done. This is what I have tended to do. The ol'
saying about "it's easier to ask forgiveness than permission" is very true
(except I sometimes forget to ask for forgiveness! :-)

7. Black team? How 90's, Our team wears Hawaiian shirts! (Honest. :-)

Simon

>-Original Message-
>From: P K [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 01, 2004 3:58 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [OT] RE: Memory usage
>
>
>Sorry to continue on this topic. I've learnt a great deal of
>non struts stuff on this list and this only adds to it.
>I've been bothered (mostly in my mind) with questions about
>peoples capabilities and desires when it comes to work. Viru,
>this original poster of the question on Memory Usage clearly
>has a desire to learn, but what about people who don't? How do
>you deal with them?
>I currently work with a Tech Lead who wouldn't be able to
>output a String to standard out if asked to write a program. I
>don't care about her taking credit for the work that we do.
>She doesn't provide any leadership whatsoever to the project
>except produce paper that no one bothers to read. Have you
>guys come across situations like this? What have you done
>about it? Don't get me wrong - I am not prone to complaining
>nor do I think I am a member of the elite 'Black Team'.
>
>Quoting "Dhaliwal, Pritpal (HQP)" 
:
>> +1
>>
>> I agree with everyone who has responded. We should not
>clutter this very
>> friendly mailing list with things that don't belong here,
>that includes "not
>> so nice" responses. I haven't been on many, but this is by
>far my favorite
>> list, even though I am mainly a spectator.
>>
>> I lashed out because this question clearly didn't belong
>here. If the person
>> had followed anything in
>http://www.catb.org/~esr/faqs/smart-questions.html,
>> it must that they were polite. They certainly didn't do much
>investigation
>> outside on the internet. The little bit of unfriendliness, I
>dunno why it
>> came out. Unprofessional, it shouldn't have came out.
>>
>Even questions that don't belong here deserve to be treated
>with respect. That
>is the single most obvious characteristic of STRUTS-USER that
>is distinctive
>(even though it has lots of other good qualities).
>Unfortunately, you decided to unload on a poster in a manner
>that is decidedly
>out of the norm for STRUTS-USER. Your response is the kind of

RE: [OT] RE: Memory usage

2004-03-01 Thread P K
Sorry to continue on this topic. I've learnt a great deal of non struts stuff on this 
list and this only adds to it.
I've been bothered (mostly in my mind) with questions about peoples capabilities and 
desires when it comes to work. Viru, this original poster of the question on Memory 
Usage clearly has a desire to learn, but what about people who don't? How do you deal 
with them?
I currently work with a Tech Lead who wouldn't be able to output a String to standard 
out if asked to write a program. I don't care about her taking credit for the work 
that we do. She doesn't provide any leadership whatsoever to the project except 
produce paper that no one bothers to read. Have you guys come across situations like 
this? What have you done about it? Don't get me wrong - I am not prone to complaining 
nor do I think I am a member of the elite 'Black Team'.

Quoting "Dhaliwal, Pritpal (HQP)" <[EMAIL PROTECTED]>:
> +1
> 
> I agree with everyone who has responded. We should not clutter this very
> friendly mailing list with things that don't belong here, that includes "not
> so nice" responses. I haven't been on many, but this is by far my favorite
> list, even though I am mainly a spectator. 
> 
> I lashed out because this question clearly didn't belong here. If the person
> had followed anything in http://www.catb.org/~esr/faqs/smart-questions.html,
> it must that they were polite. They certainly didn't do much investigation
> outside on the internet. The little bit of unfriendliness, I dunno why it
> came out. Unprofessional, it shouldn't have came out.
> 
Even questions that don't belong here deserve to be treated with respect. That
is the single most obvious characteristic of STRUTS-USER that is distinctive
(even though it has lots of other good qualities).
Unfortunately, you decided to unload on a poster in a manner that is decidedly
out of the norm for STRUTS-USER. Your response is the kind of behavior that
creates problems for the perception of open source projects as being "friendly"
to users or not. If you think the topic is totally out of scope for
STRUTS-USER, then you should either (a) answer the question anyway but point
people to where they should really be asking; (b) *gently* encourage the user
to explore the other resources that are available (the archives are full of
examples of folks who have done this), or (c) shut your yap and press DELETE
instead of SUBMIT on your replies :-).
The culture of the STRUTS-USER list has always been *deliberately* different
from the "you idiot, how could you be so stupid as to ask that question in that
way" sort of attitude that far too many open source projects have. 
Fortunately, despite the fact that this is the most-subscribed-to user list at
Jakarta (ten short of 3000 at the moment), the occurrences of rude behavior are
so rare that they immediately attract notice for being out of character for
what we're trying to achieve :-). I'd say that we've been doing a pretty good
job maintaining a friendly, welcoming, and helpful community. I'd also like to
keep it that way.
Craig McClanahan
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


-
Do you Yahoo!?
Get better spam protection with Yahoo! Mail

Re: data transfer from Action class to jsp page

2004-02-25 Thread Khalid K.
Just to expand on what Max said,

1. create a ActionForm
  i.e. class MyForm extends ActionForm
2. define attributes that you want to show on the jsp
   i.e. name, street, city, zip
3. you can optionally define validate() and reset() methods

4. define your form bean in struts-config.xml

5. associate the form bean with your action in struts-config.xml

6. in your action read data from database populate form

7. in jsp access form attributes to display values and if needed
   let client change it.

Khalid

Quoting Max Cooper <[EMAIL PROTECTED]>:

> Put it in the ActionForm.
> 
> -Max
> 
> - Original Message - 
> From: "Pradeep, PK" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 25, 2004 6:51 AM
> Subject: data transfer from Action class to jsp page
> 
> 
> 
> I have this basic question.
> 
> Suppose action class calls some business object and fetches some data
> (say employee detail). How to transfer this data to jsp page which is
> reached through ActionForward?
> 
> One way I know is storing the data in session object..is there any
> better/different way
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Khalid K.

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



RE: Must have action="....." in tag?

2004-02-23 Thread Khalid K.
Why can't you just use DispatchAction ??
Then, you can have methods like:

Create()
Update()
Delete()

And set the correct "token" during the submit ??

Khalid


-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 23, 2004 7:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Must have action="." in  tag?


Ramadoss:
That's what I did already in one of my original version.   My reason of
posting to this group is because  doesn't allow me to use a
dynamically assigned "action" (such as one I set in my Javascript function
to replace the one I have within the  tag.
 

-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 23, 2004 7:10 PM
To: Struts Users Mailing List
Subject: RE: Must have action="." in  tag?


I'm not sure this but you can try...

Create Main screen (define a attribute in your form which holds the
value of "which screen" and set update/create before dispatch) > 
 use 'theForm' to input data (here check that attribute value whether it
is create/update and assign the same to the action path either your
JavaScript sumbit or whatever )  >  return back to Create main

-R



-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 6:08 PM
To: 'Struts Users Mailing List'
Subject: RE: Must have action="." in  tag?


Shyam:
I am not sure what you mean, can you elaborate that?
The current form only has one 'submit' button.  After the user fills in data
on the current form, I want the data to be submitted to the DB and then
automatically be taken back to the 'previous' screen.  This previous screen
can be a 'Create main screen' or an 'Update main screen'.   I use a hidden
field 'whichAction' to "remember" which is the 'previous' screen.   So when
the user submits the input data on the cuurrent form, that's when the
javascript submitForm() function decides which screen
(/app/fdd/shopWorkOrder/fromCreateShopWorkOrder or
/app/fdd/shopWorkOrder/fromUpdateShopWorkOrder) to return to.

Example:

Create Main screen  >  use 'theForm' to input data  >  return
back to Create main

Update Main screen  -> use 'theForm' to input data  >  return
back to Update main

 (this screen 'theForm' is where I decide
  which precious screen to return
  to based on the hidden field "whichAction".
  That's why  has to be dynamic

My user only wants "ONE" submit button on "theForm" and the application
should be smart enough to return to the correct 'previous' page.




-Original Message-
From: Shyam A [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 23, 2004 5:31 PM
To: Struts Users Mailing List
Subject: RE: Must have action="." in  tag?


Just a suggestion. Not sure if I'm right...
Instead of using onSubmit() event of your ,
why don't you call the Javascript when the user
clicks/submits the associcated HTML component -
"Create/Update button", and set the action
accordingly.

HTH,
Shyam

--- "Au-Yeung, Stella H" <[EMAIL PROTECTED]>
wrote:
> But I don't always want 
> "/app/fdd/shopWorkOrder/fromCreateShopWorkOrder" to
> be my action all the time.   I want the action for
> the form to be "dynamic"
> and depends on the form field "whichAction".  That's
> why I created the
> javascript function submitForm(frm) to pick the
> action "dynamically".  In
> other words, I have  in my
> struts-config.xml file for both
> path
> "/app/fdd/shopWorkOrder/fromCreateShopWorkOrder" and
> "/app/fdd/shopWorkOrder/fromUpdateShopWorkOrder".
> But I want whichever one
> to be chosen to be "dynamically". So  how I do that
> all within the
>  tag?
> 
> -Original Message-
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 23, 2004 4:58 PM
> To: Struts Users Mailing List
> Subject: RE: Must have action="." in 
> tag?
> 
> 
> I never said anything close to what you're asking
> me.
> All I said is choose one of your two possible
> outcomes (doesn't matter which
> one), take the path that you gave it in the struts-config.xml, then 
> use that in your . Let's say you have the ff entry in your
> struts-config:
> 
>  name="theForm">
> 
> 
> 
> then in your html:form, specify that action:
> 
> method="post" 
>onSubmit="return
> submitForm(document.theForm)">
> ...
> 
> 
> You do have 's associated with fromCreateShopWorkOrder and
> fromUpdateShopWorkOrder, right?
> 
>  - Hubert
> 
> 
> --- "Au-Yeung, Stella H" <[EMAIL PROTECTED]>
> wrote:
> > Hubert:
> > Can you elaborate that In othe words, how do I
> do everything that
> > the function submitForm() does to dynamically pick
> an action all
> > within the  tag?
> > 
> > -Original Message-
> > From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> > Sent: Monday, February 23, 2004

Re: tag doesn't recognize Struts dataBean property's value

2004-02-23 Thread Khalid K.
There is an error in your JSP.  IF that is the complete jsp post,

then you are missing the closing iterate tag  ""

So anything between the interate tag is not being evaulated,
I bet if you look at the rendered html output source, you will actually see 
the "" tags

Khalid



Quoting Niall Pemberton <[EMAIL PROTECTED]>:

> I doubt the problem is .
> 
> Your jsp looks OK - why not try outputting the "shopOrderExist" property in
> your table (along with yhe other stuff) - something along the lines of:
> 
>  property="shopOrderExist"/>
> 
> That way, you can see the value the  is testing
> against.
> 
> Niall
> 
> - Original Message - 
> From: "Au-Yeung, Stella H" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 23, 2004 3:34 PM
> Subject:  tag doesn't recognize Struts dataBean property's value
> 
> 
> > Hi:
> > In my struts-based application I am using a  tag in my JSP
> page
> > to print two links depends on the value of a struts-based databean's
> > property. Bacially on this JSP page, a list of records wil be displayed.
> > Next to each record, either a "Create" link or an "Update" link should be
> > displayed depends upon the property '"shopOrderExist". If this property
> has
> > the value "notExist", it should display the "Create" link. If it is not
> > equal to "notExist", it should display the "Update" link. For some reason,
> > the "Update" link is always displayed even though "shopOrderExist" has a
> > value of "notExist". So the logic:equal tag is not comparing things
> > correctly. Am I doing it wrong? (note, the property "shopOrderExist" is of
> > type String and in Debug I see that its value is "notExist")
> >
> > Here's my code:
> >  > collection="<%=ShopWorkOrderSearchFormBean.getPage()%>"
> > type="com.cat.fdd.dataBean.shopWorkOrder.ShopWorkOrderSearchBean">
> > 
> > 
> > 
> >
> > 
> >  value="notExist">
> > 
> > 
> > 
> >  > value="notExist">
> > 
> > 
> > 
> > 
> > 
> >
> > Thanks in advance!
> > Stella
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Khalid K.

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



Re: How much of java script is preferred in Struts based application?

2004-02-19 Thread Khalid K.
Not sure what you mean by "conditional dynamic content generation" ??

Action takes care of the "conditional" part of the content and it is 
supplemented with custom tag (equal, present) etc. on the jsp level.

I think you mean "client side validation" and "server side validation". The 
decision depends on the requirements of a project, but I prefer server side 
about 95% of the time.

Server side Validation is more robust in a sense that you can generate 
internationalized error messages and also control the flow.

Khalid


Quoting Sreenivasa Chadalavada <[EMAIL PROTECTED]>:

> All,
> 
> I heard that most Struts based applications make a round trip for 
> conditional dynamic content generation and Validation.
> 
> In your experience, can you please let me know what are the advantages and 
> disadvantages of
> each of the approaches.
> 
> I very much appreciate your help in this regard.
> 
> Thanks and Regards,
> Sree/-
> 
> 
> --
--
> This is a PRIVATE message. If you are not the intended recipient, please 
> delete without copying and kindly advise us by e-mail of the mistake in 
> delivery. NOTE: Regardless of content, this e-mail shall not operate to 
> bind CSC to any order or other contract unless pursuant to explicit 
> written agreement or government initiative expressly permitting the use of 
> e-mail for such purpose.
> --
--
> 


-- 
Khalid K.

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



Directory Upload

2004-02-19 Thread Shishir K. Singh
Hello, 

Is there a way to upload a directory (recursive if flagged), using
fileupload. Are there another ways of doing it ?

Thanks
Shishir

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



RE: how to send checkbox value?

2004-02-13 Thread Sathish Babu K R
hi scott

thanx for code...it will work for modify flow but how
abt setup flow?

sathish

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



RE: how to send checkbox value?

2004-02-13 Thread Sathish Babu K R
hi 

yep an eg will do finethat should do as,

get the value of checkbox stored in a variable whether
it is checked r not..

sathish

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



RE: how to send checkbox value?

2004-02-13 Thread Sathish Babu K R
hi all

any no of checkboxes,fine.

but how to know the box is checked r not and then send
in url

id u r able to find value of chekbox then u can better
put in session r pass as hidden

sathish

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



how to send checkbox value?

2004-02-13 Thread Sathish Babu K R
hi all

i have a prob in sending checkbox value.

i like to send check box value of a page to another
page when a link is clicked which does not go thru any
form.its a struts environment

sathish



__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



RE: LookupDispatchAction problem

2004-02-10 Thread Yee, Richard K,,DMDCWEST
Søren,
The error message indicates that you are missing a button.search entry in
your Application Resources file. 

-Richard

-Original Message-
From: Søren Hjarlvig [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 10, 2004 2:13 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction problem


I'm following Ted's tip (http://husted.com/struts/tips/003.html) but I 
can't get to work:

With the newest nightly build I'm getting the following error:

500 Servlet Exception
javax.servlet.ServletException: Action[/administrator] missing resource
'button.search' in key method map
at 
org.apache.struts.actions.LookupDispatchAction.getLookupMapName(LookupDispat
chAction.java:283)
at 
org.apache.struts.actions.LookupDispatchAction.getMethodName(LookupDispatchA
ction.java:324)
at 
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.
java:201)


The form:
...

button.search
...

...

The resulting request:
http://localhost:8080/fonde/administrator.do?myaction=button.search

struts-config.xml:
...

   
...

AdministratorAction:

public class AdministratorAction extends LookupDispatchAction {

protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("button.search", "search");
System.out.println((String)map.get("button.search"));
return map;
}

public ActionForward search(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest req,
 HttpServletResponse res) {
...
return mapping.findForward("admSearchDone");
}
}

The println() writes "search" on the console, so I know that the 
getKeyMethodMap()-method is invoked and the mapping should be ok.

So why can't it find my search-method?

The 1.1 release build also fails, but with another error message (this 
is probably due to bug 21226 
(http://issues.apache.org/bugzilla/show_bug.cgi?id=21226)).


Best regards

Soeren Hjarlvig




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

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



RE: DyanActionValidatorForm clarification please

2004-02-10 Thread Yee, Richard K,,DMDCWEST
Vincent,
Do you have an entry in your map named page? Not having the entry will cause
your problem.

-Richard


-Original Message-
From: Vincent [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 30, 2004 10:39 AM
To: Struts Users
Subject: DyanActionValidatorForm clarification please


Hello All,
I am trying to get a multi page validation working right. Before my page
even load I get a 500 error from tomcat 4.1.29:

java.lang.NullPointerException
at 
org.apache.struts.validator.DynaValidatorActionForm.validate(DynaValidatorAc
tionForm.java:115)

I am using struts release 1.1. I checked the source code and I see the 
offending lines:
 public ActionErrors validate(ActionMapping mapping, 
HttpServletRequest request) {
 // set the page variable before validating
 Map props = this.getMap();
 if (props.containsKey("page")) {
--->   this.page = ((Integer) props.get("page")).intValue();
 }


I'd like a few clarifications about what I have read on the list and on the
validator guide: 


Are the following assertions true or false?

To use DynaActionValidatorForm you must define a property in your 
ActionForm called "page" of type java.lang.Integer

In your web form you must have a tag with the page value: 


On the page you must also have a tag like :



I have tried many permutations of these parameters.
I get a NullPointerException whether I have a "page" attribute in 
"field" element (gotta love the struts naming conventions :) )  in 
validation.xml or not. The exception only goes away if I set validate to
false in struts-config.xml

Thanks in advance.



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

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



RE: Html:text printing null

2004-02-05 Thread Yee, Richard K,,DMDCWEST
Anant,
Either set the values of your strings when you declare them to "" or set
them to "" in the constructor of your FormBean.

Rgds,

Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 04, 2004 10:42 PM
To: [EMAIL PROTECTED]
Subject: Html:text printing null




Hi,

I am facing this problem whenever my form bean element is null html:text
prints a null on the text box generated. I want it to print a blank on the
screen


Thanks for any help

Regards

Anant


Confidentiality Notice


The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify the sender at Wipro or [EMAIL PROTECTED]
immediately and destroy all copies of this message and any attachments.

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

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



RE: unable to find jakarta-poi jar file from the downloaded .tar file. pls. help me finding the right .zip/.tar file location (link).

2004-02-05 Thread Yee, Richard K,,DMDCWEST
srinivas,
Since you downloaded the source file, you need to build it. When you build
it, it will make the .jar files. If you do not want to build it, then
download the binary distribution instead.

Rgds,

Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 04, 2004 8:50 PM
To: [EMAIL PROTECTED]
Subject: unable to find jakarta-poi jar file from the downloaded .tar file.
pls. help me finding the right .zip/.tar file location (link).






hi,

i have downloaded "poi-src-2.0-final-20040126.tar" (5MB) but could not find
the required poi*.jar file in the lib folder.

pls. help me in locating the right link to the resource.

thanks and regards,
s.srikanth



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

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



RE: messages/errors 2 form's 1 page

2004-02-04 Thread Yee, Richard K,,DMDCWEST
Mark,
Use logic tags to prevent/allow the html:message tag that is displaying the
errors. Key on a value that is set according to which form caused the error.

-Richard

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 04, 2004 8:02 AM
To: Struts Users Mailing List
Subject: Re: messages/errors 2 form's 1 page


Thanks for the response.

No they don't..

They're completely different forms, with different actions.

Looks like going down the TileAction route.



On 4 Feb 2004, at 16:43, Saul Q Yuan wrote:

> Do the two action mappings share the same form bean? If yes, that 
> might be the problem. Try to use two separate form beans, see how it 
> goes.
>
>
> Saul
>
>
>
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 04, 2004 8:52 AM
> To: Struts Users Mailing List
> Subject: messages/errors 2 form's 1 page
>
>
> Hello
>
> I'm sure this has been answered before but I'm sick of googling for 
> the answer.
>
> Using tiles I've 2 forms in one page.
>
> 
>
> 
>
> Now both forms have some properties with the same names e.g.
>
> 
>   
>   
> ..
> 
>   
>   
>
> When i submit either form the errors are displayed in both forms. The 
> only solution I can think of is to extend TileAction and validate in 
> there, but I usuall just use tiles defs as forwards and don't bother 
> with TileAction.
>
> Do i go down the TileAction route or something else?
>
> Cheers Mark
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

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



RE: Conventions for indexed properties

2004-02-03 Thread Yee, Richard K,,DMDCWEST
Sunil,
The LazyList class in the commmons-collections.jar file does this already
for you.

Rgds,

Richard


java.lang.Object
  |
  +--org.apache.commons.collections.collection.AbstractCollectionDecorator
|
+--org.apache.commons.collections.list.AbstractListDecorator
  |
  +--org.apache.commons.collections.list.LazyList
All Implemented Interfaces: 
java.util.Collection, java.util.List 




public class LazyList
extends AbstractListDecorator
Decorates another List to create objects in the list on demand. 

When the get(int) method is called with an index greater than the size of
the list, the list will automatically grow in size and return a new object
from the specified factory. The gaps will be filled by null. If a get method
call encounters a null, it will be replaced with a new object from the
factory. Thus this list is unsuitable for storing null objects. 

-Original Message-
From: Sunil Dmonte [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 02, 2004 10:33 PM
To: ^Struts Users Mailing List (E-mail)
Cc: Imran Ali
Subject: RE: Conventions for indexed properties


I Thought I'd reply to my own message with our solution to this issue.
Feedback is most welcome.

Here are the changes we made:

1) We have an indexed getter and setter exactly as per the JavaBean spec
2) A non-indexed "List" getter and setter as supported by BeanUtils
3) Using our own "ExpandableArrayList" class instead of a normal ArrayList. 

The code for this class is given below (minus documentation):

***
import java.util.ArrayList;
import java.util.RandomAccess;
import java.util.List;
import java.io.Serializable;

public class ExpandableArrayList extends ArrayList implements List,
RandomAccess, Cloneable, Serializable
{
  private Class beanClass;

  public ExpandableArrayList(Class classType)
  {
super();
beanClass = classType;
  }

  public Object set(int index, Object element)
  {
resizeIfNecessary(index);
return super.set(index, element);
  }

  public Object get(int index)
  {
resizeIfNecessary(index);
return super.get(index);
  }

  private void resizeIfNecessary(int index)
  {
// Extend the size of the list as needed.
if (index >= size())
{
  int missingElements = index - size() + 1;
  for (int i = 0; i < missingElements; i++)
  {
try
{
  add(beanClass.newInstance());
}
catch (InstantiationException e)
{
  // log and...
  throw new RuntimeException(e);
}
catch (IllegalAccessException e)
{
  // log and...
  throw new RuntimeException(e);
}
  }
}
  }
}
***

> -Original Message-
> From: Sunil Dmonte [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 23, 2004 11:38
> To: 'Struts Users Mailing List'
> Subject: RE: Conventions for indexed properties
> 
> 
> Thanks for the responses guys. Does that mean the following
> getter (given at
> http://jakarta.apache.org/struts/faqs/indexedprops.html) is 
> incorrect? It
> doesn't seem to follow the javabean spec for indexed properties:
> 
> public java.util.List getStringIndexed(int index) { 
> return java.util.Arrays.asList(strAry);
> }
> 
> (If it's taking an index as a parameter, why would it return
> the whole list?
> Is this some additional functionality that BeanUtils provides?)
> 
> Regarding the 2 variants for getters and setters - which one
> should I use?
> Both? If I use the "whole list" variant, then I can't do any 
> index checking
> to prevent an indexing exception (unless I decide to subclass 
> ArrayList and
> override the set(index, object) method). But when I introduce 
> the "indexed"
> variant, I start getting bean-related JspExceptions like 
> "JspException: No
> getter method for property .." even though the property name 
> matches up with
> the getter and setter.
> 
> Thanks for your help!
> sunil
> 
> 
> > -Original Message-
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 23, 2004 11:13
> > To: Struts Users Mailing List; John D. Hume
> > Cc: Struts Users Mailing List
> > Subject: Re: Conventions for indexed properties
> > 
> > 
> > Quoting "John D. Hume" <[EMAIL PROTECTED]>:
> > 
> > > I don't have a definitive guide, but here are some examples
> > that could
> > > be helpful.
> > > 
> > 
> > The definitive guide starts with the JavaBeans Specification:
> > 
> >   http://java.sun.com/products/javabeans/reference/api/index.html
> > 
> > you'll see that there are two variants for indexed properties
> > -- one that has
> > the getter and setter methods taking an array, and one that 
> > has the getter and
> > setter methods taking an additional argument for the index.
> > 
> > There's lots of other

RE: Using Catus versus using StrutsTestcase

2004-02-03 Thread Yee, Richard K,,DMDCWEST
Al,
StrutsTestCase, as the name implies, has specific classes and methods for
testing struts applications. It is good for testing actionForwards,
validation errors, and ActionForm submissions with struts. It only does out
of container testing however.
Cactus is used for in-container testing of servlets, JSP's, JSP TagLibs,
filters and EJBs. It does not have the classes that enable Struts-specific
features to be exercised. Basically for a JSP you set up a HTTP request with
input parameters and then are able to check the response object and the
content. You can also check the presence of cookies and session data.

Rgds,

Richard


-Original Message-
From: Al Rathon [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 02, 2004 2:50 PM
To: [EMAIL PROTECTED]
Subject: Using Catus versus using StrutsTestcase


Hi: 
I want to write unit tests for testing the struts
portion of a web-app.I am not sure whether I should be
using Cactus or StrutsTestCase. What are the factors
that I should consider while choosing one application
over the other?

Thanks.

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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

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



RE: Newbie: Problems After Deploying to Tomcat

2004-02-03 Thread Yee, Richard K,,DMDCWEST
Colin,
Check out the html:base tag.

-Richard


-Original Message-
From: Colin Foulkes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 03, 2004 8:16 AM
To: Struts Users Mailing List
Subject: RE: Newbie: Problems After Deploying to Tomcat 


Ah... I think I see the problem

I need to fully qualify my action names (and script paths) with the name of
the application (Prototype1) e.g. 

This was apparently being magically handled by the html:form tag in the
login.jsp page. 

Is there a tag I could use to accomplish this same magic in my src
attribute?

Also, assuming this is the same problem in my filter, is there some
recognized way for handling the forward in the filter.

Thanks
again

Colin





-Original Message-
From: Colin Foulkes 
Sent: February 3, 2004 9:47 AM
To: Struts Users Mailing List
Subject: Newbie: Problems After Deploying to Tomcat 


Hi,

I'm fairly new to the struts but have been able to get a small struts app
working fine under the internal Tomcat(4.0.6) in Netbeans. Everything here
works fine.

When I try to run the app under a standalone Tomcat (4.1.29) I get two
problems with my application.

1. I have created an authentication filter that forwards requests to my
LoginAction if the user isn't logged in. When running in the external
Tomcat, this forward fails, with a status 404  The requested resource
(/LoginAction.do) is not available.


2. When I remove the filter from the web.xml mappings, the application can
find the LoginAction fine (through my Login.jsp) and I'm happily insise the
app. The Second problem I have is that the first page I go to after the
LoginAction (/WEB-INF/jsp/mainmenu.jsp) contains javascript include
references 
These javascript files are not being loaded into my page.

Does anyone have any ideas why these problems are occurring, and have any
solutions.

Thanks in advance

Colin


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



Re: What does "do" stand for in .do files

2004-01-30 Thread Nabil K. Suleiman
And the .do aren't files, these are actions 

it's like saying Do User Update. or something like that.

ciao.

On January 30, 2004 1:56 pm, Brandon Goodin wrote:
> do
>
> >>> [EMAIL PROTECTED] 1/30/2004 11:53:36 AM >>>
>
> Greetings,
>
> What does *do* mean in *.do files.
>
> Regards,
> Nushin
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Nabil K. Suleiman.

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



no process to read data written to a pipe ??

2004-01-29 Thread Khalid K.
If anyone has seen this error, your input is appreciated, I can't
seem to find any references to this on the web. 

Looks like the error is thrown during the rendering of jsp: billingInfo.jsp. 
Since this happens in production, I am not sure what is the outcome etc.

stack trace:

[1/28/04 8:38:00:380 PST] 21e97599 WebGroup  
X Servlet Error: There is no process to read data written to a pipe.: 
java.io.IOException: There is no process to read data written to a pipe.

at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled 
Code))
at com.ibm.ws.io.Stream.write(Stream.java(Compiled Code))
at com.ibm.ws.io.WriteStream.flushMyBuf(WriteStream.java(Inlined 
Compiled Code))
at com.ibm.ws.io.WriteStream.flush(WriteStream.java(Inlined Compiled 
Code))
at com.ibm.ws.http.ResponseStream.flush(ResponseStream.java(Compiled 
Code))
at com.ibm.ws.io.WriteStream.flush(WriteStream.java(Compiled Code))
at com.ibm.servlet.engine.http11.HttpConnection.flush
(HttpConnection.java(Inlined Compiled Code))
at com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java
(Compiled Code))
at com.ibm.servlet.engine.srt.SRTOutputStream.flush(SRTOutputStream.java
(Compiled Code))
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java(Compiled 
Code))
at com.ibm.servlet.engine.srt.BufferedWriter.flushChars
(BufferedWriter.java(Compiled Code))
at com.ibm.servlet.engine.srt.BufferedWriter.flush(BufferedWriter.java
(Inlined Compiled Code))
at com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer
(BufferedWriter.java(Compiled Code))
at com.ibm.servlet.engine.srt.SRTServletResponse.flushBuffer
(SRTServletResponse.java(Compiled Code))
at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer
(HttpServletResponseProxy.java(Compiled Code))
at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer
(HttpServletResponseProxy.java(Compiled Code))
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java
(Compiled Code))
at _billingInfo_jsp_30._jspService(_billingInfo_jsp_30.java:763)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled 
Code))
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
(JspServlet.java(Compiled Code))
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java
(Compiled Code))
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java
(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled 
Code))
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
(ServletManager.java(Inlined Compiled Code))
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java(Compiled Code))
at org.apache.struts.action.ActionServlet.processActionForward
(ActionServlet.java(Compiled Code))
at org.apache.struts.action.ActionServlet.process(ActionServlet.java
(Compiled Code))
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java
(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled 
Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled 
Code))
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.servlet.engine.webapp.ServicingServletState.service
(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java(Compiled Cod

Re: {ICICICARE#) BLOCK THIS GUY!!

2004-01-29 Thread Khalid K.
Hello, can someone block this guy from the list ???
I've gotten about 50 emails from this email address

Regards,

Khalid




Quoting NRI Cell <[EMAIL PROTECTED]>:

> Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm
> receipt of your mail and assure you of a response shortly.To help us serve
> you better, we would request you to kindly mention your account number or any
> reference number you may have in your future correspondence.  Kindly visit
> our website www.icicibank.com\nri to know more on our products and services. 
> With regards,Customer Care 
> ICICI Bank Limited This communication being sent by ICICI Bank Ltd. is
> privileged and confidential, and is directed to and for the use of the
> addressee only. If this message reaches anyone other than the intended
> recipient, we request the reader not to reproduce, copy, disseminate or in
> any manner distribute it. We further request such recipient to notify us
> immediately by return email and delete the original message. ICICI Bank Ltd.
> does not guarantee the security of any information transmitted electronically
> and is not liable for the proper, timely and complete transmission thereof.
> Before opening any attachments please check them for viruses and defects.
> 
> 


-- 
Khalid K.

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



RE: No ValidatorAction called maxLength?

2004-01-28 Thread Yee, Richard K,,DMDCWEST
Nathan,
The name is case-sensitive. Use "maxlength" instead of "maxLength".

Regards,

Richard

-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 12:56 PM
To: Struts Users Mailing List
Subject: No ValidatorAction called maxLength?


This is a basic validator why would it not be able to find it?  I can 
however use the required validator.


Here is the error :

No ValidatorAction called maxLength found for field name

Here is the code from my validator.xml




 
maxLength 150  



maxLength
1000


 



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

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



RE: Best Practices question

2004-01-27 Thread Yee, Richard K,,DMDCWEST
Jim,
Throw custom exceptions in your business beans and then use the struts
declarative exception handling feature so that your custom exception handler
class(es) handle the exceptions by populating ActionMessages and logging the
error if neccessary. 
Check out this article by Keld H. Hansen
http://javaboutique.internet.com/tutorials/excep_struts/index-7.html

-Richard


-Original Message-
From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 5:31 AM
To: Struts Users Mailing List
Subject: Best Practices question


What is considered the best way for a business bean to handle errors so that
they eventually get to ActionErrors? And what about business logging?

Thanks,

jim


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

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



RE: my.properties under war

2004-01-23 Thread Shishir K. Singh
I generally create resources directory under /WEB-INF/classes

And qualify the properties file as "resources.myfile" (no extension).
This way all of the properties file live under one roof 

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 23, 2004 2:07 PM
To: Struts Users Mailing List
Subject: RE: my.properties under war

> From: Babu, Bharathi [mailto:[EMAIL PROTECTED]
> I'm ready to pack my struts project into deployable war file. 
> I got couple of property files live under /WEB-INF/properties 
> folder...  I am wondering what the best practice to pack these 
> property files under a war file?

I put them in the 'classes' directory so they'll be visible on the
classpath and I can get to them with getResourceAsStream().

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


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


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



RE: bean:write and apostrophes

2004-01-22 Thread Yee, Richard K,,DMDCWEST
Dan,
Try using the filter="false" attribute of the bean:write tag. That will
disable the encoding of characters that are sensitive to HTML.


-Richard

-Original Message-
From: Daniel Lipofsky [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 22, 2004 4:18 PM
To: [EMAIL PROTECTED]
Subject: bean:write and apostrophes


If I use 
to write out the value "Dan's Test"  I get "Dan's".
But this is giving me problems with Javascript.

THIS FAILS:
Dan's Test

BUT THIS WORKS:
Dan's Test

But I don't know how to get the second form.
I can reverse the single quotes and double quotes
in javascript - then it works for the test case above
but fails for strings with double quotes.

Has anyone solved this problem?
I am using IE 6.0 as my browser as struts 1.1.
Here is the full test cases:

<% session.setAttribute("x","Dan's Test"); %>
<% session.setAttribute("y","The \"other\" test"); %>
')">x1 ')">y1 x2 y2

Thanks,
Dan



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

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



HttpSession size - is this code correct?

2004-01-21 Thread Khalid K.
Hi,

I am trying to dertemine the size of the session object, 
I've looked around and have written the following, please let me if this
is correct.

Enumeration e = session.getAttributeNames();
ByteArrayOutputStream  bos = new ByteArrayOutputStream();
ObjectOutputStream s = new ObjectOutputStream(bos);

while (e.hasMoreElements()) {
Object o = session.getAttribute((String)
e.nextElement());   
s.writeObject(o);
s.flush();
}
System.err.println("size = " + bos.size());

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004
 


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



RE: Designing for various Actions on JSP

2004-01-21 Thread Shishir K. Singh
You may want to look at LookUpDispatchAction or  ImageButtonBeansManager
(if using images).  

Shishir

-Original Message-
From: Parag Marathe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 21, 2004 10:57 AM
To: Struts Users Mailing List
Subject: Designing for various Actions on JSP

Experts,

I have a doubt about mapping various actions (options presented) a user
can perform on a JSP and mapping them to Action classes.

In detail,

I have a JSP page which displays a set of records.
Add, Delete, Edit will be buttons displayed on JSP page for those
records.

How to map these actions to Actions classes?
Do I have to create different Action classes to perform these ? if yes
how?
how will this be written in struts-config.xml file?

OR should they be handled in one Action class? if yes how?

What will be preffered way?

All your comments are highly appreciated.

Cordially,
Parag

*
Disclaimer

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and is
protected by law. 
If you are not the intended recipient, you should delete this message
and are hereby notified that any disclosure, copying, or distribution of
this message, or the taking of any action based on it, is strictly
prohibited.

*
Visit us at http://www.mahindrabt.com




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


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



RE: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Shishir K. Singh
Yup..since then I have corrected it and been running it. Just wanted the
team to be aware of it.  

-Original Message-
From: Jesse Alexander (KAID 11)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 4:25 AM
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Providers: Select solutions

Hi,

correct the web.xml
The error-message is quite clear...

regards
Alexander

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 20. Januar 2004 02:43
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [ANNOUNCE] Providers: Select solutions


Hi, 

I am getting XML parser error when running it on Tomcat 4.1.27 and
jdk1.4.0. 
Can you tell what needs to be done ??
---


SEVERE: Parse Error at line 44 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,er
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,t
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:559)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jan 19, 2004 8:38:21 PM org.apache

RE: Logic:iterate and html:text problem

2004-01-19 Thread Shishir K. Singh
Well, 


a) I have not used logic:iterate for these purpose, hence won't be able
to help you out much there. I use the JSTL tags and try to keep away
from the struts tag as much as possible.
b) I would use ArrayList instead of Vectors.


What I would do if I were you would be something like this: 
















I have added the table just for clarity. 

You may want to put a check for empty or null collection doing either
 In case you already have this
bean 
Or having another method like getSize() or something like that. 

Assuming that you have set and set methods on each one of the above
three parameters in your MultipleIdData bean. 

Try this and see if the vales get populated in the Collection when you
get it in your Action from the form.

This may contain some errors but should get you started :)

-Original Message-
From: Anna Yates [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 19, 2004 11:21 PM
To: [EMAIL PROTECTED]
Subject: Logic:iterate and html:text problem

I have multiple text boxes that I display on my page. Basically, I must
show n rows (2 text boxes per row). I have no problem displaying them,
but I am unclear on how to get the data back in a concise manner. To
display, I use logic:iterate (see below):


logic:iterate name="custAcctForm" id="multiple" property="multipleIds"

bean:write property="profileName" name="multipleIds"

html:text property="userName" name="multipleIds"

html:text property="password" name="multipleIds"



In my form I have a Vector defined, private Vector multipleIds; The
Vector holds a collection of my class, MultipleIdData which has 3 member
variables: 
profileName, userName, and password. When I use the code above, it
displays correctly, but the entered data goes nowhere. I have tried to
define the "id" property to the "multipleIds" value, but it gives me an
error that no collection was found. I was thinking I could index the
values, but am unclear if this is the road I should take.  I have seen
that if I initialize the Vector to some initial capacity, this will
work, but I don't know how large this Vector will be. Does anyone have
any suggestions. Thanks.

_
Check out the coupons and bargains on MSN Offers! 
http://shopping.msn.com/softcontent/softcontent.aspx?scmId=1418


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


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



RE: PLEASE HELP!!!!

2004-01-19 Thread Shishir K. Singh
Can you pls post your full web.xml and struts-config.xml (I seem to have
deleted your earlier posting). Also, can you list your directory
structure with the list of files in them. 

Shishir

-Original Message-
From: Anita Raeppel [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 19, 2004 10:23 PM
To: Struts Users Mailing List
Subject: RE: PLEASE HELP

First let me apologize if I seemed like I was shouting earlier. This
obviously was my first time ever trying to use a messageboard. I did
receive a few links to help me in posting future questions. 

Thanks for responding. However the solution you suggested did not work.
Do you have any other suggestions on resolving this issue?

Thanks again


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



RE: [ANNOUNCE] Providers: Select solutions

2004-01-19 Thread Shishir K. Singh
Hi, 

I am getting XML parser error when running it on Tomcat 4.1.27 and
jdk1.4.0. 
Can you tell what needs to be done ??
---


SEVERE: Parse Error at line 44 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,er
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,t
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:559)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jan 19, 2004 8:38:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 80
Jan 19, 2004 8:38:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jan 19, 2004 8:38:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/30
config=C:\tomcat\jakarta-tomcat-4.1.27\conf\jk2.properties

-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 19, 2004 2:09 PM
To: 'Struts Users Mailing List'
Subject: [ANNOUNCE] Providers: Select solutions

Hi:
We are working in an open source project called Providers
(http://sourceforge.net/projects/providers/)

Providers is a fr

RE: PLEASE HELP!!!!

2004-01-19 Thread Shishir K. Singh
I think you are missing this :





Where  resources is the directory within WEB-INF and
application.properties is the properties file. 

You may put the null = "true" to get null value if there is a message
missing. I personally prefer "false" as I can catch any errors that may
not have been defined in the properties file 

Put this after the   tag in struts-config.xml and see
if it works. 



Shishir

-Original Message-
From: Anita Raeppel [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 19, 2004 7:10 PM
To: [EMAIL PROTECTED]
Subject: PLEASE HELP


I am developing a new Struts Application.  I have successfully been able
to run the StrutsBlank example following the instructions from a
tutorial on the web.
  However when I try to execute my own project  I am getting the
following error message in the browser:



javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont
extImpl.java:867)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:800)

org.apache.jsp.Login_jsp._jspService(Login_jsp.java:166)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:311)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Inside my JSP there are two lines of code which seem to be causing this
problem they are:

<%@ taglib uri="/WEB-INF/lib/struts-bean.tld"
prefix="bean" %>

<%@ taglib uri="/WEB-INF/lib/struts-html.tld"
prefix="html" %>

I am running Eclipse version 3.0
with a Tomcat Plugin version 5.0.16
and I using Struts version 1.1



My struts-config.xml is setup as the following:



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














   
  
  


















 


   




and my web-xml file looks like :


http://java.sun.com/dtd/web-app_2_3.dtd";>

RS

action

org.apache.struts.action.ActionServlet

application
   
com.struts.rs.resources.ApplicationResources


config

WEB-INF/struts-config.xml


debug
2


detail
2


validate
true

2


action
*.do


Login.jsp


struts-bean.tld

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


struts-html.tld

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


struts-logic.tld

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


struts-template.tld

/WEB-INF/lib/struts-template.tld


struts-nested.tld

/WEB-INF/lib/struts-nested.tld


struts-tiles.tld

/WEB-INF/lib/struts-tiles.tld



If anyone could help it would be greatly appreciated
:-)



__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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


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



RE: MessageResources and html help! (solved)

2004-01-19 Thread Khalid K.
Thanks for the clarification!

After I sent the message a little light bulb  came on and I realized
that I was using  to output the content, so I did turn on the
filter and it worked

Thanks!
p.s. I guess women are right when they say 'verbalize' your problem lol



> Actually those 2 methods should provide the same output.  This is from the 
> TagUtils.jsp, which is used in the  MessageResources resources =
> retrieveMessageResources(pageContext, bundle, false);
> ...
> message = resources.getMessage(userLocale, key);
> ...
> return message;
> 
> which is the same way you're describing retrieving the message in your 
> action.  I'm assuming you're problem is when you are outputting the message 
> in your jsp.  To confirm this, try outputting the message from your action. 
> 
> To fix your problem, if you're using  
> escapeXml and set it to false.  I believe  attribute, called filter.
> 
> -Ben
> 
> >From: "Khalid K." <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: MessageResources and html help!
> >Date: Mon, 19 Jan 2004 11:47:16 -0800
> >
> >Hello All,
> >
> >I use MessageResources to pull text from property files, but it doesn't
> >interpret the html tags. I do need to pull the text in the Action class.
> > recognizes and parses html tags but 
> >MessageResources.getMessage
> >just prints it out.   Any help is appreciated.
> >
> >example:
> >CompanyResources.properties
> >key1=HelloWorld
> >
> >Action:
> >msg = bundle.getMessage(locale, key1);
> >
> >jsp shows
> >HelloWorld
> >
> >instead of
> >Hello
> >World
> >
> >Thanks,
> >Khalid
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> _
> Let the new MSN Premium Internet Software make the most of your high-speed 
> experience. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Khalid K.

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



MessageResources and html help!

2004-01-19 Thread Khalid K.
Hello All,

I use MessageResources to pull text from property files, but it doesn't
interpret the html tags. I do need to pull the text in the Action class. 
 recognizes and parses html tags but MessageResources.getMessage 
just prints it out.   Any help is appreciated.

example:
CompanyResources.properties
   key1=HelloWorld

Action:
msg = bundle.getMessage(locale, key1);

jsp shows 
HelloWorld

instead of
Hello
World

Thanks,
Khalid

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



WSAD 5 setup

2004-01-16 Thread Rama, Shreekanth (K.)
Hi All, 

I recently moved my application to  WSAD 5 from WSAD 4..  The application runs 
fine on 4 but on 5 
I get the following error.

Virtual Host/WebGroup Not Found : The web group /styles/style.css has not been 
defined

I doubt about the context root not setting properly.
Is there any place where I can find exactly how to setup these on wsad 5..

> Warm Regards
> Shreekanth
> 

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



RE: JSP Protection

2004-01-15 Thread Yee, Richard K,,DMDCWEST
Jürgen,
Put the JSP under the WEB-INF directory. Once there, it will only be
accessible from within your web application.

-Richard

-Original Message-
From: Jürgen Scheffler [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 8:15 AM
To: [EMAIL PROTECTED]
Subject: JSP Protection


Hi,

how do i block URL guessing?
if someone requests abc.com/secret_page.jsp
he gets it. In my Action i check if the user object has the right rights for
this action and then i forward him. But if guesses the jsp, he opens it.

Help me!

Jürgen


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

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



RE: Mandatory use of form rather than request object

2004-01-13 Thread Shishir K. Singh
Aaah...but these are not related to form actions and are more like query
strings. I guess in this case, request.getParameter would still be  the
best bet, rather than trying to go for an overkill with the hidden id
field  etc etc ...just my thought. 
 
If you still don't want to request object, you may have a hidden form
with a hidden field. With onclick, you can call a java script function
to update the hidden field and then submit the form. Never tried this
though with links. 




-Original Message-
From: Patrick Cheng [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 13, 2004 3:33 AM
To: Struts Users Mailing List
Subject: RE: Mandatory use of form rather than request object

Hi ,
Can you elaborate a bit?  The situation in my mind is, a jsp page with a
list of records, but no form at all.
Like
Orange

Of course the a links are generate by struts. Then how couldthe form be
used in this case? 
I can think of using a hidden field in a form, and then on click, change
the hidden value to the id, and call the form submit.

Rgds,
Patrick.

-Original Message-
From: Richard Hightower [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 3:08 PM
To: Struts Users Mailing List
Subject: RE: Mandatory use of form rather than request object


forgive mebut could'nt your form have an id property?

then your action's execute method could get the id from the form.

Rick Hightower
Developer

Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring

-Original Message-
From: Patrick Cheng [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 7:34 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Mandatory use of form rather than request object


Hi,
I understand that the request.getParameter should not be used when the
info is readily available in the 'form' object. But can we really take
it out? When I create a list of records in a table, with links to each
record details, I would be generating an  object with
parameters attached, resulting in sth like: . Then I need to use the
request.getParameter to get the id, then retrieve the record details
from db.  So my question is, is there a way to get around this, so I can
get rid of request.getParameter completely?

Rgds,
Patrick.



-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 10:09 AM
To: Struts Users Mailing List
Subject: RE: Mandatory use of form rather than request object


No. He would provide setters in the form for anything that needs to be
passed along in request scope. This has the dual advantages of type
safety and making the design more explicit to anyone reading the code.

-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 13 January 2004 02:25
To: Struts Users Mailing List
Subject: Re: Mandatory use of form rather than request object


This precludes you from storing data in the request scope, though - so
you're left with only storing things in the session scope, which I
wouldn't consider ideal.

Right?

Richard Hightower wrote:

>Create a superclass that overides the execute method and calls an 
>abstract execute method that does not pass the request object. The 
>subclasses overide the execute method without the request object being 
>passed.
>
>Also look into the ProcessAction, which is part of the scaffold.
>
>You can get the scaffold code by downloading the struts source.
>
>
>Rick Hightower
>Developer
>
>Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm
>
>Struts/J2EE consulting -- 
>http://www.arc-mind.com/consulting.htm#StrutsMentoring
>
>-Original Message-
>From: Abhishek Srivastava [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 12, 2004 8:19 AM
>To: 'Struts Users Mailing List'
>Subject: Mandatory use of form rather than request object
>
>
>Hello All,
>
>I did some code reviews recently for my project being done on struts.
>
>I found that most people still do a request.getAttribute("NAME") kind 
>of code even when the name is a property of the form object and is 
>available
in
>the form object.
>
>My question is should the use of form be mandatory. If yes, how it can 
>be enforced. Is there quick way I can remove all the params/attributes 
>from
the
>request object once the corresponding values have been set in the form 
>object?
>
>Thanks in advance for your advise.
>
>Regards,
>Abhishek.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

RE: Displaying same page after submiting a form

2004-01-12 Thread Shishir K. Singh
Also, 

Try using 

 

Within the head section of your jsp. See if that works.  

-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 12:12 PM
To: Struts Users Mailing List
Subject: RE: Displaying same page after submiting a form

Showing your JSP directly results in missing images because the relative
path to your images have changed.  Try using absolute path to your
images.  If you want to avoid using the absolute path to your images,
make sure that the browser requests your JSP in a way that the relative
paths to the images are still valid.
 
Or, you could try using a ForwardAction.

--- "Shishir K. Singh" <[EMAIL PROTECTED]> wrote:
> Hmmm..strange...can you send a screen shot of how the page looks 
> before and after the submit.
> 
> -Original Message-
> From: Leticia Golubov [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 12, 2004 11:41 AM
> To: Struts Users Mailing List
> Subject: RE: Displaying same page after submiting a form
> 
> That's what i did initially, but it caused the page to be displayed 
> with errors (images missing, etc) even though the forwar path was 
> exactly the same as the parameter path...
> i.e. parameter="/pages/disco/config_toolbar.jsp"
>  forward name ="success" path="/pages/disco/config_toolbar.jsp"
> 
> thanks
> 
> -Original Message-
> From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
> Sent: 12 January 2004 16:31
> To: Struts Users Mailing List
> Subject: RE: Displaying same page after submiting a form
> 
> 
> I think you need to add the forward to your action definition
> 
>type="com.micromuse.precision.disco.action.SaveAction"
> name="saveDataForm"
> parameter="/pages/disco/config_toolbar.jsp"
> scope="session">
>
>   
> 
> In your action, when your forward to success or failure, your will be 
> brought to the specific jsp that you want (in your case the same )
> 
> 
> Shishir
> 
> -Original Message-
> From: Leticia Golubov [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 12, 2004 11:25 AM
> To: Struts User Mailing List
> Subject: Displaying same page after submiting a form
> 
> I'm using the following code to submit an action in a .jsp file
> (config_toolbar.jsp):
> 
>  type="text/html"
> type="org.apache.struts.action.DynaActionForm" enctype="text/html">
>  
> onMouseOver="javascript:SwapImage('save','../../images/button_toolbar_
> sa
> ve_o
> ver.png'); SetStatus('Save Configuration'); return true;"
> 
> onMouseOut="javascript:SwapImage('save','../../images/button_toolbar_s
> av
> e.pn
> g'); SetStatus(''); return true;"
> 
> onMouseDown="javascript:SwapImage('save','../../images/button_toolbar_
> sa
> ve_c
> lick.png');"
> 
> onMouseUp="javascript:SwapImage('save','../../images/button_toolbar_sa
> ve
> _ove
> r.png');">
>  border="0"
> width="26" height="26" alt="Save Configuration">  
> 
> 
> The action is found/executed, and, as a default I'm returning a
> findforward("success") at the end of the ActionForward method in my 
> SaveAction.java class.
> 
> in struts_config.xml I have the following defined:
>type="com.micromuse.precision.disco.action.SaveAction"
> name="saveDataForm"
> parameter="/pages/disco/config_toolbar.jsp"
> scope="session">
>   
> 
> In the hope that config_toolbar.jsp will still be displayed instead of

> the blank page I get after I do a mouseClick on the 
> button_toolbar_save.png image.  I've tried setting the forward name to

> the config_toolbar.jsp, but that caused strange side effect (all 
> images were missing, the page didn't display properly).
> 
> So, essentiall, I want the same page to be displayed after the 
> saveData action is executed.  Does anyone know how to do this?
> 
> p.s. I'm new to struts, so could (and I hope it is) be something very 
> simple.
> 
> regards
> 
> Leticia :)
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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


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



RE: Mandatory use of form rather than request object

2004-01-12 Thread Shishir K. Singh
To add onto that

Using resuest.getA  in the action does not make any sense since struts
already does that for you by populating the form from the request param
after the reset method on the form is called. 

Form should be the only data repository  for you to consider between
your view and model.

 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 11:53 AM
To: [EMAIL PROTECTED]
Subject: RE: Mandatory use of form rather than request object

Hi,
Its a good idea to use just form.getAttribute than use
request.getparameter..I think that is major advantage with struts...You
should no longer be using this syntax.The form should be a complete
container as far as actions are concerned.The advantage is that just by
looking at the form you should know what all data is required if the
form is properly documents.That is one of the reasons I do not like
using request.getParameter as it sort of smells of the magic key
approach,there .

But I don't think you can remove parameters from the request as there is
no such method there..Nor you can add parameters to a request.
the only thing I can think of is to do a code review and include it in
the coding guidelines.


HTH.
regards,
Shirish

-Original Message-
From: Abhishek Srivastava [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 4:19 PM
To: 'Struts Users Mailing List'
Subject: Mandatory use of form rather than request object


Hello All,

I did some code reviews recently for my project being done on struts.

I found that most people still do a request.getAttribute("NAME") kind of
code even when the name is a property of the form object and is
available in the form object.

My question is should the use of form be mandatory. If yes, how it can
be enforced. Is there quick way I can remove all the params/attributes
from the request object once the corresponding values have been set in
the form object?

Thanks in advance for your advise.

Regards,
Abhishek.

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


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


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



RE: Displaying same page after submiting a form

2004-01-12 Thread Shishir K. Singh
Hmmm..strange...can you send a screen shot of how the page looks before
and after the submit.  

-Original Message-
From: Leticia Golubov [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 11:41 AM
To: Struts Users Mailing List
Subject: RE: Displaying same page after submiting a form

That's what i did initially, but it caused the page to be displayed with
errors (images missing, etc) even though the forwar path was exactly the
same as the parameter path...
i.e. parameter="/pages/disco/config_toolbar.jsp"
 forward name ="success" path="/pages/disco/config_toolbar.jsp"

thanks

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: 12 January 2004 16:31
To: Struts Users Mailing List
Subject: RE: Displaying same page after submiting a form


I think you need to add the forward to your action definition

  
 
 

In your action, when your forward to success or failure, your will be
brought to the specific jsp that you want (in your case the same )


Shishir

-Original Message-
From: Leticia Golubov [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:25 AM
To: Struts User Mailing List
Subject: Displaying same page after submiting a form

I'm using the following code to submit an action in a .jsp file
(config_toolbar.jsp):



  

The action is found/executed, and, as a default I'm returning a
findforward("success") at the end of the ActionForward method in my
SaveAction.java class.

in struts_config.xml I have the following defined:
  
  

In the hope that config_toolbar.jsp will still be displayed instead of
the blank page I get after I do a mouseClick on the
button_toolbar_save.png image.  I've tried setting the forward name to
the config_toolbar.jsp, but that caused strange side effect (all images
were missing, the page didn't display properly).

So, essentiall, I want the same page to be displayed after the saveData
action is executed.  Does anyone know how to do this?

p.s. I'm new to struts, so could (and I hope it is) be something very
simple.

regards

Leticia :)




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


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


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



RE: Displaying same page after submiting a form

2004-01-12 Thread Shishir K. Singh
I think you need to add the forward to your action definition

  
 
  

In your action, when your forward to success or failure, your will be
brought to the specific jsp that you want (in your case the same ) 


Shishir

-Original Message-
From: Leticia Golubov [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 11:25 AM
To: Struts User Mailing List
Subject: Displaying same page after submiting a form

I'm using the following code to submit an action in a .jsp file
(config_toolbar.jsp):



  

The action is found/executed, and, as a default I'm returning a
findforward("success") at the end of the ActionForward method in my
SaveAction.java class.

in struts_config.xml I have the following defined:
  
  

In the hope that config_toolbar.jsp will still be displayed instead of
the blank page I get after I do a mouseClick on the
button_toolbar_save.png image.  I've tried setting the forward name to
the config_toolbar.jsp, but that caused strange side effect (all images
were missing, the page didn't display properly).

So, essentiall, I want the same page to be displayed after the saveData
action is executed.  Does anyone know how to do this?

p.s. I'm new to struts, so could (and I hope it is) be something very
simple.

regards

Leticia :)




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



RE: Best Practice for Reuse of JSPs for Display and Input?

2004-01-12 Thread Shishir K. Singh
 I assume that you have a bean that stores all the relevant data and you
read the bean to render the jsp. If so, I generally a flag attribute
(display only) to the bean that I can set up in my action. In the jsp,
if the flag is on, I just render it as a simple text else 

Would that work for you ?  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 11:07 AM
To: [EMAIL PROTECTED]
Subject: Best Practice for Reuse of JSPs for Display and Input?

I am designing a Struts application that has both display-only and input
modes for all the data. Ideally, I would like to reuse the same JSPs for
both the display-only and input modes without compromising the
user-friendliness of the page produced. The JSP pages are using the
Struts HTML tags for data input. 
This sounds like a common issue that lots of applications must face and
I would be very interested in what solutions other people are using

Possible design approaches I have currently in mind: -

1. Reusable JSPs could be built around the Struts HTML tags setting the
"disabled" attribute for the display-only mode. This should work but the
user gets greyed out text (on Internet Explorer) which is hard to read
and the display-only mode still has input boxes which can confuse the
end user 2. The "readonly" attribute is another possibility but seems to
be ignored by some browsers (Netscape Communicator 4.76) 3. Maybe JSP
custom tags could be used but I am concerned that a full solution for
this would be to extend the HTML Text tag and the nested HTML Text tag

Thoughts on the above approaches and/or alternatives would be
appreciated

Tim.

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only for
the individual named.  If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.  Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses.  The sender therefore does not
accept liability for any errors or omissions in the contents of this
message which arise as a result of e-mail transmission.  If verification
is required please request a hard-copy version.  This message is
provided for informational purposes and should not be construed as a
solicitation or offer to buy or sell any securities or related financial
instruments.


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


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



RE: mapping.findForward

2004-01-08 Thread Yee, Richard K,,DMDCWEST
Paul,
You can do this in your struts-config.xml
 http://www.someWebsite.com";
redirect="true"/>

note the redirect="true" attribute

or do a
response.sendRedirect("http://www.someWebsite.com";);

and then return null to Struts instead of an ActionForward in your action.

Regards,

Richard


-Original Message-
From: Paul Wallace [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 08, 2004 4:22 PM
To: [EMAIL PROTECTED]
Subject: mapping.findForward





Hi,
I am having trouble, after my action forwarding to a fully formed www
URL. I am told by error message that all forwards defined in
struts-config.xml must precede with a '/'.

Fine. Except if I want to forward to a www URL the server complains
(unceremonious error message).

How may I pass control from an Action to an external www URL please?

thanks

Paul Wallace
ESRI Australia

snippet:


http://www.wwwaddress.com"; />


Delivering GIS Solutions everyday
__
This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender.
__



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

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



RE: dynamic parameters to DynaActionForm

2004-01-08 Thread Yee, Richard K,,DMDCWEST
Nathan,
Try a map backed form 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg88704.html

-Richard


-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 08, 2004 12:13 PM
To: Struts Users Mailing List
Subject: Re: dynamic parameters to DynaActionForm


Robert,

I have been researching all morning and still can not find a good 
answer.

I need to send the action a set of parameters like..

param1
param2
param3
.
.
.
param#

The amount of parameters in the form are dynamic.  How or what type of 
object would you use in a form bean.

Nathan


On Jan 8, 2004, at 11:18 AM, Robert Taylor wrote:

> Look at IndexedProperties: 
> http://jakarta.apache.org/struts/faqs/indexedprops.html
>
> robert
>
>> -Original Message-
>> From: Nathan Maves [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, January 08, 2004 1:02 PM
>> To: Struts Users Mailing List
>> Subject: dynamic parameters to DynaActionForm
>>
>>
>> is it possible to have dynamic parameters sent to to a dyna form?
>>
>> I do not know how many or the name of the parameters that are being 
>> sent?
>>
>> Nathan
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

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



RE: mapped address

2004-01-08 Thread Yee, Richard K,,DMDCWEST
Otávio,
Depending on how the previous page is displayed, you might be able to check
the Referer header in the request.

-Richard


-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 08, 2004 9:19 AM
To: Struts Users Mailing List
Subject: Re: mapped address


Yeah, that is a nice idea. But I already have a parameter being sent by this
link: it is the id of a certain element. So, i have to add a second
parameter. That is the case. Adding two parameters is still confusing to me.

thanks

Otávio Augusto

On Thu, 8 Jan 2004 10:14:21 -0700
"Brian Barnett" <[EMAIL PROTECTED]> wrote:

> Maybe you could add a URL parameter to the link on each of the three 
> pages identifying which page it is. Then in the action class, get the 
> request object, get the URL parameter from the request object, and 
> based on the parameter, you should know where to return to.
> 
> 
> -Original Message-
> From: Otávio Augusto [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 08, 2004 9:54 AM
> To: Struts Users Mailing List
> Subject: Re: mapped address
> 
> Yeah,putting it in a hidden field is insecure (and impossible: it is 
> not a form, it is a simple link.). I'm trying to run away from the 
> struts way to generate more than one parameter, specialy inside a 
> logic:iterate tag. I think having an Action class with many methods 
> each regarding to a an input page would help.
> 
> Thanks for the help
> 
> Otávio Augusto
> 
> On Thu, 8 Jan 2004 11:22:03 -0500
> "Yee, Richard K,,DMDCWEST" <[EMAIL PROTECTED]> wrote:
> 
> > Otávio,
> > You could 1) put the info in a hidden variable which would be less 
> > secure or
> > 2) put the info in your session.
> > 
> > Regards,
> > 
> > Richard
> > 
> > 
> > -Original Message-
> > From: Otávio Augusto [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 07, 2004 7:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: mapped address
> > 
> > 
> > I have the following situation:
> > 
> > In my struts-config.xml file, there are lots of mappings like this 
> > one: 
> > 
> > In my application, the user has the chance to add or remove itens 
> > from a collection which is in the httpsession. There is only one 
> > place to add those itens, but the user can remove then at any time, 
> > at least in 3 different web pages during the workflow.
> > 
> > I'd like to implement a single Action class to handle the task of 
> > getting the httpsession with those items, remove a certain item and 
> > go back to the page where i requested this task. As I said, there 
> > are at least 3 different jsp pages where the user can invoke this 
> > "remove" task.
> > 
> > The question is: is there a way to get , in the Action class, the 
> > mapping for the page where I came from ? At the end of my execute() 
> > methods in my Action classes,I do this
> > 
> > return (mapping.findForward(destino));
> > 
> > to return to the jsp page. "destino" is a String containig the jsp 
> > "alias" mapped in struts-config.xml. Since I can invoke this Action 
> > from, at least, 3 different places, how to feed "destino" with the 
> > correct mapping so I can rturn to the page I invoked the service 
> > from?
> > 
> > thanks in advance
> > 
> > Otávio Augusto
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

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



RE: All The Bean Properties Are Null in the Business Tier!!! (Use d BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Yee, Richard K,,DMDCWEST
Caroline,
May I ask why you are performing your database updates through a separate
thread? It seems to be complicating your code. Creating lots of threads from
within your web application is not a good practice if you want your app to
scale well. Also, what happens if the update doesn't succeed? You have no
way of notifying the user.

The code:

   ThreadBean threadBean = new ThreadBean();  

   String receiver = threadBean.getReceiver();
   String sender = threadBean.getSender();


is your problem unless your ThreadBean constructor can populate itself
correctly with the desired values. 
If you must use threads, then you should be able to create a ThreadHandler,
call a setter method on it and set you ThreadBean instance variable, and
then call the run method on the ThreadHandler to start the thread.

Regards,

Richard

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 08, 2004 8:48 AM
To: Struts Users Mailing List
Subject: RE: All The Bean Properties Are Null in the Business Tier!!! (Used
BeanUtils to Convert DynaValidatorForm)


Thank you for your comment, which is very helpful.

Instead of extends ThreadBean, I now import the
ThreadBean into my ThreadHandler class (see the code
below). I am still getting all null or zero values
from the bean.

What is the proper way to do it?  I simply want to
insert the value of all the properties into the
database.  Most of the fields in my database require
NOT NULL.  

code:
==
import org.apache.artimus.message.ThreadBean;

class ThreadHandler 
{
   ThreadBean threadBean = new ThreadBean();  

   String receiver = threadBean.getReceiver();
   String sender = threadBean.getSender();
   String threadTopic = threadBean.getPostTopic();
   String threadBody = threadBean.getPostBody();
   Timestamp threadCreationDate = threadBean.getThreadCreationDate();
   int threadViewCount =
threadBean.getThreadViewCount();
   int threadReplyCount =
threadBean.getThreadReplyCount();

   MessageDAO md = new MySQLMessageDAO();
   public int insertThread( ThreadBean threadBean )
throws MessageDAOSysException,

   ObjectNotFoundException

   {
  System.out.println( "The sender is " + sender +
"." );  
  System.out.println( "The subject is " +
threadTopic + "." );
  System.out.println( "The creation date is " + threadCreationDate );
  System.out.println( "The number of replies are "
+ threadReplyCount );

  md.createThread( receiver, sender, threadTopic, 
   threadBody, threadCreationDate,

   threadViewCount,   
   threadReplyCount ); 

  int threadID = 0;
  . 
  .
  return threadID;
   }
} 


--- Robert Taylor <[EMAIL PROTECTED]> wrote:
> Your code seems a bit confusing based upon what you
> want to
> achieve.
> 
> If indeed you want ThreadHandler to inherit from
> ThreadBean,
> you should be able to do something like this:
> 
> DynaActionForm postForm = ( DynaActionForm )form; ThreadHander = new 
> ThreadHandler(); BeanUtils.copyProperties( threadHandler, postForm );
> 
> threadHandler.insertThread();
> 
> 
> The reason you are getting null and zero values in ThreadHandler
> is that you are populating a new instance of
> ThreadBean  here:
> 
> > > > DynaActionForm postForm = ( DynaActionForm
> )form;
> > > > ThreadBean threadBean = new ThreadBean(); 
> > > > BeanUtils.copyProperties( threadBean, postForm
> );
> 
> ... and then you get a new instance of ThreadHandler
> here:
> 
> > > > ThreadHandler thandler = new ThreadHandler();
> 
> At this point, ThreadHandler knows nothing of your
> populated
> instance of ThreadBean. Instead it is getting values
> from
> its own "empty" ThreadBean parent here:
> 
> > class ThreadHandler extends ThreadBean
> > {
> >String receiver = getReceiver();
> >String sender = getSender();
> >String threadTopic = getPostTopic();
> >String threadBody = getPostBody();
> >Timestamp threadCreationDate =
> > getThreadCreationDate();
> >int threadViewCount = getThreadViewCount();
> >int threadReplyCount = getThreadReplyCount();
> >
> >.
> >.
> > }
> 
> 
> ...unless you do something like the following in
> ThreadHandler.insertThread():
> 
> public int insertThread(ThreadBean bean) throws
> SomeException {
> 
>   this.receiver = bean.getReceiver();
>   this.sender = bean.getSender();
>   
> 
>   // insert code here
> 
> 
> 
> }
> 
> which from a design perspective, I'm not sure why
> you would want to do it
> this way.
> 
> 
> hth,
> 
> robert
> 
> 
> > -Original Message-
> > From: Caroline Jen [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 07, 2004 10:27 PM
> > To: Struts Users Mailing List
> > Subject: RE: All The Bean Properties Are Null in
> the Business Tier!!!
> > (Used BeanUtils to Convert DynaValidatorForm)
> >
> >
> > I have narrowed d

RE: mapped address

2004-01-08 Thread Yee, Richard K,,DMDCWEST
Otávio,
You could 1) put the info in a hidden variable which would be less secure or
2) put the info in your session.

Regards,

Richard


-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 7:33 PM
To: [EMAIL PROTECTED]
Subject: mapped address


I have the following situation:

In my struts-config.xml file, there are lots of mappings like this one:


In my application, the user has the chance to add or remove itens from a
collection which is in the httpsession. There is only one place to add those
itens, but the user can remove then at any time, at least in 3 different web
pages during the workflow.

I'd like to implement a single Action class to handle the task of getting
the httpsession with those items, remove a certain item and go back to the
page where i requested this task. As I said, there are at least 3 different
jsp pages where the user can invoke this "remove" task.

The question is: is there a way to get , in the Action class, the mapping
for the page where I came from ? At the end of my execute() methods in my
Action classes,I do this

return (mapping.findForward(destino));

to return to the jsp page. "destino" is a String containig the jsp "alias"
mapped in struts-config.xml. Since I can invoke this Action from, at least,
3 different places, how to feed "destino" with the correct mapping so I can
rturn to the page I invoked the service from?

thanks in advance

Otávio Augusto

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

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



RE: How to reset properties of a DynaValidatorForm

2004-01-07 Thread Shishir K. Singh
You may subclass DynaValidatorForm and override the reset function. As
far as I am aware, the reset is handy for boolean values like checkboxes
wherein you need to reset them back to false or true . 

Shishir 

-Original Message-
From: Sheldon Hearn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: How to reset properties of a DynaValidatorForm

Hi folks,

How are you supposed to reset properties of a DynaValidatorForm?

The source suggests that DynaValidatorForm.reset() doesn't actually
reset values to their defaults, and calling the method certainly doesn't
do what I expected.

I need to be able to do this from inside an action, so I can clear the
values on success.  This is necessary when success forwards to the page
with the form on it, where you don't want the value that was just
provided to appear in the form again, because it's been dealt with.

Ciao,
Sheldon.

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


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



RE: Upload file

2004-01-07 Thread Shishir K. Singh
I think there are examples related to Upload in the struts src distribution. Download 
the src and go through that. That should get you started. 

Shishir 

-Original Message-
From: Honza Spurný [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 12:41 PM
To: [EMAIL PROTECTED]
Subject: Upload file

Hello there,

please could anyone help me and advise, how to upload file throught the form? I need 
to upload file from client to my computer and save it somewhere. I would be pleased if 
this uploaded file is avaible to upload into the File class...

Please advise me, this is for you easy i think, but for me not. :)

Thanks
Sporak


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


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



RE: Resources from ActionForm

2004-01-07 Thread Shishir K. Singh
Ooops..I am sorry. 

I think you can do 

MessageResources resource = (MessageResources)
servlet.getServletContext().getAttribute("PORTAL_RESOURCES");

servlet is a protected field in ActionForm and hence accesible. 

Shishir

-Original Message-
From: Shishir K. Singh 
Sent: Wednesday, January 07, 2004 10:20 AM
To: 'Struts Users Mailing List'
Subject: RE: Resources from ActionForm

I think the messageresources is stored in the the application context.
Don't know if you can access the application context in the form. 

One way would be to subclass RequestProcessor, put a static function to
get the resource and use that.  

I would have been happier if an extra function could have been provided
in ActionMessage or ActionError like getMessage() which would have
returned the full message after substitution. 




  

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 9:50 AM
To: 'Struts Users Mailing List'; 'e-denton Java Programmer'
Subject: RE: Resources from ActionForm

hi,

in an actionForm.validate():

MessageResources res =
(MessageResources) request.getAttribute(GLOBALS.MESSAGES_KEY); //thats
default-key

String foo = res.getMessage("my_Key_In_bundle");
//get an message

greetings


-Original Message-
From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 3:42 PM
To: Struts Users Mailing List
Subject: Resources from ActionForm


Hi,

I want to access a resource bundle (key=PORTAL_RESOURCES) from an
ActionForm to pull out display names for error messages (ActionError). I
can't see how to access the resource bundle and pull out the strings I
want.

Thanks for your help.

Will


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


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


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



RE: Resources from ActionForm

2004-01-07 Thread Shishir K. Singh
I think the messageresources is stored in the the application context.
Don't know if you can access the application context in the form. 

One way would be to subclass RequestProcessor, put a static function to
get the resource and use that.  

I would have been happier if an extra function could have been provided
in ActionMessage or ActionError like getMessage() which would have
returned the full message after substitution. 




  

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 9:50 AM
To: 'Struts Users Mailing List'; 'e-denton Java Programmer'
Subject: RE: Resources from ActionForm

hi,

in an actionForm.validate():

MessageResources res =
(MessageResources) request.getAttribute(GLOBALS.MESSAGES_KEY); //thats
default-key

String foo = res.getMessage("my_Key_In_bundle");
//get an message

greetings


-Original Message-
From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 3:42 PM
To: Struts Users Mailing List
Subject: Resources from ActionForm


Hi,

I want to access a resource bundle (key=PORTAL_RESOURCES) from an
ActionForm to pull out display names for error messages (ActionError). I
can't see how to access the resource bundle and pull out the strings I
want.

Thanks for your help.

Will


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


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


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



RE: array-input form ?!

2004-01-07 Thread Shishir K. Singh
I Have not used velocity. But as far as I understand (I may be wrong),
you won't be able to use the standard struts taglibs, and will have to
code the iterations yourself in velocity. 

Shishir
-Original Message-
From: Andreas Schoernig [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 9:28 AM
To: Struts Users Mailing List
Subject: AW: array-input form ?!

ok, yes this is what i want... 

but don?t use JSP ...(use velocity-framework) 

but thanks so i now know where i have to search (DynaActionForm)

many thanks ,

Andi

> -Ursprungliche Nachricht-
> Von: Shishir K. Singh [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 7. Januar 2004 15:22
> An: Struts Users Mailing List
> Betreff: RE: array-input form ?!
> 
> 
> Do you want to store all the rows in each bean as array of Bean. In 
> other words, if you have two rows, then have an bean Array of size 2.
> The bean will be off course having the first name last name and 
> data...
> 
> If so , this is certainly possible. 
> 
> Try looking at the DynaActionForm. Define the property as 
> "xxx.xxx.yourBean[]"  for the DynaActionForm.
> 
> Use the html:input tags with the indexed feature in your jsp.
> 
> This should get  you started. 
> 
>
> 
> -Original Message-
> From: Andreas Schoernig [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 07, 2004 9:09 AM
> To: Struts Users Mailing List
> Subject: array-input form ?!
> 
> Hi all,
> 
> maybe someone can help me, I found no informations so long at google 
> (maybe wrong search-words).
> 
> My problem is: 
> 
> I have a html-site where you can enter your first and lastname and a 
> few more datas to order informations. If you want set more names to 
> the list you can click on a button and there are one more first-and 
> lastname-fields.
> 
> (this clicks are possible as many as the configuration-counter is set 
> (for example 4)) the fields i set at the html-code with
> and then with javascript

> i set the visibility to visible )
> 
> the complete code at a for-each-clause at the code is is:
> 
> 
> 
>
>style="width:95%
> ;height:20px;">
>style="width:95%;
> height:20px;">
>   
>value=""
> style="width:95%; height:20px;">
>
> 
> $val is the counter (use velocity for the view)...
> 
> 
> i have a bean where firstname, lastname, data and data2 is in... but 
> how can I get a bean-array for each entry ?
> 
> hope you understand my question and can help me... (or is this not 
> possible ? )
> 
> thanks...
> 
> 
> bye,
> 
> Andi
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: array-input form ?!

2004-01-07 Thread Shishir K. Singh
Do you want to store all the rows in each bean as array of Bean. In
other words, if you have two rows, then have an bean Array of size 2.
The bean will be off course having the first name last name and data...

If so , this is certainly possible. 

Try looking at the DynaActionForm. Define the property as
"xxx.xxx.yourBean[]"  for the DynaActionForm. 

Use the html:input tags with the indexed feature in your jsp.

This should get  you started. 

   

-Original Message-
From: Andreas Schoernig [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 9:09 AM
To: Struts Users Mailing List
Subject: array-input form ?!

Hi all, 

maybe someone can help me, I found no informations so long at google
(maybe wrong search-words).

My problem is: 

I have a html-site where you can enter your first and lastname and a few
more datas to order informations. If you want set more names to the list
you can click on a button and there are one more first-and
lastname-fields. 

(this clicks are possible as many as the configuration-counter is set
(for example 4)) the fields i set at the html-code with 
and then with javascript i
set the visibility to visible )

the complete code at a for-each-clause at the code is is:



   
  
  
  
  
   

$val is the counter (use velocity for the view)...


i have a bean where firstname, lastname, data and data2 is in... but how
can I get a bean-array for each entry ?

hope you understand my question and can help me... (or is this not
possible ? )

thanks...


bye, 

Andi




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


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



RE: dynamically add action ?

2004-01-07 Thread Shishir K. Singh
Aaah..found it. There are no practical example of how to do it, but the
author says that to reload configuration files by creating an Action to
reinitialize the ActionServlet. Other approach is to create a thread and
check the last modified date of the config file. If changed, it's time
to reload the config. Not sure how this is done  but would appreciate
any info if anyone has already done this. 

I guess the whole reloading concept falls in that  5% bracket identified
by "to boldly go where no man has gone before" ;)
 

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 8:38 AM
To: Struts Users Mailing List
Subject: Re: dynamically add action ?

Maybe.. cant say i recall anything that adventurous in programming with
jakarta struts.

Just seems logical to me that if you're making changes to code as
runtime, and thinking of reloading it then separating the apps makes
sense. If something goes wrong, you can manage it. Otherwise if the app
bails it bails and its game over.


On 7 Jan 2004, at 14:28, Shishir K. Singh wrote:

> Isn't there a way to reinitialize the ActionServlet (or any Subclass 
> that you may be using) at runtime. I think there is something to this 
> effect in the Orielly Struts book. If I remember correctly , the book 
> list two ways of doing it. Can't recollect it right now :(.
>
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 07, 2004 5:29 AM
> To: Struts Users Mailing List
> Subject: Re: dynamically add action ?
>
> I'm  not really sure what you're trying to do, but assuming its 
> necessary to generate java code, jsp's etc, i'd be looking at doing 
> this using 2 webapps 1 would serve as basically a code generator the 
> other would be the generated app. A bit like the admin and manager 
> webapps bundled with tomcat.
>
> This way your code generator could act as a controller and fire up 
> some ant tasks to compile and then redeploy the generated app.
>
> Again not sure what you're attempting, but if it were the case that 
> you didn't need to generate an action servlet but rather have an 
> action where the beans are dynamic I'd be looking into dynabeans to 
> achieve this.
>
> I'd be interested in knowing what the actual problem is you're
solving.
>
> Cheers Mark
>
> On 7 Jan 2004, at 11:14, lixin chu wrote:
>
>> hi,
>> i just tried these sceniors, it seems that nothing happened. I 
>> checked
>
>> Tomcat log file, could not find when it restarted.
>>
>> do i need to check something special ?
>> --- Carl <[EMAIL PROTECTED]> wrote:
>>> If you add new java code in a running Tomcat context, by default the

>>> context will restart itsel automaticly.
>>>
>>> Carl
>>>
>>> lixin chu wrote:
>>>> Thanks !
>>>>
>>>> I am very new to this web application world, just wanted to clarify

>>>> if I can do these in a running Struts application without restart
>>>> Tomcat:
>>>> 1. Can I modify existing JSP files ?
>>>>Yes, I have tried
>>>> 2. Can I add new JSP files into existing folder ?
>>>>I think so.
>>>> 3. Can I create new folders for some new JSP files
>>> ?
>>>> 4. Can I add new java class into an existing
>>> folder ?
>>>> 5. Can I create a new folder for some new Java
>>> classes
>>>> ?
>>>>
>>>> thanks
>>>> li xin
>>>>
>>>> --- Manfred Wolff <[EMAIL PROTECTED]> wrote:
>>>>
>>>>> li xin.
>>>>>
>>>>> In my opinion it is no problem to add a jsp-file
>>> to
>>>>> a struts application
>>>>> at runtime. For this you don't need to restart the server. 
>>>>> Changing
>
>>>>> the configuration at run time is not possible with the current 
>>>>> implementation of struts. After a module is initialized the 
>>>>> ActionServlet-class freezes the configuration.
>>>>> Before that you can add
>>>>> configurations such as actions, forwards etc. with the plug-in 
>>>>> mechanism, because the init() method of the plugin has full access

>>>>> to the ModuleConfig.
>>>>>
>>>>> You can override the ActionServlet Methode init() and don't freeze

>>>>> the moduleConfig. In this case you have the
>>> possibility
>>

RE: Tiles with XML and XSL

2004-01-07 Thread Shishir K. Singh
Would you be looking for something like this 
http://www.openroad.ca/opencode/

Looks intriguing. I am in the process of evaluating this. Would
appreciate any feedbacks/comments from anyone using this extension. 


Shishir

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 2:56 AM
To: Struts Users Mailing List; Tin Pham
Subject: Re: Tiles with XML and XSL

Quoting Tin Pham <[EMAIL PROTECTED]>:

> Hi,
> 
> I am wondering if anybody here has mulled over the idea of using XML 
> and XSL with Tiles.
> 
> Right now I have a great application that makes use of Struts 1.1 with

> a role based layout using Tiles. It uses the common layout we see 
> everywhere, header, dynamic menu, footer and of course body.
> 
> I started thinking that it would be nice to put all the content of the

> body tile into an XML file. Just the content though. Including forms 
> and buttons might not be a good idea at this stage. Simpler would be 
> better as my team is still learning to be proficient with Struts.
> 
> Googled of course and did not find much.
> 
> The two approaches I am considering are,
> 
> 1)
> Change the reference in the tile definition of body=myContent.jsp to a

> kind of composition servlet which recieves as paramaters, the xml and 
> xslt file to output as html (with this approach I would have to 
> include the forms and buttons).
> 

This is certainly a feasible approach.


If you are running in a Servlet 2.4 (i.e. J2EE 1.4 or Tomcat 5)
environment, you also have an additional choice -- in Servlet 2.4 you
can specify that filters get invoked on RequestDispatcher.include calls
(which is what Tiles does under the covers).  Therefore, you can create
a (servlet or JSP based) Tile whose reference URL points at an XML-based
resource, and then (based on URL-specific filter mappings) apply an XSL
transformation in the filter that is appropriate for this particular
tile.

> 2)
> Make a reference to my xml and xslt server side using a custom tag in 
> the jsp page.
> 

This is definitely a feasible solution.  But don't bother trying to
create such tags yourself -- there are robust capabilities for this
available in the JSP Standard Tag Library (JSTL).  An open source
implementation of JSTL is available in the "standard" tag library of the
Jakarta Taglibs project:

  http://jakarta.apache.org/taglibs/

> 3)
> Figure out a way to render this client side relying on the browser.

In an intranet environment where you control the client browser
software, this can be a practical approach.  For an Internet-based app,
have fun with the customer support calls :-).

4) There are some third party Struts add-ons available that address the
notion of using XML and XSLT technologies alongside Struts -- check the
resource pages for links.

> 
> 
> Any thoughts or links to resources would be greatly appreciated.
> 
> 

Craig McClanahan


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


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



RE: dynamically add action ?

2004-01-07 Thread Shishir K. Singh
Isn't there a way to reinitialize the ActionServlet (or any Subclass
that you may be using) at runtime. I think there is something to this
effect in the Orielly Struts book. If I remember correctly , the book
list two ways of doing it. Can't recollect it right now :(. 

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 5:29 AM
To: Struts Users Mailing List
Subject: Re: dynamically add action ?

I'm  not really sure what you're trying to do, but assuming its
necessary to generate java code, jsp's etc, i'd be looking at doing this
using 2 webapps 1 would serve as basically a code generator the other
would be the generated app. A bit like the admin and manager webapps
bundled with tomcat.

This way your code generator could act as a controller and fire up some
ant tasks to compile and then redeploy the generated app.

Again not sure what you're attempting, but if it were the case that you
didn't need to generate an action servlet but rather have an action
where the beans are dynamic I'd be looking into dynabeans to achieve
this.

I'd be interested in knowing what the actual problem is you're solving.

Cheers Mark

On 7 Jan 2004, at 11:14, lixin chu wrote:

> hi,
> i just tried these sceniors, it seems that nothing happened. I checked

> Tomcat log file, could not find when it restarted.
>
> do i need to check something special ?
> --- Carl <[EMAIL PROTECTED]> wrote:
>> If you add new java code in a running Tomcat context, by default the 
>> context will restart itsel automaticly.
>>
>> Carl
>>
>> lixin chu wrote:
>>> Thanks !
>>>
>>> I am very new to this web application world, just wanted to clarify 
>>> if I can do these in a running Struts application without restart 
>>> Tomcat:
>>> 1. Can I modify existing JSP files ?
>>>Yes, I have tried
>>> 2. Can I add new JSP files into existing folder ?
>>>I think so.
>>> 3. Can I create new folders for some new JSP files
>> ?
>>> 4. Can I add new java class into an existing
>> folder ?
>>> 5. Can I create a new folder for some new Java
>> classes
>>> ?
>>>
>>> thanks
>>> li xin
>>>
>>> --- Manfred Wolff <[EMAIL PROTECTED]> wrote:
>>>
 li xin.

 In my opinion it is no problem to add a jsp-file
>> to
 a struts application
 at runtime. For this you don't need to restart the server. Changing

 the configuration at run time is not possible with the current 
 implementation of struts. After a module is initialized the 
 ActionServlet-class freezes the configuration.
 Before that you can add
 configurations such as actions, forwards etc. with the plug-in 
 mechanism, because the init() method of the plugin has full access 
 to the ModuleConfig.

 You can override the ActionServlet Methode init() and don't freeze 
 the moduleConfig. In this case you have the
>> possibility
 to add actions and
 forwards to the configuration at run time.

 Manfred

 lixin chu wrote:


> hi,
> i would like to know if it is possible to

 dynamically

> (without restart servlet engine) add Actions.
>
> say for example, i have one struts based

 application

> running. now i want to add one hyperlink in a

 JSPfile

> which points to another struts based application module. how do i 
> do it ?
>
> is there any existing soultion ?
> thanks
> li xin
>
> __
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus"

 Sweepstakes

> http://hotjobs.sweepstakes.yahoo.com/signingbonus
>

>>
>>> 
>>> -

> To unsubscribe, e-mail:

 [EMAIL PROTECTED]

> For additional commands, e-mail:

 [EMAIL PROTECTED]

>
>

 --
 ===
 Dipl.-Inf. Manfred Wolff
 ---
 phone neusta  : +49 421 20696-27
 phone : +49 421 534522
 mobil : +49 178 49 18 434
 eFax  : +49 1212 6 626 63 965 33
 ---
>>
>>> 
 Diese E-Mail enth鋖t m鰃licherweise
>>>
>>> vertrauliche
>>>
 und/oder rechtlich gesch黷zte Informationen.
>>>
>>> Wenn
>>>
 Sie nicht der richtige Adressat sind oder diese E-Mail 
 irrt黰lich erhalten haben,
>> informieren
>>>
>>> Sie
>>>
 bitte sofort den Absender und vernichten Sie diese Mail. Das 
 unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist 
 nicht gestattet.

 This e-mail may contain confidential and/or privileged information.

 If you are not the
>> intended
 recipient (or have received this e-mail in error) please notify the

 sender immediately and destroy this e-mail. Any unauthorised 
 copying, disclo

Re: error

2004-01-06 Thread Khalid K.
Please post your program if possible.
It looks like you are missing the "import" statements. 
If you are using any type of IDE, it usually has an option like "organize 
imports", if you are just using a text editor, then make sure to declare those 
import statements.

Khalid

> Hi,
> 
>  
> 
> I have an error occurring when I try and compile some java files in struts.
> 
>  
> 
> Package org.apache.struts.action does not exist
> 
> Import org.apache.struts.action.ActionForm;
> 
>  
> 
> Package javax.servlet.http does not exist
> 
> Import javax.servlet.http.HttpServletResponse;
> 
>  
> 
> There are many more similar errors.
> 
>  
> 
> I have included the struts.jar file from the Jakarta-struts/lib folder in
> the classpath.
> 
> I have added all the .tld files, web.xml and struts-config.xml in the
> WEB-INF folder of my application
> 
> I have added the struts.jar file to the lib folder in my application
> 
> In the classes folder I have put ApplicationResources.properties
> 
> Web-inf/classes/com/example contains the java files I want to compile
> 
>  
> 
> This is an example from a book I am learning from and I have followed
> everything exactly. Can anyone advise me on what I am doing wrong?
> 
>  
> 
> Thanks
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
>  
> 


-- 
Khalid K.

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



RE: Iplanet 6.0.2 error

2004-01-05 Thread Yee, Richard K,,DMDCWEST
Alok,
Check the capitalization of your directory path. It should be WEB-INF, not
web-inf.

-Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 3:02 AM
To: [EMAIL PROTECTED]
Subject: Iplanet 6.0.2 error


Hello ,
I am facing the following problem on iplanet ws 6.0.5 server The Classes in
the web-inf/classes folder not recognised by the server. I am getting the
error like cannot create instance of .Action class.

Any help would be highly appreciated.

Alok Garg
Polaris Software Lab Ltd.
( + 91 - 022 - 28290019 Ext. # 1308 )





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



RE: Adding items to a vector of formbean in the jsp

2004-01-05 Thread Yee, Richard K,,DMDCWEST
Paulo,
The problem is that Vectors or Arrays are not created and sized for you
automatically. When your form is submitted, the populate() method attempts
to set the Vector element of new element which is beyond the size of your
vector. To fix this problem, you can either size the Vector with empty slots
in your action before you display the form or use a LazyList (search the
archives for LazyList)

Regards,

Richard

-Original Message-
From: Paulo Rezende [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 05, 2004 10:03 AM
To: Struts Users Mailing List
Subject: Adding items to a vector of formbean in the jsp


Struters,

I need help from somebody.

I have a formbean that has a vector property, and my jsp has a iterator that
renderizes this:

  
  

  
  

If i change the value of any of these inputs and submit the page, the
requestprocessor parse and update the values of the vector in the formbean
correctly.

But if i, dinamicly with dom, create new inputs increasing the index (like
in the example below) and submit the page, i get a exception of
Beans.populate(), a out of ranger error.

  newInput = document.createElement("input");
  newInput.type = "hidden";
  newInput.name = "userList[2].id";
  newInput.id   = "id2";
  myHmtlBody.appendChild(inp);

  document.getElementById("id2").value = 3;

  newInput = document.createElement("input");
  newInput.type = "hidden";
  newInput.name = "userList[2].name";
  newInput.id   = "name2";
  myHmtlBody.appendChild(inp);

  document.getElementById("name2").value = "peter";

What i really want is that, when i submit the page, the requestprocessor add
a new item in the vector and set the values of the new item with the values
of the new inputs.

Anybody have any thing to say or suggest, any idea?

thanks, Paulo

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



RE: Example of a non-threadsafe Action?

2003-12-23 Thread Yee, Richard K,,DMDCWEST
Matt,
A final declaration just means that the reference can't be changed to a
different SimpleDateFormat instance. A static declaration just means that
there is one instance of the variable for all of the instances of the class.
Neither modifier affects how the SimpleDateFormat uses internal instance
variables.

-Richard

-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 23, 2003 11:40 AM
To: Struts Users Mailing List
Subject: Re: Example of a non-threadsafe Action?


What if the SimpleDateFormat variable is declared as final and/or static?

Thanks,

Matt
- Original Message - 
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Nifty
Music" <[EMAIL PROTECTED]>
Sent: Tuesday, December 23, 2003 2:35 PM
Subject: RE: Example of a non-threadsafe Action?


> Quoting Nifty Music <[EMAIL PROTECTED]>:
>
> > Thanks Craig!  You certainly confirmed my suspicions, although I 
> > would
have
> > guessed that I could've gotten away with sharing the 
> > SimpleDateFormat variable since it wouldn't depend on any values 
> > coming in from request objects.  Could you perhaps shed some light 
> > on why it wouldn't make
sense to
> > share it?
> >
>
> Because the internal implementation of SimpleDateFormat uses instance
variables
> during parsing and formatting, so it's not thread safe :-).
>
> Craig
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

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



RE: Example of a non-threadsafe Action?

2003-12-23 Thread Yee, Richard K,,DMDCWEST
Matt,
It doesn't matter. Since the internal implementation of DateFormat uses
internal instance variables, it is not threadsafe. If two different threads
access the same SimpleDateFormat.format method, there is the possibility of
the formatted result to be incorrect due to the fact that the methods use
the same calendar instance variable to store intermediate values when
formatting. Unfortunately, it hasn't been documented in the API until J2SE
1.4.1. This is an example where the API wasn't written very well and isn't
documented well. To find out more, look up "Thread Safety SimpleDateFormat"
on Google.

-Richard

-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 23, 2003 11:40 AM
To: Struts Users Mailing List
Subject: Re: Example of a non-threadsafe Action?


What if the SimpleDateFormat variable is declared as final and/or static?

Thanks,

Matt
- Original Message - 
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Nifty
Music" <[EMAIL PROTECTED]>
Sent: Tuesday, December 23, 2003 2:35 PM
Subject: RE: Example of a non-threadsafe Action?


> Quoting Nifty Music <[EMAIL PROTECTED]>:
>
> > Thanks Craig!  You certainly confirmed my suspicions, although I 
> > would
have
> > guessed that I could've gotten away with sharing the 
> > SimpleDateFormat variable since it wouldn't depend on any values 
> > coming in from request objects.  Could you perhaps shed some light 
> > on why it wouldn't make
sense to
> > share it?
> >
>
> Because the internal implementation of SimpleDateFormat uses instance
variables
> during parsing and formatting, so it's not thread safe :-).
>
> Craig
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

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



RE: Html:input help

2003-12-23 Thread Shishir K. Singh
Would have agreed with you if it had not worked for both the case. What
was confounding was that it worked for one of the field and not for the
other. I would assume  "will not mess with the actual internal (to the
browser) representation"  that it would not mess at all. But it's
messing. 


-Original Message-
From: Lobello Jeffrey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 23, 2003 12:57 PM
To: Shishir K. Singh; Pitchko, John SCAN--; Struts Users Mailing List
Subject: RE: Html:input help


Generally, CSS (such as text-transform) will alter the visual
display/rendering of HTML, but will not mess with the actual internal
(to the browser) representation.  Thus, I would consider it 'correct'
that
'text-transform: uppercase', when applied to an HTML input field with
lowercase text in it, is not causing the submitted text to be converted
to uppercase.

For a more definitive answer, I would suggest rereading the CSS specs at
http://www.w3c.org/.

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 12:28 PM
To: Pitchko, John SCAN--; Struts Users Mailing List
Subject: RE: Html:input help


That is what I resorted to ultimately (the dirty way I guess). The issue
here is that the formatting of the attribute is dictated by a config
file, saying which ones will be upper case and which ones will be
lowercase. Hence I was initially trying with the CSS style attribute on
html:input (text)  tag to control the input. 
 
Here is what happens. When the user types in with the Caps Lock off, the
entry is all uppercase but the value sent to the server is lowercase.
However, the entry is uppercase if the user switches the caps lock on.
This is what confused me. Even though the user sees the entries as all
Uppercase (with caps lock off since the style defines text-transform:
uppercase), the actual values are lowercase.

I have resorted to doing a regex on the config variable (that I store on
a bean)  and explicitly set the form field value to uppercase if I find
a matching pattern of  "uppercase" in the config variable...yuck!!. 

But the css style attribute for html:input (text) completely buffoons
me. Perhaps, inline css is not supposed to be used with html:input (text
type) tag ?? 

-Original Message-
From: Pitchko, John SCAN-- [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 9:02 AM
To: Shishir K. Singh; Struts Users Mailing List
Subject: RE: Html:input help

IMO, you're probably better off doing this kind of data transformation
inside of an Action. Would it be at all possible to do this within your
application?

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: December 22, 2003 4:44 PM
To: Struts Users Mailing List
Subject: Html:input help


Hi, 

I have two html:input (type text ) fields on my form and I am converting
them to upper case using inline css style. I have included the rendered
html page  snippet. If you see, the PartNo retains the value uppercase
value (TEST1). However, the Part Description is not correct even though
the style is same. If I remove the Part No from the form, the Part
description gets the correct value i.e all uppercase. 

Has anyone faced this problem ? If so, any advice would be appreciated. 
 
 

--




Part No








Part Description





   




TIA
Shishir


---
This message and any included attachments are from Siemens Medical
Solutions USA, Inc. and are intended only for the addressee(s).  
The information contained herein may include trade secrets or privileged
or otherwise confidential information.  Unauthorized review, forwarding,
printing, copying, distributing, or using such information is strictly
prohibited and may be unlawful.  If you received this message in error,
or have reason to believe you are not authorized to receive it, please
promptly delete this message and notify the sender by e-mail with a copy
to [EMAIL PROTECTED]  Thank you

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



RE: Html:input help

2003-12-23 Thread Shishir K. Singh
That is what I resorted to ultimately (the dirty way I guess). The issue
here is that the formatting of the attribute is dictated by a config
file, saying which ones will be upper case and which ones will be
lowercase. Hence I was initially trying with the CSS style attribute on
html:input (text)  tag to control the input. 
 
Here is what happens. When the user types in with the Caps Lock off, the
entry is all uppercase but the value sent to the server is lowercase.
However, the entry is uppercase if the user switches the caps lock on.
This is what confused me. Even though the user sees the entries as all
Uppercase (with caps lock off since the style defines text-transform:
uppercase), the actual values are lowercase.

I have resorted to doing a regex on the config variable (that I store on
a bean)  and explicitly set the form field value to uppercase if I find
a matching pattern of  "uppercase" in the config variable...yuck!!. 

But the css style attribute for html:input (text) completely buffoons
me. Perhaps, inline css is not supposed to be used with html:input (text
type) tag ?? 

-Original Message-
From: Pitchko, John SCAN-- [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 23, 2003 9:02 AM
To: Shishir K. Singh; Struts Users Mailing List
Subject: RE: Html:input help

IMO, you're probably better off doing this kind of data transformation
inside of an Action. Would it be at all possible to do this within your
application?

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: December 22, 2003 4:44 PM
To: Struts Users Mailing List
Subject: Html:input help


Hi, 

I have two html:input (type text ) fields on my form and I am converting
them to upper case using inline css style. I have included the rendered
html page  snippet. If you see, the PartNo retains the value uppercase
value (TEST1). However, the Part Description is not correct even though
the style is same. If I remove the Part No from the form, the Part
description gets the correct value i.e all uppercase. 

Has anyone faced this problem ? If so, any advice would be appreciated. 
 
 

--




Part No








Part Description





   




TIA
Shishir

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



RE: Nested Problem.

2003-12-23 Thread Shishir K. Singh
Why don't you design your bean like this:
If it's a one time set of the collection,then  

public class NestedParentBean extends ActionFormBase{

  private String parentName = null;
  private String parentId = null;
  private java.util.ArrayList childBeanCollection = null;

  public String getParentName() {
return parentName;
  }
  public void setParentName(String parentName) {
this.parentName = parentName;
  }
  public String getParentId() {
return parentId;
  }
  public void setParentId(String parentId) {
this.parentId = parentId;
  }
  public java.util.ArrayList getChildBeanCollection() {
return childBeanCollection;
  }
  public void setChildBeanCollection(java.util.ArrayList
childBeanCollection) {
if (childBeanCollection != null && childBeanCollection.size() >
0) {

  if ( this.childBeanCollection == null)  {
this.childBeanCollection = new
ArrayList(childBeanCollection.size());
  }

  for (int i = 0; i < childBeanCollection.size(); i++ ) {
this.childBeanCollection.add(childBeanCollection.get(i));   
  }
}

  }
}

Else just set the this.childBeanCollection = null before allocating
memory in setChildBeanCollection















-Original Message-
From: RAMYA BALA CHIVUKULA Padmanabha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 23, 2003 1:09 AM
To: Struts-User (E-mail)
Subject: Nested Problem.

Hi ,
Can any one solve this problem for me.

I have a Parent Bean of the Structure.

public class NestedParentBean extends ActionFormBase{
  private String parentName;
  private String parentId;
  private java.util.ArrayList childBeanCollection;

  public NestedParentBean() {

for(int i=0;i<20;i++){
  NestedChildBean nesChldBean = new NestedChildBean();
  childBeanCollection.add(nesChldBean);
}
  }
  public String getParentName() {
return parentName;
  }
  public void setParentName(String parentName) {
this.parentName = parentName;
  }
  public String getParentId() {
return parentId;
  }
  public void setParentId(String parentId) {
this.parentId = parentId;
  }
  public java.util.ArrayList getChildBeanCollection() {
return childBeanCollection;
  }
  public void setChildBeanCollection(java.util.ArrayList
childBeanCollection) {
this.childBeanCollection = childBeanCollection;



And Child Bean of the Structure


public class NestedChildBean extends ActionFormBase{
  private String childId;
  private String childName;
  public NestedChildBean() {
  }
  public String getChildId() {
return childId;
  }
  public void setChildId(String childId) {
this.childId = childId;
  }
  public String getChildName() {
return childName;
  }
  public void setChildName(String childName) {
this.childName = childName;
  }
The problem for me now is .. I do not know the number of childBeans that
would be available and I do not want to hardcode as shown above, I'm
able to display in the Jsp.. 

ActionFormBase refers to one of our baseclasses


Can anyone help me out with how to create dynamic reference for the
childBean?


Regards,
Ramya 

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


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



RE: retrieving values from application.properties file

2003-12-23 Thread Shishir K. Singh
Use

ResourceBundle resource =
ResourceBundle.getBundle("resources.application");

Else :
If you are in Action/Lookup Dispatch Action class

MessageResources resource = getResources(request);



 

-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 23, 2003 2:24 AM
To: Struts Users Mailing List
Subject: RE: retrieving values from application.properties file

hi,
One more thing to add is that I dont have access to request,pagecontext
etc.
I am writing a Servicelocator class and I want to access some values in
that file. Is it possible.
Otherwise I have to use my own resource bundle.





>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 23, 2003 12:48 PM
>To: [EMAIL PROTECTED]
>Subject: RE: retrieving values from application.properties file
>
>
>Hi Ashwani
>
>In a jsp page use follwing code:
>
>
>org.apache.struts.util.PropertyMessageResources res =
>   
>(org.apache.struts.util.PropertyMessageResources)application.ge
>tAttribut
>e(org.apache.struts.Globals.MESSAGES_KEY);
>   out.println(res.getMessage("KEYNAME"));
>
>
>Dhiraj
>
>-Original Message-
>From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 23, 2003 12:27 PM
>To: Struts (E-mail)
>Subject: retrieving values from application.properties file
>
>hi,
>I want to directly access the keys and its values in 
>applcation.properties ( default resource bundle file in struts). Can 
>any body tell me which is the class in struts(utility class) which 
>helps me retrieve the values based on the keys from this file.
>
>/Ashwani
>
>
>This message contains information that may be privileged or 
>confidential and is the property of the Cap Gemini Ernst & Young Group.

>It is intended only for the person to whom it is addressed. If you are 
>not the intended recipient, you are not authorised to read, print, 
>retain, copy, disseminate, distribute, or use this message or any part 
>thereof. If you receive this message in error, please notify the sender

>immediately and delete all copies of this message.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>DISCLAIMER:
>This message contains privileged and confidential information and is 
>intended only for the individual named.If you are not the intended 
>recipient you should not disseminate,distribute,store,print, copy or 
>deliver this message.Please notify the sender immediately by e-mail if 
>you have received this e-mail by mistake and delete this e-mail from 
>your system.E-mail transmission cannot be guaranteed to be secure or 
>error-free as information could be 
>intercepted,corrupted,lost,destroyed,arrive late or incomplete or 
>contain viruses.The sender therefore does not accept liability for any 
>errors or omissions in the contents of this message which arise as a 
>result of e-mail transmission. If verification is required please 
>request a hard-copy version.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


This message contains information that may be privileged or confidential
and is the property of the Cap Gemini Ernst & Young Group. It is
intended only for the person to whom it is addressed. If you are not the
intended recipient, you are not authorised to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and
delete all copies of this message.

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


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



Html:input help

2003-12-22 Thread Shishir K. Singh
Hi, 

I have two html:input (type text ) fields on my form and I am converting
them to upper case using inline css style. I have included the rendered
html page  snippet. If you see, the PartNo retains the value uppercase
value (TEST1). However, the Part Description is not correct even though
the style is same. If I remove the Part No from the form, the Part
description gets the correct value i.e all uppercase. 

Has anyone faced this problem ? If so, any advice would be appreciated. 
 
 

--




Part No








Part Description





   




TIA
Shishir

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



Drop down value - First Row to be Blank

2003-12-19 Thread Rama, Shreekanth (K.)
Hi, 
>   I am getting  ???en_US.null???  in the drop down for blank option as
> mentioned below.
> 
>   My html select has this 
>   
> 
>   How do I set this, to a blank row within the drop down ? 
>   
> Regards
> Shreekanth
> 

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



Using Iterate Tag !

2003-12-18 Thread Rama, Shreekanth (K.)
Hi All, 

I am new to struts world.
I have a problem in the iterate tag. Here's the code snippet..















My reset method & other methods in the createAbstractForm class are: 

public void reset(ActionMapping mapping, HttpServletRequest request)
{

reqdEquipmentList = new ArrayList();

this.rowCount = request.getParameter("rowCount");

int count = 0;
if (rowCount != null) {
count = Integer.parseInt(rowCount);

for (int i = 0; i < count; i++) {
reqdEquipmentList.add(new
RequiredEquipmentVO());
}
}

public void setRowCount(String string) {
this.rowCount = string;
}
public String getRowCount() {
if (this.reqdEquipmentList != null) {
return "" + reqdEquipmentList.size();
}
return rowCount;
   }

public ArrayList getReqdEquipmentList() {
return reqdEquipmentList;
}
public void setReqdEquipmentList(ArrayList reqdEquipmentList) {
this.reqdEquipmentList = reqdEquipmentList;
}


I am not able to get the values entered on the screen back in action
class
Any one, please help tell me what is wrong in the settings or code. 

Thanks & Regards
Shree


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



Re: Question about back button on forward.

2003-12-17 Thread Khalid K.
This is an age old questions. There are various javascript 'hacks' around. I 
suggest google the following: "javascript back button" 

the problem is that when you click on "back button" no server request is made, 
the catched page froom "history.back()" (i think that is the method) is 
displayed.  So java can't help you on that.

Khalid


> Hi All:
> 
>  
> 
> In IE when user hits back button then I want to forward user to my main
> page. I want to do this in reset method of the form. How can I
> 
>  
> 
> 1)forward using request object to forward to main page.
> 
> 2)Or redirect to main page
> 
>  
> 
> Note: At this time I am not executing action class. So I cannot return
> mapping. I am just in form. And I want to 
> 
> Forward to a specific page.
> 
>  
> 
> Any hints? Help??
> 
>  
> 
> Thanks.
> 
>  
> 
> Shrihas Shah
> NYS Office for Technology
> [EMAIL PROTECTED]
> Phone (518) 408-2382
> Fax (518) 473-3389
> (US Postal Service Regular Mail Address)
> State Capitol ESP, PO Box 2062
> Albany, NY 12220-0062
> (Parcel Post/Overnight and Interagency Mail Address)
> Empire State Plaza
> Swan St., Core 4, 1st Floor
> Albany, NY 12223
> 
>  
> 
> 


-- 
Khalid K.

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



from sathish:regarding locale

2003-12-16 Thread Sathish Babu K R
hi all

in our coy we have decided to implement
internationalization using Locale...

can anybody give some idea abt to start with,like
needed files,configurations,usage in jsp/java files.

regards
sathish

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



RE: Drop Down - Code and Description

2003-12-11 Thread Rama, Shreekanth (K.)
Wit, 

My baseAbstractVO Class has only setter & getter methods. 
The baseAbstractVO.vehicleLineList is an arrayList which contains
code and Description in the form of an temp Object.

if (rs.getString(1) != null) {

commonVO.setCode(rs.getString(1).trim());
} else {
commonVO.setCode("");
}

if (rs.getString(2) != null) {

commonVO.setDescription(rs.getString(2).trim());
} else {
commonVO.setDescription("");
}
arrayList.add(commonVO);



The arrayList is the vehicleLineList... 

Warm Regards
Shreekanth


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 4:42 PM
To: Struts Users Mailing List
Subject: Re: Drop Down - Code and Description


Dear Shree:

Can you copy-and-paste the code for the JavaBean that was referred by 
request (or session).getAttribute("baseAbstractVO")?

wit






"Rama, Shreekanth (K.)" <[EMAIL PROTECTED]>
12/11/2003 04:33 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc: 
Subject:Drop Down - Code and Description


Hi ALL, 

 I have a problem in the drop down in the application..
 
 
 
 
 

 I want to have both code and description of the selected 
item from
the drop down box. 

Any Help Pls ?? 

Regards
Shreekanth 

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





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



Drop Down - Code and Description

2003-12-11 Thread Rama, Shreekanth (K.)
Hi ALL, 

I have a problem in the drop down in the application..






I want to have both code and description of the selected item from
the drop down box. 

Any Help Pls ?? 

Regards
Shreekanth  

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



RE: dynamically sized form (mostly solved)

2003-12-10 Thread Yee, Richard K,,DMDCWEST
Andy,
Check out
http://jakarta.apache.org/commons/collections/apidocs/org/apache/commons/col
lections/decorators/LazyList.html

With a lazy list, if you try and get using an index that is greater than the
size of the list, then it will return an empty object instead of resulting
in an ArrayIndexOutOfBounds exception. 

-Richard

-Original Message-
From: Andy Schmidgall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 1:27 PM
To: Struts Users Mailing List
Subject: RE: dynamically sized form (mostly solved)


Would someone be able to point me somewhere that could explain the LazyList?
I'm having a very similar problem with my jsp, and I found the javadoc, but
I don't understand how to actually instantiate the LazyList...

Thanks,
Andy

-Original Message-
From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 2:11 PM
To: Struts Users Mailing List
Subject: RE: dynamically sized form (mostly solved)







The reason you get the null pointer exception is that the "inventoryList"
property in your DynaActionForm is created empty.  The exception occurs when
Struts tries to populate inventoryList[0].startNumber or
inventoryList[0].endNumber.

Even though I haven't used the DynaActionForm, I know that it will have the
same limitations/requirements for populating indexed properties as an
ActionForm.  I know that some folks use a LazyList for processing their
indexed properties.  Perhaps that will help you.

The reason you don't get the exception with the name iList is that struts
makes no attempt to populate the ArrayList in your DynaActionForm.

Can't provide an answer...but I can see the why to your problem Nick




 

  "Nifty Music"

  <[EMAIL PROTECTED]> To:
[EMAIL PROTECTED]

   cc:

  12/10/2003 01:33 Subject:  RE: dynamically
sized form (mostly solved)
  PM

  Please respond to

  "Struts Users

  Mailing List"

 

 





I apologize in advance if this comes through twice.  Our email server was
having issues this morning, so I'm resending it in case it didn't make it
out the first time.  Thanks! I am attempting to do something similar to what
has been posted here in the current Struts application that I'm working on.
I'm using a DynaValidatorForm in request scope, iterating through a
dynamically generated ArrayList that I've put into the DynaValidatorForm,
and then attempting to pass it through request scope using indexed
properties. The page displays perfectly, but when I try to submit it, I get
the following
error:
[Servlet Error]-[BeanUtils.populate]: java.lang.NullPointerException: No
indexed value for 'inventoryList[0]' at
org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:293)
at org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUt
ils.java:474)

Here are some snippets of code:
>From the ActionClass that populates the .JSP:
ArrayList itemRanges = itemCDTO.getItemRanges(); //returns an ArrayList of
ItemRange beans form.set("inventoryList", itemRanges); From
struts-config.xml: 
   
   From the JSP:
An interesting thing I
noticed when I change the code in the JSP like this:

then I don't get
the error. But of course, when I do an (ArrayList)
form.get("inventoryList"), it returns an empty List to the Action class. I
can, however, bypass the DynaValidatorForm and directly query the
HttpServletRequest object and pull the individual components by doing a
request.getParameter("iList[0].startNumber"), which is extremely clunky. I'm
sure I must be missing something stupid. If anyone can shed some light, it
would be greatly appreciated. Thanks so much! Brent -Original
Message-
From: Yee, Richard K,,DMDCWEST [<mailto:[EMAIL PROTECTED]>]
Sent: Friday, November 21, 2003 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: dynamically sized form (mostly solved)


Matt,
You actually only need the form in the request. You don't need the property
of the form at all in your JSP.

In my JSP I use


 


In struts-config.xml I have this










 



-Richard

-Original Message-
From: Matt Bathje [<mailto:[EMAIL PROTECTED]>]
Sent: Friday, November 21, 2003 2:17 PM
To: Struts Users Mailing List
Subject: Re: dynamically sized form (mostly solved)


> I found out that using new DynaActionForm()inside of the
> PreLoaderAction.execute() doesn't work. It gives a null pointer
> exception when you try and call the set() method.
>
> You need to do this instead:
>
> FormBeanConfig cfg = mapping.getModuleConfig()
> .findFormBeanConfig("dynaIndexTestForm");
> 

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Yee, Richard K,,DMDCWEST
I thought it worked, but it didn't.

-Richard

-Original Message-
From: Nifty Music [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 1:02 PM
To: [EMAIL PROTECTED]
Subject: RE: dynamically sized form (mostly solved)


Nicholas, 

What you said definitely makes sense to me.  Richard graciously replied
off-list with a similar response.  I remember reading documentation which
stated that when using dynamic arrays with DynaForms, it is necessary to
place the DynaForm in session scope.  However, I 'm almost positive that
someone (Matt? Mark?) mentioned on this list that they were able to pass an
ArrayList through a DynaForm in request scope.  For a variety of reasons,
I'm not too eager to put the entire formbean in the session for the sake of
propogating one ArrayList attribute.  If Matt or Mark or anyone else has
some insights to share regarding how they were able to get this to work in
request scope, I'd be very grateful to hear.  

Thanks again,

Brent


- Original Message -
From: Nicholas L Mohler <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 2:07 PM
Subject: RE: dynamically sized form (mostly solved)






The reason you get the null pointer exception is that the "inventoryList"
property in your DynaActionForm is created empty.  The exception occurs when
Struts tries to populate inventoryList[0].startNumber or
inventoryList[0].endNumber.

Even though I haven't used the DynaActionForm, I know that it will have the
same limitations/requirements for populating indexed properties as an
ActionForm.  I know that some folks use a LazyList for processing their
indexed properties.  Perhaps that will help you.

The reason you don't get the exception with the name iList is that struts
makes no attempt to populate the ArrayList in your DynaActionForm.

Can't provide an answer...but I can see the why to your problem Nick




 

  
  "Nifty Music"

  
  <[EMAIL PROTECTED]> To:  
[EMAIL PROTECTED]

   cc:

  
  12/10/2003 01:33 Subject:  RE: dynamically
sized
form (mostly solved)
  PM

  
  Please respond to

  
  "Struts Users

  
  Mailing List"

  
 

  
 

  




I apologize in advance if this comes through twice.  Our email server was
having issues this morning, so I'm resending it in case it didn't make it
out the first time.  Thanks! I am attempting to do something similar to what
has been posted here in the current Struts application that I'm working on.
I'm using a DynaValidatorForm in request scope, iterating through a
dynamically generated ArrayList that I've put into the DynaValidatorForm,
and then attempting to pass it through request scope using indexed
properties. The page displays perfectly, but when I try to submit it, I get
the following
error:
[Servlet Error]-[BeanUtils.populate]: java.lang.NullPointerException: No
indexed value for 'inventoryList[0]' at
org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:293)
at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
java:474)

Here are some snippets of code:
>From the ActionClass that populates the .JSP:
ArrayList itemRanges = itemCDTO.getItemRanges(); //returns an ArrayList of
ItemRange beans form.set("inventoryList", itemRanges); From
struts-config.xml: 
   
   From the JSP:
An interesting thing I
noticed when I change the code in the JSP like this:

...then I don't get the
error. But of course, when I do an (ArrayList) form.get("inventoryList"), it
returns an empty List to the Action class. I can, however, bypass the
DynaValidatorForm and directly query the HttpServletRequest object and pull
the individual components by doing a
request.getParameter("iList[0].startNumber"), which is extremely clunky. I'm
sure I must be missing something stupid. If anyone can shed some light, it
would be greatly appreciated. Thanks so much! Brent -Original
Message-
From: Yee, Richard K,,DMDCWEST [<mailto:[EMAIL PROTECTED]>]
Sent: Friday, November 21, 2003 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: dynamically sized form (mostly solved

RE: Log4J

2003-12-10 Thread Sathish Babu K R
hi kalra

everything is fine in respective classpaths

sathish
--- "Kalra, Ashwani" <[EMAIL PROTECTED]> wrote:
> I dont see any problem here.Only thing is that your
> property file should be
> present in classpath somewhere. may be in
> web-inf\classes.  Also check the
> req category class is present in jar file. and no
> other log4.jar is present
> in your classpath.
> 
> 
> 
> 
> 
> >-Original Message-
> >From: Sathish Babu K R [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, December 10, 2003 12:47 PM
> >To: Struts Users Mailing List
> >Subject: RE: Log4J 
> >
> >
> >hi kalra
> >
> >com.pronto.web.accesssummaryreportform is in
> >web-inf/classes
> >
> >will there be any probs due to log4j.prop..its as
> >
> >log4j.rootLogger=ALL ,Log
> >log4j.appender.Log=org.apache.log4j.ConsoleAppender
>
>log4j.appender.Log.layout=org.apache.log4j.PatternLayout
> >log4j.appender.Log.layout.ConversionPattern=%d{dd
> MMM
> >yyy HH:mm:ss,SSS} %-5p %c - %m%n
> >
> ># Define the type of logger
>
>#log4j.appender.Log=org.apache.log4j.RollingFileAppender
> >#log4j.appender.Log.File=logs/dbcube.log
> >#log4j.appender.Log.MaxFileSize=1KB
> >
> ># Keep one backup file
> >#log4j.appender.Log.MaxBackupIndex=1
> >
> ># Define the stuff to log
>
>#log4j.appender.Log.layout=org.apache.log4j.PatternLayout
> >#log4j.appender.Log.layout.ConversionPattern=%d{dd
> MMM
> >yyy HH:mm:ss,SSS} %-5p %c - %m%n
> >
> >#log4j.logger.dbcube=ALL, Log
> >
> >
> >regards
> >sathish
> >--- "Kalra, Ashwani" <[EMAIL PROTECTED]>
> wrote:
> >> from the code you sent , there doesnt seem to be
> any
> >> problem.
> >> 
> >> >i don't use category class at all
> >> >
> >> >then how come its showing errori don't get
> >> it...
> >> 
> >> Some classes internally still uses this class.
> They
> >> will finally be removed.
> >> 
> >> Check to see that Category class
> >> (org/apache/log4j/Category) is indeed
> >> present in you jar. 
> >> 
> >> one more check 
> >> Where are your
> >> com.pronto.web.AccessSummaryReportForm class
> lying ?
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> >-Original Message-
> >> >From: Sathish Babu K R
> [mailto:[EMAIL PROTECTED]
> >> >Sent: Wednesday, December 10, 2003 12:38 PM
> >> >To: Struts Users Mailing List
> >> >Subject: RE: Log4J 
> >> >
> >> >
> >> >hi alan
> >> >
> >> >i don't use category class at all
> >> >
> >> >then how come its showing errori don't get
> >> it...
> >> >
> >> >whatz that jar that makes trick?tell me
> >> >
> >> >sathish
> >> >
> >> >__
> >> >Do you Yahoo!?
> >> >New Yahoo! Photos - easier uploading and
> sharing.
> >> >http://photos.yahoo.com/
> >> >
> >>
>
>>-
> >> >To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> >For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> >
> >> 
> >>
> 
> >> This message contains information that may be
> >> privileged or confidential and
> >> is the property of the Cap Gemini Ernst & Young
> >> Group. It is intended only
> >> for the person to whom it is addressed. If you
> are
> >> not the intended
> >> recipient, you are not authorised to read, print,
> >> retain, copy, disseminate,
> >> distribute, or use this message or any part
> thereof.
> >> If you receive this
> >> message in error, please notify the sender
> >> immediately and delete all copies
> >> of this message.
> >> 
> >>
>
>-
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> 
> >
> >
> >__
> >Do you Yahoo!?
> >New Yahoo! Photos - easier uploading and sha

RE: Log4J

2003-12-10 Thread Sathish Babu K R
hi kalra

com.pronto.web.accesssummaryreportform is in
web-inf/classes

will there be any probs due to log4j.prop..its as

log4j.rootLogger=ALL ,Log
log4j.appender.Log=org.apache.log4j.ConsoleAppender
log4j.appender.Log.layout=org.apache.log4j.PatternLayout
log4j.appender.Log.layout.ConversionPattern=%d{dd MMM
yyy HH:mm:ss,SSS} %-5p %c - %m%n

# Define the type of logger
#log4j.appender.Log=org.apache.log4j.RollingFileAppender
#log4j.appender.Log.File=logs/dbcube.log
#log4j.appender.Log.MaxFileSize=1KB

# Keep one backup file
#log4j.appender.Log.MaxBackupIndex=1

# Define the stuff to log
#log4j.appender.Log.layout=org.apache.log4j.PatternLayout
#log4j.appender.Log.layout.ConversionPattern=%d{dd MMM
yyy HH:mm:ss,SSS} %-5p %c - %m%n

#log4j.logger.dbcube=ALL, Log


regards
sathish
--- "Kalra, Ashwani" <[EMAIL PROTECTED]> wrote:
> from the code you sent , there doesnt seem to be any
> problem.
> 
> >i don't use category class at all
> >
> >then how come its showing errori don't get
> it...
> 
> Some classes internally still uses this class. They
> will finally be removed.
> 
> Check to see that Category class
> (org/apache/log4j/Category) is indeed
> present in you jar. 
> 
> one more check 
> Where are your
> com.pronto.web.AccessSummaryReportForm class lying ?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> >-Original Message-
> >From: Sathish Babu K R [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, December 10, 2003 12:38 PM
> >To: Struts Users Mailing List
> >Subject: RE: Log4J 
> >
> >
> >hi alan
> >
> >i don't use category class at all
> >
> >then how come its showing errori don't get
> it...
> >
> >whatz that jar that makes trick?tell me
> >
> >sathish
> >
> >__
> >Do you Yahoo!?
> >New Yahoo! Photos - easier uploading and sharing.
> >http://photos.yahoo.com/
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> 
> 
> This message contains information that may be
> privileged or confidential and
> is the property of the Cap Gemini Ernst & Young
> Group. It is intended only
> for the person to whom it is addressed. If you are
> not the intended
> recipient, you are not authorised to read, print,
> retain, copy, disseminate,
> distribute, or use this message or any part thereof.
> If you receive this
> message in error, please notify the sender
> immediately and delete all copies
> of this message.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



RE: Log4J

2003-12-10 Thread Sathish Babu K R
hi alan

i don't use category class at all

then how come its showing errori don't get it...

whatz that jar that makes trick?tell me

sathish

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: Log4J

2003-12-10 Thread Sathish Babu K R
hi kwok

how to initialize the class

what am i doing is 

i m having loggers.java as

package com.pronto.util;

import java.io.*;
import java.util.*;
import org.apache.log4j.*;

/**
 * Title:
 * Description:  Uses new Log4j class to log all the
message to a file
 * Copyright:Copyright (c) 2003
 * Company:
 * @author Sathish Babu
 * @version 1.0
 */

public class Loggers {

  public static int DEBUG_LOG_LEVEL = 1;
  public static int INFO_LOG_LEVEL = 2;
  public static int ERROR_LOG_LEVEL = 4;

  private static PrintWriter _printWriter = null;
  private static String _logFile = null;
  private static int _logLevel;
  private static Logger logger =
Logger.getLogger("com.pronto.web");

  public static TreeMap levels = new TreeMap();
  static {
levels.put(String.valueOf(DEBUG_LOG_LEVEL),
"DEBUG");
levels.put(String.valueOf(INFO_LOG_LEVEL),
"INFO");
levels.put(String.valueOf(ERROR_LOG_LEVEL),
"ERROR");
_logLevel = logger.getLevel().toInt();
ConsoleAppender app
=(ConsoleAppender)logger.getAppender("Log");
   // RollingFileAppender app
=(RollingFileAppender)logger.getAppender("Log");
   // _logFile = app.getFile();
  }

  public synchronized static void logMessage(Object
message, int logLevel) {
  System.out.println("got into log message");
/*if(logLevel == ERROR_LOG_LEVEL)
  {
  logger.error(message);
  }
else if(logLevel == INFO_LOG_LEVEL)
  {
  logger.info(message);
  }
else
  {*/
System.out.println("got into debug message");
  logger.debug(message);
  //}
  }

  public static void setLoggingLevel(int level) {
if( logger.getLevel().toInt() != level ) {
  if(level == DEBUG_LOG_LEVEL)
logger.setLevel(Level.DEBUG);
  if(level == INFO_LOG_LEVEL)
logger.setLevel(Level.INFO);
  if(level == ERROR_LOG_LEVEL)
logger.setLevel(Level.ERROR);
  logMessage("Setting logging level to " +
levels.get(String.valueOf(level)), level);
}
  }

  public static void clearLogFile()  {
try {
  if(_printWriter != null)
_printWriter.close();
  _printWriter = new PrintWriter(new
FileWriter(_logFile), true);
  logMessage("Cleared out logfile",
logger.getLevel().toInt());
}
catch(Exception e) {
  logMessage("Error while Clearing logfile
"+e.getMessage(), ERROR_LOG_LEVEL);
}
  }

  public static void writeFileToWriter(Writer out) {
try {
  BufferedReader br = new BufferedReader(new
FileReader(_logFile));
  char[] buff = new char[2048];
  int bytesRead;

  while(-1 != (bytesRead = br.read(buff, 0,
buff.length))) {
out.write(buff, 0, bytesRead);
  }
  br.close();
}
catch(Exception e) {
  Loggers.logMessage("Error while writing the file
to writer " +e.getMessage(),ERROR_LOG_LEVEL);
}
  }

  public static int getLoggingLevel() {
return _logLevel;
  }

  private Loggers() {
  }
  public static void main(String[] args) 
{
System.out.println("Hello World!");
Loggers.logMessage("stupid..idiot",
Loggers.ERROR_LOG_LEVEL);
}
}


i m calling that in actionform class as 

Loggers.logMessage("stupid..idiot",
Loggers.DEBUG_LOG_LEVEL);

tell me solution

sathish

--- Kwok Peng Tuck <[EMAIL PROTECTED]> wrote:
> It says no class definition found rather than no
> class found, are you 
> initializing the class correctly ?
> Sathish Babu K R wrote:
> 
> >hi kalra
> >
> >yep i have that log4j in lib folder
> >
> >sathish
> >
> >__
> >Do you Yahoo!?
> >New Yahoo! Photos - easier uploading and sharing.
> >http://photos.yahoo.com/
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
> >  
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



RE: Log4J

2003-12-09 Thread Sathish Babu K R
hi kalra

yep i have that log4j in lib folder

sathish

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Log4J

2003-12-09 Thread Sathish Babu K R
hi all

i m getting this error...

java.lang.NoClassDefFoundError:
org/apache/log4j/Category
at
com.pronto.web.AccessSummaryReportForm.validate(Unknown
Source)
at
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:2106)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565)
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 com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at
oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:293)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:602)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:308)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:779)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:264)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:484)


pls tell me y?

sathish


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-08 Thread Yee, Richard K,,DMDCWEST
Caroline,
Imposible? Look at the HTML that is generated by the JSP page. I think you
will see that it returns "null".
Take a look at the JavaDoc for HttpServletRequest.getRemoteUser();

getRemoteUser
public java.lang.String getRemoteUser()
Returns the login of the user making this request, if the user has been
authenticated, or null if the user has not been authenticated. Whether the
user name is sent with each subsequent request depends on the browser and
type of authentication. Same as the value of the CGI variable REMOTE_USER.

Returns: a String specifying the login of the user making this request, or
null 

As the JavaDoc says: "Whether the user name is sent with each subsequent
request depends on the browser and type of authentication."  Are you using
basic authentication or are you authenticating the user yourself?
If you are doing it yourself (ie. through a db lookup) then the server
doesn't know about the user being authenticated and will return null.

Regards,

Richard
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 08, 2003 2:56 PM
To: Struts Users Mailing List
Subject: RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces
sAction


I pass two hidden fields: username and keyName at the
same time.  The keyName is passed and with the correct
value in it.  The username is passed but its value
turns out to be a null.

It is impossible for request.getRemoteUser(); in my
JSP returning a null.  (see code below) Before it
reaches request.getRemoteUser(); the user has already
been successfully logged in with a valid name.





<% String username = request.getRemoteUser();%>


View Articles




--- "Yee, Richard K,,DMDCWEST"
<[EMAIL PROTECTED]> wrote:
> Caroline,
> Are you having problems with the username or the
> keyName hidden variable? If
> it is the username, then I'd suspect that
> request.getRemoteUser() in your
> JSP is returning null.
> 
> Regards,
> 
> Richard
> 
> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 08, 2003 1:32 PM
> To: Struts Users Mailing List
> Subject: Re: Please Help! Unable to Pass A Hidden
> Field To
> scaffold.ProcessAction
> 
> 
> I did not mess up lowercase and uppercase of the
> hidden field I want to pass from my JSP to the scaffold.ProcessAction.  
> If it had been the lowercase/uppercase problem, I would
> have gotten a message
> saying that the variable could not be recognized.  
> 
> I pass two hidden fields at the same time.  One of
> them is successfully passed with correct value.  The
> other is passed but its value shows a 'null' in the 
> scaffold.ProcessAction. What could go wrong?  Let me show my code 
> again:
> 
> Two hidden fields: username and keyName are passed
> from a JSP via a SUBMIT button:
> 
> 
> 
> <% String username = request.getRemoteUser();%>
>  value="journal_category"/>
>  value="<%=username%>"/>
> View Articles
> 
> 
> 
> and an action mapping:
> 
>  roles="editor"
> path="/find/Category"
>
> type="org.apache.struts.scaffold.ProcessAction"
>
>
parameter="org.apache.artimus.article.FindEditorData"
> name="articleForm"
> scope="request"
> validate="false">
> name="success"
> path=".article.Result"/>
> 
> 
> The value of the 'username' is found to be a 'null'
> in
> the FindEditorData.java while the value of keyName
> is successfully
> retrieved.  In the browser, I got:
> 
> name=null; kn=journal_category; kv=null
> 
> The code of my FindEditorData is shown below:
> 
> public final class FindEditorData extends Bean
> {
>public Object execute() throws Exception
>{
> 
>// Obtain username 
>String username = getUsername();
>   
>EditorService service = new EditorService();
>String value = service.findEditorData( username
> );
> 
>String property = getKeyName();
> 
> if (( null==property ) || ( null==value )) 
> {
> StringBuffer sb = new StringBuffer();
> sb.append( "name=" );
> sb.append( username );
> sb.append( "; kn=" );
> sb.append( property );
> sb.append( "; kv=" );
> sb.append( value );
> throw new ParameterException(
> sb.toString() );
> }
> 
> ResultList list = new ResultListBase
> (
> 
> Access.findByProperty

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-08 Thread Yee, Richard K,,DMDCWEST
Caroline,
Are you having problems with the username or the keyName hidden variable? If
it is the username, then I'd suspect that request.getRemoteUser() in your
JSP is returning null.

Regards,

Richard

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 08, 2003 1:32 PM
To: Struts Users Mailing List
Subject: Re: Please Help! Unable to Pass A Hidden Field To
scaffold.ProcessAction


I did not mess up lowercase and uppercase of the
hidden field I want to pass from my JSP to the scaffold.ProcessAction.  If
it had been the lowercase/uppercase problem, I would have gotten a message
saying that the variable could not be recognized.  

I pass two hidden fields at the same time.  One of
them is successfully passed with correct value.  The
other is passed but its value shows a 'null' in the scaffold.ProcessAction.
What could go wrong?  Let me show my code again:

Two hidden fields: username and keyName are passed 
from a JSP via a SUBMIT button:



<% String username = request.getRemoteUser();%>


View Articles



and an action mapping:


   


The value of the 'username' is found to be a 'null' in
the FindEditorData.java while the value of keyName is successfully
retrieved.  In the browser, I got:

name=null; kn=journal_category; kv=null 

The code of my FindEditorData is shown below:

public final class FindEditorData extends Bean
{
   public Object execute() throws Exception
   {

   // Obtain username 
   String username = getUsername();
  
   EditorService service = new EditorService();
   String value = service.findEditorData( username );

   String property = getKeyName();

if (( null==property ) || ( null==value )) 
{
StringBuffer sb = new StringBuffer();
sb.append( "name=" );
sb.append( username );
sb.append( "; kn=" );
sb.append( property );
sb.append( "; kv=" );
sb.append( value );
throw new ParameterException(
sb.toString() );
}

ResultList list = new ResultListBase
(

Access.findByProperty( this,property,value
)

);
list.setLegend( property,value );

return new ProcessResultBase( list );

   } // end execute

} // End FindEditorData
  


--- Caroline Jen <[EMAIL PROTECTED]> wrote:
> I want to pass two hidden fields; username and
> keyName
> from a JSP via a SUBMIT button:
> 
> 
> 
> <% String username = request.getRemoteUser();%>
>  value="journal_category"/>
>  value="<%=username%>"/>
> View Articles
> 
> 
> 
> and an action mapping:
> 
>  roles="editor"
> path="/find/Category"
>
> type="org.apache.struts.scaffold.ProcessAction"
>
>
parameter="org.apache.artimus.article.FindEditorData"
> name="articleForm"
> scope="request"
> validate="false">
> name="success"
> path=".article.Result"/>
> 
> 
> How come the username is not passed to the FindEditorData.java while 
> the keyName is successfully
> passed.  In the browser, I got:
> 
> name=null; kn=journal_category; kv=null
> 
> The code of my FindEditorData is shown below:
> 
> public final class FindEditorData extends Bean
> {
>public Object execute() throws Exception
>{
> 
>// Obtain username 
>String username = getUsername();
>   
>EditorService service = new EditorService();
>String value = service.findEditorData( username
> );
> 
>String property = getKeyName();
> 
> if (( null==property ) || ( null==value )) 
> {
> StringBuffer sb = new StringBuffer();
> sb.append( "name=" );
> sb.append( username );
> sb.append( "; kn=" );
> sb.append( property );
> sb.append( "; kv=" );
> sb.append( value );
> throw new ParameterException(
> sb.toString() );
> }
> 
> ResultList list = new ResultListBase
> (
> 
> Access.findByProperty(
> this,property,value
> )
> 
> );
> list.setLegend( property,value );
> 
> return new ProcessResultBase( list );
> 
>} // end execute
> 
> } // End FindEditorData
> 
> 
> 
> __
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing. 
> http://photos.yahoo.com/
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/

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

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

RE: Tomcat 4.1.29 & Struts

2003-12-08 Thread Yee, Richard K,,DMDCWEST
Mukund,
Is this really your struts-config.xml?

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


Where are your form-bean and action mapping definitions?
The cause of your problem is that you don't have a message-resources entry.
ie.
  

I'd advise you to start from scratch with the ValidatorExample or the
StrutsBlank examples

Regards,

Richard
-Original Message-
From: Mukund Ramadoss [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 08, 2003 11:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Tomcat 4.1.29 & Struts


Hi David,

Thanks for your mail.

Actually I don't still know what is causing the problem.
Now based on your mail, I've tried with both the following DTDs:

http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd";>struts-conf
ig_1_1.dtd 
http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd";>struts-conf
ig_1_0.dtd 
The result is same:
org.apache.jasper.JasperException: Cannot find message resources under key
org.apache.struts.action.MESSAGE

Actually when I reload the webapp, I get the following error in my log:

2003-12-08 11:26:07 StandardWrapper[/strutsShop:default]: Loading container
servlet default 2003-12-08 11:26:08 StandardWrapper[/strutsShop:action]:
Marking servlet action as unavailable 2003-12-08 11:26:08
StandardContext[/strutsShop]: Servlet /strutsShop threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path 
at
org.apache.struts.action.ActionServlet.handleConfigException(ActionServl
et.java:1035)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:1014)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:955)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:935)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3422)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3623
)
at
org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConfi
g.java:614)
at
org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
at java.lang.Thread.run(Thread.java:536)

I'm attaching web.xml and struts_config.xml below:
---struts-config.xml -  http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
  

--web.xml


http://java.sun.com/dtd/web-app_2_3.dtd";>



  
action
 
org.apache.struts.action.ActionServlet

  application
  


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2
  
   
  
  
action
/do/*
  
  
invoker
/servlet/*
  
  
  
index.jsp
index.html
  



   
/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
   


   
/WEB-INF/struts-template.tld
   
   
/WEB-INF/struts-template.tld
   
 




Thanks for your help.

Regards
Mukund

-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 06, 2003 2:39 PM
To: Struts Users Mailing List
Subject: RE: Tomcat 4.1.29 & Struts


Mukund,

What was your Tomcat 4.1.29 problem?  Was the wrong DTD part of the problem?

Regards,
David

-Original Message-
From: Mukund Ramadoss [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 7:06 PM
To: 'Struts Users Mailing List'
Subject: Tomcat 4.1.29 & Struts


Is anyone working with Struts on Tomcat 4.1.29?
If yes, can you provide me some inputs on the installation.

I'm getting org.apache.jasper.JasperException: Cannot find message resources
under key org.apache.struts.action.MESSAGE, when executing  in the jsp.

Thanks
Mukund


-Original Message-
From: Mukund Ramadoss [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 9:00 AM
To: 'Struts Users Mailing List'
Subject: RE: org.apache.struts.action.MESSAGE


My attachment got denied.
I'm enclosing it here. Thanks - Mukund
- struts-config.xml

http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd";>
 
  
- web.xml


http://java.sun.com/dtd/web-app_2_3.dtd";>



  
action

org.apache.struts.action.ActionServlet

  application
  


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true


   application
   

2
  

  
  
action
/do/*

RE: Form with a Form

2003-12-08 Thread Khalid K.
This sounds like a DispatchAction problem.

If you use DispatchAction, (look the API for more info)

then in your jsp:



Edit


Update




> Hi,
>If at all I can use JavaScript in Struts...pls guide me how can I
> implement the same
> 
> Tnx in Advace,
> 
> -Ramadoss
> 
> 
> -Original Message-
> From: Ajay Kalidindi [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 08, 2003 1:40 PM
> To: Struts Users Mailing List
> Subject: RE: Form with a Form
> 
> 
> I have a suggestion.
> 
> You can add a HIDDEN field, write a java script on click of multiple buttons
> Like "ADD", "DELETE", "EDIT", "RENAME" buttons.
> 
> What the java script will do is update HIDDEN variable and submit.
> 
> I have not come across form within a form in HTML.
> 
> Regards
> 
> Ajay Kalidindi
> 
> -Original Message-
> From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 08, 2003 10:17 AM
> To: [EMAIL PROTECTED]
> Subject: Form with a Form
> 
> 
> Hi,
>   Can we define a form within a form...if so can you guide me .
> 
> Actually in my jsp I wanted to perform two different action with respect to
> button pressed.so If I define global form I can only submit the global
> action defined in that form but I wanted to submit different action with
> respect to different button clicked so in that case I'm going for two
> different formplz set me if I'm wrong.. possible pls provide me how can I
> achieve the same.
> 
> Tnx in advance,
> Ramadoss
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Khalid K.

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



RE: Tomcat 4.1.29 & Struts

2003-12-05 Thread Yee, Richard K,,DMDCWEST
Mukund,
Are there any messages in the log file? Are you using log4j and did you set
the logging level to debug? It shouldn't be a Classpath issue if the file is
located in your webapp's WEB-INF/classes directory. That is automatically
put in your apps classpath. 

-Richard

-Original Message-
From: Mukund Ramadoss [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 05, 2003 4:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Tomcat 4.1.29 & Struts


Hi Richard,

Thanks for your mail.
Actually I am running on windows and there is not .txt extenstion.

The filename is ApplicationResources.properties. (not
ApplicationProperties.properties). 
Could this be a classpath issue? How do I check.

Thanks again.
Mukund

-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 05, 2003 4:30 PM
To: Struts Users Mailing List
Subject: RE: Tomcat 4.1.29 & Struts


Mukund,
If you are running on Windows, have you ever edited
the ApplicationProperties.properties file with
notepad? Could it possibly have a .txt extension after
the .properties extension? If you are running on Unix,
is the case correct on the file name?

-Richard

--- Mukund Ramadoss <[EMAIL PROTECTED]> wrote:
> I removed the key in the struts_config. But still
> the result is the
> same.
> 
> My struts-config looks like this:
> --
> 
>   
>
"http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd";>
>  
>parameter="ApplicationResources" 
>  null="false" />
> 
> --
> 
> My ApplicationResources.properties is in
> WEB-INF/classes directory. I
> have also
> Copied it to WEB-INF folder. But still it does not
> pick it up.
> 
> I also tried downloaded xerces.jar to WEB-INF/lib,
> for I read elsewhere
> that it could be a xml parser issue. This does not
> help too.
> 
> Any suggestions.
> 
> Thanks
> Mukund
> 
> 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



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

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



from sathish

2003-12-05 Thread Sathish Babu K R
hi david

i get session using request.getSession()?y whats  in
it?tell me.

sathish

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



from sathish

2003-12-03 Thread Sathish Babu K R
hi david

when i used ur signature

i m not able to get session from ur request.thatz
creating probs.tell me any other sugg

regards
sathish

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



from sathish

2003-12-03 Thread Sathish Babu K R
hi david

i m using the same method signature for all action
classes.all files works fine except this.that is i m
using HttpServletRequest and HttpServletResponse in
all files but u have asked me to put ServletRequest
and ServletResponse.is it right?

sathish

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



from sathish

2003-12-03 Thread Sathish Babu K R
hi all

while access to the action class,i m getting the error
as 

java.lang.NoSuchMethodError at
com.pronto.web.ModifyGWQueuesAction.perform(Unknown
Source) at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
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 com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at
oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:293)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:602)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:308)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:779)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:264)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for
J2EE].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:479) 

the action class is

package com.pronto.web ;

import java.io.IOException;
import java.util.Collection;
import java.util.ArrayList;
import javax.ejb.Handle;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import
com.pronto.gateway.IPGConfigurationManagerRemote;
import com.pronto.gateway.PGQueueVO;
import com.pronto.util.Debug;

public final class ModifyGWQueuesAction extends Action
{

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

HttpSession session = request.getSession();
ModifyGWQueuesForm theForm =
(ModifyGWQueuesForm)form;

long x=1,y=2,z=3;
String b1="N",b2="N",b3="N";
float abw1=1,abw2=1,abw3=1;
boolean msg=true;

String button=request.getParameter("Management");
Debug.print("ModifyGWQueuesAction : perform() --
Button Clicked: " + button);

if("Save".equals(button))
{
String queuename = theForm.getqueuename();
Debug.print("ModifyGWQueuesAction : perform() --
Queue Name1 : " + queuename);

String queuename1 = theForm.getqueuename1();
Debug.print("ModifyGWQueuesAction : perform() --
Queue Name2 : " + queuename1);

String queuename2 = theForm.getqueuename2();
Debug.print("ModifyGWQueuesAction : perform() --
Queue Name3 : " + queuename2);

String queuebandwidth =
theForm.getqueuebandwidth();
Debug.print("ModifyGWQueuesAction : perform() --
Queue Bandwidth1 : " + queuebandwidth);
abw1=(new Float(queuebandwidth)).floatValue();

String queuebandwidth1 =
theForm.getqueuebandwidth1();
Debug.print("ModifyGWQueuesAction : perform() --
Queue Bandwidth2 : " + queuebandwidth1);
abw2=(new Float(queuebandwidth1)).floatValue();

String queuebandwidth2 =
theForm.getqueuebandwidth2();
Debug.print("ModifyGWQueuesAction : perform() --
Queue Bandwidth3 : " + queuebandwidth2);
abw3=(new Float(queuebandwidth2)).floatValue();

String queue = theForm.getqueue();
Debug.print("ModifyGWQueuesAction : perform() --
isolated 1 : " + queue);

String queue1 = theForm.getqueue1();
Debug.print("ModifyGWQueuesAction : perform() --
isolated 2 : " + queue1);

String queue2 = theForm.getqueue2();
Debug.print("ModifyGWQueuesAction : perform() -

Select Property !

2003-12-03 Thread Rama, Shreekantha (K.)
Hi All, 

I have the following piece of code in a .jsp


  
  

I am getting the error as : 

[No getter method available for property modelYear for bean under name 2002]: 
javax.servlet.jsp.JspException: No getter method available for property modelYear for 
bean under name 2002
at 
org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:273)
 


My baseVO class has these methods

/**
 * Gets the fieldNo
 * @return Returns a String
 */
public String getModelYear() {
return strModelYear;
}

/**
 * Sets the strModelYear
 * @param strMdlYr The strModelYear to set
 */
public void setModelYear(String strMdlYr) {
this.strModelYear = strMdlYr;
}



/**
 * Gets the ModelYearList
 * @return Returns an arraylist
 */
public ArrayList getModelYearList() {
return ModelYearList;
}

/**
 * Sets the ModelYearList
 * @param ModelYearList The ModelYearList to set
 */
public void setModelYearList(ArrayList listArray) {
this.ModelYearList = listArray;
}


What is the mistake I have done. 


Thanks & Regards
Shree


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



RE: Need to retain the data of the previous page

2003-12-02 Thread Khalid K.
If you have a wizard style pages, then you can declare the form in the session. 
At the end of the process dump the data to a value object. But in this case, 
you have to do house cleaning yourself i.e. only validate/populate pages, dump 
the form at the end etc. etc...

So What will happen is:

If you have Page A, B, C , they will all share form X (in session scope)
So you will have Action A, Action B, Action C sharing form X.

Khalid


> Yeah I was thinking of the same approach. I thought if there is better way.
> Means I have to keep a collection of Page A form beans in session
> 
> 
> 
> 
> >-Original Message-
> >From: Khalid K. [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, December 02, 2003 11:54 AM
> >To: 'Struts Users Mailing List'
> >Subject: RE: Need to retain the data of the previous page
> >
> >
> >You have to persist your data. If you declare your form in request
> >scope, then once user clicks on submit on page A, you have to save the
> >data to a Value Object stored in session. 
> >
> >Khalid
> >
> >
> >-Original Message-
> >From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] 
> >Sent: Monday, December 01, 2003 10:12 PM
> >To: Struts (E-mail)
> >Subject: Need to retain the data of the previous page
> >
> >
> >hi,
> >I have the following flow.
> >Page A  :  Display some rows. These rows are not in DB.Initially there
> >are no rows. It contains add button
> >
> >Page B : On clicking the add button of Page A,  page B opens 
> >up the form
> >which user  fills and forward back to page A. 
> >Page A now displays new row along with already existing rows  if there
> >were.
> >
> >my Question . How to retains the data of page A. Can struts handle it.
> >Or I have to use the session object .
> >
> >TIA
> >Ashwani
> >
> >
> >This message contains information that may be privileged or 
> >confidential
> >and is the property of the Cap Gemini Ernst & Young Group. It is
> >intended only for the person to whom it is addressed. If you 
> >are not the
> >intended recipient, you are not authorised to read, print, 
> >retain, copy,
> >disseminate, distribute, or use this message or any part 
> >thereof. If you
> >receive this message in error, please notify the sender immediately and
> >delete all copies of this message.
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >---
> >Incoming mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003
> > 
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003
> > 
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> This message contains information that may be privileged or confidential and
> is the property of the Cap Gemini Ernst & Young Group. It is intended only
> for the person to whom it is addressed. If you are not the intended
> recipient, you are not authorised to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all copies
> of this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Khalid K.

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



RE: Need to retain the data of the previous page

2003-12-01 Thread Khalid K.
You have to persist your data. If you declare your form in request
scope, then once user clicks on submit on page A, you have to save the
data to a Value Object stored in session. 

Khalid


-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 01, 2003 10:12 PM
To: Struts (E-mail)
Subject: Need to retain the data of the previous page


hi,
I have the following flow.
Page A  :  Display some rows. These rows are not in DB.Initially there
are no rows. It contains add button

Page B : On clicking the add button of Page A,  page B opens up the form
which user  fills and forward back to page A. 
Page A now displays new row along with already existing rows  if there
were.

my Question . How to retains the data of page A. Can struts handle it.
Or I have to use the session object .

TIA
Ashwani


This message contains information that may be privileged or confidential
and is the property of the Cap Gemini Ernst & Young Group. It is
intended only for the person to whom it is addressed. If you are not the
intended recipient, you are not authorised to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and
delete all copies of this message.

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



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003
 


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



New to Struts !

2003-11-26 Thread Rama, Shreekantha (K.)
Hi All, 

I am new to struts. 
I have the following lines of code in my jsp. 



<%
FORMTITLE="foms.create.title";
%>



In struts-config.xml the entry is 
 


I am getting the error as 

Error 500: Cannot find bean createForm  in any scope 


Any help ?? 


Regards
Shree

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



RE: problem - urgent..help!!

2003-11-25 Thread Khalid K.
Any solutions yet??? I found a couple of possible solutions.

Download jsse jar files and then setup the  System property by using
System.setProperty("", "")  ('cant recall the correct class names..i am
home now :))

My question is ...how to make this work in a server env. I can make it
work in a stand alone test program, but where can I set 
This attribute in a WebApp to make Strut happy so the  tag
does not throw the "unknown protocol: https"  exception 

Thanks



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 25, 2003 6:35 PM
To: Struts Users Mailing List; Daniel A. Torrey
Cc: Struts Users Mailing List
Subject: Re:  problem - urgent..help!!


Quoting "Daniel A. Torrey" <[EMAIL PROTECTED]>:

> I don't think that java.net.URL is capable of setting up an SSL 
> connection.
> 
> -daniel
> 

Actually, it is possible if you have JSSE available (or you're running
JDK 1.4 or later, which includes JSSE).

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

> Daniel A. Torrey
> daniel at datorrey dot net
> 

Craig


> 
> 
> Quoting "Khalid K." <[EMAIL PROTECTED]>:
> 
> > platform:  AIX/Websphere
> > Struts V:  1.0.2
> > 
> > Problem:  
> >   
> > 
> > the above code works fine in windows - none SSL environment. When we

> > migrate the code to AIX/Websphere that has SSL installed.. 
> > hence..https://blahblah... The above code throws:
> > java.net.MalformedURLException: unknown protocol: https
> > 
> > Last time I checked https is a valid protocol...HELP! THANKS!
> > 
> > Thanks in advance!!! (cant use jsp:include ...custom wrappers 
> > etc...)
> > 
> > 
> > WebGroup  X Servlet Error: Cannot create include URL:
> > java.net.MalformedURLException: unknown protocol: https:
> > javax.servlet.jsp.JspException: Cannot create include URL:
> > java.net.MalformedURLException: unknown protocol: https
> > at
> > org.apache.struts.taglib.bean.IncludeTag.doStartTag(IncludeTag.java)
> > at noticeofchange._notice_5F_of_5F_change_jsp_5._jspService
> > (_notice_5F_of_5F_change_jsp_5.java:241)
> > at 
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> > (Compiled Code))
> > 
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




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



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003
 


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



  1   2   3   4   >