RE: Reset method in Form Bean

2004-02-20 Thread Srinivas Kusunam

We had same issues like this in the beginning I remember and we have started calling 
reset explicitly on each ADD \ EDIT \  CANCAL \ DELETE in Action.


>>> [EMAIL PROTECTED] 02/20/04 11:04AM >>>
the scope for my form bean is in 'Request Scope'



-Original Message-
From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 20, 2004 9:55 PM
To: [EMAIL PROTECTED] 
Subject: Re: Reset method in Form Bean



what is the scope your FormBean ???

>>> [EMAIL PROTECTED] 02/20/04 10:32AM >>>
Hi,

I am having jsp page , which contains a text box for searching. Here
i am having form bean for getting and setting value.

In this form bean, i use the Reset method for reseting the values for each
request.

But it is not at all reseting the values each time. The previous value is
displayed if we visis the page again.

Even if we logged out and login the same value is appearing...

Any idea?

Help needed

Ram


-
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: Reset method in Form Bean

2004-02-20 Thread Srinivas Kusunam

what is the scope your FormBean ??? 

>>> [EMAIL PROTECTED] 02/20/04 10:32AM >>>
Hi,

I am having jsp page , which contains a text box for searching. Here
i am having form bean for getting and setting value.

In this form bean, i use the Reset method for reseting the values for each
request.

But it is not at all reseting the values each time. The previous value is
displayed if we visis the page again.

Even if we logged out and login the same value is appearing...

Any idea?

Help needed

Ram


-
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 make readonly in Select Box

2004-02-20 Thread Srinivas Kusunam

We are achieving the same using disabled property. First you need to check for the 
mode if it is edit then make your select box is disabled with the selected value (you 
might be having this already selected value in some where session.). If you need 
to retrieve the value in this edit mode retrieve it from the already stored value 
(session).

otherwise as meeru suggested display it in a readonly textbox.

Thanks,
Srini


>>> [EMAIL PROTECTED] 02/20/04 09:38AM >>>
Hi,

I want to make readyonly in Select Box. If i gave readonly="true".
There is no property
called readonly..What i have to do for that one


  
Marketing
  
  
Human Resource
  
  
Administration
  


Bye
Ram


-
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 make readonly in Select Box

2004-02-20 Thread Srinivas Kusunam

As you said, there is no property called "readonly" for select box why don't you try 
with "disabled" of course you need to be careful when you submit the page and try to 
retrieve the value from disabled select box.


>>> [EMAIL PROTECTED] 02/20/04 09:38AM >>>
Hi,

I want to make readyonly in Select Box. If i gave readonly="true".
There is no property
called readonly..What i have to do for that one


  
Marketing
  
  
Human Resource
  
  
Administration
  


Bye
Ram


-
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: String[] in the form bean

2004-02-12 Thread Srinivas Kusunam

Can you Post your JSP and FormBean ?? At least that gives some idea about what you are 
doing there.

Thanks,
Srini


>>> [EMAIL PROTECTED] 02/12/04 02:12PM >>>
Wendy,

Thanks for the quick reply. I did as follows but get the error:
javax.servlet.jsp.JspException: No getter method available for property ids for bean 
under name org.apache.struts.taglib.html.BEAN
Though I have getters in my bean and I made "ids" as a hidden field in my jsp.

Thanks,
Samy

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 11, 2004 5:05 PM
To: Struts Users Mailing List
Subject: RE: [OT] - Request against Session


> From: Samyukta Akunuru [mailto:[EMAIL PROTECTED] 
> Using session/hidden variables-what would be the best way to 
> carry the array of selected checkboxes to the next page.

(Please trim your posts.)

I assume there's a String[] in your form bean.  You can iterate over it
and write out several  tags with the appropriate values.
Struts should fill up your String[] property again when the resulting
form is submitted.  

But just putting the form bean in session scope should solve it.  You'll
have to be careful in the 'reset' method, but other than that the form
bean will keep all your values as you go along.


RE: Orkut

2004-02-09 Thread Srinivas Kusunam

Can some one add me to the list please??

Thanks,
Sree

>>> [EMAIL PROTECTED] 02/09/04 02:11PM >>>
Hi,

Can someone please add me to Orkut
Thanks in advance

Cheers, Matthias




-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 09, 2004 6:33 PM
To: 'Struts Users Mailing List'
Subject: RE: Orkut


Hello, Please add me to Orkut.
Thanks


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Sunday, February 08, 2004 8:16 PM
To: [EMAIL PROTECTED] 
Subject: Orkut

If you want to join Struts in Orkut Social Network send me an e-mail 
saying so.

.V
(if you do not know what it is don't worry)


-
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: Action without ActionForm

2004-02-04 Thread Srinivas Kusunam

If there is no ActionForm  doesn't work. Try with normal  tag it 
works fine.

Hope this helps.

Srini


>>> [EMAIL PROTECTED] 02/04/04 07:00PM >>>

  Hi ,all

  I am new to Struts and learning it.

  And I am wondering how the strtus-config.xml and JSP look like when
  a  JSP doesn't submit any info( dont need ActionForm) .

  The JSP just display the current time and has one button "refresh".

  CurrentTime.jsp ( user push refresh button)
  -> CurrentTimeAction(get current time and put it  to Session Attribute)
   -> CurrentTime.jsp ( get time from Session and render)

  I have made the JSP without Struts framework . it works .

  but I have no idea how I can make this with action mapping in struts-config.xml.
  I made the mapping below and I got error when I try to open the JSP .
  JSP is using  tag to make form.

javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null

but i dont need any ActionForm
-
  
   
 
 
 
-
I have already checked the which attribute of action tag is mandatory or 
optional .
Should I make dummy ActionForm  ?


Any comments are appriciated.

  Masashi Nakane 


-
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: An Action doesn't work as expected

2004-02-03 Thread Srinivas Kusunam

Hi Fredrich,

  give the input page in action so that on form validation it forwards 
to this page.

some thing like this::


   --


hope this helps.

Sree.



>>> [EMAIL PROTECTED] 02/03/04 09:51AM >>>
Hi gurus,

I'm just learning to develop web application with
Struts. All Action works well,
except SubmitCustomerAction. I've tried to find the
problem but I can't find it so far.

Here is some relevant information

on jsp page :







on struts-config.xml :

  







  
  
  




tomcat gives this error :
The server encountered an internal error (No input
attribute for mapping path /submitCustomer)
that prevented it from fulfilling this request.

and from jboss server.log:
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.util.RequestUtils]  Looking for
ActionForm bean instance in scope 'request' under
attribute key 'CustomerRegistrationForm'
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.util.RequestUtils]  Creating new
ActionForm instance of type
'proj.web.form.CustomerRegistrationForm'
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.util.RequestUtils]  -->
[EMAIL PROTECTED]
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.action.RequestProcessor]  Storing
ActionForm bean instance in scope 'request' under
attribute key 'CustomerRegistrationForm'
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.action.RequestProcessor] 
Populating bean properties from this request
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.action.RequestProcessor] 
Validating input form properties
2004-02-03 22:01:52,390 DEBUG
[org.apache.struts.util.PropertyMessageResources]
getMessage(en,customer.email)
2004-02-03 22:01:52,390 DEBUG
[org.apache.struts.util.PropertyMessageResources]
loadLocale(en)
2004-02-03 22:01:52,431 DEBUG
[org.apache.struts.action.RequestProcessor]  
Validation failed but no input form available

I use Jboss 3.2.2,Apache-Tomcat
4.1.27-LE-jdk14,Jakarta-Struts 1.1 and JDK 1.4.0-b92.

Something wrong ? Please help.

Thanks for your help.
Fredrich.


__
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: Business Exception and JSP

2004-02-02 Thread Srinivas Kusunam

can you plz explain your architecture, so that i can suggest something.

Thanks,
S!!

>>> [EMAIL PROTECTED] 01/31/04 06:05AM >>>
Hi all,
  I would want to display the business exception that are thrown to a separate jsp 
page.  
Please suggest some way in which i can approach this 


Thanks in advance,
Sudhakar




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



Enter Key vs. Submit Button

2004-01-27 Thread Srinivas Kusunam

I have a .jsp page which submits through a post using SUBMIT button. If I 
type in a value for my one field and hit the submit button, all is well. If I type in 
a value and hit enter, I get an  NullPointerException in my ActionForm as I am 
checking for which button is clicked using the following code:

 validate(---){
   String buttonAction = request.getParameter(GSOPConstants.BUTTON_ACTION);
   System.out.println("-buttonAction==="+buttonAction); 
  }

  When I click SUBMIT button it prints properly where as if I click enter it prints 
NULL.

  I am sure there might be some wrok around. Any help greatly appreciated.

Thanks,
Srini




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



Forwarding to Global Error page from ActionForm

2003-12-29 Thread Srinivas Kusunam

Hi,

  Is it possible to forward to Global Error page from ActionForm? If yes then how??
 
  I appreciate any help.

Thanks,
Srini



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



Session Management Question

2003-12-22 Thread Srinivas Kusunam

Hi,

  Generally how do we take care of Session in Struts frame work. What are the best 
practices in that?
   
  Is it a good way to make all the Form Beans as Session scope?? If there is any 
sample code please provide me the link.

Thanks,



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



Re: url changing to localhost

2003-12-16 Thread Srinivas Kusunam

 In our application we always use Relative URL and it works fine for us. Check your's??

Thanks,
Srini

>>> [EMAIL PROTECTED] 12/16/03 10:36AM >>>
I'm new to Struts, so excuse me if this seems like an obvious one.

What is the trick to prevent the URL from changing?  If I hit my machine (isunit81 
which has a web server and the web app) from a remote machine by using this URL, 
http://isunit81/tablemaintenance and I login (by submitting a user/password form), the 
next page it takes me to has the URL with localhost:8080 instead of isunit81 
(http://localhost:8080/tablemaintenance/login.do;jsessionid=874ED1411066677F92DD8686A61FD0AB)
  On a remote machine, I get a 404 error because of localhost, it's trying to find the 
page on itself.  What am I doing wrong?



Brad Ayers
Senior Programmer Analyst
Granite State Management and Resources
[EMAIL PROTECTED] 
603-225-5867 ext. 308
603-224-2581  Fax number

CONFIDENTIALITY NOTICE

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original 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]



Paging with

2003-11-20 Thread Srinivas ,G
hi,

I need to do paging of dropdown with multiple values in pagewise
manner.i am able to do the pagewise data (in each page i need to display
20 records only,ie page 2 starts with 21 to 40 etc).I have done this
paging .no problem.but the issue is ,in page1 i have selected 2 values
and page2 i have selected 1 value.when i am coming back to page1 i need
to show the selected values (like in html 
etc).how to incorporate this feature with struts.

My drop down code looks like







Regards

-Srini



RE: Accessing a static final constant from Class in JSP

2003-11-18 Thread Srinivas Kusunam

which tag do u use to access the constants from the class as I don't want to use JSP 
Scriplets???

Thanks,
S!

>>> [EMAIL PROTECTED] 11/17/03 05:41PM >>>
Import the class in your jsp, then you can directly access it.

<%@ page import="GSOPConstants"%>

-----Original Message-
From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 17, 2003 2:17 PM
To: [EMAIL PROTECTED] 
Subject: Accessing a static final constant from Class in JSP


Hi,
 I have a class called ProjConstants.java which is a static class with
some static final constants here is the sample

public class GSOPConstants{
  public static final String LINK_EDIT = "linkEdit";
}

   How can I access this "LINK_EDIT"  constant from JSP without
using scriplets???

   Any help appreciated.

Regards,
S!
  


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



Accessing a static final constant from Class in JSP

2003-11-17 Thread Srinivas Kusunam

Hi,
 I have a class called ProjConstants.java which is a static class with some static 
final constants here is the sample

public class GSOPConstants{
  public static final String LINK_EDIT = "linkEdit";
}

   How can I access this "LINK_EDIT"  constant from JSP without using 
scriplets???

   Any help appreciated.

Regards,
S!
  


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



Scriplets Question

2003-11-17 Thread Srinivas Kusunam

Hi,
I have a question on using Scriplets on JSP page?? 

Why does JSP-2.0 specification given an option to disable scriplets in JSP?? 
What is the problem of putting Scriplets in JSP... what benefits are we getting 
using some standard \ custom Tags instead?

Thanks,
Srini

   



Srinivas Kusunam

Sr. Software Engineer
US Department of Agriculture
Missouri, USA.



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



Simple Question

2003-11-14 Thread Srinivas Kusunam

Hi All,

  I my team while in a Code-Review we had a discussion wether to use 

   or normal   as the later one can 
do the same work. One option accepted was why do we need Tag over head if  can handle that ??

  What do you guys suggest 

Thanks,
Srini


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



Question on Locale / Internationalization (Action and Message resources)

2003-11-14 Thread Srinivas Kusunam

