RE: forwarding to another action

2001-08-22 Thread Allamsetty, Venkata

from with in the perform method of an action class,
call mapping.forward('success'); 
define the forward tag for 'success' in struts_config.xml


-va

-Original Message-
From: Jan Fredrik Overaasen
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 7:29 AM
To: '[EMAIL PROTECTED]'
Subject: forwarding to another action


Hi 
I want to forward to another action class from an actiondispatcher, how can
I accomplish this?

Thanks in advance

Jan Fredrik Overaasen
Norway



RE: how to integrate javascript in struts?

2001-08-22 Thread Allamsetty, Venkata



simply 
write your javascript between  tags, as you would 
do in the case of a normal html page.
 
thanks
-va

  -Original Message-From: Metehan Selvi 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 22, 2001 2:03 
  AMTo: [EMAIL PROTECTED]Subject: how to 
  integrate javascript in struts?
  How to integrate javascript in struts without 
  writing any java code in jsp-pages?
   


RE: Using multiple ActionServlet's

2001-08-22 Thread Allamsetty, Venkata

Bulk of the work gets done in the perform method of an action class.
ActionServlet is nothing but the controller.
If your question is reg. use of multiple action classes one delegating a
task to the other, the answer is yes.

we just need to forward from one action to the other. 

hope this helps.

thanks
-va

-Original Message-
From: Narayan, Anand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 5:43 PM
To: '[EMAIL PROTECTED]'
Subject: Using multiple ActionServlet's


Is anyone using multiple action servlets for one application.
For example,  if we have a main Action Servlet which delegates to
other Action Servlets, each of which accomplish substantial amount of
functionality.

Any suggestions on the Pros and Cons of this architecture?

Thanks
Anand Narayan



___ 

Juniper Bank 
"Rated #1 in Customer Confidence" 
Gomez Inc., Summer 2001 Internet Credit Card Scorecard 
www.juniper.com 
___ 

This e-mail and any files transmitted with it may contain confidential
and/or proprietary information. It is intended solely for the use of the
individual or entity who is the intended recipient. Unauthorized use of this
information is prohibited. If you have received this in error, please
contact the sender by replying to this message and delete this material from
any system it may be on.



RE: radio buttons

2001-08-08 Thread Allamsetty, Venkata

use the same property name

example:

 5
Minutes
  
 10
Minutes
  
 15
Minutes


hope that helps

thanks

VA




-Original Message-
From: Rachel Warburton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 10:40 AM
To: '[EMAIL PROTECTED]'
Subject: radio buttons


using the strut tag library does any one no of a way of making two radio
buttons in the same group ie click one deselects the other one

thanks


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: Can another bean besides the FormBean be used inside a Form?

2001-06-14 Thread Allamsetty, Venkata

in the html code,


 

I populate providerList in the jsp code, using

  pageContext.setAttribute("providerList",
ssUtils.getProvidersForDropDown(sPracticeId));

and the method in ssUtils returns an ArrayList of beans each of which
contain a label and a value. 

hope that helps

-VA 

-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 11:24 AM
To: struts-user@jakarta. apache. org (E-mail)
Subject: Can another bean besides the FormBean be used inside a Form?


Hi,

I have a form  which has a SELECT type field. The value selected from the
Select options should set the corresponding field in the FormBean but the
options available in this Select field are in another bean in the session
scope. How do I  specify such a Select field using  &
 tags?

TIA

-Nimmi



RE: struts-config.xml question

2001-06-08 Thread Allamsetty, Venkata

you need not have the name attribute in the html:form tag. It can get it
from the struts_config file. Do you have setters and getters for all your
attributes in the actionform?

hope that helps.

VA

