RE: Problem in struts 1.1 and weblogic 8.1

2004-02-13 Thread srinivasan krishnamurthy
I rarely see it in IE.I do get it in IE.
But is is more prominent in netscape
--- "Gopalakrishnan, Jayesh"
<[EMAIL PROTECTED]> wrote:
> Do u see the same behaviour using IE5+ or other
> browsers ?
> 
> Could possibly be an NS issue..
> 
> 
> 
> 
> -Original Message-
> From: srinivasan krishnamurthy
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 13, 2004 12:00 PM
> To: [EMAIL PROTECTED]
> Subject: Problem in struts 1.1 and weblogic 8.1
> 
> 
> Hi,
> 
> I am running a webapplication with the following
> configuration
> 
> OS - Winxp
> Web server -  Apache 2.00
> App server - Weblogic 8.1
> 
> When i hit the application from ns7.1 i sometimes
> get
> the same screen twice on the browser. also some
> headers get printed on the screen
> 
> Has anyone faced this problem before.
> I wonder if it is an issue with struts
> Please help
> 
> Regards
> Srini
> 
> 
> 
> __
> 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]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
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: Problem in struts 1.1 and weblogic 8.1

2004-02-13 Thread Gopalakrishnan, Jayesh
Do u see the same behaviour using IE5+ or other browsers ?

Could possibly be an NS issue..




-Original Message-
From: srinivasan krishnamurthy [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 12:00 PM
To: [EMAIL PROTECTED]
Subject: Problem in struts 1.1 and weblogic 8.1


Hi,

I am running a webapplication with the following
configuration

OS - Winxp
Web server -  Apache 2.00
App server - Weblogic 8.1

When i hit the application from ns7.1 i sometimes get
the same screen twice on the browser. also some
headers get printed on the screen

Has anyone faced this problem before.
I wonder if it is an issue with struts
Please help

Regards
Srini



__
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]

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



Problem in struts 1.1 and weblogic 8.1

2004-02-13 Thread srinivasan krishnamurthy
Hi,

I am running a webapplication with the following
configuration

OS - Winxp
Web server -  Apache 2.00
App server - Weblogic 8.1

When i hit the application from ns7.1 i sometimes get
the same screen twice on the browser. also some
headers get printed on the screen

Has anyone faced this problem before.
I wonder if it is an issue with struts
Please help

Regards
Srini



__
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: Problem in Struts with Tomcat

2003-08-14 Thread Richard J. Duncan
It sounds like there may be something wrong with your struts-config.xml. You might try 
deploying the struts-example.war that comes with the distro to make sure that you're 
not having any other problems.

Regards,
 
Rich


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 9:24 AM
To: [EMAIL PROTECTED]
Subject: Problem in Struts with Tomcat

Hi,
I am trying to run a one page of struts with Tomcat 4.2.27
I have my "sturtstest" application in webapps folder of Tomcat and
struts.jar is in WEB-INF/lib of strutstest.
During startup of Tomcat, it comes with a SAXParseException and when i run
the jsp page it says the "requested resource "test.do" is not available.

Please help 


thanks
-raj




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



Problem in Struts with Tomcat

2003-08-14 Thread rajendra . x . yadav
Hi,
I am trying to run a one page of struts with Tomcat 4.2.27
I have my "sturtstest" application in webapps folder of Tomcat and
struts.jar is in WEB-INF/lib of strutstest.
During startup of Tomcat, it comes with a SAXParseException and when i run
the jsp page it says the "requested resource "test.do" is not available.

Please help 


thanks
-raj




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



Re: problem in struts

2003-03-12 Thread EC Yeo
Changed this code :
session.setAttribute(mapping.getAttribute(), form);

to :
session.setAttribute(mapping.getName(), form);

since you are using the "name" attribute not the
"attribute" attribute

__
Do You Yahoo!?
Promote your business from just $5 a month!
http://sg.biztools.yahoo.com

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



Re: problem in struts

2003-03-12 Thread Richard Raquepo
it is... i put a code on my service class that populates the bean and it did
have a data.