Hi,
   I have a question on Action class and Message resources.

  My application have to support both English and Spanish users. In my action 
classes I need to use Message resources class the following way.

Action class:
   
Message resources resource = getResources(request); 
String addKEY = 
resource.getMessage((Locale)getLocale(request),"button.OfferWaterBank.Add");

Do I need to pass the locale in my every call to resource.  My assumption is 
getResources(request) should set Users Locale in MessageResource (from Session) and 
return it so that I can get the KEY specific to locale in my next calls, rather than 
passing locale for every call. 

 Please correct me if Iam wrong.

Thanks,
Srini


Srinivas Kusunam

Sr. Software Engineer
US Department of Agriculture
Missouri, USA.



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



Multiplying 2 columns on JSP page

2003-11-07 Thread Srinivas Kusunam

I have a Collection Object (collection of  OWBOReadFacade objects) in my session 
scope. For every object in the collection I have to multiply fld1 * fld2 and display 
on JSP. What is the best way or ways to do this???
Here is the sample code: 


 


  


 


   
 


  FIELD1 * FIELD 2 I.e. (wbpAgreementNumber * wbpRentalRatePerAcre)
 
 
   
 


I appreciate any suggestions.

Thanks.


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



RE: Struts Dilemma

2003-11-06 Thread Srinivas Gunturu
I guess this will work for form beans.

What if the flag I am trying to query is not in the form bean but is in a session 
bean?  Would you do the same?  This is where I am having hardtime to create these 
equivalent methods that return string while rest of my business delegates use boolean 
methods.

>>> [EMAIL PROTECTED] 11/06/03 11:48AM >>>
I think the best way to avoid this is to always use Strings and only Strings
for all form values (except Collections).  Then your action class can
convert to/from the desired type when it creates the transfer object to pass
to the business delegate.  If you combine this approach with the struts
validator then you know you can safely create the desired type (for instance
java.util.Date) without throwing an exception.



> -Original Message-
> From: Srinivas Gunturu [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 06, 2003 12:30 PM
> Subject: Struts Dilemma
>
>
> Often when writing a bean for use by a tag, I seem to be writing
> a equivalent method that returns a string value for a boolean property.
>
> For example:
>
> If I mean to pass a boolean property isInactive, I am also
> writing a getInactiveFlag which returns "N" or "Y" based on isInactive.
>
> I use inactiveFlag in my tag definition and inside my tag I check
> for "Y" or "N".
>
> Am I totally missing something or is there a better way to do this?
>
> TIA
>
>
>
> -
> 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]



Struts Dilemma

2003-11-06 Thread Srinivas Gunturu
Often when writing a bean for use by a tag, I seem to be writing a equivalent method 
that returns a string value for a boolean property.

For example:

If I mean to pass a boolean property isInactive, I am also writing a getInactiveFlag 
which returns "N" or "Y" based on isInactive.

I use inactiveFlag in my tag definition and inside my tag I check for "Y" or "N".  

Am I totally missing something or is there a better way to do this?

TIA



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



Re: Reusing Validation

2003-11-06 Thread Srinivas Gunturu
Resending this since haven't got any responses for a day

In summary, here is my question.  For those needing more details, look at the entire 
text below.

Is there a way to re-use the validation that is already built on all forms using 
validator framework?  If so how?  If not, how can I centralize my validation to one 
place?

Thanks


>>> [EMAIL PROTECTED] 11/05/03 10:35AM >>>
Hi All,

We are developing an intranet site to replace a legacy system which is in place.  
Legacy system does not have as much extensive validation as the new application does.  
Intranet site rollout is going to be phased out due to several reasons.  While legacy 
system is up, we have a batch process that transfers data from legacy system to our 
new database.

On the new application, data is entered using work flow format where all data is 
collected across forms into a mama bean.  At the end summary page is presented before 
data is persisted to db.  Most of form validation is done using validator framework.

Now, users want to edit legacy data that has been brought over.  When they open an 
existing event, we present them with summary page.  Then the user has the option to go 
to any form in the wizard flow using navigation on left.  

Since legacy data is not validated, we would like to validate all the data in mama 
bean and present them with visual indicators for each form in the wizard flow that 
fails validation.  This makes data clean-up very easy.  

Here is my question.  Is there a way to re-use the validation that is already built on 
all forms using validator framework?  If so how?  If not, how can I centralize my 
validation to one place?

Thanks for your time.



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



Reusing Validation

2003-11-05 Thread Srinivas Gunturu
Hi All,

We are developing an intranet site to replace a legacy system which is in place.  
Legacy system does not have as much extensive validation as the new application does.  
Intranet site rollout is going to be phased out due to several reasons.  While legacy 
system is up, we have a batch process that transfers data from legacy system to our 
new database.

On the new application, data is entered using work flow format where all data is 
collected across forms into a mama bean.  At the end summary page is presented before 
data is persisted to db.  Most of form validation is done using validator framework.

Now, users want to edit legacy data that has been brought over.  When they open an 
existing event, we present them with summary page.  Then the user has the option to go 
to any form in the wizard flow using navigation on left.  

Since legacy data is not validated, we would like to validate all the data in mama 
bean and present them with visual indicators for each form in the wizard flow that 
fails validation.  This makes data clean-up very easy.  

Here is my question.  Is there a way to re-use the validation that is already built on 
all forms using validator framework?  If so how?  If not, how can I centralize my 
validation to one place?

Thanks for your time.



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



RE: collection iterate

2003-10-30 Thread Srinivas Kusunam

Hey Ajay,

 Here is the way I am doing.

on JSP:


  


<%=wbpBORFacade.getWbpAgreementNumber()%>

   
 

Try it...Best of luck.

-srini   

Srinivas Kusunam

Sr. Software Engineer
US Department of Agriculture
Missouri, USA.


>>> [EMAIL PROTECTED] 10/30/03 11:16AM >>>
hi!
my problem is that the above doesn't print anything.
there is data in the vector, it however prints out nothing
any suggestions
thanks
ajay


>From: "Appel, Jeremy D" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: collection iterate
>Date: Thu, 30 Oct 2003 10:23:17 -0600
>
>Ajay,
>
>   use the struts-bean taglibrary and  tag.  Something like this:
>
> 
>   
>   ..
>   
>
>
>
>HTH
>jeremy
>
>-Original Message-
>From: ajay brar [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, October 30, 2003 11:19 AM
>To: [EMAIL PROTECTED] 
>Subject: collection iterate
>
>
>hi!
>i have a collection that i would like to iterate over and print the 
>contents
>out
>i am currently doing this as
>
>
>here ResVector is a collection that has been placed in session.
>it is a collection of transaction beans.
>i want to iterate over the collection, and print the details of the
>transaction bean stored in the collection.
>
>pleas help
>thanks
>ajay
>
>_
>Hot chart ringtones and polyphonics. Go to
>http://ninemsn.com.au/mobilemania/default.asp 
>
>
>-
>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] 
>

_
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp 


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



Session Timeout on post

2003-10-28 Thread Srinivas Gunturu
Is there a recommended way of handling session timeouts?  Especially when a user fills 
out a form and submits after session has timedout.

Using Tomcat realm is the preferred/recommended way or is there any other alternative 
in Struts?

TIA


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



Bug tracking software

2003-10-20 Thread Srinivas Gunturu
Is there any web based open source/free bug tracking software available?  We are using 
struts, but it doesn't have to be struts based as long as it is Java. :-)

Thanks


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



Warning message on Startup

2003-10-15 Thread Srinivas Gunturu
Hi All,

I am seeing following warning message in my logs when server starts up.  The 
application is functioning properly but not sure if I should ignore this or fix it.  I 
am using Struts as well as Tiles.

action: Warning - ActionComponentServlet class: This class is to be used with 
Struts1.0.x only. Please modify web.xml to use regular ActionServlet class instead in 
conjugaison with appropriate plugin declared in struts-config.xml.

When I change web.xml to use ActionServlet, I am getting following exception

javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.struts.tiles.ActionServlet or a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:880)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3341)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
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:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
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.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Here is the plug-in info. I have in strus config.

  


  


Any idea what causing this?  Should I ignore this or should I fix it?  If to fix, how?

TIA

Srinivas


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



MVC-Programmers mailing list

2003-10-06 Thread Srinivas Gunturu
This is not related to struts but is related to this list group.

Has any one else in the group got a subscription confirmation from [EMAIL PROTECTED] ? 
 I have never heard of this news group before and I have never asked for any 
subscription.  Even if some one did submit my id, I would have expected a confirmation 
email before my subscription bacame active.

I have also sent an email to unsubscribe instructions email and haven't heard back.  
Was wondering any one else in this list got spammed or is it just me?


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



Argument Type mismatch Exception...(Nested Tags)

2003-09-30 Thread Rajanala, Srinivas
Hi,

I am getting the following error when I submit the html form:
   <101017> 
<[ServletContext(id=7779161,name=omr,co
ntext-path=/omr)] Root cause of ServletException
java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at 
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:17
89)
at 
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:16
84)
at 
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:82
1)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)



It is not displaying the line number(or tag name) in the JSP file.
Is there anything wrong in using nested tags in my JSP page?

I have following in the JSP file under html:form:


  
 




 
  
 
 




  
  
  





  
  
  




manageProfileForm is the form bean defined in the struts-config.xml as shown below:

   
  
  
  
  
  
   


I appreciate your help.

Thanks,
Srini 

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



RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Srinivas Gunturu
I have seen this behavior when the jsp page I am forwarding to is not found such as in 
wrong location, wrong case (Welcome.jsp vs welcome.jsp).  But we are using tiles so 
not sure if it is tiles specific or not.

Hope this helps.

>>> [EMAIL PROTECTED] 09/30/03 10:28AM >>>
I would want to see your "web.xml", and any information that shows up in
the Tomcat console (not log file).

> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED] 
> 
> I am experimenting a basic application - logon.  I got
> the first two screens working without problem. 
> However, the third screen displays a blank page (no
> error message).  I am having a very difficult time to
> figure out the problem; henceforth, seeking help. 
> Here is the history of my application:
> 
> 1. http://localhost:8080/LogonPractice/index.jsp (no
> problem and I clicked on "Sign in")
> 2.
> http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50 
> E4D8E07EE36290E98342E8BF9C
> (no problem and the screen asked for username and
> password.  I filled out the information and clicked on
> "Submit")  
> 3. http://localhost:8080/LogonPractice/LogonSubmit.do 
> (displayed a blank page)
> 
> The Tomcat log file shows the following (no error
> message at all):
> 
> 2003-09-29 23:29:26 action: Processing a GET for
> /Logon
> 2003-09-29 23:29:26 action:  Looking for Action
> instance for class
> org.apache.struts.actions.ForwardAction
> 2003-09-29 23:29:26 action:   Double checking for
> Action instance already there
> 2003-09-29 23:29:26 action:   Creating new Action
> instance
> 2003-09-29 23:29:35 action: Processing a POST for
> /LogonSubmit
> 2003-09-29 23:29:35 action:  Looking for ActionForm
> bean under attribute 'logonForm'
> 2003-09-29 23:29:35 action:  Creating new ActionForm
> instance of class 'org.apache.artimus.logon.LogonForm'
> 2003-09-29 23:29:35 action:  Storing instance under
> attribute 'logonForm' in scope 'request'
> 2003-09-29 23:29:35 action:  Populating bean
> properties from this request
> 2003-09-29 23:29:35 action:  Validating input form
> properties
> 2003-09-29 23:29:35 action:   No errors detected,
> accepting input
> 2003-09-29 23:29:35 action:  Looking for Action
> instance for class
> org.apache.artimus.logon.LogonAction
> 2003-09-29 23:29:35 action:   Double checking for
> Action instance already there
> 2003-09-29 23:29:35 action:   Creating new Action
> instance
> 
> in my struts-config.xml, I have:
> 
>  path="/LogonSubmit"
>
> type="org.apache.artimus.logon.LogonAction"
> name="logonForm"
> scope="request"
> validate="true"
> input="/signin/Logon.jsp">
>  name="valid"
> path="/signin/Welcome.jsp"/>
> 
> 
> and my LogonAction.java is:
> 
> package org.apache.artimus.logon;
> 
> import java.io.IOException;
> 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.ActionError;
> import org.apache.struts.action.ActionErrors;
> 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 org.apache.artimus.lang.Constants;
> 
> public final class LogonAction extends Action {
> 
> public boolean isUserLogon(String username,
> String password) throws UserDirectoryException
> {
> 
> return
> (UserDirectory.getInstance().isValidPassword(username,password));
> // return true;
> 
> }
> 
> 
> public ActionForward execute(ActionMapping
> mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
> throws IOException, ServletException {
> 
> // Obtain username and password from web tier
> String username = ((LogonForm)
> form).getUsername();
> String password = ((LogonForm)
> form).getPassword();
> 
> // Validate credentials with business tier
> boolean validated = false;
> try {
> 
> validated =
> isUserLogon(username,password);
> }
> 
> catch (UserDirectoryException ude) {
> // couldn't connect to user directory
> ActionErrors errors = new ActionErrors();
> errors.add(ActionErrors.GLOBAL_ERROR,
> new ActionError("error.logon.connect"));
> saveErrors(request,errors);
> // return to input page
> return (new
> ActionForward(mapping.getInput()));
> }
> 
> if (!validated) {
> // credentials don't match
> ActionErrors errors = new ActionErrors();
> errors.add(ActionErrors.GLOBAL_ERROR,
> new ActionError("error.logon.inval

Re: Setting the page title from a tile

2003-09-25 Thread Srinivas Gunturu
Matt,

We have solved this in our application by defining our tile as follows


 







In Template.jsp, you can access title using 



Hope this helps.

>>> [EMAIL PROTECTED] 09/25/03 08:51AM >>>
I have an interesting problem that I can't figure out how to solve.

We are using Tiles, as well as a custom tag library that renders 
content from Velocity Templates.  These templates have HTML content in 
them, but they're mostly text - and this is our CMS (for now).  The 
problem is is that we've developed our app in a way only our menu needs 
to know about the templates.  So /appName/static/template will show the 
template page (wrapped in Tiles).  The problem is, by the time I load 
the Tile, with the template, the page's title has already been set.  
Sure I could use JavaScript and set document.title in the Velocity 
template, but that does no good for search engine optimization.  
Another solution I thought of is to put the title into the URL in my 
menus, i.e. 
/appName/static/homeownerServices?title=Homeowner%20Services - but 
that's just plain ol' ugly to send as a URL (via e-mail and such).

Two other solutions I can think of:

1.  Create a action-mapping and tile for each template (i.e. 
/appName/homeownerServices), and define the title in there.

2.  Parse the template name and convert it to readable titles.  This 
would require that I name all my templates so they have an appropriate 
title, but it just might work.  In this example, /homeownerServices 
gets translated to Homeowner Services as a title.

I guess I'll go with #2 (see how simply posting these messages actually 
helps to solve things!), but I wanted to see if anyone else had any 
good suggestions/practices.

Thanks,

Matt


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



Using Form Bean & Java Bean....

2003-09-23 Thread Rajanala, Srinivas

Hi,

Can I use both Form Bean & Java Bean inside a html:form?
I have ManageProfileBean(java bean) which has availRoles and
ManageProfileForm(Form bean) which has securityRoles. I need to iterate
through availRoles and display it as checkbox. When the user selects one or
more check boxes the data should get populated in the securityRoles of the
form bean.
I am trying to use the following code:
 


Security Roles
   
   
  
  
  
  
  



In the following code, I am trying to use availDepts from the
ManageProfileBean(Java Bean) and
department from the ManageProfileForm(Form Bean). 



  


  
 
  

 
  
   


Is it a correct? I appreciate your suggesions.

Thanks,
Srini

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



Undesired whitespace using

2003-09-17 Thread Srinivas Gunturu
All,

When using  tag to write out my links in the navigation, there is some 
white space being written out before and after  tag.  Because of this undesired 
whitespace, my navigation layout which has some indentation based on the level of 
navigation is getting messed up.  The browser is rendering indentation in one row and 
the url in another row as it finds blank space and uses it as an opportunity to wrap 
my stuff around.

Does any one know how to prevent this or any other better solutions to layout 
navigation?

One solution is not to use .  But then I would have to code all my url 
parameters and I also will loose the flexibility of having session info. part of the 
url.

TIA

Srinivas


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



Integer Validator

2003-09-10 Thread Srinivas Gunturu
All,

I have following validation rule defined on my form.  medication.drugText is getting 
validated.  However medication.formCode is not being enforced as required.


   
   
   
   

   
 

My Medication bean returns an Integer for getFormCode().  Any idea why would the 
validation not work.  I can post more of my code if needed.

TIA.

Srinivas




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



How to pass urlparameters to findForward?

2003-09-08 Thread Srinivas Gunturu
Hi,

I need to pass parameters depending on user action to my findForward.  

I have tried the following but does not seem to be working.

String urlQueryString = getURLParameters(nextURL);
if ( urlQueryString != null && urlQueryString.length() > 0 ) {
ActionForward forward = aMapping.findForward(nextURL);
StringBuffer path = new StringBuffer(forward.getPath());
path.append("?" + urlQueryString);
forward = new RedirectingActionForward(path.toString());   
 
return forward;
} else {
return aMapping.findForward(nextURL);
}

I have also tried setting my parameters on request using request.setAttribute

This also did not work.

I have also searched on net for 2 hours and no luck.  Please help!

TIA

Sriniavs


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



How to write HTML label text

2003-09-03 Thread Srinivas Gunturu
Hi All,

I want to display an uneditable text value on the page showing the name of the person 
who entered the order.  The name is stored in a bean inside my ActionForm and I do 
know how to display it in a text box using  tag.  However, I would prefer 
to show it as strait html and not sure how to do it since there is no  tag.

I tried

 does not work and gives an 
error as "orderInfo.name" not a valid property.

Any other way I can print this?

TIA


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



RE: JSP not displaying data when in Edit Mode

2003-08-28 Thread Srinivas Gunturu
Actually, I didn't have any missing closing tags.  Adding scope to saveTestPage action 
map, I was able to get my testPage action working properly. 

>>> [EMAIL PROTECTED] 08/28/03 09:23AM >>>
What you cut and pasted suggested a typo of a missing closing slash before
the end of the action tag:



Should've been either:



OR





Regards,
David

-Original Message-
From: Srinivas Gunturu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 28, 2003 10:05 AM
To: [EMAIL PROTECTED] 
Subject: Re: JSP not displaying data when in Edit Mode


I have resolved this issue.  But can not explain how it is fixed. :-)

Can any of the struts gurus out there shed some light on why this is so?

My struts-config.xml










By replacing following line

with





I was able to get my TestForm.jsp display data and get it into edit mode.
Though I am only trying to access http://localhost/myapp/testPage.do, I am
not sure why NOT HAVING SCOPE in /saveTestPage action made it not to display
data given in TestForm.

Any ideas?




>>> [EMAIL PROTECTED] 08/27/03 02:13PM >>>
All,

I am trying to get my JSP to display data from my form when in Edit mode.  I
am new to Struts and using Struts 1.1

I am not sure what I am doing wrong.  Any help or pointers at resources
would be appreciated.

I have included my struts-config, my jsp, my action class and my form class.

When I load my jsp, I am expecting to see "Filed1 value from action" in
"field1" as defined in the action class.  However, I am seeing the default
"Test Field1" as defined in the ActionForm class.

One thing I noticed is, my form is null in action execute class and I see
'Test Form is null.  Creating new one..." in the console.

Any idea what I am doing wrong?

TIA

- Srinivas

My JSP:

<[EMAIL PROTECTED] language="java" import="mybean.*"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

Field 1 : 
Field 2 : 

Submit


My Form:

private String field1;
private String field2;

public void reset(ActionMapping arg0, HttpServletRequest arg1) {
field1 = "Test Field1";
field2 = "Test Field2";
}

public String getField1() {
return field1;
}

public String getField2() {
return field2;
}

public void setField1(String field1) {
this.field1 = field1;
}

public void setField2(String field2) {
this.field2 = field2;
}



My Action:

public ActionForward execute(
ActionMapping aMapping,
ActionForm aForm,
HttpServletRequest aRequest,
HttpServletResponse aResponse) {

HttpSession session = aRequest.getSession();

if ( aForm == null ) {
System.out.println("Test Form is null.  Creating new one...");
aForm = new TestForm();
}

TestForm testForm = (TestForm) aForm;
testForm.setField1("Filed1 value from action");
testForm.setField2("Field2 value from action");

if ("request".equals(aMapping.getScope())) {
aRequest.setAttribute(aMapping.getAttribute(), testForm);
}
else {
session.setAttribute(aMapping.getAttribute(), testForm);
}

return aMapping.findForward(Constants.SUCCESS);

}


My struts-config.xml


















-
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: JSP not displaying data when in Edit Mode

2003-08-28 Thread Srinivas Gunturu
I have resolved this issue.  But can not explain how it is fixed. :-)

Can any of the struts gurus out there shed some light on why this is so?

My struts-config.xml










By replacing following line 

with





I was able to get my TestForm.jsp display data and get it into edit mode.  Though I am 
only trying to access http://localhost/myapp/testPage.do, I am not sure why NOT HAVING 
SCOPE in /saveTestPage action made it not to display data given in TestForm.

Any ideas?




>>> [EMAIL PROTECTED] 08/27/03 02:13PM >>>
All,

I am trying to get my JSP to display data from my form when in Edit mode.  I am new to 
Struts and using Struts 1.1

I am not sure what I am doing wrong.  Any help or pointers at resources would be 
appreciated.

I have included my struts-config, my jsp, my action class and my form class.  

When I load my jsp, I am expecting to see "Filed1 value from action" in "field1" as 
defined in the action class.  However, I am seeing the default "Test Field1" as 
defined in the ActionForm class.

One thing I noticed is, my form is null in action execute class and I see 'Test Form 
is null.  Creating new one..." in the console.

Any idea what I am doing wrong?

TIA

- Srinivas

My JSP:

<[EMAIL PROTECTED] language="java" import="mybean.*"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

Field 1 : 
Field 2 : 

Submit


My Form:

private String field1;
private String field2;

public void reset(ActionMapping arg0, HttpServletRequest arg1) {
field1 = "Test Field1";
field2 = "Test Field2";
}

public String getField1() {
return field1;
}

public String getField2() {
return field2;
}

public void setField1(String field1) {
this.field1 = field1;
}

public void setField2(String field2) {
this.field2 = field2;
}



My Action:

public ActionForward execute(
ActionMapping aMapping,
ActionForm aForm,
HttpServletRequest aRequest,
HttpServletResponse aResponse) {

HttpSession session = aRequest.getSession();

if ( aForm == null ) {
System.out.println("Test Form is null.  Creating new one...");
aForm = new TestForm(); 
}

TestForm testForm = (TestForm) aForm;
testForm.setField1("Filed1 value from action");
testForm.setField2("Field2 value from action");

if ("request".equals(aMapping.getScope())) {
aRequest.setAttribute(aMapping.getAttribute(), testForm);
}
else {
session.setAttribute(aMapping.getAttribute(), testForm);
}

return aMapping.findForward(Constants.SUCCESS);

}   


My struts-config.xml


















-
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: JSP not displaying data when in Edit Mode

2003-08-28 Thread Srinivas Gunturu
Thanks for the response Jason.

I tried this.  But didn't work.  Same result.

Any other ideas?

I can email you all files associated with this pipeline if you prefer.

Thanks again.

>>> [EMAIL PROTECTED] 08/27/03 03:49PM >>>

> My struts-config.xml
> 
>   
>   
>   
> 
>   
>  attribute="testForm"

and replace with

name="testForm"


>  scope="request"
>   validate="false">
>   
>   
>input="/TestForm.jsp" name="testForm">
>   
>   

'name' is the name of the form bean that is created and given to the 
action form.

-- 
Jason Lea


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



JSP not displaying data when in Edit Mode

2003-08-27 Thread Srinivas Gunturu
All,

I am trying to get my JSP to display data from my form when in Edit mode.  I am new to 
Struts and using Struts 1.1

I am not sure what I am doing wrong.  Any help or pointers at resources would be 
appreciated.

I have included my struts-config, my jsp, my action class and my form class.  

When I load my jsp, I am expecting to see "Filed1 value from action" in "field1" as 
defined in the action class.  However, I am seeing the default "Test Field1" as 
defined in the ActionForm class.

One thing I noticed is, my form is null in action execute class and I see 'Test Form 
is null.  Creating new one..." in the console.

Any idea what I am doing wrong?

TIA

- Srinivas

My JSP:

<[EMAIL PROTECTED] language="java" import="mybean.*"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

Field 1 : 
Field 2 : 

Submit


My Form:

private String field1;
private String field2;

public void reset(ActionMapping arg0, HttpServletRequest arg1) {
field1 = "Test Field1";
field2 = "Test Field2";
}

public String getField1() {
return field1;
}

public String getField2() {
return field2;
}

public void setField1(String field1) {
this.field1 = field1;
}

public void setField2(String field2) {
this.field2 = field2;
}



My Action:

public ActionForward execute(
ActionMapping aMapping,
ActionForm aForm,
HttpServletRequest aRequest,
HttpServletResponse aResponse) {

HttpSession session = aRequest.getSession();

if ( aForm == null ) {
System.out.println("Test Form is null.  Creating new one...");
aForm = new TestForm(); 
}

TestForm testForm = (TestForm) aForm;
testForm.setField1("Filed1 value from action");
testForm.setField2("Field2 value from action");

if ("request".equals(aMapping.getScope())) {
aRequest.setAttribute(aMapping.getAttribute(), testForm);
}
else {
session.setAttribute(aMapping.getAttribute(), testForm);
}

return aMapping.findForward(Constants.SUCCESS);

}   


My struts-config.xml


















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



RE: XML to PDF

2003-01-21 Thread srinivas vemuri
Hi Charlene,

Check Formatting Objects Processor (FOP) at http://xml.apache.org/fop/.

- Srini

-Original Message-
From: Yan, Charlene [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 12:07 PM
To: Struts Users Mailing List
Subject: XML to PDF


Hello all,

I just got assigned to convert XML to pdf to do reports.  Is any of you
working on it?  Any insights where I should get started my research?  I am
looking at xmlmil and aparche xml home right now.

Thanks in advance for your help!

Charlene

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Change in DynaActionForm struts 1.1.b3??

2003-01-15 Thread Srinivas Bhagavathula

In the earlier versions pre beat 3, of when I need to prepopulate a 
dynactionForm i used to instantiate a a dynamic action using the static 
method

DynaBean newForm =
DynaActionFormClass.getDynaActionFormClass("myForm").newInstance();


This method is deprecated/removed in the present verion, what would be the 
work around or the correct way to get the instance of the dyna action form 
in the present beta 3 release?



dynamic="true">
  
  



TIA,
srinivas




_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



Problem with ActionConfig.setInput() - Configuration is Frozen

2003-01-06 Thread Srinivas Bhagavathula

I am having a problem with the ActionMapping.setInput() which is throwing an 
illegal state exception and also says that the configuration is frozen. Not 
sure what is happening but what I am trying to do is set the input attribute 
dynamically in the action class. If an error occurs it is orwarded to the 
page which is set thro' the ActionMapping.setInput(). I need this dynamic 
approach as the action is called thro' a menu which can be on multiple 
pages.

Root cause of ServletException
WARN action.RequestProcessor  - Unhandled Exception thrown: class 
java.lang.IllegalStateException
java.lang.IllegalStateException: Configuration is frozen at 
org.apache.struts.config.ActionConfig.setInput(ActionConfig.java:
227)

TIA,
srinivas





_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
http://join.msn.com/?page=features/virus


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



RE: problem streaming file to browser

2002-12-30 Thread Srinivas Sampige
nerate the report) to a special 
Action whose job will be to just send the PDF back to the browser. Is this the 
best approach? What do you guys think?

thanks
-Srinivas






>= Original Message From Sven Bischoff <[EMAIL PROTECTED]> =
>hmm, i don't think that it works. what you're trying to do, is to
>generate 2 responses for one request (1: pdf-generation, 2: new
>info-page in window a).
>
>the only way i can think of, is to generate a second request on
>form-submission in window A via onclick=self.location.href="info.do" or
>onsubmit=...; and let the action mapped to info.do block until the
>pdf-generation has been finished. the pdf-generation action could set an
>attribute in session scope which the info-action periodically polls.
>when it finds the attribute, it returns the "look at window b"-forward.
>but i have absolutely no idea, if this works...
>
>sven
>
>Srinivas Sampige wrote:
>> Oops, thanks for the help. But in this case I am first opening another 
window
>> through javascript before calling this action and setting the target as 
that
>> window. So... the scenarion being window A is the main application window. 
On
>> hitting "report" button windo "B" gets created and the target is set to 
window
>> B and the form in window A gets submitted. "ReportAction" gets executed. As
>> per your suggestion I return null in "ReportAction". Okay, the PDF appears
>> fine in window B, but when the PDF appears I want to return some output to
>> window A also(for example Report generated successfully , please view 
it
>> in window B ,save it bla bla bla  ) OR perhaps change the 
display(in
>> Window A) by forwarding to another JSP; I am asking this because this is 
what
>> I finally intend to do. Is this possible?
>>
>> thanks
>> Srinivas


 Get your FREE web-based e-mail and newsgroup access at:
http://MailAndNews.com

 Create a new mailbox, or access your existing IMAP4 or
 POP3 mailbox from anywhere with just a web browser.



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




RE: problem streaming file to browser

2002-12-27 Thread Srinivas Sampige
Hi
 Thanks for your reply.The code you have supplied is on the lines of what I am 
doing. Here is what happens. First time the action is run the PDF comes out 
fine to the nrowser but with this message on the server side -

2002-12-27 15:39:46 - Ctx( /etrac ): IllegalStateException in: R( /etrac + 
/reportAction.do + null) Cannot forward as OutputStream or Writer has already 
been obtained

   Then I cannot generate the PDF again until I execute another action by say 
... doing back to the main menu of my web app(through another action) OR say 
by logging out. I get the same "IllegalStateException" error in another simple 
test Action that I put together. Can somebody help me? The same thing works 
fine in as servlet. So, I am not able to understand what is special about a 
Struts Action! Should I be doing something else?. Here are snippets of my 
code-

public abstract class EtracAction extends EtacAction
{
   public ActionForward perform(ActionMapping mapping,ActionForm form 
,HttpServletRequest request, HttpServletResponse response) throws IOException,
  ServletException
{
   
   
   return performAction(mapping, form, request, response,userSessionInfo);
 
}

public abstract ActionForward performAction(ActionMapping mapping, ActionForm 
form, HttpServletRequest request, HttpServletResponse response, 
UserSessionInfo userSessionInfo) throws IOException, ServletException;

}//end of EtracAction



---
ReportAction extends EtracAction 
{
  public org.apache.struts.action.ActionForward performAction   
(org.apache.struts.action.ActionMapping mapping, 
org.apache.struts.action.ActionForm form, 
javax.servlet.http.HttpServletRequest request, 
javax.servlet.http.HttpServletResponse response, UserSessionInfo 
userSessionInfo)
throws javax.servlet.ServletException, java.io.IOException
 {

 byte[] reportBuffer = reportManager.generateReport(userSessionInfo);
 String fileName = "";
 //write the pdf to the response
 if (reportBuffer != null)
 {
 response.setContentType("application/pdf");
 response.setHeader("Window-target","report_window");
 fileName = "etracPdfReport.pdf";
 ServletOutputStream sout = response.getOutputStream(); //THIS IS THE CODE 
THAT FAILS THE SECOND TIME AROUND,HAVE TO EXECUTE ANOTHER ACTION BEFORE 
ANOTHER PDF CAN BE STREAMED BACK TO BROWSER.
 sout.write(reportBuffer);

 //sout.flush();  //tried these two lines to avoid above error
 //sout.close();  //but no improvement.

 }
 return mapping.findForward(Forwards.REPORT_PAGE);
 }//end of performaction
}//end of ReportAction



thanks in advance

Srinivas





>= Original Message From "Struts Users Mailing List" 
<[EMAIL PROTECTED]> =
>stmt is an Oracle BFILE
>
>InputStream in = null ;
>BufferedInputStream bis = null ;
>ServletOutputStream writer = null ;
>
>try
>{
>stmt.openFile() ;
>in = stmt.getBinaryStream() ;
>bis = new BufferedInputStream(in) ;
>int length ;
>byte[] buf = new byte[512] ;
>writer = response.getOutputStream() ;
>response.setContentType("application/pdf") ;
>while ((length=bis.read(buf))!= -1)
>{
>writer.write(buf) ;
>}
>}
>finally
>{
>if (writer != null)
>writer.close() ;
>if (in != null)
>in.close() ;
>if (bis != null)
>bis.close() ;
>    if (stmt != null)
>stmt.closeFile() ;
>}
>
>Regards,
>
>
>Phillip Qin
>
>"This Guy Thinks He Knows Everything"
>
>
>-Original Message-
>From: Srinivas Sampige [mailto:[EMAIL PROTECTED]]
>Sent: December 27, 2002 2:39 PM
>To: [EMAIL PROTECTED]
>Subject: problem streaming file to browser
>
>Hi
> I havene an action in which I am streaming a PDF file to the browser. I am
>doing that by doing a response.getOutputStream() in the action and writing
>to
>the resulting ServletOutputStream. The first time it works fine, the PDF
>appears on the browser but with an illegal state exception on the console on
>
>the server side. The next time the user chooses to download a file and the
>same action is run again I get an error saying that the the servlet output
>stream has already been obtained and the PDF does not appear. The user has
>to
>log out of the web application and then log back on for the PDF download to
>work. Could anybody give me an idea what is going wrong? What is the best
>way
>to code this functionality? Could somebody provide OR point me to some
>source
>code?
>
>thanks
>Srinivas
>
&

problem streaming file to browser

2002-12-27 Thread Srinivas Sampige
Hi
 I havene an action in which I am streaming a PDF file to the browser. I am 
doing that by doing a response.getOutputStream() in the action and writing to 
the resulting ServletOutputStream. The first time it works fine, the PDF 
appears on the browser but with an illegal state exception on the console on 
the server side. The next time the user chooses to download a file and the 
same action is run again I get an error saying that the the servlet output 
stream has already been obtained and the PDF does not appear. The user has to 
log out of the web application and then log back on for the PDF download to 
work. Could anybody give me an idea what is going wrong? What is the best way 
to code this functionality? Could somebody provide OR point me to some source 
code?

thanks
Srinivas 


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




Help with reset() method in an subclass of DynaValidatorForm

2002-12-12 Thread Srinivas Bhagavathula


I am using  with a property of "deleted" which is defined as 
an array String in Struts-config.xml file as



   


where com.f.M.G.w.ProductDynaValidatorForm is a subclass of 
org.apache.sturts.validator.DynaValidatorForm I need to override the reset() 
Method in ProductDynaValidatorForm for the html:multibox to work when the 
checkbox is "unchecked". How can I access the "deleted" string array 
property of the bean and set the length of that string array to zero.


TIA, srinivas




_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



RE: Prepopulating DynaActionForm which has an indexed property

2002-12-11 Thread Srinivas Bhagavathula
Thanks Robert!!! That worked...appreciate the help







From: "Robert Taylor" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Prepopulating DynaActionForm which has an indexed property
Date: Wed, 11 Dec 2002 09:21:11 -0500

 Try this:

 DynaBean newForm =
 DynaActionFormClass.getDynaActionFormClass("myForm").newInstance();
 String[] firstNames = new String[employee.numberOfPersons()];

 for (int i= 0; i < employee.numberofPersons() ; ++ i)
firstNames[i] = employee.firstName(); // do you mean
employee.firstName(i); ?

 newForm.set("firstName", firstNames);
 newForm.set("companyID", "12345");
 request.setAttribute("InfoForm", newForm);



HTH,

robert


> -Original Message-
> From: Srinivas Bhagavathula [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 11, 2002 8:54 AM
> To: [EMAIL PROTECTED]
> Subject: Prepopulating DynaActionForm which has an indexed property
>
>
>
> Hi,
>
> I am reposting this question, did not get any input for my last
> post. Hope
> someone can give me some inputs here. thanks, srinivas
>
>
> How can I prepopulate an DynaValidator/DynaAction form which has
> an  indexed
> property?
>
> this is my form definition
>
> 
> dynamic="true">
> 
> 
> 
>
>
> Action class:
>
> DynaBean newForm =
> DynaActionFormClass.getDynaActionFormClass("myForm").newInstance
> ();
>
> for (int i= 0; i < employee.numberofPersons() ; ++ i)
>newForm.set("firstName", i , employee.firstName();
>
> newForm.set("companyID", "12345");
> request.setAttribute("InfoForm", newForm);
>
>
> The code breaks because it does not know the size of the
> firstName[] indexed
> property. I could have done this by using an initial property and set 
the
> size but the size changes dynamically. How can I set the size of the
> "firstName" property in the action class code (just before populating 
the
> property)
>
>
> TIA,
> srinivas
>
>
>
>
>
> _
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
> --
> 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]>


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



Prepopulating DynaActionForm which has an indexed property

2002-12-11 Thread Srinivas Bhagavathula

Hi,

I am reposting this question, did not get any input for my last post. Hope 
someone can give me some inputs here. thanks, srinivas


How can I prepopulate an DynaValidator/DynaAction form which has an  indexed 
property?

this is my form definition


dynamic="true">





Action class:

DynaBean newForm =
DynaActionFormClass.getDynaActionFormClass("myForm").newInstance
();

for (int i= 0; i < employee.numberofPersons() ; ++ i)
  newForm.set("firstName", i , employee.firstName();

newForm.set("companyID", "12345");
request.setAttribute("InfoForm", newForm);


The code breaks because it does not know the size of the firstName[] indexed 
property. I could have done this by using an initial property and set the 
size but the size changes dynamically. How can I set the size of the 
"firstName" property in the action class code (just before populating the 
property)


TIA,
srinivas





_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



Prepopulating DynaActionForm which has an indexed property

2002-12-10 Thread Srinivas Bhagavathula

Hi,

How can I prepopulate an DynaValidator/DynaAction form which has an  indexed 
property?

this is my form definition


dynamic="true">





Action class:

DynaBean newForm =
DynaActionFormClass.getDynaActionFormClass("myForm").newInstance
();

for (int i= 0; i < employee.numberofPersons() ; ++ i)
   newForm.set("firstName", i , employee.firstName();

newForm.set("companyID", "12345");
request.setAttribute("InfoForm", newForm);


The code breaks because it does not know the size of the firstName[] indexed 
property. I could have done this by using an initial property and set the 
size but the size changes dynamically. How can I set the size of the 
"firstName" property in the action class code (just before populating the 
property)


TIA,
srinivas






_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Help with reset() method in an subclass class of DynaValidatorForm

2002-12-09 Thread Srinivas Bhagavathula

Hi,



I am using  with a property of "deleted" which is defined as 
an array String in Struts-config.xml file



 


where com.f.M.G.w.ProductDynaValidatorForm is a subclass of 
org.apache.sturts.validator.DynaValidatorForm.

I need to override the reset() Method in ProductDynaValidatorForm for the 
 to work when the checkbox is "unchecked". How can I access 
the "deleted" string array property of the bean and set the length of that 
string array to zero, ie. how can I set the "deleted" array length to 
zero.??

TIA,

srinivas





_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



RE: session management problem

2002-10-12 Thread srinivas

Hi Thomas, 
The session timeout is 28,800 sec(8 hours), this value is part of
requirements.  Users are actively hitting the application. Our
application is under  testing and this was reported by our QA team, and
these people wont keep system idle.

Regards
Srinivas


-Original Message-
From: Thomas Eichberger [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, October 12, 2002 6:44 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: session management problem

Maybe stupid question, but what session-timeout do you have? May be the 
user just didn't do anything on the page for a period longer than the 
session timeout?

Thomas

At 17:25 12.10.2002 +0530, srinivas wrote:

>
>
>we are developing a intranet enterprise application, we are facing a 
>typical problem in session management , our application gets
automatically 
>sessioned timed out even the logged in user has a valid session.
>
>
>
>our environment is
>
>
>
>Linux Red hat 7.2
>
>JBoss 3.0.3
>
>Apache 1.3.20
>
>tomcat 4.0.4
>
>struts 1.0.2
>
>
>
>we are creating a new session when user credentials are passed and
after 
>some time he will be thrown out of the system since he doesn t have
valid 
>session. But the user had valid session.
>
>
>
>Any help in this is appreciable
>
>
>
>Regards
>
>Srinivas
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.








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


session management problem

2002-10-12 Thread srinivas








 

we are developing a
intranet enterprise application, we are facing a typical problem in session
management , our application gets automatically sessioned
timed out even the logged in user has a valid session.

 

our environment
is

 

Linux Red hat 7.2

JBoss 3.0.3

Apache 1.3.20

tomcat 4.0.4

struts 1.0.2

 

we are creating a new
session when user credentials are passed and after some time he will be thrown
out of the system since he doesn’t have valid session. But
the user had valid session.

 

Any help in this is appreciable

 

Regards

Srinivas







**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.








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


RE: question on using the html:radio tag...

2002-07-25 Thread I-Sampige, Srinivas

That worked! Thanks.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 1:44 PM
To: 'Struts Users Mailing List'
Subject: RE: question on using the html:radio tag...


Hey,
If you want it checked, make sure that the bean property associated with the
button is set to whatever the value attribute of the radio button is, before
the JSP page is hit.
So if I have:
  A
  B

Then I would just make sure that my "letter" property is set to 'A' before I
hit the JSP if I want the 'A' button checked.

~ Keith
http://www.buffalo.edu/~kkamholz


-Original Message-
From: I-Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 4:38 PM
To: Strutsuser (E-mail)
Subject: question on using the html:radio tag...


Hi 
 I am using the html:radio tag that comes with the struts distribution to
render a radio button. What property do I need to set to make it appear
checked by default? In html I would to that like this -

   Update Mode


thanks
Srinivas

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

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




question on using the html:radio tag...

2002-07-25 Thread I-Sampige, Srinivas

Hi 
 I am using the html:radio tag that comes with the struts distribution to
render a radio button. What property do I need to set to make it appear
checked by default? In html I would to that like this -

   Update Mode


thanks
Srinivas

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




populating JSP from

2002-07-23 Thread I-Sampige, Srinivas

Does anybody know if it is possible to populate  a form in a JSP with data
from a formbean ?(reverse to what happens when the form gets submitted to an
action). What I am trying to do is,... when user enters some data data on a
screen(JSP) and submits to an action...&. if there is an error in the
action(something like record not found in database) then I want to show the
same screen(JSP) to the user with along with the data he originally he keyed
in. I can do this with scriplet code in the JSP but I want to use a cleaner
way because we are following a consistent approach of not puttinng java code
in our JSPs in our project.

thanks in advance
Srinivas

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




RE: Calls another action from one action?

2002-07-11 Thread I-Sampige, Srinivas

If I understood your question right you want to forward  to another from
within an action. You can do this like this (after reading the code pastings
read the explanation right at the bottom)-
-struts-config.xml-











--

---SingleSearchAction.java-
public org.apache.struts.action.ActionForward
performAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) throws
javax.servlet.ServletException, java.io.IOException 
{
//create a dummy light shortagerecord and put it in the record
container  
//contains at lease one element. This is for the RecordInfoTag to
work
//properly.
LightShortageRec  rec = new LightShortageRec();
Vector list =  new Vector();
list.addElement(rec);
RecordsContainer container = new RecordsContainer(list);
UserSessionInfo sessionInfo =
EtracSessionManager.getUserSessionInfo(request.getSession());
sessionInfo.setRecordsContainer(container);

//forward to the appropriate action to continue processing.
return mapping.findForward("retrieveLookAheadAction");
}
- 

What I am doing is, in the SingleSearchAction I am doing some preocessing
and then forwarding to the RetrieveLookaAheadRecordAction which is declared
as a forward in the declaration of the SingleSearchAction(see the
struts-config.xml).

thanks
Srinivas







-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Calls another action from one action?


Subject: Calls another action from one action?
From: "Hu Ji Rong" <[EMAIL PROTECTED]>
 ===
Hi,

As I described in my previous post: "Question on implementation with
frames", I have some links pointing to some pages in which all form fields
actually belong to the same domain object, eg. Airport has pages like
AirportDef, Notes, Remarks,...

So I will implement the links with one single action, AirportAction, with
parameters, the AirportAction forward to different pages based on the link
clicked. Normally, we have the submit button inside each page(form) to
submit the form. But I can't have that, the requirement is when the user
click other links, current form will be submited.(eg. when user has
completed the AirportDef page and click the next link to Notes, the form in
AirportDef must be submitted.)

So, when a link is clicked, there are two things the action need to do,
submit the current form and forward to next page. Since the forwarding is
done in AirportAction, while CRUD of AirportDef is done in AirportDefAction,
I have to call the function in AirportDefAction inside AirportAction before
forward to next page.

So the question is can I invoke another action inside one action? Or how to
achieve it?

JiRong



--
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: null in html on validation

2002-04-20 Thread srinivas

Hi,
In the action did u save errors and then forward to the jsp.

Try calling this method
saveErrors(request, errors);
and then forward.

Regards,
srinivas


-Original Message-
From: Team Gasoline [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, April 20, 2002 3:29 AM
To: [EMAIL PROTECTED]
Subject: null in html on validation

Hello --

I'm having a problem  with errors being surrounded by "null" on my page 
after validation. Here is a snippet of the html when i view source of 
the page through the browser.

   
 
   User Name:
 
 
   
   null
<--Required 
Field
null

 
   

Here is what I have in my jsp.

   
 
   
 
 
   
   
 
   

and my form.

 public ActionErrors validate(ActionMapping mapping,
  HttpServletRequest request) {

 ActionErrors errors = new ActionErrors();
 if ((username == null) || (username.length() < 1))
 errors.add("username", new 
ActionError("error.username.required"));

 return errors;

 }

Has anyone ever seen this before. I have checked everywhere and have 
found no good answers.

Thanks.


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




RE: Strtus Tags inside XSLT

2002-04-20 Thread srinivas

Hello Samip,
 
The custom tags are evaluated in the order they appear in the jsp. 
 
If you are using Jakarta tag libraries for XSLT processing the solution
is as follows.
 




 
In this case the apply tag is evaluated first and there is a call to
execute the body of the apply tag.
When the body is being processed the struts tag is called and further
processed. 
 
Hope it helps,
 
Regards,
Srinivas.
 
 
-Original Message-
From: Samip Ladhawala [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 19, 2002 10:19 PM
To: [EMAIL PROTECTED]
Subject: Strtus Tags inside XSLT
 
Hi Srinivas,
I saw your post on the mailing archive saying that you solved the
porblem of using Struts taglib in XSLT. Could you please email me how
did u slove that. I am also in same situation and I want to use struts
tablib in xslt. 
Thanks in advance,
Samip.
 
  _  

Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax



RE: forwarding request to another resource

2002-04-16 Thread Sampige, Srinivas

Thanks Victor. I happened to solve the problem just 5 minutes before you
mail came in. This is what I did in my "relogon.jsp" (i used the redirect
tag) -

--
<%@ page import="javax.servlet.*,javax.servlet.http.*" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


  http://authtest.ca.boeing.com"/>




-Original Message-
From: Victor Hadianto [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 5:08 PM
To: Struts Users Mailing List
Subject: Re: forwarding request to another resource


>    RequestDispatcher dispatcher =
> context.getRequestDispatcher("http://authtest.internal.ca.com/";);
>    dispatcher.forward(request,response);


getRequestDispatcher(String path) requires you to supply the path that is 
relative to the context root.

Try to do getRequestDispatcher("/") and see how it goes. Actually if you
read 
the stack trace it will tell you exactly what went wrong:

java.lang.IllegalArgumentException: Path http://authtest.ca.boeing.com/ does
not start with a "/" character

Cheers,

-- 
Victor


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




forwarding request to another resource

2002-04-16 Thread Sampige, Srinivas

Hi
 I have a common base class called EtrackAction that checks for a valid
session. All action classes subclass this base class. What I want to do is -
if a valid session does not exist (which may occur due to sesison timeout) I
want to forward the request to another site which is actually a web site
that authenticates users. The idea is to authenticate the user and help him
continue his session from wherever he is in the web applicaton(he might have
taken a break during a lengthy input process in a large screen). So in
EtrackAction class I forward to "cuisauthentication" which maps to
"relogon.jsp".But the "relogon.jsp" gives an error. Here are the code
snippets and and followed by the stack trace -


EtracSessionController controller =
(EtracSessionController)session.getAttribute("etracController");
System.out.println("EtrackAction: got the controller "+controller);
//check if a valid user session exists by checking for the existence
//of the controller
if (controller==null)
  {
//if the controller doesn not exist then a valid session
//does not exist. So, store the incoming request, authenticate
//the user and preceed futher if the authentication succeeds.
System.out.println("SESSION HAS TIMED OUT !!!");
return mapping.findForward("cuisauthentication");
  }
//a valid session exists so proceed 
System.out.println("VALID SESSION EXISTS SO PROCEEDING ");
return performAction(mapping,form,request,response);


My forwarding section of the :- 
---
  


 
 
 
  
---

The code for my relogon.jsp is

<%@ page import="javax.servlet.*,javax.servlet.http.*" %>

 <%
System.out.println("In the relogon.jsp trying to forward to authtest
site..");
ServletContext context = getServletContext();
RequestDispatcher dispatcher =
context.getRequestDispatcher("http://authtest.internal.ca.com/";);
dispatcher.forward(request,response);
 %>

---

Stack Trace is -
-
A Servlet Exception Has Occurred
java.lang.IllegalArgumentException: Path http://authtest.ca.boeing.com/ does
not start with a "/" character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
at org.apache.jsp.relogon$jsp._jspService(relogon$jsp.java:63)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:430)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:354)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1758)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943

forwarding to another resource

2002-04-15 Thread Sampige, Srinivas

Hi
 I have a common base class called EtrackAction that checks for a valid
session. All action classes subclass this base class. What I want to do is -
if a valid session does not exist (which may occur due to sesison timeout) I
want to forward the request to another site which is actually a web site
that authenticates users. The idea is to authenticate the user and help him
continue his session from wherever he is in the web applicaton(he might have
taken a break during a lengthy input process in a large screen). So in
EtrackAction class I forward to "cuisauthentication" which maps to
"relogon.jsp".But the "relogon.jsp" gives an error. Here are the code
snippets and and followed by the stack trace -


EtracSessionController controller =
(EtracSessionController)session.getAttribute("etracController");
System.out.println("EtrackAction: got the controller "+controller);
//check if a valid user session exists by checking for the existence
//of the controller
if (controller==null)
  {
//if the controller doesn not exist then a valid session
//does not exist. So, store the incoming request, authenticate
//the user and preceed futher if the authentication succeeds.
System.out.println("SESSION HAS TIMED OUT !!!");
return mapping.findForward("cuisauthentication");
  }
//a valid session exists so proceed 
System.out.println("VALID SESSION EXISTS SO PROCEEDING ");
return performAction(mapping,form,request,response);


My forwarding section of the :- 
---
  


 
 
 
  
---

The code for my relogon.jsp is

<%@ page import="javax.servlet.*,javax.servlet.http.*" %>

 <%
System.out.println("In the relogon.jsp trying to forward to authtest
site..");
ServletContext context = getServletContext();
RequestDispatcher dispatcher =
context.getRequestDispatcher("http://authtest.internal.ca.com/";);
dispatcher.forward(request,response);
 %>

---

Stack Trace is -
-
A Servlet Exception Has Occurred
java.lang.IllegalArgumentException: Path http://authtest.ca.boeing.com/ does
not start with a "/" character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
at org.apache.jsp.relogon$jsp._jspService(relogon$jsp.java:63)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:430)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:354)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1758)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943

RE: struts radio button

2002-04-06 Thread srinivas

set the value of priorType in struts form to one of the values {"1", "2"}.
so always this value will be selected.

-Original Message-
From: days [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 06, 2002 8:45 PM
To: Struts Users Mailing List
Subject: struts radio button


Hi...anyone out there knows how to set one of the radio buttons to be
selected by default?
In HTML, we have set it using the "checked" attribute...however under the
struts form tag documentation, there isn't any "checked" attribute for the
radio button. Mine appears like the following:

Important
Urgent

Can any help? Thx in advance.


See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201
/splash.asp

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




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:

For additional commands, e-mail:




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




RE: ApplicationResources.properties

2002-04-02 Thread srinivas

Its part of 1.0

this is what the ActionServlet does on start up. Snippet from
org.apache.struts.action.ActionServlet class.

protected void initApplication() throws ServletException {

String value = getServletConfig().getInitParameter("application");
if (value == null)
return;
String factory =
getServletConfig().getInitParameter("factory");
if (debug >= 1)
log(internal.getMessage("applicationLoading", value));
try {
String oldFactory =
MessageResourcesFactory.getFactoryClass();
if (factory != null)
MessageResourcesFactory.setFactoryClass(factory);
MessageResourcesFactory factoryObject =
MessageResourcesFactory.createFactory();
application = factoryObject.createResources(value);
MessageResourcesFactory.setFactoryClass(oldFactory);
value = getServletConfig().getInitParameter("null");
if (value == null)
value = "true";
if (value.equalsIgnoreCase("true") ||
value.equalsIgnoreCase("yes"))
application.setReturnNull(true);
else
application.setReturnNull(false);
} catch (Throwable e) {
log(internal.getMessage("applicationResources", value), e);
throw new UnavailableException
(internal.getMessage("applicationResources", value));
}
getServletContext().setAttribute(Action.MESSAGES_KEY, application);

}

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 11:01 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties


Is the "application" parameter a relic from 1.0 or is it required in 1.1? I
have an entry in struts-config.xml that seems to serve the same purpose:



The reason I ask is that I recently began having problems accessing entries
in ApplicationResources. I'll try adding it to web.xml.

-Original Message-
From: srinivas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 2:35 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties


hello,
u need to have it in your classpath and  hence under /webapp only
In fact u can place in any directory u want under classes and configure ur
web server, in case of tomcat its like this.
  
action
org.apache.struts.action.ActionServlet

  application
  com.test.properties.ApplicationResources
    

  config
  /WEB-INF/struts-config.xml


  debug
  2

1
  

regards,
srinivas
-Original Message-
From: K J [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:14 PM
To: Struts Users Mailing List
Subject: ApplicationResources.properties


In the struts example application, this properties
file is under both /source and /webApp. does it need
to be under both directories?

thanks.

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://http://taxes.yahoo.com/

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


--
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: ApplicationResources.properties

2002-04-02 Thread srinivas

hello,
u need to have it in your classpath and  hence under /webapp only
In fact u can place in any directory u want under classes and configure ur
web server, in case of tomcat its like this.
  
action
org.apache.struts.action.ActionServlet

  application
  com.test.properties.ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2

1
  

regards,
srinivas
-Original Message-
From: K J [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:14 PM
To: Struts Users Mailing List
Subject: ApplicationResources.properties


In the struts example application, this properties
file is under both /source and /webApp. does it need
to be under both directories?

thanks.

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://http://taxes.yahoo.com/

--
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: Opening page in a new window

2002-04-01 Thread srinivas

hello,

In this case you are opening a window and then sending the request, instead
send the request and then open the window on response.
use onLoad event of body tag to open a new window and request for the page.

also i notice that u use action="/report"??
are u submitting to another servlet ??

hope this helps,
srinivas.


-Original Message-
From: Sudipta Sarkar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 8:42 PM
To: Struts Users Mailing List
Subject: Opening page in a new window


Hi,
  I have a application with the following feature:

  I have a form with some text fields and a submit button.
  When I press submit I need to do some database interaction and the result
of
that I store in seesion.
  The results then  need to be displayed on a different page on a new
browser
window.

  What I did is:
   In the action class did the database calls and the put the results in
session.
   The JSP page uses the results present in the session (which was populated
in the action class) and displays them.
I have used something like the following
  
 to open the jsp page in a new window.(openReportwindow is my javascript
function which open a new window)
  What is happening is that the jsp page is saying bean not found in session
and that is because the jsp page is trying to get the bean before the
action's perform method has finished and hence its not finding the bean.
What should I do in order the jsp page tries to get the session
variable/beans
after the perform method has finished i.e the data in put into session from
the database.

Thanks in advance.
Sudipta


--
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: error

2002-03-29 Thread srinivas

try setting scope attribute in action definition in struts-config.xml



  

  




-Original Message-
From: Jose Casas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 11:32 PM
To: 'Struts Users Mailing List'
Subject: error


I changed my action to action="/login.do".  I still get the Cannot find bean
logonForm in scope null error.
Thanks for your suggestion.
>
>should be the right way of accessing login actionhope this helps,
>srinivas.



**
Notice:  The area code for the Wal-Mart General Office has
changed from 501 to 479.  Please make sure that you are
dialing 479 when making calls to any General Office location.

**
This email and any files transmitted with it are confidential
and intended solely for the individual or entity to
whom they are addressed.  If you have received this email
in error destroy it immediately.
**


--
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: error

2002-03-29 Thread srinivas


should be the right way of accessing login action

hope this helps,
srinivas.
-Original Message-
From: Jose Casas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 11:07 PM
To: 'Struts Users Mailing List'
Subject: error


Actually, no.

this is what I have in my login.jsp
 


and this is in the struts-config file:
  

   


  

  



Am I doing this all wrong?

Thanks.

I thought that by going through the login.jsp (which invokes my
actionservlet)
 Do you mean going through the login.do ?
-Original Message-
From: Jose Casas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:40 PM
To: 'Struts Users Mailing List'
Subject: error
Hello, It's me again.
Yesterday and this morning I posed a question about a 
tagproblem. I was getting a Cannot find bean logonForm in scope null error.
Somebody told me that i was getting this error because I was accessing
thejsp directly. Well, now I'm using a login.jsp which validates that I'm in
adatabase, if I am then it directs me to another jsp(f_Relocation.jsp). In
this jsp, I have the  tag.
The code is as follows:
In jsp: 
in struts-config file:





Does anybody have an idea as to why I'm getting the following eror? Cannot
find bean logonForm in scope null error
I thought that by going through the login.jsp (which invokes my
actionservlet) and being directed from it to the f_Relcoation.jsp, I
wouldavoid this error.Can somebody help?
Thanks.
>


**
Notice:  The area code for the Wal-Mart General Office has
changed from 501 to 479.  Please make sure that you are
dialing 479 when making calls to any General Office location.

**
This email and any files transmitted with it are confidential
and intended solely for the individual or entity to
whom they are addressed.  If you have received this email
in error destroy it immediately.
**

--
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: Cannot find message resources - URGENT

2002-03-29 Thread srinivas

do u have the XML parsers in your class path.

-Original Message-
From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 10:50 PM
To: Struts Users Mailing List
Subject: Cannot find message resources - URGENT


Hi,
I am getting the following error

ServletException in:/delegateIds1.jsp] Cannot find
message resources under key
org.apache.struts.action.MESSAGE'

I tried looking at the archive but none of the
solution mentioned in there resolved it.

I am using nightly build from 03/27. I am also using
tiles defination to create my pages.

Following is my JSP.


<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld"
prefix="nested" %>


<% System.out.println("Inside delegateIds1.jsp"); %>








 
 
 





 
 
 


 
 


 



 
 
 


 
  



 


?



   
 

  

  

 


 
  



 


?





 





 


 
 
 





 
 
 











 
 
 





 
 
 






-Sanjay





__
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Managing Form without a FormBean

2002-03-29 Thread srinivas

hi,

you don't need a form bean to call struts action.
a simple form with action to the main search page would do, or u can have a
link to the struts action which forwards to the main search page.

hope this helps,

regards,
srinivas
-Original Message-
From: sanjeev_dutt [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 9:14 AM
To: Struts Users Mailing List
Subject: Managing Form without a FormBean


Hi All,

Is it possible to have a form on my JSP without having a bean associated
with it ?
Actually on my JSP, I have a button "New Search" and when the user clicks on
it, he/she should be taken to main search page.
I have an action class associated with this.
But since user is not submitting any value here, does it make sense to have
a form bean here ? Can't we directly call the action class through
ActionServlet without have a form in the whole scene.

TIA
Sanjeev

--
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: errors tag

2002-03-29 Thread srinivas

hi,

the reason is that errors tag looks for errors.header,errors.footer
properties.

the first null is because of errors.header
last one is because of the errors.footer

regards,
srinivas.
-Original Message-
From: Juan Alvarado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 11:53 PM
To: Struts
Subject: errors tag


Does anyone know why in Struts 1.02 when using the  tag, any
error that gets added to the ActionErrors object is displayed in the
following format:

null
"message string" null

An example would be as follows

The html output of my errors tag in Struts 1.02 would yield the following
when a user leaves a text field blank:


null
Su búsqueda no devolvio resultados null



With Struts 1.0:


Su búsqueda no devolvio resultados



I apologize about the spanish bit, it's a straight copy and paste from our
app.

Thanks in advance

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


--
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: Error Explanation Needed - Ryan Norman

2002-03-29 Thread srinivas

hello,

This could be a nesting error. Take a look at struts developer guide
http://jakarta.apache.org/struts/doc-1.0.2/index.html

It is possible that u have a html:text tag not in html:form. This is just an
example.

regards,
srinivas.

-Original Message-
From: Ryan Norman [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:07 AM
To: Struts User Mailing List
Subject: Error Explanation Needed - Ryan Norman


Hi,

Can somebody tell me what this error message mean?
Also can you please tell me what I should do to solve this problem.

Thanks in advance

Ryan Norman

javax.servlet.ServletException: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:457)
at org.apache.jsp.dsp_0005fUser$jsp._jspService(dsp_0005fUser$jsp.java:207)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:21
49)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)


root cause

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:188)
at org.apache.jsp.dsp_0005fUser$jsp._jspService(dsp_0005fUser$jsp.java:104)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at

RE: Where is struts-config.xml specification - Ryan Norman

2002-03-27 Thread srinivas

hi,

attached are the dtd's for struts1.0 and 1.1 config files. Its packed with
the struts src code.
hope this helps you.

regards,
srinivas



-Original Message-
From: Ryan Norman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:26 AM
To: [EMAIL PROTECTED]; LA Java User Group
Subject: Where is struts-config.xml specification - Ryan Norman


Hi,

I am Ryan Norman.

I know there is a specification given by sun for the web deployment
description (web.xml).
Is there one for the struts-config.xml file? Does anybody know where to find
the struts-config.xml tag specification file?

Thanks in advance

Ryan Norman


































































































































































































































































































































  

























































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


RE: self.close() exception

2002-03-27 Thread srinivas

hello,

thats not an error actually.
You are submitting a form and closing the window. So the webserver couldn't
complete ur request so the stack trace.

regards,
srinivas

-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 11:15 PM
To: Struts Group (E-mail)
Subject: self.close() exception


Hi,
I'm trying to close a window from a javascript function and getting this
error:

java.net.SocketException: socket closed (code=0)
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.io.IOException(java.lang.String)
java.net.SocketException(java.lang.String)
int java.net.SocketInputStream.socketRead(byte [], int, int,
java.net.SocketImpl, java.io.FileDescriptor)
int java.net.SocketInputStream.read(byte [], int, int)
int java.net.SocketInputStream.read()
java.lang.String java.io.DataInputStream.readLine()
void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
java.net.Socket)
void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
void java.lang.Thread.run()

The code is:
function setFilter() {
document.PipelineFilterForm.submit();
self.close();
}



Pls help.

Thnx,
Bhaskar

--
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: Accessing action object inside the form bean

2002-03-27 Thread srinivas

hello,

set the scope in the struts-config.xml for the action to have session.
   

then set the fields u want to save across requests in the form bean.
in this case new instance will not be created.

hope this helps.

regards,
srinivas
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:07 AM
To: Struts Group (E-mail)
Subject: Accessing action object inside the form bean


Hi,

I open a form, collect user input and on submit store it in the action class
(inside perform()) as
instance variables. Next time when the same form is opened, I want to
retrieve the values
stored in the action class. Since a new instance of the form bean is created
every time a form
is accessed, is there anyway to get the field values stored in the action
class from the bean
form?

Thanks,
Bhaskar

--
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: error # 302 on compilation

2002-03-25 Thread srinivas

thanks ben,

i am using jdk1.4.0 with jbuilder5.

regards,
srinivas.

-Original Message-
From: Ben Peter [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:42 PM
To: Struts Users Mailing List
Subject: Re: error # 302 on compilation


Hi,

what compiler are you using? This sounds like a jdk1.4-related issue (I had
these problems with JBuilder5). The class specs have changed from 1.3.1 to
1.4,
and some compilers won't allow to compile against classes that were compiled
to
other versions of the class spec than the current target jdk.

Cheers,
Ben

srinivas wrote:
> hello,
>
> i get this error when i compile my source file.
> What could be the reason? Should i get the source of struts and compile?
>
> Error #: 302 : cannot access class
org.apache.struts.taglib.html.ErrorsTag;
> no source found; must be compiled, because java.lang.Object.getClass
> referenced by class org.apache.struts.taglib.html.ErrorsTag has changed
>
> thanks,
> srinivas.
>
>
> --
> 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]>



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




RE: java.lang.VerifyError

2002-03-24 Thread srinivas

no i have them in packages, what i have noticed is that only jsp's which
have taglibs throw this error  and when i roll back to struts 1.0.1 every
thing seems to be ok.
thanks for ur reply,
srinivas.

-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 4:01 AM
To: [EMAIL PROTECTED]
Subject: Re: java.lang.VerifyError


do you have classes that are not in a package. Tomcat 4.0 will not allow
default packages.


>From: "srinivas" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: java.lang.VerifyError
>Date: Sun, 24 Mar 2002 22:50:15 +0200
>
>hello,
>
>did any body get this error. I downloaded the latest version of struts,
>compiled my source files. When i access the jsp's which were other wise
>working before throw this error.
>
>java.lang.VerifyError: (class: project/struts/form/TestForm, method:
>validate signature:
>(Lorg/apache/struts/action/ActionMapping;Ljavax/servlet/http/HttpServletReq
u
>est;)Lorg/apache/struts/action/ActionErrors;) Incompatible object argument
>for function call
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:120)
>   at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
>   at
>login._0002flogin_0002flogin_0002ejsplogin_jsp_0._jspService(_0002flogin_00
0
>2flogin_0002ejsplogin_jsp_0.java:92)
>   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.j
a
>va:130)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
a
>va:282)
>   at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>   at org.apache.tomcat.core.Handler.service(Handler.java:287)
>   at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>   at
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:8
0
>6)
>   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
>   at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Http
C
>onnectionHandler.java:213)
>   at
>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>   at
>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>   at java.lang.Thread.run(Thread.java:4
>
>thanks in advance,
>srinivas.
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>




_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


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




error # 302 on compilation

2002-03-24 Thread srinivas

hello,

i get this error when i compile my source file.
What could be the reason? Should i get the source of struts and compile?

Error #: 302 : cannot access class org.apache.struts.taglib.html.ErrorsTag;
no source found; must be compiled, because java.lang.Object.getClass
referenced by class org.apache.struts.taglib.html.ErrorsTag has changed

thanks,
srinivas.


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




java.lang.VerifyError

2002-03-24 Thread srinivas

hello,

did any body get this error. I downloaded the latest version of struts,
compiled my source files. When i access the jsp's which were other wise
working before throw this error.

java.lang.VerifyError: (class: project/struts/form/TestForm, method:
validate signature:
(Lorg/apache/struts/action/ActionMapping;Ljavax/servlet/http/HttpServletRequ
est;)Lorg/apache/struts/action/ActionErrors;) Incompatible object argument
for function call
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
at
login._0002flogin_0002flogin_0002ejsplogin_jsp_0._jspService(_0002flogin_000
2flogin_0002ejsplogin_jsp_0.java:92)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
6)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:4

