RE: Help in Logic Tag

2003-02-20 Thread Chakradhar Tallam
get rid of this line 

try this
   

  No record(s) found! 

   

chaks.

-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 February 2003 2:57 PM
To: Struts Users Mailing List
Subject: Re: Help in Logic Tag


i have this code but i have an error "Cannot find bean referralsinfo in any
scope"

my referralsinfo is in my request session and i know its working cause i can
use it in
my logic:iterate tag. what seems to be the problem? Here's some of my jsp
code
.

..

   
   

  No record(s) found! 

   


Am i doing things right?

Thanks


-Richard

- Original Message -
From: "Todd Pierce" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 11:07 AM
Subject: RE: Help in Logic Tag


> With Struts tags:
>
> 
>
> 
> 
> ...
> 
>
> 
>
> 
> ...
> 
>
> -Original Message-
> From: Richard Raquepo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 21 February 2003 2:05 PM
> To: Struts Users Mailing List
> Subject: Help in Logic Tag
>
>
> i want to be able to show a message like
> "No records found" is there was no records found or logic/iterate did not
do
> any iteration.
>
> Can anybody provide us a solution to this kind of problem?
>
> thanks a lot!.
>
> i have this in my JSP:
>
>  
> 
>    
>   
> 
>   
>   
> 
>   
>   
> 
>   
>   
> 
>   
>   
> 
>   
>    
>  
>  
>
> -
> 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]



slowdown problem

2003-02-19 Thread Chakradhar Tallam
hi,

we got a tomcat(4.1.12) application using struts(1.0.2), j2sdk(1.4.1_01)
running on our production server windows(2000). we are having a strange
problem and it is re-occurring on a regular basis.

the application suddenly slows down - it takes considerable amount of time
(10 times more than the normal time) to go from one jsp to another jsp
through a struts action. when i look at the log files, it looks like the
action finishes it's processing pretty quickly but it's the struts
forwarding to the next jsp which is taking the considerable amount of time.

has any one come across this problem! any comments / suggestions will be
appreciated.

thanks,
chaks.



RE: how to use two parameter in logic:iterate

2003-02-18 Thread Chakradhar Tallam
do something like this


">


aMap is a property of someBean which is a bean in someScope.

aMap is a class which has key, description as properties and has ("L",
"List"; "V", "Vector"; ... etc.,) kind of structure

chaks.

-Original Message-
From: shashi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 19 February 2003 4:58 PM
To: Struts Users Mailing List
Subject: how to use two parameter in logic:iterate


Hi

i am using the logic:iterate to display the content in  and want to
another array in the option value at the same time
I want
---

List
Vector


but using the 
able to print this


List
Vector


what ever i have to use for first result

regards

Shashi






RE: where is ApplicationResources.properties defined?

2002-07-12 Thread Chakradhar Tallam

make sure u got


.
.
.

application
ApplicationResources

.
.
.


in ur web.xml

CT

-Original Message-
From: bryan hansen [mailto:[EMAIL PROTECTED]]
Sent: Friday, 12 July 2002 10:22 AM
To: Struts Users Mailing List
Subject: Re: where is ApplicationResources.properties defined?


I am running into similar problems, but I have
verified that my ApplicationResources.properties file
is infact included in my classes directory. I still
can not find items that are listed in the properties
file. Any suggestions?

Bryan


--- [EMAIL PROTECTED] wrote:
> 
> The ApplicationResources.properties needs to be on
> your classpath - which
> implies being in the classes directoy.
> 
> If your 'clean' operation wipes out the classes
> directory, then your
> 'build' operation needs to copy the .properties
> files back again.
> 
> For examples of how to do this, examine the example
> applications delivered
> with Struts. Also, review the build file for the web
> applications (
> build-webapp.xml) to see how the web app is built.
> 
> If you have specific quesitons on the build process
> and how the .properties
> file(s) get copied, post them back to the list and
> someone will help -
> 
> Best of luck,
> 
> Keivn
> 
> 
> 
> 
> 
> 
> 
> Struts Newsgroup (@Basebeans.com)  07/11/2002 07:40:02 PM
> 
> Please respond to "Struts Users Mailing List"
><[EMAIL PROTECTED]>
> 
> To:[EMAIL PROTECTED]
> cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
> Subject:where is ApplicationResources.properties
> defined?
> 
> 
> Subject: where is ApplicationResources.properties
> defined?
> From: "David Chu" <[EMAIL PROTECTED]>
>  ===
> I am very confused on how to define a new path for
> the file currently named
> "ApplicationResources.properties"  I did not see any
> definition in either
> web.xml nor struts-confug.xml.   Specifically, is
> there any way to define
> it
> to live outside of the "WEB-INF/classes" directory? 
> (this is because a
> clean operation deletes my whole classes directory,
> including the
> ApplicationResources.properties file!)  Thanks very
> much for the help.
> 
> 
> --
> -david
> 
> --
> David C. Chu
> America Online
> Network Tools Intern
> --
> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:




jsp - servlet - struts - internationalization