one thing i've noticed is my mapping.getAttribute() is null.

part of my struts-config.xml is:
   
name="userAccountForm"
scope="session"
validate="false">


   
   



   
--->
so normally putting the bean in the session
session.setAttribute(mapping.getAttribute(), form);
will not work but when i manually put
session.setAttribute("userAccountForm", form);
the fields are displayed/populated in my jsp form.

i don't want to put manually the name of the form. that should be automatic
form the struts-config.xml. any reason why?

thanks
- Original Message -
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 4:43 PM
Subject: Re: problem in struts


> Looks like your form bean is not initialized ..
>
> Richard Raquepo wrote:
>
> >no error just empty fields...
> >
> >- Original Message -
> >From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Wednesday, March 12, 2003 4:30 PM
> >Subject: Re: problem in struts
> >
> >
> >
> >
> >>Do you get a specific error on the page when you try to display the
> >>contents of the form bean ? Or just no error, empty fields ?
> >>
> >>
> >>-
> >>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: problem in struts

2003-03-12 Thread Richard Raquepo
no errors. jusr empty fields.

- Original Message - 
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 4:30 PM
Subject: Re: problem in struts


> Do you get a specific error on the page when you try to display the 
> contents of the form bean ? Or just no error, empty fields ?
> 
> 
> -
> 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: problem in struts

2003-03-12 Thread Kwok Peng Tuck
Looks like your form bean is not initialized ..

Richard Raquepo wrote:

no error just empty fields...

- Original Message - 
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 4:30 PM
Subject: Re: problem in struts

 

Do you get a specific error on the page when you try to display the 
contents of the form bean ? Or just no error, empty fields ?

-
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: problem in struts

2003-03-12 Thread Richard Raquepo
no error just empty fields...

- Original Message - 
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 4:30 PM
Subject: Re: problem in struts


> Do you get a specific error on the page when you try to display the 
> contents of the form bean ? Or just no error, empty fields ?
> 
> 
> -
> 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: problem in struts

2003-03-12 Thread Kwok Peng Tuck
Do you get a specific error on the page when you try to display the 
contents of the form bean ? Or just no error, empty fields ?

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


problem in struts

2003-03-12 Thread Richard Raquepo
i am trying to re-use my formbean which i used in my adding of a record and trying to 
use in editing my record.

i can't seem to show the data to the screen for editing.

what's wrong with my code? i am attaching my code in this
email. please help me.

many thanks in advance...

-Richard

package com.fltic.crm.form;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.MessageResources;

import java.util.Calendar;
import java.util.TimeZone;
import java.util.ArrayList;

import com.fltic.crm.UserActionMapping;

public class UserAccountForm extends ActionForm{
 protected int userid;
 protected String lastname;
 protected String name;
 protected String mi;
 protected String username;
 protected String password;
 protected String confirmpassword;
 protected String address;
 protected String provincecode;
 protected String citycode;
 protected String datecreated;
 protected String dateexpired;
 protected String dateexpiredmonth;
 protected String dateexpiredday;
 protected String dateexpiredyear;
 protected int createdby;

 //--
 public void setUserid(int userid){
  this.userid = userid;
 }

 public int getUserid(){
  return userid;
 }

 //--
 public void setLastname(String lastname){
  this.lastname = lastname;
 }

 public String getLastname(){
  return lastname;
 }

 //--
 public void setName(String name){
  this.name = name;
 }

 public String getName(){
  return name;
 }

 //--
 public void setMi(String mi){
  this.mi = mi;
 }

 public String getMi(){
  return mi;
 }

 //--
 public void setUsername(String username){
  this.username = username;
 }

 public String getUsername(){
  return username;
 }

 //--
 public void setPassword(String password){
  this.password = password;
 }

 public String getPassword(){
  return password;
 }

 //--
 public void setConfirmpassword(String confirmpassword){
  this.confirmpassword = confirmpassword;
 }

 public String getConfirmpassword(){
  return confirmpassword;
 }

 //--
 public void setAddress(String address){
  this.address = address;
 }

 public String getAddress(){
  return address;
 }