thanks in advance,
srinivas.


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




RE: Struts tags to inside XSLT

2002-03-11 Thread srinivas

solved this issue may be got to think twice before posting

-Original Message-
From: srinivas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 2:48 AM
To: Struts Users Mailing List
Subject: Struts tags to inside XSLT


hi all,

I am in a kind of a situation where i have to use struts tags in XSLT.
The problem is as follows:

i have a form, the contents of which are partially generated by XSLT. I use
XSLT taglibs from jakarta.
After transformation to XML  i need to apply struts tags to generate the
HTML.
I dont know how to achieve this.

i can give an example of what i intend to do:
---
jsp
---
<%@ taglib uri="/WEB-INF/tlds/xsl.tld" prefix="xsltlib"%>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="strutshtml" %>


---

-
test.xsl
---

http://www.w3.org/1999/XSL/Transform";>











pls note that the actual XSLT i tried is huge, which is omited for brevity.

I get an error that the strutshtml name space is not defined, which i could
guess why but not sure how to solve this issue.

I am a bit confused the order in which the tags are evaluated in this case.

Any help is greatly appreciated.

thanks in advance,

regards,
srinivas



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




Struts tags to inside XSLT

2002-03-11 Thread srinivas

hi all,

I am in a kind of a situation where i have to use struts tags in XSLT.
The problem is as follows:

i have a form, the contents of which are partially generated by XSLT. I use
XSLT taglibs from jakarta.
After transformation to XML  i need to apply struts tags to generate the
HTML.
I dont know how to achieve this.

i can give an example of what i intend to do:
---
jsp
---
<%@ taglib uri="/WEB-INF/tlds/xsl.tld" prefix="xsltlib"%>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="strutshtml" %>


---

-
test.xsl
---

http://www.w3.org/1999/XSL/Transform";>











pls note that the actual XSLT i tried is huge, which is omited for brevity.

I get an error that the strutshtml name space is not defined, which i could
guess why but not sure how to solve this issue.

I am a bit confused the order in which the tags are evaluated in this case.

Any help is greatly appreciated.

thanks in advance,

regards,
srinivas



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




modal window to close based on validation

2002-03-10 Thread srinivas

hi all,

I tried to create a modal dialog, and I am faced with some problems.
The modal window submits a form and normally closes. I would like the
behavior of the modal window to be like this. When the user submit a form,
and if there are any validation errors, then they should be displayed in the
same modal window, other wise it should close.
I have a java script function to close the window. I need to call this
function when there are no errors. Should I use onload event or is there any
better solution for it.

another hurdle.. I would like to keep the size of the modal window's
constant, but the contents of the window is displayed in an inconsistent
size across browsers. Should I use browser font detection and stuff like
that to fix the size of window. Any suggestions are welcome.

