problem displaying images

2007-10-12 Thread Niniva Ray
Hello!
   
  I have 3 images to display and to do that in my jsp page I have the following 
code
  
  
  
  
  
  
  
  
  
  
  
  
  
   
  I am using struts 1.2.9. I have GetBarChartAction class and GetPieChartAction 
class implemented and properly configured. In the execute methods, I am using 
JfreeChart to create the images dynamically. I have notice sometimes, not 
always, the Action class's execute method doesn't get invoked and as a result 
the image doesn't get displayed. Any idea why the Action classes don't get 
executed sometimes? If I delete the browser cash, it started to work again. How 
do I solve this problem?
   
  Thanks,
  NR

   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.

Re: [newbie] "no getter method .."

2007-05-25 Thread Niniva Ray
No you need a getName() getter method in your ResultBean javabean class.
   
  Regards,
  Niniva

probertm <[EMAIL PROTECTED]> wrote:
  

Hi, all.

Another newbie question on Struts. I am having an issue
in getting my .jsp names to match with those in the ActionForm
class and was after some help.

The error coming back from Tomcat is

Exception in JSP: /search.jsp:56

53: 
54: 
55: 
56: 
57: 
58: 
59: 

root cause : No getter method for property name of bean result

So, this seems to tell me that I am short a method getName() in 
the java class searchForm. Is that right?

In my SearchForm.java file, I have:

public class SearchForm extends ActionForm {
private String name = "";
private String empID = "";
private List results = null;

/**
* Define all the set / get functions
*/
public void setName( String name ) {
this.name = name;
}
public String getName() {
return name;
}

public void setEmpID( String empID ) {
this.empID = empID;
}
public String getEmpID() {
return empID;
}

etc.

So, clearly I am not understanding something here. 
Any help appreciated

Thanks,
-mark.

-- 
View this message in context: 
http://www.nabble.com/-newbie--%22no-getter-method-..%22-tf3817805.html#a10808597
Sent from the Struts - User mailing list archive at Nabble.com.


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



   Shape Yahoo! in your own image.  Join our Network Research Panel 
today!http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
 hot CTA = Join our Network Research Panel

Re: How to pass data from one Action class to another Action class?

2006-10-11 Thread Niniva Ray
No, my form bean has request scope.
  yes, both the form beans name are same.
  NRay

[EMAIL PROTECTED] wrote:
  Is your Form Bean Sessioin Scoped?

Are you using the same form bean name for both the actions?

If you have done these 2, you shouldnt have any problems passing form bean 
between 2 actions :D

Thanks and regards,
Pazhanikanthan. P (Paz)

Consultant for AXA,
Senior Software Engineer,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +61-0411-354-838




Niniva Ray 
12/10/2006 08:26 AM
Please respond to "Struts Users Mailing List"

To: user@struts.apache.org
cc: 
Subject: How to pass data from one Action class to another 
Action class?





Hello,

If my Action class's success path is another Action class, not a jsp, 
how do I pass data from one Action class to the other Action class?
Both of my action classes are associated with the same form bean. I was 
setting the method A of the common form bean in one Action class and doing 
getA in the 2nd Action class, but instead of getting the value I set, I am 
getting back 0.

Thanks in advance.
Regards,
NRay


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great 
rates starting at 1¢/min.

_ 
This e-mail has been scanned for viruses by MCI's Internet Managed 
Scanning Services - powered by MessageLabs. For further information 
visit http://www.mci.com

*
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege. If you are not 
the intended recipient you must not use, distribute or copy this 
email. If you have received this email in error please notify the 
sender immediately and delete this email. Any views expressed in this 
email are not necessarily the views of AXA. Thank you.
**



-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

How to pass data from one Action class to another Action class?

2006-10-11 Thread Niniva Ray
Hello,
   
  If my Action class's success path is another Action class, not a jsp, how do 
I pass data from one Action class to the other Action class?
  Both of my action classes are associated with the same form bean. I was 
setting the method A of the common form bean in one Action class and doing getA 
in the 2nd Action class, but instead of getting the value I set, I am getting 
back 0.
   
  Thanks in advance.
  Regards,
  NRay


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

Re: Need help in how to display error messages

2006-08-04 Thread Niniva Ray
Hi Niall,
   
  Thank you for the suggestion and explanation.
  It worked.
   
  Thanks,
  Niniva

Niall Pemberton <[EMAIL PROTECTED]> wrote:
  The reason this is happening is because (normally) your ActionMessage
contains the key - and then the tag looks up the
actual message (i.e. "resolves the message") - but you're actually
resolving the message yourself in the Action.

Try just creating the ActionMessage with the key:

ActionMessage error =
new ActionMessage("error.message.filemanagement.errorsavingconfiguration");

Niall

On 8/5/06, Niniva Ray wrote:
> Hi,
>
> I am working on a web application where I am using struts 1.2.9.
> The problem I am encountering is whenever I want to show any messages on the 
> browser, suppose if I want to show the message "Error saving configuration",
> it is displaying ???en_US.Error saving configuration???
>
> The details of what I have are
> In my struts-config file I have
> 
>
> I have FileManagementResources.properties file in the 
> com.mng.filemanagement.resources package.
>
> In this properties file I have the entry,
> error.message.filemanagement.errorsavingconfiguration=Error saving 
> configuration
>
> In my Action class I have,
> MessageResources messageResources = getResources(request); // request is 
> HttpServletRequest
> ActionMessage error = new 
> ActionMessage(messageResources.getMessage("error.message.filemanagement.errorsavingconfiguration"));
> ActionMessages errors = new ActionMessages();
> errors.add(FileManagementConstants.ERROR_KEY, error); // 
> FileManagementConstants.ERROR_KEY is a string with value error
> addErrors(request, errors);
>
> In my jsp page I have
> 
> 
> 

> 
> 
>
> This displays ???en_US.Error saving configuration???
> when error happens, instead of Error saving configuration.
>
> I am supporting only one language English.
> I think I am missing something, could anyone give me some pointers what I am 
> doing wrong?
>
> Thanks,
> NR
>
>
> -
> See the all-new, redesigned Yahoo.com. Check it out.
>

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




-
Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 

Need help in how to display error messages

2006-08-04 Thread Niniva Ray
   Hi,
   
  I am working on a web application where I am using struts 1.2.9.
  The problem I am encountering is whenever I want to show any messages on the 
browser, suppose if I want to show the message "Error saving configuration",
  it is displaying ???en_US.Error saving configuration???
   
  The details of what I have are
  In my struts-config file I have 
  
   
  I have FileManagementResources.properties file in the 
com.mng.filemanagement.resources package.
   
  In this properties file I have the entry,
  error.message.filemanagement.errorsavingconfiguration=Error saving 
configuration
   
  In my Action class I have,
  MessageResources messageResources = getResources(request); // request is 
HttpServletRequest
  ActionMessage error = new 
ActionMessage(messageResources.getMessage("error.message.filemanagement.errorsavingconfiguration"));
  ActionMessages errors = new ActionMessages();
  errors.add(FileManagementConstants.ERROR_KEY, error); // 
FileManagementConstants.ERROR_KEY is a string with value error
  addErrors(request, errors);
   
  In my jsp page I have
  
  
  
  
  
   
  This displays ???en_US.Error saving configuration???
  when error happens, instead of Error saving configuration.
   
  I am supporting only one language English.
  I think I am missing something, could anyone give me some pointers what I am 
doing wrong?
   
  Thanks,
  NR


-
See the all-new, redesigned Yahoo.com.  Check it out.