 //--
 public void setProvincecode(String provincecode){
  this.provincecode = provincecode;
 }

 public String getProvincecode(){
  return provincecode;
 }

 //--
 public void setCitycode(String citycode){
  this.citycode = citycode;
 }

 public String getCitycode(){
  return citycode;
 }

 //--
 public void setCreatedby(int createdby){
  this.createdby = createdby;
 }

 public int getCreatedby(){
  return createdby;
 }

 //--
 public void setDateexpired(String dateexpired){
  this.dateexpired = dateexpired;
 }

 //--
 public void setDateexpiredmonth(String dateexpired){
  this.dateexpiredmonth = dateexpired;
 }

 public String getDateexpiredmonth(){
  return dateexpiredmonth;
 }
 //--
 public void setDateexpiredday(String dateexpired){
  this.dateexpiredday = dateexpired;
 }

 public String getDateexpiredday(){
  return dateexpiredday;
 }

 //--
 public void setDateexpiredyear(String dateexpired){
  this.dateexpiredyear = dateexpired;
 }

 public String getDateexpiredyear(){
  return dateexpiredyear;
 }

 //--
 public String getDateexpired(){
  return dateexpiredyear+dateexpiredmonth+"-"+dateexpiredday;
 }

 public String getDatecreated(){
  return datecreated;
 }

  // This method is called with every request. It resets the Form
  // attribute prior to setting the values in the new request.
  public void reset(ActionMapping mapping, HttpServletRequest request) {
 System.err.println("---> entered UserAccountForm reset");
this.username = "";
this.password = "";
this.confirmpassword = "";
this.name = "";
this.lastname = "";
this.mi = "";
this.address = "";
HttpSession session = request.getSession();
if( session.getAttribute("USERID") != null){
 this.createdby = Integer.parseInt((String)session.getAttribute("USERID"));
 }
Calendar cal = Calendar.getInstance(TimeZone.getDefault());
  String DATE_FORMAT = "-MM-dd hh:mm:ss";
java.text.SimpleDateFormat sdf =
  new java.text.SimpleDateFormat(DATE_FORMAT);
sdf.setTimeZone(TimeZone.getDefault());
this.datecreated = sdf.format(cal.getTime());
 }