2002-06-26 Thread Chakradhar Tallam

hi,

is there any good tutorial available (for best practices etc.,) for
internationalization of jsp applications.

please forward me few pointers.

chaks.



RE: problem

2002-06-20 Thread Chakradhar Tallam

have u got this declaration just before the 

  

...

  

declaration!

-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 June 2002 12:12 PM
To: Struts Users Mailing List
Subject:  problem


I have a problem with the data-source properties in struts-config.xml
This is for the sample email portal application.

I configured the properties to use my localhost oracle installation, which
does work with jdbc from command-line java apps as well as with sql*plus.

Here is the suspect layout:

 

  
  
  
  
  
  
  
  

  

PROBLEM
When clicking the initial logon link to invoke logon.jsp, an exception
occurs:

javax.servlet.ServletException: Cannot find ActionMappings orActionFormBeans
collection
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:460)
at logon_1._jspService(logon_1.java:691)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
---
---
---

The exception does not occur if the stuff between  ---
 is commented out.




RE: Problem with ActionErrors and ApplicationResources.properties

2002-06-19 Thread Chakradhar Tallam

have u defined errors.header, errors.footer in your
ApplicationResources.properties

example
---
errors.header=
errors.footer=

you may have not defined these, that is the reason you are getting ??? in
place of header & footer.

CT.

-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 19 June 2002 4:44 PM
To: [EMAIL PROTECTED]
Subject: Problem with ActionErrors and ApplicationResources.properties


Did not come thru so repost darn mail provider of mine ! ;-)


> Hello,
> 
> I am doing the following :
> 
> msg = msgResources.getMessage(new Locale("en",
> "US"),"errors.missing.field");
> 
> if I println this I get the correct value. It means it looks into
> ApplicationResources_en_US.properties and retrieves
> errors.missing.field=Mandatory field :
> 
> After execution of :
> errors.add("company", new ActionError(msg));
> 
> and on the jsp :
> 
> 
> 
> I get printed n my jsp :
> 
> ???fr_FR.Mandatory field :???
> 
> So I don't understand why it uses my default locale and adds question
> marks
> 
> Any clue ? Thanks.
> 
> Barbara
> 
> 

 

__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: html:link question

2002-06-18 Thread Chakradhar Tallam



and in ApplicationResources.properties, u'll have some thing like
HelloWorld=Hello World

CT.