-Original Message-
From: Bill Clinton [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 3:43 PM
To: [EMAIL PROTECTED]
Subject: struts-config.xml question


Hello,
 I just am starting out with struts, and I have a question.  I 
started with this syntax in my test jsp:





and this in my struts-config.xml:



but I was getting this error:

javax.servlet.jsp.JspException: Must specify type attribute if name is 
specified

#

After searching this list's archives, I saw a reply to a similar 
question from Craig McClanahan that states:

 > If you specify name here, you must also specify type.
 >
 > If you change this to:
 >
 >  The tag will be smart enough
 > to figure out what form bean name you want, without
 > having to specify it both here and in struts-config.xml.
 >

so, to test, I specified the name in my jsp html:form tag so it looked 
like this:



and this worked.

#

But, I don't want to have to list the classnames in the JSPs, so I tried 
to follow craigs suggestion.  I changed the lines in the JSP to:

  

and tried this in my struts-config.xml:




   
 

but now I get this error:
javax.servlet.jsp.JspException: Cannot find ActionMappings or 
ActionFormBeans collection

I also searched on this error, but the messages I found did not seem to 
match my situation.

###

Since it works when I specify both the name and type in the html:form 
tag, I am starting to wonder if my struts-config.xml (in my WEB-INF dir) 
is being read.  Is it enough to put this file in the WEB-INF directory?

Also, when I had the name in my html:form tag and the type in the 
form-bean tag, it seemed obvious how these two things were linked (even 
thought this was not correct).

When I follow Craig's suggestion, I am unsure how "The tag will be smart 
enough to figure out what form bean name you want."  Does it use the JSP 
name to link to the "path" attribute of the action tag, and link the 
name attribute of the action tag to the name attribute of the form-bean tag?

Sorry about the length of this message, but I wanted to try to be as 
specific as possible about the problem.

Also, if anyone knows of any good documentation links, I am open to 
suggestions.  Other than the docs on the apache site, I have only found 
www.husted.com , which has lots of useful tips.  Any others out there?

Thanks, Bill



RE: struts not reading properties file

2001-04-19 Thread Allamsetty, Venkata

http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

thanks
Venkata

-Original Message-
From: Dinesh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 12:23 AM
To: [EMAIL PROTECTED]
Subject: RE: struts not reading properties file


Hello Everybody 
can you help me finding link that has JAVA coding
standards .i hope many of you might have gone through it.

D.C.



How to represent a table of select inputs in the ActionForm and in the corresponding HTML?

2001-04-18 Thread Allamsetty, Venkata

 
Is there a good example that I can use, to represent a table of select
inputs ?
I tried using a two dimensional array without much success.
 
thanks

Venkata Allamsetty 




RE: JspException

2001-02-10 Thread Allamsetty, Venkata


> Hi,
> 
> I am trying to get my first Struts application work. 
> I have created defaultTime.jsp which contains a text input for time,
> DefaultTimeForm , EditDefaultTimeAction and SaveDefaultTimeAction classes.
> Defined web.xml and struts-config.xml and deployed them appropriately.
> 
> But when I try loading it, I get Error 500.
> and the message is 
> 
> javax.servlet.jsp.JspException: No bean found under attribute key
> defaultTimeActionForm
> at
> org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.jav
> a:214)
> at
> org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)
> at
> org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTa
> gBase.java:218)
> at jsp_servlet._defaulttime._jspService(_defaulttime.java:85)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> 
If I try loading the editDefaultAction.do directly, I get the
follwing error.

javax.servlet.jsp.JspException: Exception accessing property action
for bean defaultTimeActionForm: java.lang.NoSuchMethodException: Unknown
property 'action'
at
org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:
234)
at
org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)
at
org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagB
ase.java:218)
at
jsp_servlet._defaulttime._jspService(_defaulttime.java:85)


Any hints or suggestions?

thanks

> Venkata Allamsetty
> 



JspException

2001-02-10 Thread Allamsetty, Venkata


Hi,

I am trying to get my first Struts application work. 
I have created defaultTime.jsp which contains a text input for time,
DefaultTimeForm , EditDefaultTimeAction and SaveDefaultTimeAction classes.
Defined web.xml and struts-config.xml and deployed them appropriately.

But when I try loading it, I get Error 500.
and the message is 


Venkata Allamsetty




RE: What is the use of ActionFormBean?

2001-02-06 Thread Allamsetty, Venkata

Here is some useful info that I have come across. 



list of resources on the Struts frame work



http://jakarta.apache.org/struts/userGuide/index.html

http://www.husted.com/about/struts/example-tour.html


Other Struts-Related Articles

  new! Components Library for building JSP views by Cedric Dumoulin
  - http://gauss.ficsgrp.com/cdm/index.html 
  new! Struts Framework Trailmaps by Bluestone -
http://gallery.bluestone.com/scripts/SaISAPI.dll/Gallery.class/demos/trailMa
ps/index.jsp 
  [0.5]  Strut Your Struff by Thor Kristmundsson -
http://www.javaworld.com/javaworld/jw-12-2000/jw-1201-struts.html 
  [0.5] Using the Struts Framework to Develop a Message Board by
Maneesh Sahu - 
  [access requires registration with informit.com first] - Click
Here 
  A MVC Framework from Kevin Duffy
  http://www.brainopolis.com/jsp/mvc/KDuffey_MVC.html 
  Apache Struts: A Web application framework by David Geary [source
code only] -
 
http://www.javareport.com/html/from_pages/view_recent_articles_jr.cfm?Articl
eID=2023  
  JSP templates by David Geary
  -
http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html 
 
http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb.html 
 