  public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {

System.err.println("---> entered UserAccountForm validate");

ActionErrors errors = new ActionErrors();

UserActionMapping userMapping =
  (UserActionMapping)mapping;

// Does this action require the user to login
if ( userMapping.isLoginRequired() ) {

  HttpSession session = request.getSession();
  if ( session.getAttribute("USER") == null ) {
// return null

problem in struts

2003-03-12 Thread Richard Raquepo



i am trying to re-use my formbean which i used in 
my adding of a record and trying to use in editing my record.
 
i can't seem to show the data to the screen for editing.
 
what's wrong with my code? i am attaching my code 
in this
email. please help me.
 
many thanks in advance...
 
-Richard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

HttpSession problem in struts

2002-06-05 Thread Yaman Kumar

Hi,
I am implementing struts to my new web application, and have
problem with new window that is opened by parent window using javascript is
treated in new session.

After logging in to application successfully so much info is loaded into
session object and user gets a second page and this page opens
a new window(child) where a new page will be loaded and
trying to read some info from session but the session becoming new so i'm
not able to get my info that is loaded in session.

Can any one give suggestion and why it is treating it in new session
rather in parent window session.

Thanks,
Yaman



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




Re: Templates and i18n problem in struts

2002-05-17 Thread Cedric Dumoulin


  You can't nest a tag inside another tag in jsp.
  Try :

   
 

   Cedric

Yaman Kumar wrote:

> Hi,
> I am using templates in struts, In my jsp page I used the below
> statement.
> ..
>  direct='true'/>
> ..
>
> the  statments prints MYPRINTPAGE .
> but the output is not rendered in title location in runtime,
> but it is printing  message without
> parsing the tag..
>
> In short how can i use  tag in templates.
>
> Could any one extend your hand...
>
> Many Thanks,
> rayaku
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




RE: Templates and i18n problem in struts

2002-05-16 Thread Jerome Jacobsen

You can't use a JSP tag as the value of another JSP tag's attribute.  You'd
have to use a JSP expression instead.  I'm not sure if a utility exists to
get the message in the same way as the bean:message tag does.  Let's assume
there is one called msgUtil.getMessage.  Then you would do this:



-Original Message-
From: Yaman Kumar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 10:06 AM
To: Struts Users Mailing List
Subject: Templates and i18n problem in struts


Hi,
I am using templates in struts, In my jsp page I used the below
statement.
..

..

the  statment prints MYPRINTPAGE .
but the output is not rendered in title location in runtime,
but it is printing "" message without
parsing the tag..

In short how can I use  tag in templates.

Just  review the code to find out problem below.

in MyTemplate.jsp

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


 //this is not parsed.



//This is parsed



in MyClient.jsp

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


  
//this bean tag is not parsed and not input the value to MyTemplate.jsp



Many Thanx,
rayaku


--
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]>




Templates and i18n problem in struts

2002-05-16 Thread Yaman Kumar

Hi,
I am using templates in struts, In my jsp page I used the below
statement.
..

..

the  statment prints MYPRINTPAGE .
but the output is not rendered in title location in runtime,
but it is printing "" message without
parsing the tag..

In short how can I use  tag in templates.

Just  review the code to find out problem below.

in MyTemplate.jsp

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


 //this is not parsed.



//This is parsed



in MyClient.jsp

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


  
//this bean tag is not parsed and not input the value to MyTemplate.jsp



Many Thanx,
rayaku


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




RE: Templates and i18n problem in struts

2002-05-16 Thread Vikram Goyal01

In your template did you import the tag libraries?

V

-Original Message-
From: Yaman Kumar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 5:43 PM
To: Struts Users Mailing List
Subject: Templates and i18n problem in struts


Hi,
I am using templates in struts, In my jsp page I used the below
statement.
..

..

the  statments prints MYPRINTPAGE .
but the output is not rendered in title location in runtime,
but it is printing  message without
parsing the tag..

In short how can i use  tag in templates.

Could any one extend your hand...

Many Thanks,
rayaku



--
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]>




Templates and i18n problem in struts

2002-05-16 Thread Yaman Kumar

Hi,
I am using templates in struts, In my jsp page I used the below
statement.
..

..

the  statments prints MYPRINTPAGE .
but the output is not rendered in title location in runtime,
but it is printing  message without
parsing the tag..

In short how can i use  tag in templates.

Could any one extend your hand...

Many Thanks,
rayaku



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




RE: CheckBox problem in struts..

2002-04-06 Thread Alex Paransky

The reset(...) method in your form needs to reset the checkbox to "false",
every time.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127

-Original Message-
From: Sachin [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 7:35 AM
To: [EMAIL PROTECTED]
Subject: CheckBox problem in struts..


Hi
Could anyone explain about the checkbox problem in struts
if i have a checkbox in a jsp and if i set the value of the bean to yes,
true or on, the checkbox will be checked. But if i try to set the value of
the checkbox in the bean it is not getting set. if i submit data from
checkbox it is not getting reflected when i revisit the page.

Thanks & Regards
Sachin


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



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




RE: CheckBox problem in struts..

2002-04-06 Thread srinivas

reset the check box values in the struts form reset method.


-Original Message-
From: Sachin [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 6:35 PM
To: [EMAIL PROTECTED]
Subject: CheckBox problem in struts..


Hi
Could anyone explain about the checkbox problem in struts
if i have a checkbox in a jsp and if i set the value of the bean to yes,
true or on, the checkbox will be checked. But if i try to set the value of
the checkbox in the bean it is not getting set. if i submit data from
checkbox it is not getting reflected when i revisit the page.

Thanks & Regards
Sachin


--
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]>




CheckBox problem in struts..

2002-04-06 Thread Sachin

Hi
Could anyone explain about the checkbox problem in struts
if i have a checkbox in a jsp and if i set the value of the bean to yes,
true or on, the checkbox will be checked. But if i try to set the value of
the checkbox in the bean it is not getting set. if i submit data from
checkbox it is not getting reflected when i revisit the page.

Thanks & Regards
Sachin


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




Re: pre-populate and request scope problem in struts.

2001-08-21 Thread Peter Alfors


I assume that your select tag is expecting to get data from your form object that you 
had
previously placed into the request?
When you return to the 'toJsp' page, you will need to place the form object back into 
the
request, or place the form object in the session in the first place.
When you say that your edit command returns to the previous page, is it going through 
an
action?  If so, you would want to place the form back into the request there
(if you do not want to use the session).

Pete

However, I would suggest that

BinhMinh Nguyen wrote:

> Hi,
> I have the following problem, can anyone help me to
> spot it.
>
> I am using the following technique for pre-populate:
>
> 1- in the Action object   of 'fromJSP' , I create an
> objetc of the Form objetc of the 'toJSP'
> 2-I then set all the properties  of the Form objetc of
> the 'toJSP' here by calling the setters of this Form
> object. As followed:
>
> Partner partner = new Partner(tradingID,
> fnDataSource);
> //get the product-list from a given partner
> String[] products = partner.getProducts();
>
> //pre=populating
> System.out.println("-
> Data-Pre-Populating for form processForm");
> ProcessForm processForm = new ProcessForm();
>
> processForm.setProducts(products);
> System.out.println("- set
> product-collection");
>
> processForm.setTradingID(tradingID);
> System.out.println("- set
> partner-ID");
>
> 
>request.setAttribute("processForm",processForm);
>
> //the_session.setAttribute("processForm",processForm);
> System.out.println("- 
>save
> processForm bean");
>
> 3- set the Form object to the request scope.
> request.setAttribute("processForm",processForm);
>
>
> 4- then I give out the 'toJSP'
>
> so far, every works perfectly. All the properies are
> preloaded as expected.
>
> 
> 
>Trading ID  property="tradingID" scope="request"
> />(<%=user_name%>)
> 
>
> 
> 
>  
> 
>
> 
>Product-Line:  
> 
>
> 
>
> 
>
>
> 
> 
>
> 5- then in the 'toJSP' I issue a command submit to g
> oto the 'lastJSP'. The action forward the request is
> defined in strut-config.xml as below:
>
> 
>  
> type="com.furnishnet.struts.OrderAction"
>  name="orderForm"
>  input="/main/order/order_screen.jsp"
>  scope="request"
>  validate="false">
>
>  path="/main/order/order_screen.jsp"/>
>  path="/main/operation/process_screen.jsp" />
>
>
>  
>
> In this 'lastJSP'   I have the button "Edit" which
> bring the user back to the previous JSP, 'toJSP'.
> But the serlvet raised an exception. There is
> something wrong with the  tag and 
> tag,
> if I remove these tag from the JSP, before I
> "come-back"  to this 'toJSP', nothing worng happens,
> therefor, there must be something wrong with this
> property and the Form that I save off the attribute
>
> Can some one spot it out for me please.
>
> really appreciate you help
>
> Binh Nguyen
>
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/




Starter problem in Struts Development

2001-08-19 Thread Bhamidi Krishna

Hi,

I am new to Struts development. When I try to run an application I have 
written, I get an exception :

javax.servlet.ServletException: Cannot find ActionMappings or 
ActionFormBeans collection

I have struts.jar copied under the WEB-INF/lib and the struts taglibs in the 
root of my application. Can someone help me out why I get the error?

Krishna.





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




File upload problem in Struts 1.0

2001-07-23 Thread Imran Zafer

We have recently switched to Struts 1.0 from a previous beta version.
After migrating we are having problems in uploading certain files. The
files do get uploaded to the server but the contents get corrupted some
times. We further investigate this problem and found out that files get
damaged when they contains non-English content. E.g. if we upload a
Microsoft Excel file that contains non-English characters it got
corrupted, and we are unable to process that file with MS Excel
afterwards. The problems disappears if we switch back to old struts.jar
file.
 
Any ideas how to fix this problem. Is it safe to replace the struts.jar
file with old one as in interim solution?.



RE: Problem in struts-example accessing ApplicationResources

2001-06-03 Thread Nigel Ainslie

Mark,
I had this problem about 4 months ago when first started, although I can't
seem to replicate it now. I recall that I gave up and just read the code and
the documentationwe now have an implemented Struts framework which
works really well so its worth persevering. In our implementation we
followed the doco and put (our own) applicationresources file in the
WEB-INF/classes directory, however in the Struts-example it is in the
org.apache.struts.example.ApplicationResources directory: this path is
(always) defined in the web.xml file in the WEB-INF directory.
If you drop the .war file into Tomcat/webapps directory and then run Tomcat
it should deploy the files for you (you shouldn't need to amend or add any
classpath details or change anything at all). 
I guess you first need to check that Tomacat has deployed the
applicationresources file in the
org.apache.struts.example.ApplicationResources directory as defined in the
web.xml file and then just check to see that it does have an index.title
entry in the file (!).
cheers Nige

-Original Message-
From: MarNette Enterprises, Inc. [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 3 June 2001 1:12
To: [EMAIL PROTECTED]
Subject: Problem in struts-example accessing ApplicationResources


I am evaluating Struts as a development environment and I am having trouble
getting the struts example to run.  As I have found some other users are
experiencing similar problems when running the example application the
following message appears:
 
"javax.servlet.ServletException: Exception thrown processing JSP page.
 javax.servlet.JspException: Missing message for key index.title ".
 
I am running Apache stand alone on Windows 2000 Professional using JDK 1.3.
I have seen other developers suggest changing the class path to include
"struts-example\WEB-INF\classes".  I tried this and it did not solve the
problem.  As you can tell I am getting a little frustrated with it and it
would be great if you could help me clear this up.
 
Mark Robinson
MarNette Enterprises, Inc.
770-438-9100




Re: Problem in struts-example accessing ApplicationResources

2001-06-02 Thread Dan Miser



The only place that struts.jar should exist is in 
WEB-INF\lib. Don't put it in the CLASSPATH. Don't put it in TOMCAT\LIB. 
Don't modify BAT files to include it. Just deploy struts-example.war to 
TOMCAT\WEBAPPS and everything will be fine.
--
Dan Miser
http://www.distribucon.com

  - Original Message - 
  From: 
  MarNette Enterprises, Inc. 
  To: [EMAIL PROTECTED] 
  
  Sent: Saturday, June 02, 2001 10:12 
  PM
  Subject: Problem in struts-example 
  accessing ApplicationResources
  
  I am evaluating Struts as a development 
  environment and I am having trouble getting the struts example to run.  
  As I have found some other users are experiencing similar problems when 
  running the example application the following message appears:
   
  "javax.servlet.ServletException: Exception thrown 
  processing JSP page.
   javax.servlet.JspException: Missing message 
  for key index.title ".
   


Problem in struts-example accessing ApplicationResources

2001-06-02 Thread MarNette Enterprises, Inc.



I am evaluating Struts as a development environment 
and I am having trouble getting the struts example to run.  As I have found 
some other users are experiencing similar problems when running the example 
application the following message appears:
 
"javax.servlet.ServletException: Exception thrown 
processing JSP page.
 javax.servlet.JspException: Missing message 
for key index.title ".
 
I am running Apache stand alone on Windows 
2000 Professional using JDK 1.3.  I have seen other developers suggest 
changing the class path to include "struts-example\WEB-INF\classes".  
I tried this and it did not solve the problem.  As you can tell I am 
getting a little frustrated with it and it would be great if you could help me 
clear this up.
 
Mark Robinson
MarNette Enterprises, 
Inc.770-438-9100


RE: Problem in struts-example accessing ApplicationResources

2001-05-03 Thread Anthony Martin



I had 
this problem last night on Windows ME, JDK 1.3.1.  The exact same project 
files worked fine on Win2k and FreeBSD without having to mess with the classpath 
like that.
 
I have 
found that Windows ME has issues with it's environment space.  Some issues 
clear up when you execute "COMMAND /e 2048" from start, run.
 
 
Anthony

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 03, 2001 4:11 
  PMTo: [EMAIL PROTECTED]Subject: Problem in 
  struts-example accessing ApplicationResourcesI have just started to evaluate Struts as a 
  possible platform for development. When I tried to run the 
  struts-example I got the following error (reading the mail indicates other 
  newbies are having similar problems): Error: 500 Location: 
  /struts-example/index.jsp Internal Servlet Error: 
  javax.servlet.ServletException: Missing message for key index.title 
    This seemed like an 
  environment problem and I was able to get around this by adding: 
  $TOMCAT_HOME\webapps\struts-example\WEB-INF\classes to my 
  classpath.  Does anyone have an explanation for why this was necessary? 
  I am running Tomcat 3.2.1 standalone on Windows ME and use 
  jdk1.2.2-006. Thanks, Damon 



Problem in struts-example accessing ApplicationResources

2001-05-03 Thread Damonwfinney
I have just started to evaluate Struts as a possible platform for development.

When I tried to run the struts-example I got the following error (reading the 
mail indicates other newbies are having similar problems):

Error: 500
Location: /struts-example/index.jsp
Internal Servlet Error:

javax.servlet.ServletException: Missing message for key index.title
  

This seemed like an environment problem and I was able to get around this by 
adding:

$TOMCAT_HOME\webapps\struts-example\WEB-INF\classes

to my classpath.  Does anyone have an explanation for why this was necessary?

I am running Tomcat 3.2.1 standalone on Windows ME and use jdk1.2.2-006.

Thanks,
Damon


Re: Problem in Struts example (struts-example.war)

2001-03-06 Thread Craig R. McClanahan

Michael McCallister wrote:

> Is this really true?  I have an Action that doesn't define an input
> attribute, but does specify a request scope ActionForm.  According to the
> log messages, Struts creates an instance of the form and stores it under
> the appropriate key before calling my Action.perform() method.  In
> addition, the code I have to handle the form == null case never seems to
> get called.
>

Sorry ... I was almost right.

Struts automatically creates an action form bean for you if your mapping
specifies the *name* attribute, which names the  entry that is
relevant for this action. If this is omitted, no form bean will be created and
the form bean argument will be null.

Craig


>
> At 11:40 PM 3/4/2001, Craig McClanahan wrote:
> >The "form" object passed to an Action will indeed be null if the
> >struts-config.xml file does not define an "input" attribute for this
> >particular
> >action.
> >
> >Although that is not the case currently for the Struts example app,
> >consider me
> >an old paranoid programmer about double checking the "it can never happen"
> >cases
> >... :-)
>
> Mike




Re: Problem in Struts example (struts-example.war)

2001-03-06 Thread Michael McCallister

Is this really true?  I have an Action that doesn't define an input 
attribute, but does specify a request scope ActionForm.  According to the 
log messages, Struts creates an instance of the form and stores it under 
the appropriate key before calling my Action.perform() method.  In 
addition, the code I have to handle the form == null case never seems to 
get called.


At 11:40 PM 3/4/2001, Craig McClanahan wrote:
>The "form" object passed to an Action will indeed be null if the
>struts-config.xml file does not define an "input" attribute for this 
>particular
>action.
>
>Although that is not the case currently for the Struts example app, 
>consider me
>an old paranoid programmer about double checking the "it can never happen" 
>cases
>... :-)


Mike




Re: Problem in Struts example (struts-example.war)

2001-03-04 Thread Craig R. McClanahan

Martin Cooper wrote:

> Craig,
>
> If one Action chains to another using a ForwardingActionForward with no
> query string in the URL, will the form bean for the second Action still be
> created by Struts?
>

If you forward to a controller servlet URL (i.e. something like
"/saveCustomer.do?name1=value1&name2=value2" when using extension mapping), and
if the destination action has an "input" attribute defined, the form bean will
indeed be created by Struts (if it doesn't exist yet), and the form bean
properties will be populated.

However, you should be aware that the set of request parameters seen by the
"second" request will be the *union* of request parameters from the query string
(name1 and name2 in my example above) and the request parameters from the
original request.  If you have the same parameter name defined in both the query
string and the original request, both values will be passed (the one from the
query string first), so your corresponding bean property will need to accept an
array to avoid conversion problems.

>
> --
> Martin Cooper
>

Craig


>
> - Original Message -
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, March 04, 2001 9:40 PM
> Subject: Re: Problem in Struts example (struts-example.war)
>
> > Thai Thanh Ha wrote:
> >
> > >  Hi all,
> > >
> > >  I have found this  code in the Struts example (file:
> > > EditRegistrationAction.java, line: 144)
> > >
> > >  if (form == null) {
> > >...
> > >  }
> > >
> > >  When EditRegistrationAction.perform() is called, form will be a
> reference
> > > to a RegistrationForm (*never* be null, because the ActionForm object
> has
> > > been created before by the ActionServlet object). Is it correct? Why has
> the
> > > author written this code? Can anyone help me?
> > >
> >
> > The "form" object passed to an Action will indeed be null if the
> > struts-config.xml file does not define an "input" attribute for this
> particular
> > action.
> >
> > Although that is not the case currently for the Struts example app,
> consider me
> > an old paranoid programmer about double checking the "it can never happen"
> cases
> > ... :-)
> >
> > >
> > >  Regards,
> > >  Thai
> >
> > Craig McClanahan
> >
> >




Re: Problem in Struts example (struts-example.war)

2001-03-04 Thread Martin Cooper

Craig,

If one Action chains to another using a ForwardingActionForward with no
query string in the URL, will the form bean for the second Action still be
created by Struts?

--
Martin Cooper

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 04, 2001 9:40 PM
Subject: Re: Problem in Struts example (struts-example.war)


> Thai Thanh Ha wrote:
>
> >  Hi all,
> >
> >  I have found this  code in the Struts example (file:
> > EditRegistrationAction.java, line: 144)
> >
> >  if (form == null) {
> >...
> >  }
> >
> >  When EditRegistrationAction.perform() is called, form will be a
reference
> > to a RegistrationForm (*never* be null, because the ActionForm object
has
> > been created before by the ActionServlet object). Is it correct? Why has
the
> > author written this code? Can anyone help me?
> >
>
> The "form" object passed to an Action will indeed be null if the
> struts-config.xml file does not define an "input" attribute for this
particular
> action.
>
> Although that is not the case currently for the Struts example app,
consider me
> an old paranoid programmer about double checking the "it can never happen"
cases
> ... :-)
>
> >
> >  Regards,
> >  Thai
>
> Craig McClanahan
>
>





Re: Problem in Struts example (struts-example.war)

2001-03-04 Thread Craig R. McClanahan

Thai Thanh Ha wrote:

>  Hi all,
>
>  I have found this  code in the Struts example (file:
> EditRegistrationAction.java, line: 144)
>
>  if (form == null) {
>...
>  }
>
>  When EditRegistrationAction.perform() is called, form will be a reference
> to a RegistrationForm (*never* be null, because the ActionForm object has
> been created before by the ActionServlet object). Is it correct? Why has the
> author written this code? Can anyone help me?
>

The "form" object passed to an Action will indeed be null if the
struts-config.xml file does not define an "input" attribute for this particular
action.

Although that is not the case currently for the Struts example app, consider me
an old paranoid programmer about double checking the "it can never happen" cases
... :-)

>
>  Regards,
>  Thai

Craig McClanahan





Problem in Struts example (struts-example.war)

2001-03-04 Thread Thai Thanh Ha


 Hi all,

 I have found this  code in the Struts example (file:
EditRegistrationAction.java, line: 144)

 if (form == null) {
   ...   
 }

 When EditRegistrationAction.perform() is called, form will be a reference
to a RegistrationForm (*never* be null, because the ActionForm object has
been created before by the ActionServlet object). Is it correct? Why has the
author written this code? Can anyone help me?

 Regards,
 Thai