-Original Message-
From: Billy Ng [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 19 June 2002 10:38 AM
To: [EMAIL PROTECTED]
Subject: html:link question


A silly question.  I am trying to use the html:link in struts-html.tld.
Would anybody tell me which attribute name is to define the text in the
hypertext link (HelloWorld) like:

HelloWorld

Thanks!

Billy Ng


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Session Problem

2002-06-13 Thread Chakradhar Tallam

in server.xml

-Original Message-
From: Sudhir [mailto:[EMAIL PROTECTED]]
Sent: Friday, 14 June 2002 12:15 PM
To: Struts Users Mailing List
Subject: RE: Session Problem


where can i check the context path.

-Original Message-
From: Matt Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 9:59 AM
To: Struts Users Mailing List
Subject: RE: Session Problem


What are the paths for your application?  I believe the context path is not
the same.

> -Original Message-
> From: Sudhir [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 10:00 PM
> To: Struts Users Mailing List
> Subject: Session Problem
>
>
> Hi,
>
> I have got an application in which I have got many modules.  Only
> one module is with struts and the rest of the modules are using
> pure JSP.  I notice that the modules using with struts is
> creating new session and the modules with JSP are in another session.
>
> Can anybody tell me how can I make them run in same session.
>
> Thanks and Best Regards,
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: struts-user@jakarta.apache.org

2002-06-05 Thread Chakradhar Tallam

i agree too

http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#link

-Original Message-
From: Noah Levitt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 6 June 2002 2:15 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: [EMAIL PROTECTED]


As far as I can tell, all the attributes of html:link that
access beans are for manipulating the query parameters.
Please correct me if I'm wrong.


On Thu, Jun 06, 2002 at 12:11:12AM -0400, James Mitchell wrote:
> Sure, just add a field to your bean (the one you specified for this jsp in
> the struts-config.xml) called someURL with getSomeURL() and
> setSomeURL(String url), then
> change your html:link tag to:
> 
> click me
> 
> 
> anyway, this might not be exact, but you get this idea
> 
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://struts-atlanta.open-tools.org
> ICQ: 27651409
> AOLIM: jmitchtx (and NO I don't use AOL;)
> 
> 
> > -Original Message-
> > From: Noah Levitt [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 05, 2002 8:49 PM
> > To: [EMAIL PROTECTED]
> > Subject: [EMAIL PROTECTED]
> >
> >
> > Hello struts-user,
> >
> > I would like html:link to retrieve a url (forward, href, or
> > page, whatever) from a bean. That is, I want to do the
> > equivalent of
> >
> > ">
> > click me
> > 
> >
> > without the ugliness. Can it be done?
> >
> > Noah
> >
> >

--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: object of action servlet in action class

2002-05-29 Thread Chakradhar Tallam

by calling getServlet method

ActionServlet as = this.getServlet();

Refer to:
http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/action/Acti
on.html

CT.

-Original Message-
From: Radhika Nadkarni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 May 2002 2:43 PM
To: [EMAIL PROTECTED]
Subject: object of action servlet in action class


hi,
Can anyone tell me as to how to get an object of ActionServlet in the Action
class ???

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: No getter method?

2002-05-29 Thread Chakradhar Tallam

try setChecked and getChecked as ur setter & getter and use checked as the
property in bean:write.

what does getIsChecked return!

CT.

-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 May 2002 11:16 AM
To: Struts Users Mailing List
Subject: No getter method?


I'm using a bean:write, and Resin under SunOS says no getter method for
property (isChecked)...  I'm using several other bean:write's on the same
JSP page and I know the setter and getter methods are defined in the form
bean for this particular property (i.e. setIsChecked and getIsChecked).  The
problem does not occur on Windows with Resin.

Any ideas?

Thanks in advance,

--Michael Marrotte


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: more than one click in submit button

2002-05-19 Thread Chakradhar Tallam

this can easily be avoided with some javascript.



var submitcount=0;
function checkSubmitCount()
{
if (submitcount == 0)
{
submitcount++;
return true;
}
else
{
return false;
}
}





 .
 .
 .


cheers,
ct.

-Original Message-
From: Jefferson Rodrigues de Oliveira e Silva
[mailto:[EMAIL PROTECTED]]
Sent: Monday, 20 May 2002 12:14 PM
To: struts
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: more than one click in submit button


I'm developing an application, and I found an error, which
is: I have a JSP page with a form, and if the user clicks
in the submit button twice (one click immediatly after
the first one)  the Action is executed twice.

What's the best practice to treat this behavior ? I mean,
only one action should be executed. How do I handle
this ?

Thanks a lot

Jefferson


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Bean Definition

2002-05-13 Thread Chakradhar Tallam

the name of the form bean is projectForm with small "p" compared to the bean
class ProjectForm with big "P". make sure u use projectForm with small "p"
in ur form action definition.

ct.

-Original Message-
From: Sudhir [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 14 May 2002 4:17 PM
To: [EMAIL PROTECTED]
Subject: Bean Definition


Hi,

I have defined my bean definition as 



when i try to call the page, it is giving the following error.

javax.servlet.ServletException: Cannot retrieve definition for form bean
ProjectForm

Can anybody tell me how to define the bean

Thanks and Best Regards,

--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: variable number of text fields in a form

2002-05-05 Thread Chakradhar Tallam

thanks Arron,

here are my indexed getter/setter methods

public CallHistoryInfoItem getCallHistoryInfoItems(int index)
{
theLog.info("SetCallHistoryInfoForm.getCallHistoryInfoItems is
getting executed");
return (CallHistoryInfoItem)
((myCallHistoryInfoItems.toArray())[index]);
}

public void setCallHistoryInfoItems(int index, CallHistoryInfoItem chii)
{
theLog.info("SetCallHistoryInfoForm.setCallHistoryInfoItems is
getting executed");
(myCallHistoryInfoItems.toArray())[index] = chii;
}

getCallHistoryInfoItems is been called several times depending on the number
of text fields on my form when the form is posted but
setCallHistoryInfoItems never gets called.

chaks.

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Monday, 6 May 2002 2:57 PM
To: Struts Developers List; Struts Users Mailing List
Subject: Re: variable number of text fields in a form


And this is a user-list type question, so I've forwarded there.

Arron.

Arron Bates wrote:

> Depends on the type of indexed getter/setter you're using.
>
> public String getMyIndex(int i) {}
> public void setMyIndex(int i, String value) {}
>
> ...the setter will be called in this case, but in this instance...
>
> public Object[] getMyIndex() {}
> public void setMyIndex(Object[] obj) {}
>
> ...the setter will not be called, as the system will get the array, 
> and set the item directly into the array, rather that return the 
> resulting array back to the setter. This could very easily be the 
> case. It's really easy to code this way, but don't expect the setter 
> method itself to be called.
>
> Have you tried the nested tags?... makes light work of list type 
> operations among everything else.
> Anyways, I've ranted this before, and your answer "could" be above :)
>
>
> Arron.
>
>
>
> Chakradhar Tallam wrote:
>
>> hi guys,
>>
>> how do i handle the setting of variable number of text fields in a form!
>> i've tried with indexed properties but when i'm posting the form, the 
>> get
>> method is getting called rather than the set method for some reason. 
>> have u
>> had this kind of experience before, help is appreciated.
>>
>> thanks,
>> CT.
>>
>
>
>
> -- 
> To unsubscribe, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>



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



variable number of text fields in a form

2002-05-05 Thread Chakradhar Tallam

hi guys,

how do i handle the setting of variable number of text fields in a form!
i've tried with indexed properties but when i'm posting the form, the get
method is getting called rather than the set method for some reason. have u
had this kind of experience before, help is appreciated.

thanks,
CT.