thanks in advance,

regards,
srinivas.


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




Integrating Applications

2002-03-07 Thread Parimi Srinivas

Hi, 
Does struts provide any extensions to integrate two applications ?. Both
applications use struts framework.

Thanks,

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




Dynamic forwards

2002-03-07 Thread Parimi Srinivas

Hi all,
I am stuck up on how to achieve dynamic forwarding. Issue is in action
mappings of struts config file, a simple forward for an action appears as



But during my application flow, the page to display may end up
/directory3/somepage.jsp. Which directory to use to pick up somepage.jsp is
dynamic. I am planning to put three different forward elements in action as 





This is an existing application and we are trying to convert to struts. Is
there a better way to achieve this ?.

Thanks,


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




Design issue

2002-03-06 Thread Parimi Srinivas

Hi all,
I want to validate my design. 

One of our applications caters to 3 OEM's. Application has three business
functionalities and each business functionality has 4 to 5 screens on an
average. The only difference between OEM's is LOOK and FEEL of the
application. To achieve different LOOK and FEEL for OEM's, OEM names are
mapped to 3 different aliases ( OEM1, OEM2 and OEM3) of action servlet.
Mappings of OEM name and action servlet alias are stored in an xml mappings
file. When users belonging to a particular OEM access application for the
first time,  OEM name is retrieved depending up on the action servlet alias
and stored in a new session. Appropriate JSP's are processed depending up on
the OEM name stored in the session. 