http://www.javaworld.com/javaworld/jw-09-2000/jw-0929-letters.html 
  Encapsulate reusable functionality in JSP by Simon Brown
  http://www.javaworld.com/javaworld/jw-08-2000/jw-0811-jsptags.html

  [ opinion ] Freeware: Is it really worth it? by Anil Hemrajani -
 
http://www.javaworld.com/javaworld/jw-11-2000/jw-1103-soapbox.html#resources

  The Problem with JSP by Jason Hunter -
http://www.servlets.com/soapbox/problems-jsp.html (or "Why we need Struts" -
ed.) 
  Template Resolution in XML/HTML by Anders Kristensen -
http://www-uk.hpl.hp.com/people/ak/doc/trix-tr.html 






Thanks Husted for the great job on documenting struts. 



-VA

-Original Message-
From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 2:12 PM
To: [EMAIL PROTECTED]
Subject: What is the use of ActionFormBean?


Hi! All,
Can somebody please provide me with some documentation on ActionFormBean 
& its typical usage.

Thanks in advance,

Cheers
Rajan



__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/



RE: Input field tag definitions...

2001-02-06 Thread Allamsetty, Venkata

See *jakarta-struts/web/documentation/tags.html* in your latest struts
download.


thanks
VA


-Original Message-
From: Firmin David [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 2:02 PM
To: '[EMAIL PROTECTED]'
Subject: Input field tag definitions...


Hi all. another Struts newcomer.
Looking through the documentation (specifically
http://jakarta/apache.org/struts/userGuide/building_view.html section 3.3.2)
I was interested to read the reference information on how struts defines
tags for html input fields.
No matter which input link I tried to access I got a 404 (the path it was
looking 
for was http://jakarta.apache.org/struts/userGuide/struts-html.html# [name
of input type])
Can anyone point me at a better link/source for the info I'm after?
thanks
rgds

Dave


The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
The Capital Markets Company.

http://www.capco.com
***



RE: Mapping

2001-02-05 Thread Allamsetty, Venkata

See *jakarta-struts/web/documentation/tags.html* in your latest struts
download.


thanks
VA



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 5:20 PM
To: [EMAIL PROTECTED]
Subject: RE: Mapping


Hi,

I am sorry if  I have mislead you in my previous email.

What I meant was we use the Struts tags instead of HTML tags. I want to know
if there is a document which maps the HTML tags with the corresponding
struts tags.

For example:



> -Original Message-
> From: Allamsetty, Venkata [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05, 2001 5:14 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Mapping
> 
> 
> Struts is not used in place of std html tags. It helps implement a web
> application using Model 2 Architecture. see usersguide at 
> http://jakarta.apache.org/struts
> 
> 
> thanks
> VA
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05, 2001 4:52 PM
> To: [EMAIL PROTECTED]
> Subject: Mapping
> 
> 
> Hi,
> 
> I know that the Struts tag library is used in place of the 
> standard HTML
> tags. Is there a document which maps the Struts tags with the 
> HTML tags? 
> Also, do all the HTML tags have a corresponding Struts tags?
> Are there places when the HTML tags would be more simpler to 
> use than the
> Struts tags. The reason I ask this is because I perceive that 
> the Struts
> tags are beneficial only if they are linked to a form bean.
> 
> Sharmila Pandith
> Software Engineer
> iXL Inc.
> 
> phone: 212-500-5180
> AIM: spandith
> Yahoo: spandith
> MSN: spandith
> 
> This message is intended only for the use of the Addressee 
> and may contain
> information that is PRIVILEGED and CONFIDENTIAL. If you are 
> not the intended
> recipient, dissemination of this communication is prohibited. 
> If you have
> received this communication in error, please erase all copies 
> of the message
> and its attachments and notify us immediately. 
> 



RE: Mapping

2001-02-05 Thread Allamsetty, Venkata

Struts is not used in place of std html tags. It helps implement a web
application using Model 2 Architecture. see usersguide at 
http://jakarta.apache.org/struts


thanks
VA

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: Mapping


Hi,

I know that the Struts tag library is used in place of the standard HTML
tags. Is there a document which maps the Struts tags with the HTML tags? 
Also, do all the HTML tags have a corresponding Struts tags?
Are there places when the HTML tags would be more simpler to use than the
Struts tags. The reason I ask this is because I perceive that the Struts
tags are beneficial only if they are linked to a form bean.

Sharmila Pandith
Software Engineer
iXL Inc.

phone: 212-500-5180
AIM: spandith
Yahoo: spandith
MSN: spandith

This message is intended only for the use of the Addressee and may contain
information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended
recipient, dissemination of this communication is prohibited. If you have
received this communication in error, please erase all copies of the message
and its attachments and notify us immediately.