There is no user authentication screen in the application. 

If a new OEM is added to the application, following steps are followed -
1. a new servlet alias is created
2. Create a mapping between OEM name and action servlet alias.
3. Create JSP pages for new OEM.

Any suggestions,




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




Transaction token documentation

2002-03-05 Thread Parimi Srinivas

a. Is there any documentation or write up avl on how transaction tokens are
programmed ?.
b. What is the use of generateToken method in Action class ?. 

Thanks,


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




RE: newbie question: is it ok to use struts selectively?

2002-03-01 Thread Sampige, Srinivas

Also I am interested in the maintenance aspect. What if the HTML developer
sends the Web App developer a revised version of the screen with additional
input fields? 
-Srinivas

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:53 PM
To: [EMAIL PROTECTED]
Subject: RE: newbie question: is it ok to use struts selectively?


yeah i understand the part that you have to type less and its simpler, but I
want to know how is the performance hit?
suppose I have a huge form with lots of input type, just to put something
simple as

 and its brothers and
sisters, is it worth using the tags? will it slow down the page loading?

Regards,
Rumpa Giri
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: newbie question: is it ok to use struts selectively?


You certainly can pick and choose which pieces you want to use.  You can use
the tag library without a thought of using the controller servlet.  However,
which would you rather write?



or



The tag library (in many cases) isn't used because it provides functionalty
you can't write youself, but because it makes it so much easier to write the
same things you can write yourself.

... at least that's what I gather.  Don't let me be the final word - I'm
just a lazy developer that likes cutting what I have to type in half =)

Other opinions?

Regards,

Eddie
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 4:09 PM
Subject: newbie question: is it ok to use struts selectively?


> Suppose I have a login page, with username and password and submit button.
> Is it ok to have something like the following?
> is it ok to use struts html tags only for the input type form but not for
> the others?
> if the output of the tags is same as what I have here, why should I be
> inclined to use, or is it a convention to use? or is it a personal choice?
>  type="mypackage.struts.login.LoginForm" focus="username">
> 
> 
> 
> 
> 
> Username: 
>  value="<%=request.getParameter("username")%>" size="20"
maxlength="60">
> 
> 
> Password: 
>  value="<%=request.getParameter("pwd")%>" size="20" maxlength="12">
> 
> 
>  
> 
> 
> 
> 
> Regards,
> Rumpa Giri
>


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




Sun JDK 1.4.0 final release

2002-02-16 Thread srinivas

hi all,

The final release of JDK 1.4.0 is now available

Sun JDK 1.4 download page:

http://java.sun.com/j2se/1.4/download.html

Summary of new JDK 1.4 features:

http://java.sun.com/j2se/1.4/docs/relnotes/features.html

Highlights:

SSL API: javax.net.ssl
JAXP API and XML parser
Logging API: java.util.logging
assert capability
java.nio - next generation I/O library
JAAS - authentication and authorization API

regards,
srinivas.

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




RE: nested iterate

2002-02-03 Thread srinivas

try using nested tags

example and code available at
http://www.keyboardmonkey.com/struts


 
 


-Original Message-
From: Philippe Hodapp / 1genia [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 4:56 PM
To: Struts Users Mailing List
Subject: nested iterate


I have some problems to use an iterate tag in an iterate tag.
I have tried to use the define tag but it don't work too.
I have the message : Cannot create iterator for this collection

Here's the code :

">
   
   

   
   
   




--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: how to use strus HTML tags when i have a collection of items to be displayed

2002-01-30 Thread srinivas

hi arron,

it worked. thank you very very much.

regards,
srinivas

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:12 AM
To: Struts Users Mailing List
Cc: srinivas
Subject: Re: how to use strus HTML tags when i have a collection of
items to be displayed


Did you download a new version of the nested extension?...

It was only added on the 23rd of January. I'm quite certain this is the
reason for this error.
It's trying to step back through the parent tag and tries to append an
empty property, hence the dot on the end.


Arron.

srinivas wrote:

>Hi Arron,
>
>I used the "./" and "this/" as the property name and i get an error:
>No getter method for property shares1[0].computer[1].options. of bean
>serviceForm
>
>now it tries to append a "." to the property.
>
>If necessary i can mail u all the source files.
>
>regards,
>srinivas
>
>-Original Message-
>From: Arron Bates [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 31, 2002 1:08 AM
>To: Struts Users Mailing List
>Cc: srinivas
>Subject: Re: how to use strus HTML tags when i have a collection of
>items to be displayed
>
>
>Srinivas,
>
>This has come up a little while ago and I've added to the nested
>extension to allow for it. The problem is, is that if you have other
>nested tags inside an iterate tag or similar, they will work on a
>property returned from that object from the list etc. What was needed
>was to access the object itself. This was just not possible in the
>original tags or otherwise.
>
>To allow this I've added the ability to access the current object from a
>parent. Using "./" or "this/" as the child tag's property, you will
>access the parent object itself. So if it's a string, you can write it
>out, make it an input field etc.
>
>For example...
>
>
>
>...will loop through an array of Strings and make text inputs for them.
>
>There is one specific detail to get this working properly. In your bean,
>you have to provide the more literal form of indexed setter property,
>rather than the collection form used for the getter.
>Example where I'm setting the value back to my ArrayList...
>
>public void setStringList(int index, String str) {
>myList.set(index, str);
>}
>
>
>My getter remains unchanged as the collection form...
>
>public ArrayList getStringList() {
>return myList;
>}
>
>This is all because the system which sets it wont be pulling out the
>collection, making the modifications, and then returning it altered. It
>will leave everything up to you. This is still good however.
>
>This functionality is in the nightly build from the 23rd of Jan, or you
>can download an updated jar from the site.
>http://www.keyboardmonkey.com/struts
>
>As a small disclaimer, the ArrayList getter shown above is only possible
>with a nightly build. Users of Struts 1.0/1.01 will need to return an
>Object array as in "arrayList.toArray()".
>
>Hope this does what you're after.
>
>
>Arron.
>
>
>srinivas wrote:
>
>>hi Arron,
>>
>>Thank you very much for the advice. It fits to our problem but i am faced
>>with another one.
>>
>>I d'ont no how to generate input fields(text or select) when the bean
>>return's an array of Strings.
>>I did not get the idea how i can iterate through the array of Strings and
>>generate an input field
>>with value equal to the contents of the String.
>>
>>i d'ont have control over the action beans as they are generated from XML
>>Schema. I use castor source generation to
>>generate a java class out of XML schema and then use it in ActionForm.
>>
>>Thank u once again.
>>
>>Srinivas
>>-Original Message-
>>From: Arron Bates [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, January 28, 2002 5:43 AM
>>To: Struts Users Mailing List
>>Subject: Re: how to use strus HTML tags when i have a collection of
>>items to be displayed
>>
>>
>>The nested extension.
>>
>>Go here to learn how...
>>http://www.keyboardmonkey.com/struts
>>
>>It's in the nightly build or you can pick up the library from the page
>>above. Will be in Struts 1.1
>>
>>
>>Arron.
>>
>
>
>--
>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]>
>
>



--
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: how to use strus HTML tags when i have a collection of items to be displayed

2002-01-30 Thread srinivas

Hi Arron,

I used the "./" and "this/" as the property name and i get an error:
No getter method for property shares1[0].computer[1].options. of bean
serviceForm

now it tries to append a "." to the property.

If necessary i can mail u all the source files.

regards,
srinivas

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 1:08 AM
To: Struts Users Mailing List
Cc: srinivas
Subject: Re: how to use strus HTML tags when i have a collection of
items to be displayed


Srinivas,

This has come up a little while ago and I've added to the nested
extension to allow for it. The problem is, is that if you have other
nested tags inside an iterate tag or similar, they will work on a
property returned from that object from the list etc. What was needed
was to access the object itself. This was just not possible in the
original tags or otherwise.

To allow this I've added the ability to access the current object from a
parent. Using "./" or "this/" as the child tag's property, you will
access the parent object itself. So if it's a string, you can write it
out, make it an input field etc.

For example...



...will loop through an array of Strings and make text inputs for them.

There is one specific detail to get this working properly. In your bean,
you have to provide the more literal form of indexed setter property,
rather than the collection form used for the getter.
Example where I'm setting the value back to my ArrayList...

public void setStringList(int index, String str) {
myList.set(index, str);
}


My getter remains unchanged as the collection form...

public ArrayList getStringList() {
return myList;
}

This is all because the system which sets it wont be pulling out the
collection, making the modifications, and then returning it altered. It
will leave everything up to you. This is still good however.

This functionality is in the nightly build from the 23rd of Jan, or you
can download an updated jar from the site.
http://www.keyboardmonkey.com/struts

As a small disclaimer, the ArrayList getter shown above is only possible
with a nightly build. Users of Struts 1.0/1.01 will need to return an
Object array as in "arrayList.toArray()".

Hope this does what you're after.


Arron.


srinivas wrote:

>hi Arron,
>
>Thank you very much for the advice. It fits to our problem but i am faced
>with another one.
>
>I d'ont no how to generate input fields(text or select) when the bean
>return's an array of Strings.
>I did not get the idea how i can iterate through the array of Strings and
>generate an input field
>with value equal to the contents of the String.
>
>i d'ont have control over the action beans as they are generated from XML
>Schema. I use castor source generation to
>generate a java class out of XML schema and then use it in ActionForm.
>
>Thank u once again.
>
>Srinivas
>-Original Message-
>From: Arron Bates [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 28, 2002 5:43 AM
>To: Struts Users Mailing List
>Subject: Re: how to use strus HTML tags when i have a collection of
>items to be displayed
>
>
>The nested extension.
>
>Go here to learn how...
>http://www.keyboardmonkey.com/struts
>
>It's in the nightly build or you can pick up the library from the page
>above. Will be in Struts 1.1
>
>
>Arron.
>


--
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: how to use strus HTML tags when i have a collection of items to be displayed

2002-01-30 Thread srinivas

hi Arron,

Thank you very much for the advice. It fits to our problem but i am faced
with another one.

I d'ont no how to generate input fields(text or select) when the bean
return's an array of Strings.
I did not get the idea how i can iterate through the array of Strings and
generate an input field
with value equal to the contents of the String.

i d'ont have control over the action beans as they are generated from XML
Schema. I use castor source generation to
generate a java class out of XML schema and then use it in ActionForm.

Thank u once again.

Srinivas
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 5:43 AM
To: Struts Users Mailing List
Subject: Re: how to use strus HTML tags when i have a collection of
items to be displayed


The nested extension.

Go here to learn how...
http://www.keyboardmonkey.com/struts

It's in the nightly build or you can pick up the library from the page
above. Will be in Struts 1.1


Arron.

srinivas vanapalli wrote:

>hi all,
>
>i have a collection (Vector) in a Form Bean. The items in the Vector are
all
>Beans of the same type.
>
>I have to display these items in the HTML. The problem is that i d'ont know
>how to display each item(bean) in JSP using strutshtml tag lib. I want the
>struts form to automatically fill the bean when the form is submitted.
>
>thank's in advance,
>
>regards,
>srinivas
>
>
>
>--
>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]>



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




how to use strus HTML tags when i have a collection of items to be displayed

2002-01-27 Thread srinivas vanapalli

hi all,

i have a collection (Vector) in a Form Bean. The items in the Vector are all
Beans of the same type.

I have to display these items in the HTML. The problem is that i d'ont know
how to display each item(bean) in JSP using strutshtml tag lib. I want the
struts form to automatically fill the bean when the form is submitted.

thank's in advance,

regards,
srinivas



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




query

2001-11-22 Thread sai srinivas

Hello,

Please help us identify a solution to the following requirement in STRUTS
perspective:

Passing form data from one .jsp to another without sharing a common bean.


Regards
Sai



winmail.dat
Description: application/ms-tnef

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


FW: Queryyy

2001-09-16 Thread sai srinivas



>  -Original Message-
> From:     sai srinivas [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, September 17, 2001 9:06 AM
> To:   [EMAIL PROTECTED]
> Subject:  Queryyy
> 
> Hi,
> 
>  Sorry to bear with me. I''ve just started implementing Struts.I'm in the
> environment Websphere 3.5 + FixedPack 4.0, and included jaxp.jar,
> parser.jar in lib.
>  
>  This is the part of ActivityLog. CAnyone pl. decipher and guide me to
> implement the struts appln.
> 
> 
> ÝÌ»ªª»ÌÝ  "    IBM  WebSphere   advanced 3.5.4 ptf40119.02
> -com.ibm.servlet.engine.webapp.ServletInstance   9aa2fd21 386 Default
> Server 7Uncaught service() exception thrown by servlet {0}: {1}
> %com.ibm.ejs.resources.seriousMessages   èïÆ$j       "jsp11"
> Zjavax.servlet.ServletException: Cannot retrieve ActionMappings under key
> "org.apache.struts.action.MAPPINGS"
>   at javax.servlet.ServletException.(ServletException.java:161)
>   at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
> mpl.java:392)
>   at _logon_jsp_0._jspService(_logon_jsp_0.java:281)
>   at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.
> java:396)
>   at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718)
>   at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManag
> er.java:626)
>   at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecy
> cleServlet.java:160)
>   at
> com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServ
> let.java:287)
>   at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecyc
> leServlet.java:105)
>   at
> com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:
> 360)
>   at
> com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletM
> anager.java:775)
>   at
> com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletMan
> ager.java:701)
>   at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
> (WebAppRequestDispatcher.java:478)
>   at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReque
> stDispatcher.java:234)
>   at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppReques
> tDispatcher.java:138)
>   at
> com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoke
> r.java:77)
>   at
> com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Cached
> Invocation.java:67)
>   at
> com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cachea
> bleInvocationContext.java:106)
>   at
> com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRe
> questProcessor.java:160)
>   at
> com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListen
> er.java:300)
>   at
> com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(
> SQEventListenerImp.java:230)
>   at
> com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEven
> tListenerImp.java:104)
>   at
> com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(S
> QEventSource.java:212)
>   at
> com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$Select
> Runnable.notifyService(SQWrapperEventSource.java:353)
>   at 
> 
> 
> 
> N.SaiSrinivas 
> Phone:   (022) 7611090,7611105,760 
> Ext:5006
> 
> PersonalID: [EMAIL PROTECTED]
> 
> 

 winmail.dat


Queryyy

2001-09-16 Thread sai srinivas

Hi,

 This is the part of ActivityLog. CAnyone pl. decipher and guide me to
implement the struts appln.


ÝÌ»ªª»ÌÝ  "    IBMWebSphere   advanced 3.5.4 ptf40119.02
-com.ibm.servlet.engine.webapp.ServletInstance   9aa2fd21 386 Default
Server 7Uncaught service() exception thrown by servlet {0}: {1}
%com.ibm.ejs.resources.seriousMessages   èïÆ$j       "jsp11"
Zjavax.servlet.ServletException: Cannot retrieve ActionMappings under key
"org.apache.struts.action.MAPPINGS"
at javax.servlet.ServletException.(ServletException.java:161)
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:392)
at _logon_jsp_0._jspService(_logon_jsp_0.java:281)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:396)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:626)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:36
0)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:775)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:701)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:478)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:234)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:138)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:77)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:160)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:212)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:353)
at 


Regards,
N.SaiSrinivas 
PCS Ltd
TTC
Navi Mumbai,

Phone: 7611090,7611105,760 
Ext:5006

PersonalID: [EMAIL PROTECTED]


N.SaiSrinivas 
PCS Ltd
TTC
Navi Mumbai,

Phone: 7611090,7611105,760 
Ext:5006

PersonalID: [EMAIL PROTECTED]



 winmail.dat


RE: Has anyone used KONA? and how diffierent is it from struts?

2001-07-10 Thread Nagulapalli, Srinivas


As far as I know, db-Kona is weblogic specific implementation instead of
JDBC.
It might have some performance benefits over JDBC but at the price of
portability.
I am not sure if db-Kona is totally different beast from Kona itself!
With regards
-Srini
-Original Message-
From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 1:30 PM
To: [EMAIL PROTECTED]
Subject: Has anyone used KONA? and how diffierent is it from struts?


Thanks



Does Struts serve best only HTML clients?

2001-07-09 Thread Nagulapalli, Srinivas




  Hi,
   
  Our 
  architecture is close to Model 2 architecture and we are using almost exactly 
  J2EE Blueprint(s)
  with 
  WebLogic 6.0. I am newbie to Struts and it looks like Struts would fit our 
  requirements. But we had
  a 
  concern that, Struts supports best, only HTML based clients. But our 
  application needs to
  interact with non-HTML clients also, with XML as 
  input and output. Also, is Struts pretty heavyweight 
  framework?
  I 
  want to ask you if what I said is indeed true and if anyone 
  has any insights as to the limitations/advantages of Struts, so we can make an 
  informed decision.
   
  Thanks for any input
  -Srini


  1   2   >