Re: populating Drop down -pls help

2003-09-04 Thread Thomas Max
I use the html:options tag :

Just create a Collection (here gender of the Databaseentries (f,m) and 
pass as a bean to the page
with the form.





If you need more assistance have a look at :

http://www.reumann.net/do/struts/lesson3

Regards,
Thomas
On Thu, 4 Sep 2003 02:38:16 -0700 (PDT), Goldy J <[EMAIL PROTECTED]> 
wrote:

Hello,
I have a JSP in which there are number of dropdown along with text 
boxes. I am using struts tag lib for getting the value when I submit the 
form.
The problem is when I try to populate the dropdown in th JSP with the 
data that i get from the databse .
For example I have dropdown for gender with option M,F.Now when I select 
and submit it I am OK but when I query and get the value from DB It 
doesnt set to appropiate value but always with the deafult M. same for 
others dropdowns.
Iam using the following in my JSP



In formbean
String gender;
setGender{};
getGender{};
Any help will be highly appreciated Thanks in advance.



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Redisplaying of entered form fields

2003-09-04 Thread Andrew Hill
Firstly check that redirect is false in the forward to the view.
(If it is already false then thats not the problem and you should post some
more of your code and configs so we can try and see whats going wrong.)


-Original Message-
From: Rodney Paul [mailto:[EMAIL PROTECTED]
Sent: Friday, 5 September 2003 09:31
To: Struts Users Mailing List (E-mail)
Subject: Redisplaying of entered form fields


Hi All,

I have a problem redisplaying form fields a user enters within a html form.

I use the validate method to validate form entry fields through ActionForms.
and validate business logic in LookupDispatchAction classes.

Has anyone experienced this problem, and is there any solution to this
matter.

Cheers
Rodney


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



Re: struts-tags to jstl on resin

2003-09-04 Thread Richard Raquepo
In tomcat c:if & c:out, etc...  works.

but in resin c:out works but c:if doesn't work.

Im sure my URI is correct. Is this a bug in resin?

what seems to be the problem.

thanks.


many thanks,
Richard
- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 10:40 PM
Subject: Re: struts-tags to jstl on resin


> What does Tomcat do?  Print the tag code?  Throw an error?  Is your taglib
> URI correct?  Do other JSTL tags (like ) work?
>
> David
>
> --- Richard Raquepo <[EMAIL PROTECTED]> wrote:
> > hello everyone.
> >
> > i have been using struts tags and struts-el tags for sometime now.
> > my application works both on Resin and Tomcat.
> >
> > Now my boss told me to re-write my jsp to use JSTL instead.
> >
> > I was developing in a tomcat environment but here comes the problem...
> > When i move my application to tomcat, my /core tags doesn't get
> > executed.
> >
> > i can't use c:if test, but resin does not show any errors.
> >
> > has anyone experience the same errors.
> >
> > please help me...
> >
> > thanks.
> >
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> -
> 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]



[ANN] FreeMarker 2.3pre13 available

2003-09-04 Thread Jonathan Revusky
Greetings,

I'm making this announcement because I consider that it is of general 
interest to Struts users who are investigating other view technologies 
(i.e. alternatives to JSP).

A new preview release of FreeMarker 2.3 is available. Though it's a 
preview, at this point, FM 2.3 is really approaching its final state.

FreeMarker is a well known template engine written in 100% pure Java. It 
is used as a component in various web application frameworks, such as 
JPublish, Niggle, Open for Business, and Tammi. Also, FreeMarker can be 
configured for use as the view layer for model 2 web frameworks, of 
which Struts is the best known example. Here is a link to the manual 
page that explains how to configure FreeMarker for use in conjunction 
with Struts:

http://freemarker.org/docs/pgui_misc_servlet.html

With the 2.3 release cycle, FreeMarker continues to get better. 
FreeMarker 2.2 introduced clean support for JSP taglibs. One user raved 
that he was amazed that it was actually simpler and more straightforward 
to use JSP taglibs from FreeMarker templates than from JSP's! What this 
means, of course, is that Struts users can migrate from JSP->FM without 
losing any investment they may have in JSP taglibs (their own or from 
third parties.)

In FreeMarker 2.3, the new visit and recurse directives may well make it
easier to do recursive XSLT-style transformations in FreeMarker than 
with XSLT itself!

FM 2.3 also adds some other appealing new features, such as the ability
to use variable interpolations in string literals, and the ability to
define functions with return values in the template language.
In short, for those of you who are open to making your lives simpler by
finding more usable alternatives to better-known (and more widely-hyped)
technologies such as JSP and XSLT, FreeMarker really deserves some
serious attention.
For more information, visit http://freemarker.org/ (or
http://freemarker.sourceforge.net/)  or the FreeMarker project page at
http://sf.net/projects/freemarker .
Best Regards,

Jonathan Revusky



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


Redisplaying of entered form fields

2003-09-04 Thread Rodney Paul
Hi All,
 
I have a problem redisplaying form fields a user enters within a html form.
 
I use the validate method to validate form entry fields through ActionForms.
and validate business logic in LookupDispatchAction classes.
 
Has anyone experienced this problem, and is there any solution to this matter.
 
Cheers
Rodney


RE: populating Drop down -pls help

2003-09-04 Thread hari_s
How about if You try with this code in formbean


Public String getGender()
{
  return gender;
}
public void setGender(String gender)
{
  this.gender=gender;
}

-Original Message-
From: Goldy J [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 4:38 PM
To: [EMAIL PROTECTED]
Subject: populating Drop down -pls help

Hello,
I have a JSP in which there are number of dropdown along with text
boxes. I am using struts tag lib for getting the value when I submit the
form.
The problem is when I try to populate the dropdown in th JSP with the
data that i get from the databse . 
For example I have dropdown for gender with option M,F.Now when I select
and submit it I am OK but when I query and get the value from DB It
doesnt set to appropiate value but always with the deafult M. same for
others dropdowns.
Iam using the following in my JSP
 

 
In formbean 
String gender;
setGender{};
getGender{};
 
Any help will be highly appreciated Thanks in advance.
 
 


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



How to reference multiple form beans from one VelocityLayoutServlet set of page fragments?

2003-09-04 Thread Mike Kienenberger
I need to have two forms displayed on the same Velocity template page.   I 
can receive a reference to one form bean via the ActionMapping.  I've been 
unable to determine how to gain a reference to the second form bean.


Reference to how it could be done in pure jsp:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg22976.html

Reference to how multiple forms may not work with Velocity:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg06945.html

Contrary reference that it might be possible to reference "multiple forms" 
with $form in Velocity:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg05261.html


Probably unimportant details:

I'm using Struts 1.1, Tomcat 4.1.27, the Validator, and the 
VelocityLayoutServlet from Velocity-tools-1.0.  I've got my layout broken 
out into the generic standard:

layout
header
menu
body
footer

I've got a form that is generally visible in the menu section.
I have arbitrary forms that can appear in the body section, and these I plan 
to pass by the action mapping.
I'm using org.apache.struts.validator.DynaValidatorForm for all Form Beans.

Thanks!

-Mike


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



RE: form value not loaded...

2003-09-04 Thread Wendy Smoak
Pady wrote:
> Can anybody point out what I am doing wrong ?

> type="com.heroix.firenze.webui.actions.TabChangeAction"
>name="Resume" scope="session" >
>
> 

My Action mappings have an  tag inside them.  Not sure if it's
required, but I don't have the problem you're reporting, so you might try
that.  The struts-example webapp struts-config.xml is a place to look for an
example.

>  type="com.heroix.firenze.webui.forms.ResumeForm" scope="session" 
> method="get" action="/jsp/submit.do">

What are the 'name', 'type' and 'scope' attributes doing here?  See:
http://jakarta.apache.org/struts/userGuide/struts-html.html#form for the
attributes you can specify.

I think the 'action' attribute should match the path from one of the
ActionMappings.  I don't think the ".do" belongs in there although I'm not
sure if it's hurting anything.  (But why are the actions mapped underneath a
directory called jsp?)

A debugger like JSwat is VERY informative at this stage in learning Struts.
Install it, point it at the source code for both your webapp and Struts
itself, and prepare to have a bunch of "lightbulb moments".

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 


Re: basic struts question....

2003-09-04 Thread Mark Lowe
I'm stumped also..

Have you this in your action?

MyForm theForm = (MyForm) form;

or

DynaActionForm theForm = (DynaActionForm) form;

?

If so i'm really confused..



On Thursday, September 4, 2003, at 10:38 PM, Pady Srinivasan wrote:

Redirect is "false" by default. I also tried to put it in but it didn't
help. Also I have defined my html:form tag with scope as session as 
well as
the Action definition.

Thanks

-- pady
[EMAIL PROTECTED]
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 5:19 PM
To: Struts Users Mailing List
Subject: RE: basic struts question
jsp page, shouldn't the form now be reloaded with the values
entered ?
Yes if you forward and not redirect back to the page.
Make sure your redirect attribute of the forward element in
your action mapping is set to false. This, however, will
work regardless of the redirect attribute setting if your
form is in session scope.
robert

-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 4:36 PM
To: [EMAIL PROTECTED]
Subject: basic struts question


I am writing my first struts app. If I have a jsp page ( with a
html form )
that has a corresponding ActionForm and the Action points back to the 
same
jsp page, shouldn't the form now be reloaded with the values
entered ? I see
that in the Action.execute method, the ActionForm is loaded with all 
the
values entered in the form, but when it forwards to the same jsp, now 
the
form is empty. I am using the html tag library to build the form.
Should the
Action.execute method be setting the form values in the page context 
or
session context and then manually get the values back in the JSP page 
? I
couldn't find an example where

This workflow was happening:



x.jsp ( html form ) -->  Action --> x.jsp ( displays the form
values entered
again )




Any help is appreciated.







Thanks



-- pady

[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: Tabindex missing in generated code.

2003-09-04 Thread Mark Lowe
My guess its something else..

I'd send you a snippet, its usually my preferred way of explanation, 
but i just did what you're doing.. My guess its the version of struts 
or something. Just in case here's exactly what works. I even tried 
having links the same same tabindex number and it works. if its not I'm 
as stumped as you are.




Cheers Mark

On Wednesday, September 3, 2003, at 06:00 AM, deepaksawdekar wrote:

Thanks mark,
I tried it but its not working at my end. Even I tried to put sparrow, 
but in vain. I am using struts 1.1 , Can you please send me you code 
snippet.

Deepak ..

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 11:10 PM
To: Struts Users Mailing List
Subject: Re: Tabindex missing in  generated code.
After seeing your posting I gave it a go, and it worked..

My understanding is that its just an attribute thats passed straight
through nothing clever going on, it should even work if you don't stick
a number in there.
For example try tabindex="sparrow" and it should render okay. Although
any javascript might start dummy-spitting.
Thats probably a useful as a chocolate fire-guard. But I guess you
could check the version of struts you're using and that sort of thing.
Cheers Mark

On Tuesday, September 2, 2003, at 04:46 PM, deepaksawdekar wrote:

Hi,
I am using tabindex to set my tab sequence.
jsp as a code

.
.
Create new
.
.
Generated html code for the above jsp is

Create new

... missing tabindex

am i doing something wrong...



Deepak

-
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: basic struts question....

2003-09-04 Thread Pady Srinivasan

Redirect is "false" by default. I also tried to put it in but it didn't
help. Also I have defined my html:form tag with scope as session as well as
the Action definition.


Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 5:19 PM
To: Struts Users Mailing List
Subject: RE: basic struts question

> jsp page, shouldn't the form now be reloaded with the values
> entered ?
Yes if you forward and not redirect back to the page.
Make sure your redirect attribute of the forward element in
your action mapping is set to false. This, however, will
work regardless of the redirect attribute setting if your
form is in session scope.

robert

> -Original Message-
> From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 4:36 PM
> To: [EMAIL PROTECTED]
> Subject: basic struts question
>
>
>
>
> I am writing my first struts app. If I have a jsp page ( with a
> html form )
> that has a corresponding ActionForm and the Action points back to the same
> jsp page, shouldn't the form now be reloaded with the values
> entered ? I see
> that in the Action.execute method, the ActionForm is loaded with all the
> values entered in the form, but when it forwards to the same jsp, now the
> form is empty. I am using the html tag library to build the form.
> Should the
> Action.execute method be setting the form values in the page context or
> session context and then manually get the values back in the JSP page ? I
> couldn't find an example where
>
> This workflow was happening:
>
>
>
> x.jsp ( html form ) -->  Action --> x.jsp ( displays the form
> values entered
> again )
>
>
>
>
>
> Any help is appreciated.
>
>
>
>
>
>
>
> Thanks
>
>
>
> -- pady
>
> [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: form value not loaded...

2003-09-04 Thread David Friedman
Pady,

Your references are named "resumeInformation", but your action definition is
saving the form under the name "Resume".  Which are you using?  You might be
better off changing your action's name="Resume" to, perhaps,
name="resumeInformation".

Regards,
David

-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 5:33 PM
To: [EMAIL PROTECTED]
Subject: form value not loaded...



I have a simple form that is associated with an Action that points back to
the same form. When I submit the form with some values for the fields, when
redisplaying the form after the Action, the value are not loaded. I did a
bean:write on the fields before displaying the form and the values are
written correctly.


Can anybody point out what I am doing wrong ?


...
...





   
   




Name:
Address:
Date of Birth:



Experience ( list last job first ):












...
...


This is the struts-config.xml:

...
...
  
 
  

  
  

   

  
...
...




Thanks

-- pady
[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: WELCOME to struts-user@jakarta.apache.org

2003-09-04 Thread Das, Amar
Hi,

I am using the following image tag in my JSP page (map.jsp) inside a form.



When I invoke the JSP page in a browser, the src should be populated with an
URL for map image (http://../map1.jpg).  But it does not.  Please help.

The form bean and action class and their mapping are shown below.  

MapForm Class
=
import org.apache.struts.action.ActionForm ;
import com.esri.aims.mtier.io.ConnectionProxy;
import com.esri.aims.mtier.model.map.Map;

/**
 * @author adas
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class MapForm extends ActionForm {

  /* Map Source*/
  private String mapSource;
  private Map map;
  
  public MapForm(){
try {
ConnectionProxy mcp = new ConnectionProxy();
mcp.setConnectionType(ConnectionProxy.HTTP);
mcp.setService("nmfs");
mcp.setHost("geo");

map = new Map();
map.initMap( mcp, 0, false,false, false, false);
map.setBackground("220,165,63");
} catch (Exception e){
}
  }
  
  public String getMapSource() {
return (this.mapSource);
  }
  
  public void setMapSource() {
this.mapSource = map.getMapOutput().getURL();
  }
}

MapAction Class
==
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * @author adas
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class MapAction extends Action {
public ActionForward perform(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {

   MapForm f = (MapForm) form; // get the form bean
   
   // and take the last name value
   String mapSource = f.getMapSource();

   // Forward control to the specified success target
   return (mapping.findForward("success"));
 }

}

struts-config
=
 
 
 
  



  
   
  


  
  


  





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



form value not loaded...

2003-09-04 Thread Pady Srinivasan

I have a simple form that is associated with an Action that points back to
the same form. When I submit the form with some values for the fields, when
redisplaying the form after the Action, the value are not loaded. I did a
bean:write on the fields before displaying the form and the values are
written correctly.


Can anybody point out what I am doing wrong ?


...
...





   
   




Name:
Address:
Date of Birth:



Experience ( list last job first ):












...
...


This is the struts-config.xml:

...
...
  
 
  

  
  

   

  
...
...




Thanks
 
-- pady
[EMAIL PROTECTED]
 


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



RE: basic struts question....

2003-09-04 Thread Wendy Smoak
Pady wrote:
> I couldn't find an example where This workflow was happening:
> x.jsp ( html form ) -->  Action --> x.jsp ( displays the form 
> values entered again )

Putting your form in session scope will fix the immediate problem.

But have you spent some time examining the struts-example webapp?  See how
the URL's you click on never end in .jsp, but instead end in .do?

Your workflow should be:
Action -> jsp -> Action -> jsp

It's typical to "protect" the jsp's in a Struts webapp by putting them
underneath WEB-INF or adding a security constraint to prevent direct access
to them.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 


RE: basic struts question....

2003-09-04 Thread Robert Taylor
> jsp page, shouldn't the form now be reloaded with the values
> entered ?
Yes if you forward and not redirect back to the page.
Make sure your redirect attribute of the forward element in
your action mapping is set to false. This, however, will
work regardless of the redirect attribute setting if your
form is in session scope.

robert

> -Original Message-
> From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 4:36 PM
> To: [EMAIL PROTECTED]
> Subject: basic struts question
>
>
>
>
> I am writing my first struts app. If I have a jsp page ( with a
> html form )
> that has a corresponding ActionForm and the Action points back to the same
> jsp page, shouldn't the form now be reloaded with the values
> entered ? I see
> that in the Action.execute method, the ActionForm is loaded with all the
> values entered in the form, but when it forwards to the same jsp, now the
> form is empty. I am using the html tag library to build the form.
> Should the
> Action.execute method be setting the form values in the page context or
> session context and then manually get the values back in the JSP page ? I
> couldn't find an example where
>
> This workflow was happening:
>
>
>
> x.jsp ( html form ) -->  Action --> x.jsp ( displays the form
> values entered
> again )
>
>
>
>
>
> Any help is appreciated.
>
>
>
>
>
>
>
> Thanks
>
>
>
> -- pady
>
> [EMAIL PROTECTED]
>
>
>
>
>
>


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



Syntax for accessing an object nested in a List of Lists

2003-09-04 Thread Robert Taylor
I've run into some trouble accessing a nested object in my form.
The object "lives" in a List of Lists type of structure.

I've been using a syntax like the following assuming my List form
property is named 'list'.

list[index].[index].productId

This must be wrong because I get the following exception:

No getter method available for property list[0].[0].productId for bean under
name org.apache.struts.taglib.html.BEAN'

I tried the following just to make sure it could find the 'first level'.

list[index]

This doesn't cause any exceptions, so I must have the syntax
wrong for accessing the 'second level' of the structure.


Any help would be appreciated?

robert







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



Re: [ANNOUNCE] Visual Tags for Struts Dreamweaver Extension Released

2003-09-04 Thread Forest Arnold
No, it only integrates the six Struts 1.1 tag libraries with Dreamweaver.

fwa

"Vic Cekvenich" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does this also support JSTL?
> .V
>
> Forest Arnold wrote:
> > FWA Software, Inc, has released Visual Tags for Struts, a Dreamweaver
> > extension that fully integrates the Struts 1.1 custom tags with
Dreamweaver
> > MX.
> >
> > Two versions of Visual Tags for Struts are available: a Standard Edition
and
> > a Designer Edition. Both editions provide the following standard
Dreamweaver
> > features for each of the Struts tags: user reference pages, tag dialog
> > editors, menus, insertbars, and enhanced "live data view" display. Both
> > editions support Dreamweaver's "code view" for text-based editing of web
> > pages and "live data view" for visualization of pages as returned from
the
> > server. The Designer Edition also provides Dreamweaver property
inspectors
> > and visual tag representations for the Struts tags to provide "wysiwig"
> > editing of JSP pages containing the tags in Dreamweaver's "design view".
> >
> > Additional information, screenshots, and downloads are available at FWA
> > Software's web site at http://www.fwasi.com.
> >
> > Forest Arnold
> >
> > e-mail: [EMAIL PROTECTED]
>
> -- 
> Vic Cekvenich,
> Struts Instructor,
> 1-800-917-JAVA
>
> Advanced Struts Training, mentoring and
> project recovery in North East.
> Struts conversion and  fixed bid development.




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



Re: Validator cannot find message key

2003-09-04 Thread Koni Roth
Looks good to me. If you are properly closing the  and the 
 I can not see any problem, sorry.
Koni

Yuan, Saul (TOR-ML) wrote:
Here is what's in the validation.xml file:













...


and in the application resources file:

newmessage.label.messageName=Message Name
newmessage.label.zone=Distribution Zone
newmessage.label.audience=Target Audience
...




-Original Message-
From: Koni Roth [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 3:56 PM
To: Struts Users Mailing List
Subject: Re: Validator cannot find message key




Paste the faulty part of your validation.xml file maybe we can see
some

strange things. I had a similar problem and it was only an error in
writing...
Yuan, Saul (TOR-ML) wrote:

Hi,



I am using Struts Validator for validating a multi page form, some
how

the Validator cannot find the messages defined in the application
resources. I got the validation error messages like: null is
required.

I've defined arg0 in the validation.xml file, and the key of arg0
points

to a key in the application resource file. I verified that the
message

can be found through , but why not by the validator?
Any

ideas what the problem could be?





Thanks,

Saul




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


basic struts question....

2003-09-04 Thread Pady Srinivasan
 

I am writing my first struts app. If I have a jsp page ( with a html form )
that has a corresponding ActionForm and the Action points back to the same
jsp page, shouldn't the form now be reloaded with the values entered ? I see
that in the Action.execute method, the ActionForm is loaded with all the
values entered in the form, but when it forwards to the same jsp, now the
form is empty. I am using the html tag library to build the form. Should the
Action.execute method be setting the form values in the page context or
session context and then manually get the values back in the JSP page ? I
couldn't find an example where 

This workflow was happening:

 

x.jsp ( html form ) -->  Action --> x.jsp ( displays the form values entered
again )

 

 

Any help is appreciated.

 

 

 

Thanks

 

-- pady

[EMAIL PROTECTED]

 

 



Any progress/interest in a (WebObjects-like) "page state cache" Action for security? [WAS: Verifying integrity of URLs]

2003-09-04 Thread Mike Kienenberger
[This is a repost from Sept 2nd that doesn't appear to have made it to the 
list.]

Ross Sargant <[EMAIL PROTECTED]> wrote:
> What is the best way in general to ensure that the user is not playing 
> around with url parameters (in this example by manipulating the id
> parameter) to get at things they shouldn't. Assume for the moment that
> the RDBMS cannot help you solve the problem.I don't really see how
> Roles help here because my understanding of Roles is that they only
> enable and restrict actions.

Funny you should ask.  I was just going to propose a "page state cache" 
Action type and see if anyone had either started on such a control or was 
interested in working on such a control.

I've just come into the Struts 1.1 environment from WebObjects 5.0.  Reading 

through "Struts in Action" (which, by the way, seemed to be the best Struts 
book out there that approached Struts in a professional 
"what-you-need-to-know-to-get-it-done" fashion), I noticed the following 
security concerns:


1) All struts pages have "random-access" accessibility.   If you can guess 
the url, you can try to go there.

2) All request-scope attributes are passed back to the client between 
requests and are subject to viewing and alteration.

3) Any nested bean property on an action form can be passed a value from an 
HTTP request (the "Nesting Exploit"). [not relevent, but included for 
completeness]


WebObjects deals with 1) and 2) by using a session-id-based page state 
cache.  For example,

http://your-application-base-url/oy4qoV92cXabNbMAgBJfJg/0.3

For "0.3", the "3" represents which action got them here (which form or 
link).  The "0" represents how many times this page state was reloaded from 
the calling page state.

The "oy4qoV92cXabNbMAgBJfJg" encodes the current session and the current 
page state in a non-derivable fashion.

Each session has a page state cache which can store an arbitrary number of 
pages (even multiple copies of the same page with different states).  Each 
page in the cache remembers all request-scope attributes.  

Pros:
- You never pass request-scope attributes to the client unless you want to 
provide them to the client.
- Users can be blocked from randomly-accessing your URLs.

Cons:
- Pages can't be bookmarked without appending additional "state" to the end 

of your encoded url.
- Page caches require more memory
- Pages that are removed from the cache become inaccessible -- There's a 

limit to how far you can backtrack.


Example:

I have an application with Customers and Accounts.   Each Customer can have 
1 or more Accounts.  Once a customer has logged in, the Customer attribute 
doesn't change (which makes it a good session attribute).   However, the 
current Account can change each request.  If the current Account is stored 
in the session, the customer cannot backtrack properly.   If the Account is 
stored in the URL, each URL action-invoker (forms/links) has to include it, 
and the customer may choose to alter the value of account.

Worse, I may have a business requirement to treat some customers unfavorably 

at times.  It doesn't come across tactfully when your customers start seeing 

that they're in the http://application/page?unimportantCustomer=true 
catagory.

Maybe it's not unfavorably so much as political.   Maybe I've got both Coke 
and Pepsi as customers and they don't know it.   Having 
"?customer_type=coke" is probably going to be a dead giveaway.   Having 
"?z=2" is only helpful until they modify the url to be "?z=1" manually.

These are all contrived examples, and there are always other ways of doing 
things, but a "page state cache" can one valid way of handling it that 
reduces what data a client browser can access.


For more information, you can read section 4 at the following URL as well as 

continuing to section 5.

http://developer.apple.com/documentation/WebObjects/Web_Applications/BacktrackingAndCache/chapter_6_section_4.html


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



Re: Is there a way to disable the browser's Back buttonwithoutsending an http request?

2003-09-04 Thread Mike Kienenberger
Jing Zhou <[EMAIL PROTECTED]> wrote:
> When a web application is interrupted by the Back button, if anyone could
> remove the message like "Don't try to backtrack -- we don't allow/support
> it"
> with a generic algorithm that allows the application flow to continue from
> where it is interrupted, the algorithm is going to be welcomed, regardless
> the
> algorithm is server logic or client logic.
> 
> Maybe WebObjects could do it or some other frameworks?

Yes, WebObjects has a configurable strategy for handling this.

I posted a message about this on Sept 2nd, but it somehow never made it to 
the list as far as I can tell.

It actually talks about the topic from a different viewpoint than 
backtracking, but similar strategies

I'll have to find it and repost it.

Here's a relevent link to WebObjects and backtracking:

http://developer.apple.com/documentation/WebObjects/Web_Applications/BacktrackingAndCache/chapter_6_section_5.html

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



FormFile object keeping ActionForm from serializing

2003-09-04 Thread Steve Apeero
I have a Action Form that contains a FormFile object that holds the uploaded 
file for an image.
When the container trys to serialize my form an NotSerializableException is 
being thrown.

I have looked at the source code and found the FormFile's baseObject 
DiskFile does not implement the serializable interface, is there a special 
reason it does not?

I searched the archives and have not found a solution to this.

I have a couple of ideas for handling this:
1.) I could make the FormFile fields in the form transient excluding them 
from the serialization process
this has some obvious problems of not serializing the FormFileObjects.

2.) Extend the DiskFile Object to extend the Serializable inteface. This 
seems like more work than
should need to be done.

My questions are:
Has any one had to do either of the ideas that I have suggested?
What are the problems associated with each of the solutions beyond the 
obvious stated above?
Does any one have any other ideas that differ from the above.

Your Ideas are very much appreciated, Than you in advance.

Stephan

_
Try MSN Messenger 6.0 with integrated webcam functionality! 
http://www.msnmessenger-download.com/tracking/reach_webcam

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


How to disable a particular checkbox in html:multibox

2003-09-04 Thread Shankar Ranganathan

Hi All,
How can I disable a particular checkbox based on a value in the
selected items. Here is my code.






   
  
   

  
  
   
  



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



RE: How to forward back to including page

2003-09-04 Thread Siggelkow, Bill
FYI -- I figured out what seems to be a decent solution to my problem.  Basically, I 
included two
hidden fields in my login form (that is part of the included page) as follows (I am 
using struts-el)-




Then in my action that processes the login form I do the following:

public ActionForward execute(...
{
  // check credentials ...

  String url = ... /// get the originalUrl from the dyna form
  String query = ... /// get the originalQuery from the dyna form

  StringBuffer redirectUrl = new StringBuffer(url);
  if (query != null && !"".equals(query)) redirectUrl.append('?').append(query);

  response.sendRedirect(redirectUrl);
  return null;
}


-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 9:13 AM
To: 'Struts Users Mailing List'
Subject: RE: How to forward back to including page


Well, the problem is that I am including this fragment in *all* of my pages.  (The 
form allows the user
to login -- otherwise, the user is a "guest").
Basically, I want the "forward" of the action that processes the form to not be 
"hard-coded"
to a specific path but instead to the page that included it (actually to be more 
precise from the current URL).
Here is a visualization of what I want to do:


   importedForm.jsp --submit--> login.do 
--redirect-->ActionA.do
|
ActionA.do --forwards--> PageA.jsp


ActionB.do --forwards--> PageB.jsp
|
  importedForm.jsp --submit--> login.do --redirect-->ActionB.do


-
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: [ANNOUNCE] Visual Tags for Struts Dreamweaver Extension Released

2003-09-04 Thread Vic Cekvenich
Does this also support JSTL?
.V
Forest Arnold wrote:
FWA Software, Inc, has released Visual Tags for Struts, a Dreamweaver
extension that fully integrates the Struts 1.1 custom tags with Dreamweaver
MX.
Two versions of Visual Tags for Struts are available: a Standard Edition and
a Designer Edition. Both editions provide the following standard Dreamweaver
features for each of the Struts tags: user reference pages, tag dialog
editors, menus, insertbars, and enhanced "live data view" display. Both
editions support Dreamweaver's "code view" for text-based editing of web
pages and "live data view" for visualization of pages as returned from the
server. The Designer Edition also provides Dreamweaver property inspectors
and visual tag representations for the Struts tags to provide "wysiwig"
editing of JSP pages containing the tags in Dreamweaver's "design view".
Additional information, screenshots, and downloads are available at FWA
Software's web site at http://www.fwasi.com.
Forest Arnold

e-mail: [EMAIL PROTECTED]
--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training, mentoring and 
project recovery in North East.
Struts conversion and  fixed bid development.



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


RE: Validator cannot find message key

2003-09-04 Thread Yuan, Saul (TOR-ML)
Here is what's in the validation.xml file:













...



and in the application resources file:

newmessage.label.messageName=Message Name
newmessage.label.zone=Distribution Zone
newmessage.label.audience=Target Audience
...




> -Original Message-
> From: Koni Roth [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 3:56 PM
> To: Struts Users Mailing List
> Subject: Re: Validator cannot find message key
> 
> 
> 
> 
> 
> Paste the faulty part of your validation.xml file maybe we can see
some
> strange things. I had a similar problem and it was only an error in
> writing...
> 
> Yuan, Saul (TOR-ML) wrote:
> > Hi,
> >
> >
> >
> > I am using Struts Validator for validating a multi page form, some
how
> > the Validator cannot find the messages defined in the application
> > resources. I got the validation error messages like: null is
required.
> > I've defined arg0 in the validation.xml file, and the key of arg0
points
> > to a key in the application resource file. I verified that the
message
> > can be found through , but why not by the validator?
Any
> > ideas what the problem could be?
> >
> >
> >
> >
> >
> > Thanks,
> >
> > Saul
> >
> >
> 
> 
> -
> 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: Validator cannot find message key

2003-09-04 Thread Koni Roth
Paste the faulty part of your validation.xml file maybe we can see some 
strange things. I had a similar problem and it was only an error in 
writing...

Yuan, Saul (TOR-ML) wrote:
Hi,

 

I am using Struts Validator for validating a multi page form, some how
the Validator cannot find the messages defined in the application
resources. I got the validation error messages like: null is required.
I've defined arg0 in the validation.xml file, and the key of arg0 points
to a key in the application resource file. I verified that the message
can be found through , but why not by the validator? Any
ideas what the problem could be?
 

 

Thanks,

Saul




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


[OT] Test

2003-09-04 Thread Steve Apeero
Sorry testing, I have not been able to connect

Stephan

_
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es

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


Re: lists & c:forEach & struts-el html:link

2003-09-04 Thread Adam Hardy
OK, taglibs question forwhich there is a different list, on which you 
would have got an answer hours ago, but anyway here goes:

<%=Constants4Lists.LINK_LIST %>

   
 
   
 
   
 
   

Constants4Lists is a class which has string constants to use for putting 
objects into request or session.  puts the string from its body 
into the var linkListKey. The EL in the  items attribute uses 
this to locate the list. Hey presto, you're done!

Adam

On 09/04/2003 04:51 PM Andy Richards wrote:
hi

I use RowSetDynaClass to get my results from a db then i add these rows to a 
List via  getRows(). The list is then returned to my jsp page which is using 
jstl and struts-el. I would like to use c:forEach to iterate over the list 
and print out the variables. Within the loop i would like to use struts-el 
html:link as follows...



Does anyone know if what i am trying to do is possible as i keep getting 
errors??

I not sure how to correctly pass my list to c:forEach. any ideas

Thanks

Andy

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

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to display an active GIF image after page submit

2003-09-04 Thread Adam Hardy
Since the file upload is part of the request that the browser sends to 
the server, I don't think the server can start the response until the 
request is finished, and even then it is also probably browser-dependent 
whether the browser would do anything with a response to a request that 
it was still sending.

However I have seen what you are specifying. At eBay when you upload 
pictures. I think you get a pop-up window that flashes 'wait' or 
something. So I suspect you would have to use a javascript solution, and 
possibly via a second browser window. Check out how eBay do it. But 
don't tell them you're looking, they'll probably try to patent it. ;)

Adam

On 09/04/2003 05:13 PM [EMAIL PROTECTED] wrote:
This is a newbee question, sorry. I searched the archives but couldn't find
an answer.
Use case
User enters data on a form, selects a file to upload to the server and
clicks the Submit button.
While the file is uploading and the data is stored to the database display
an image (gif) until the submission is completed and the 'File uploaded
successfully page' is displayed.
How using struts can I display an active GIF on the browser while the file
is uploading?
The gif can be on the same page or on a new window as long as I can close
the new window when the submission completes.
Any help would be appreciated.

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

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Is there a way to disable the browser's Back buttonwithoutsending an http request?

2003-09-04 Thread Jing Zhou
What you described is today's known practice. If you check
Struts source codes, you may find the token facility in Struts
may solve the problems you mentioned as backtracking. I buy it
with a little concern if we could make it as solid as your
Sony VCR :-)

> Actually, it does.  I suspect that the Sony BeepGenerator Action performs
a
> ForwardAction to PlayNextFrame Action :-)

When a web application is interrupted by the Back button, if anyone could
remove the message like "Don't try to backtrack -- we don't allow/support
it"
with a generic algorithm that allows the application flow to continue from
where it is interrupted, the algorithm is going to be welcomed, regardless
the
algorithm is server logic or client logic.

Maybe WebObjects could do it or some other frameworks?

Jing
Netspread Carrier
http://www.netspread.com




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



Re: Is there a way to disable the browser's Back button withoutsending an http request?

2003-09-04 Thread Adam Hardy
>>Jing Zhou <[EMAIL PROTECTED]> wrote:
> A similar question about your web application:
> Assuming all pages are set to no-cached,
> does it allow end users to continue the application flow after
> the "Page has Expired ..." feedback?
What do the users do when they get a 'Page Expired' notice? They either 
go back another page (& presumably get the same thing again) or they go 
forward to where they came from (OK, no problem) or they click on 
bookmark to get back to the start. What do you find problematic?

> Mike Kienenberger wrote:
In my opinion (in the short period of time I've been using Struts), 
backtracking strategy management isn't easily accomplished in Struts.  In 
WebObjects, there's a page-state-caching mechanism to deal with this kind of 
problem, and I suspect before I get too far along, I'll end up porting it 
over in some form to get my production application working under Struts.

I still don't understand what is bugging you guys about backtracking

I just stop it dead with transaction tokens, if for some reason it isn't 
killed by the 'page expired' technique.

On 09/04/2003 05:17 PM Andrew Hill wrote:
Hehe, all I can say is that in this regard my web browser (IE) is about as
succesful as a three legged dog with a broken foot trying to cross the Pan
Island Expressway in rush hour
was that the one you ran over last night Andrew?
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [OT] Taglibs c:forEach question

2003-09-04 Thread Slattery, Tim - BLS
> I need to get the size of a list through which I'm iterating 
> via  before the last iteration. While I could add 
> a property to my form bean, I wonder if there's a way to 
> access this from the loop status. From what I've read, the 
> varStatus attribute of the  tag exposes an 
> instance of LoopStatus, but I can't find any docs on the 
> LoopStatus class.

The properties of the status object are index, count, begin, end, first,
last, step, and current. None of them will tell you the size of the array
being stepped through.

I think the best you can do is to use a   tag to retrieve the size
property of the collection.

--
Tim Slattery
[EMAIL PROTECTED]


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



[ANNOUNCE] Visual Tags for Struts Dreamweaver Extension Released

2003-09-04 Thread Forest Arnold
FWA Software, Inc, has released Visual Tags for Struts, a Dreamweaver
extension that fully integrates the Struts 1.1 custom tags with Dreamweaver
MX.

Two versions of Visual Tags for Struts are available: a Standard Edition and
a Designer Edition. Both editions provide the following standard Dreamweaver
features for each of the Struts tags: user reference pages, tag dialog
editors, menus, insertbars, and enhanced "live data view" display. Both
editions support Dreamweaver's "code view" for text-based editing of web
pages and "live data view" for visualization of pages as returned from the
server. The Designer Edition also provides Dreamweaver property inspectors
and visual tag representations for the Struts tags to provide "wysiwig"
editing of JSP pages containing the tags in Dreamweaver's "design view".

Additional information, screenshots, and downloads are available at FWA
Software's web site at http://www.fwasi.com.

Forest Arnold

e-mail: [EMAIL PROTECTED]




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



[OT] Taglibs c:forEach question

2003-09-04 Thread David Chelimsky
I posted this on the taglibs list and haven't heard back yet - thought I'd
try here.

I need to get the size of a list through which I'm iterating via 
before the last iteration. While I could add a property to my form bean, I
wonder if there's a way to access this from the loop status. From what I've
read, the varStatus attribute of the  tag exposes
an instance of LoopStatus, but I can't find any docs on the LoopStatus
class.

I'm guessing that since  exposes an Iterator, not a List, that
this is likely not supported, but I figured it couldn't hurt to ask.

Thanks in advance for your advice.

David


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



Re: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Robert Leland
Greg Amaroso wrote:

I currently have Struts 1.1. Is the checkbox/radio update available in the
most current nightly build?
 

Yes. Even though it contains a commons-validator dated from August 16 th.

Also, should the form-property type be "boolean" or "java.lang.Boolean"
(case-sensitive of course)?
Thanks.


 

From: "Mathew, Manoj" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Date: Thu, 4 Sep 2003 08:48:19 -0500
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Struts form validation of radio buttons and checkboxes
YES YOU R RIGHT. WHEN THE CHECK BOX IS NOT CHECKED, THE FORM WILL NOT EVEN
HAVE THAT ELEMENT PRESENT. THIS IS AN ERROR IN STRUTS. IN OUR APPLICATION WE
WROTE A CODE WHICH CHECK FOR THIS ELEMENT AN IT IS IS NOT THERE THEN MADE IT
"FALSE"
ALSO MAKE SURE YOU HAVE isCheckbox():return boolean  instead if
getCheckbox():return String  in your action form.
-Original Message-
From: Greg Amaroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 7:48 AM
To: Struts Users Mailing List
Subject: Re: Struts form validation of radio buttons and checkboxes
Thanks for the response, but I don't think the problem lies with the actual
validation that's happening.
I suspect that when a user submits the form page without a checkbox/radio
button checked, a blank variable is never sent to the form bean (i.e
http://www.url.com/servlet.do?checkboxvar=), it just doesn't send anything.
The form bean then sees it as as a nonexistent variable and returns a trace
stack error. Any other ideas?
I will however update my struts package.


   

From: Robert Leland <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Date: Wed, 03 Sep 2003 22:09:14 -0400
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Struts form validation of radio buttons and checkboxes
Greg Amaroso wrote:

 

I'm having trouble with the struts form validation framework when it comes
to radio buttons and checkboxes. For some reason, I can validate any other
type of field, but not radios/checkboxes. Here's where I seem to be having
trouble: 

   

Try a --nightly-- build of struts. I believe it has enhancements in
commons-validator to validate
radio controls. you can tell for sure by looking at the validator-rules.xml.
In there you'll see itels like :
 function validateRequired(form) {
   
//Stuff deleted.
   
 if (field.type == 'text' ||
 //stuff deleted
 field.type == 'radio' ||
 field.type == 'password') {

So this says that for the 'required' rule radio is supported.

Do the same for integer, byte, etc to see if 'radio' is supported.

 

In the struts-config.xml file, should the form-property type be set to
java.lang.String or java.lang.Boolean?
In the page with the form, does it look right to create the radio buttons
like this:





Are there any other tricks to doing this that differs from validating
standard text boxes, textareas, etc.?
Thank in advance.

Greg Amaroso



   



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


Re: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Robert Leland
Mathew, Manoj wrote:

YES YOU R RIGHT. WHEN THE CHECK BOX IS NOT CHECKED, THE FORM WILL NOT EVEN HAVE THAT ELEMENT PRESENT. THIS IS AN ERROR IN STRUTS. 

Did you file a Bugzilla bug report ? If not could you file a Bugilla 
report, attaching a detailed description and/or
test case is the best way to get this fixed.

Thanks

IN OUR APPLICATION WE WROTE A CODE WHICH CHECK FOR THIS ELEMENT AN IT IS IS NOT THERE THEN MADE IT "FALSE"

ALSO MAKE SURE YOU HAVE isCheckbox():return boolean  instead if getCheckbox():return String  in your action form.

-Original Message-
From: Greg Amaroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 7:48 AM
To: Struts Users Mailing List
Subject: Re: Struts form validation of radio buttons and checkboxes
Thanks for the response, but I don't think the problem lies with the actual
validation that's happening.
I suspect that when a user submits the form page without a checkbox/radio
button checked, a blank variable is never sent to the form bean (i.e
http://www.url.com/servlet.do?checkboxvar=), it just doesn't send anything.
The form bean then sees it as as a nonexistent variable and returns a trace
stack error. Any other ideas?
I will however update my struts package.


 

From: Robert Leland <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Date: Wed, 03 Sep 2003 22:09:14 -0400
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Struts form validation of radio buttons and checkboxes
Greg Amaroso wrote:

   

I'm having trouble with the struts form validation framework when it comes
to radio buttons and checkboxes. For some reason, I can validate any other
type of field, but not radios/checkboxes. Here's where I seem to be having
trouble: 

 

Try a --nightly-- build of struts. I believe it has enhancements in
commons-validator to validate
radio controls. you can tell for sure by looking at the validator-rules.xml.
In there you'll see itels like :
 function validateRequired(form) {
   
//Stuff deleted.

 if (field.type == 'text' ||
 //stuff deleted
 field.type == 'radio' ||
 field.type == 'password') {

So this says that for the 'required' rule radio is supported.

Do the same for integer, byte, etc to see if 'radio' is supported.

   

In the struts-config.xml file, should the form-property type be set to
java.lang.String or java.lang.Boolean?
In the page with the form, does it look right to create the radio buttons
like this:





Are there any other tricks to doing this that differs from validating
standard text boxes, textareas, etc.?
Thank in advance.

Greg Amaroso

 



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


Validator cannot find message key

2003-09-04 Thread Yuan, Saul (TOR-ML)
Hi,

 

I am using Struts Validator for validating a multi page form, some how
the Validator cannot find the messages defined in the application
resources. I got the validation error messages like: null is required.
I've defined arg0 in the validation.xml file, and the key of arg0 points
to a key in the application resource file. I verified that the message
can be found through , but why not by the validator? Any
ideas what the problem could be?

 

 

Thanks,

Saul



form and html:form work differently when using javascript...???

2003-09-04 Thread Pady Srinivasan








 

I have defined a custom tag that emulates "tabs".
This will help splitting a form across multiple tab pane. Each tab is a
hyperlink that sets a hidden form variable and submits the current form ( so
that the data is saved ). When I define a form and specify normal html
elements, the tab across works ( although the form data doesn't get saved
). But when I use struts html taglibrary for the html elements, I get a _javascript_
error about "method not supported". The only difference between the
generated html is that the struts html tags don't have the end tag of
some "input" elements.

 

I have attached the jsp code ( the commented portion is with
struts ). Each of the "tagarea" custom tag adds a hidden field with
its tab name as the value.

 

 

Thanks

 

 

-- pady

[EMAIL PROTECTED]

 

 






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

RE: Copying DynaActionForm to Map DTO

2003-09-04 Thread Mainguy, Mike
BeanUtils.copyProperties (but I'd use a DynaBean instead).

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 1:22 PM
To: 'Struts Users Mailing List'
Subject: Copying DynaActionForm to Map DTO

Hi all,

I am using both DynaActionForm and a DTO that is implemented as a
HashMap.
What is the best way to copy or transfer the properties from the
DynaActionForm to the HashMap DTO?

Thanks in advance,
Erez



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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.




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



[OT] Deploying EJB2.0 with EJB1.1

2003-09-04 Thread Vijay Pawar

Hi ALL,

I have a small issue that is stuck up like a bone in my throat !

In my ejb-jar file I have some MDBs and some EJB1.1 entity beans (CMP).

I have used "http://java.sun.com/dtd/ejb-jar_2_0.dtd";
in the ejb-jar.xml

When i try to create RMIC deploy code on WSAD5.0, everything fails.

Is there any way by which i can accomodate the EJB2.0 compliant beans (Entity/MDB) 
along with EJB1.1 beans in the same ejb-jar file.

I would appreciate a ray of hope !

Thanks & Regards
Vijay Pawar



Yahoo! India Matrimony: Find your partner online.Post your profile.

Maybe a bug

2003-09-04 Thread Francisco Vides Fernandez

Hi all

I'm experimenting a problem with Struts that is driving me nuts. 

I have a form, with some text fields, and a file field.  Having a file
field, form enctype must be multipart. When I submit the form, I have
constated that I receive a String with chars corresponding to
iso8859-1 encoding (tilde, acute, etc) corrupted.

If I strip the file field and the multipart enctype, then everything
works fine. I've searched the bug database, and seen that the Bug
number 14404
(http://issues.apache.org/bugzilla/show_bug.cgi?id=14404), is similar,
but I think it's not the same because I'm already using iso8859-1 as
encoding, and still have problems.

I'm using struts 1.1 with tomcat 4.0.6 and 4.1.27 on a red hat 9.0
linux.

Can someone tell me what's happening here?

Thanks in advance


-- 
+-
| Francisco Vides Fernández <[EMAIL PROTECTED]>
| Director técnico.
| Teléfono fijo:   952 60 29 59
| Teléfono móvil:  661 67 32 73
| Fax: 952 60 29 59
| Dédalo Ingenieros http://www.dedaloingenieros.com/
| PGP: http://pgp.rediris.es:11371/pks/lookup?op=index&search=0x5AAE6285
+--


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



RE: Copying DynaActionForm to Map DTO

2003-09-04 Thread Chen, Gin
Just use the BeanUtils.copyProperties as I mentioned before.
Very quick and easy.
-Tim

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Copying DynaActionForm to Map DTO


True, but using the getMap() I will get also properties that do not
belong to the logic, like 'method' used for the DispatchAction, 'page'
etc.

Erez

-Original Message-
From: Paananen, Tero [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 6:47 PM
To: 'Struts Users Mailing List'
Subject: RE: Copying DynaActionForm to Map DTO

> I am using both DynaActionForm and a DTO that is implemented
> as a HashMap.
> What is the best way to copy or transfer the properties from the
> DynaActionForm to the HashMap DTO?

I would imagine that would require entirely on your
requirements...

The JavaDoc for DynaActionForm, btw, is very useful.
Might want to check it, especially where it documents
the getMap() method.

-TPP

-
This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention,
distribution or disclosure by others is strictly prohibited. If you are
not the intended recipient (or authorized to receive for the recipient),
please contact the sender by reply email and delete all copies of this
message.  Also, email is susceptible to data corruption, interception,
tampering, unauthorized amendment and viruses. We only send and receive
emails on the basis that we are not liable for any such corruption,
interception, tampering, amendment or viruses or any consequence
thereof.


-
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: Copying DynaActionForm to Map DTO

2003-09-04 Thread Erez Efrati
True, but using the getMap() I will get also properties that do not
belong to the logic, like 'method' used for the DispatchAction, 'page'
etc.

Erez

-Original Message-
From: Paananen, Tero [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 6:47 PM
To: 'Struts Users Mailing List'
Subject: RE: Copying DynaActionForm to Map DTO

> I am using both DynaActionForm and a DTO that is implemented
> as a HashMap.
> What is the best way to copy or transfer the properties from the
> DynaActionForm to the HashMap DTO?

I would imagine that would require entirely on your
requirements...

The JavaDoc for DynaActionForm, btw, is very useful.
Might want to check it, especially where it documents
the getMap() method.

-TPP

-
This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention,
distribution or disclosure by others is strictly prohibited. If you are
not the intended recipient (or authorized to receive for the recipient),
please contact the sender by reply email and delete all copies of this
message.  Also, email is susceptible to data corruption, interception,
tampering, unauthorized amendment and viruses. We only send and receive
emails on the basis that we are not liable for any such corruption,
interception, tampering, amendment or viruses or any consequence
thereof.


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

2003-09-04 Thread Ryan
Worked, thanks again.

Ryan

Chen, Gin wrote:

There's a way to do this using html:messages instead of html:errors.
Convert your code to (untested so please check syntax if you get an error):



Optionally you can define a resource property in your ApplicationResources:
errors.header=
or
errors.prefix=
-Tim

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 12:34 PM
To: [EMAIL PROTECTED]
Subject: Re: html error
How would I check to see if that specific error existed?
I would like to write the message after a break  below the text box 
when the message is present, and have no break when it is not.

For example:
if (fieldSample${count}) then
 print error message
Ryan

Ryan wrote:

Thanks, that worked.

Ryan

Slattery, Tim - BLS wrote:


When I try and set the html error attribute property using a jsp 
expression nothing shows up.











Note: The variable count is just an integer that gets incremented 
each iteration of the loop.


An easy way out would be to use the html-el tags:



That said, I have no clue why your  tag won't work.

--
Tim Slattery
[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: Copying DynaActionForm to Map DTO

2003-09-04 Thread Paananen, Tero
> I am using both DynaActionForm and a DTO that is implemented
> as a HashMap.
> What is the best way to copy or transfer the properties from the
> DynaActionForm to the HashMap DTO?

I would imagine that would require entirely on your
requirements...

The JavaDoc for DynaActionForm, btw, is very useful.
Might want to check it, especially where it documents
the getMap() method.

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


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



RE: Copying DynaActionForm to Map DTO

2003-09-04 Thread Chen, Gin
BeanUtils

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 1:22 PM
To: 'Struts Users Mailing List'
Subject: Copying DynaActionForm to Map DTO


Hi all,

I am using both DynaActionForm and a DTO that is implemented as a
HashMap.
What is the best way to copy or transfer the properties from the
DynaActionForm to the HashMap DTO?

Thanks in advance,
Erez



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

2003-09-04 Thread Chen, Gin
There's a way to do this using html:messages instead of html:errors.
Convert your code to (untested so please check syntax if you get an error):





Optionally you can define a resource property in your ApplicationResources:
errors.header=
or
errors.prefix=

-Tim

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 12:34 PM
To: [EMAIL PROTECTED]
Subject: Re: html error


How would I check to see if that specific error existed?
I would like to write the message after a break  below the text box 
when the message is present, and have no break when it is not.

For example:
if (fieldSample${count}) then
 print error message


Ryan


Ryan wrote:
> Thanks, that worked.
> 
> Ryan
> 
> Slattery, Tim - BLS wrote:
> 
>>> When I try and set the html error attribute property using a jsp 
>>> expression nothing shows up.
>>
>>
>>  
>>
>>> 
>>
>>
>>  
>>
>>> Note: The variable count is just an integer that gets incremented 
>>> each iteration of the loop.
>>
>>
>>
>> An easy way out would be to use the html-el tags:
>>
>> 
>>
>> That said, I have no clue why your  tag won't work.
>>
>>
>> -- 
>> Tim Slattery
>> [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: multi-form page validation problem (client side)

2003-09-04 Thread Sieber Martin
Maybe I didn't make myself clear. This is not about the static code, but
about the dynamic code. If you read my original posting, than you will
see that I have put the static JavaScript already to false:

However my mail prog removed the line brakes and therefore this wasn't
readable well. Apologies for that.

My problem is, that all the dynamic functions overwrite each other: 
mask(), maxlength(), ... are dynamic parts of the JavaScript, since the
ApplicationProperty labels are generated in there e.g.:
function maxlength () {
 this.aa = new Array("businessName", "BusinessName shouldn't be
longer than 50 characters.", new Function ("varName",
"this.maxlength='50';  return this[varName];"));
 this.ab = new Array("surname", "Other Text", new Function
("varName", "this.maxlength='50';  return this[varName];"));
}

Cheers,
Martin

-Original Message-
From: Thomas Cornet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 17:35
To: Struts Users Mailing List
Subject: Re: multi-form page validation problem (client side)



The html:javascript tag has a parameter named 'statisJavascript' which
says 
if Struts has to render all static code (i.e. the validations
functions). 
So, if you have several form in a page, you should write something like
this :



 ...

Thus, validation functions will appear only once.

HTH

Thomas

At 17:23 04/09/2003, you wrote:
>Hi,
>
>I'm having problems when validating a multiform page.
>I have 4 forms on a single page and I've set up the validation 
>framework for them. When I insert the html:javascript tag on the jsp 
>page to create the dynamic code, it creates sth like this:
>
>
> function validateFrm_ccd_crn_Filter(form) {  [...]   }
> function maxlength () {  this.aa = [...]   }
>
>
> function validateFrm_ccd_par_Filter(form) {  [...]   }
> function maxlength () {  this.aa = }
> function mask () {  [...]}
>
>
> function validateFrm_ccd_pol_Filter(form) {[...]   }
> function maxlength () {  this.aa = [...]}
> function mask () {  this.aa = [...]}
>
>
>The problem is, that the mask and maxlength methods overwrite each 
>other. Therefore the client side validation does work only for the last

>form that is used on the page. Anything that I should different than 
>including: dynamicJavascript="true" /> dynamicJavascript="true" />
>dynamicJavascript="true" /> dynamicJavascript="true" /> on the JSP
page? 
>The server side validation works fine btw. Any help highly appreciated.

>Cheers, Martin 
>-
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]



Copying DynaActionForm to Map DTO

2003-09-04 Thread Erez Efrati
Hi all,

I am using both DynaActionForm and a DTO that is implemented as a
HashMap.
What is the best way to copy or transfer the properties from the
DynaActionForm to the HashMap DTO?

Thanks in advance,
Erez



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



Re: html error

2003-09-04 Thread Ryan
How would I check to see if that specific error existed?
I would like to write the message after a break  below the text box 
when the message is present, and have no break when it is not.

For example:
if (fieldSample${count}) then
print error message
Ryan

Ryan wrote:
Thanks, that worked.

Ryan

Slattery, Tim - BLS wrote:

When I try and set the html error attribute property using a jsp 
expression nothing shows up.


 




 

Note: The variable count is just an integer that gets incremented 
each iteration of the loop.


An easy way out would be to use the html-el tags:



That said, I have no clue why your  tag won't work.

--
Tim Slattery
[EMAIL PROTECTED]


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


RE: multi-form page validation problem (client side)

2003-09-04 Thread Sieber Martin
Maybe I didn't make myself clear. This is not about the static code, but
about the dynamic code. If you read my original posting, than you will
see that I have put the static JavaScript already to false:
 However my mail prog removed the line brakes
and therefore this wasn't readable well. Apologies for that.

My problem is, that all the dynamic functions overwrite each other: 
mask(), maxlength(), ... are dynamic parts of the JavaScript, since the
ApplicationProperty labels are generated in there e.g.: function
maxlength () {
 this.aa = new Array("businessName", "BusinessName shouldn't be
longer than 50 characters.", new Function ("varName",
"this.maxlength='50';  return this[varName];"));
 this.ab = new Array("surname", "Other Text", new Function
("varName", "this.maxlength='50';  return this[varName];")); }

Cheers,
Martin

==
Original Message:

The html:javascript tag has a parameter named 'statisJavascript' which
says 
if Struts has to render all static code (i.e. the validations
functions). 
So, if you have several form in a page, you should write something like
this :




...

Thus, validation functions will appear only once.

HTH

Thomas

At 17:23 04/09/2003, you wrote:
>Hi,
>
>I'm having problems when validating a multiform page.
>I have 4 forms on a single page and I've set up the validation
framework
>for them. When I insert the html:javascript tag on the jsp page to
>create the dynamic code, it creates sth like this:
>
>
> function validateFrm_ccd_crn_Filter(form) {  [...]   }
> function maxlength () {  this.aa = [...]   }
>
>
> function validateFrm_ccd_par_Filter(form) {  [...]   }
> function maxlength () {  this.aa = }
> function mask () {  [...]}
>
>
> function validateFrm_ccd_pol_Filter(form) {[...]   }
> function maxlength () {  this.aa = [...]}
> function mask () {  this.aa = [...]}
>
>
>The problem is, that the mask and maxlength methods overwrite each
>other. Therefore the client side validation does work only for the last
>form that is used on the page.
>Anything that I should different than including:
>dynamicJavascript="true" /> dynamicJavascript="true" /> 
>dynamicJavascript="true" /> dynamicJavascript="true" /> on the JSP
page? 
>The server side validation works fine btw. Any help highly appreciated.

>Cheers, Martin 

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



RE: Is there a way to disable the browser's Back button withoutsending an http request?

2003-09-04 Thread Andrew Hill

A similar question about your web application:
Assuming all pages are set to no-cached,
does it allow end users to continue the application flow after
the "Page has Expired ..." feedback?

I am interested in the answer to the second question and encourage
anyone to do a REAL experiment with your web application and find out
what is happening.


Hehe, all I can say is that in this regard my web browser (IE) is about as
succesful as a three legged dog with a broken foot trying to cross the Pan
Island Expressway in rush hour

-Original Message-
From: Jing Zhou [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 23:03
To: Struts Users Mailing List; Mike Kienenberger
Subject: Re: Is there a way to disable the browser's Back button
withoutsending an http request?



- Original Message -
From: "Mike Kienenberger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 7:09 AM
Subject: Re: Is there a way to disable the browser's Back button
withoutsending an http request?


> Jing Zhou <[EMAIL PROTECTED]> wrote:
> > When a user watches movies using a VCR, if the user touches
> > a wrong button by accident and the VCR gives a message like
> > "You have to replay the move from the beginning"
> > Would people consider the interface of the VCR good?
> > Could the VCR be improved to ignore irrelevant button's actions?
> >
> > I believe we will have answers.
>
> Actually, my very-expensive Sony VCR beeps three times when you push a
wrong
> button by accident, even while playing.
>
> Sometimes having any feedback is better than having no feedback :)

A question about your Sony VCR: does it allow you to continue from the
places where it get interrupted?

A similar question about your web application:
Assuming all pages are set to no-cached,
does it allow end users to continue the application flow after
the "Page has Expired ..." feedback?

I am interested in the answer to the second question and encourage
anyone to do a REAL experiment with your web application and find out
what is happening.

>
> -Mike
>

Jing
Netspread Carrier
http://www.netspread.com


-
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: Is there a way to disable the browser's Back button withoutsending an http request?

2003-09-04 Thread Mike Kienenberger
Jing Zhou <[EMAIL PROTECTED]> wrote:
> A similar question about your web application:
> Assuming all pages are set to no-cached,
> does it allow end users to continue the application flow after
> the "Page has Expired ..." feedback?
> 
> I am interested in the answer to the second question and encourage
> anyone to do a REAL experiment with your web application and find out
> what is happening.

Which is just another reason why you shouldn't depend on the browser for 
caching/control-flow.

Caching was designed to allow low-bandwidth end-users to take advantage of 
the fact that static pages don't change.

In a struts application, by definition, most pages are dynamically 
generated.   All requests SHOULD be sent back to the server, even those 
where the user has backtracked.

It's up to your application to determine what to do with that backtracking.  
 If you allow it, then you build your application in such a way as to allow 
a reloaded page to display something meaningful.

If you don't allow it, then you provide back a relevent page.  Perhaps this 
is a page that says something like "Don't try to backtrack -- we don't 
allow/support it" with a link to the last valid page displayed by the user.

In any case, it's a server-side responsibility in a dynamic web application 
to handle backtracking correctly.   There's too many variations on browsers 
out there to let the client handle it, especially when those variations were 
never originally designed to support dynamic-content pages.

Obviously, this is somewhat a matter of "Opinion" and "Preference", but so 
is using MVC over the so-called Model 1 approach.

In my opinion (in the short period of time I've been using Struts), 
backtracking strategy management isn't easily accomplished in Struts.  In 
WebObjects, there's a page-state-caching mechanism to deal with this kind of 
problem, and I suspect before I get too far along, I'll end up porting it 
over in some form to get my production application working under Struts.

> A question about your Sony VCR: does it allow you to continue from the 
places where it get interrupted?

Actually, it does.  I suspect that the Sony BeepGenerator Action performs a 
ForwardAction to PlayNextFrame Action :-)

-Mike

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



RE: [OT] Re: How to Proper Debug Struts Actions and stuff with the Eclipse plataform

2003-09-04 Thread David Graham
--- José_Gustavo_Zagato <[EMAIL PROTECTED]> wrote:
> Thanks David !
> 
>   One more question :
> 
>   Did you include your java project into tomcat classPath ? 

No, and I had problems when I tried including it.

David

>   Im asking this because every time I try to include my project
> into the  tomcat classPath the plugin can't start the tomcat,
> because it dosen'tfind the standartServerClass of the Catalina.
> 
>   Tks !
> 
> Cheers !
> 
>   José Gustavo Zagato Rosa
> System Analyst - Atos Origin
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED] 
> Sent: quinta-feira, 4 de setembro de 2003 11:51
> To: Struts Users Mailing List
> Subject: [OT] Re: How to Proper Debug Struts Actions and stuff with the
> Eclipse plataform 
> 
> --- José_Gustavo_Zagato <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > Hi Folks !!
> > 
> > I'm Experiencing to much trouble to debug a web/Struts
> > application with the Eclipse (not WSAD !). Im trying to use the Sysdeo
> > TomCat plugin but so far I just get exceptions while tring to debug.
> > 
> > So, does anyone here can tell me a nice plug-in or any cool
> > trick to get it done ASAP ?
> 
> I'm using the Sysdeo plugin and it works great for debugging.  All you
> need to do is set a breakpoint in your Action and it should stop there
> when you hit the page that calls the Action.  Make sure the plugin is
> launching Tomcat in debug mode (I believe this is the default).  There's
> not much more help I can give you without more details.
> 
> David
> 
> 
> > 
> > Cheers !
> > 
> >   José Gustavo Zagato Rosa
> > System Analyst - Atos Origin
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: multi-form page validation problem (client side)

2003-09-04 Thread Thomas Cornet
The html:javascript tag has a parameter named 'statisJavascript' which says 
if Struts has to render all static code (i.e. the validations functions). 
So, if you have several form in a page, you should write something like this :




...
Thus, validation functions will appear only once.

HTH

Thomas

At 17:23 04/09/2003, you wrote:
Hi,

I'm having problems when validating a multiform page.
I have 4 forms on a single page and I've set up the validation framework
for them. When I insert the html:javascript tag on the jsp page to
create the dynamic code, it creates sth like this:

function validateFrm_ccd_crn_Filter(form) {  [...]   }
function maxlength () {  this.aa = [...]   }


function validateFrm_ccd_par_Filter(form) {  [...]   }
function maxlength () {  this.aa = }
function mask () {  [...]}


function validateFrm_ccd_pol_Filter(form) {[...]   }
function maxlength () {  this.aa = [...]}
function mask () {  this.aa = [...]}

The problem is, that the mask and maxlength methods overwrite each
other. Therefore the client side validation does work only for the last
form that is used on the page.
Anything that I should different than including:
dynamicJavascript="true" /> dynamicJavascript="true" /> 
dynamicJavascript="true" /> dynamicJavascript="true" /> on the JSP page? 
The server side validation works fine btw. Any help highly appreciated. 
Cheers, Martin 
- 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]


multi-form page validation problem (client side)

2003-09-04 Thread Sieber Martin
Hi,

I'm having problems when validating a multiform page. 
I have 4 forms on a single page and I've set up the validation framework
for them. When I insert the html:javascript tag on the jsp page to
create the dynamic code, it creates sth like this:

 
function validateFrm_ccd_crn_Filter(form) {  [...]   } 
function maxlength () {  this.aa = [...]   }  

 
function validateFrm_ccd_par_Filter(form) {  [...]   } 
function maxlength () {  this.aa = } 
function mask () {  [...]} 

 
function validateFrm_ccd_pol_Filter(form) {[...]   } 
function maxlength () {  this.aa = [...]} 
function mask () {  this.aa = [...]} 


The problem is, that the mask and maxlength methods overwrite each
other. Therefore the client side validation does work only for the last
form that is used on the page.
Anything that I should different than including:




on the JSP page?

The server side validation works fine btw.

Any help highly appreciated.

Cheers,
Martin

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



RE: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Mathew, Manoj
As Hill said it is not the issue with the struts but with the HTML. SO i don't think 
it has to do anything with the version of struts you are using.

type is boolean ( primitive)..  not Boolean.

thanks

-Original Message-
From: Greg Amaroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 9:00 AM
To: Struts Users Mailing List
Subject: Re: Struts form validation of radio buttons and checkboxes


I currently have Struts 1.1. Is the checkbox/radio update available in the
most current nightly build?
Also, should the form-property type be "boolean" or "java.lang.Boolean"
(case-sensitive of course)?
Thanks.



> From: "Mathew, Manoj" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Thu, 4 Sep 2003 08:48:19 -0500
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: Struts form validation of radio buttons and checkboxes
> 
> YES YOU R RIGHT. WHEN THE CHECK BOX IS NOT CHECKED, THE FORM WILL NOT EVEN
> HAVE THAT ELEMENT PRESENT. THIS IS AN ERROR IN STRUTS. IN OUR APPLICATION WE
> WROTE A CODE WHICH CHECK FOR THIS ELEMENT AN IT IS IS NOT THERE THEN MADE IT
> "FALSE"
> 
> ALSO MAKE SURE YOU HAVE isCheckbox():return boolean  instead if
> getCheckbox():return String  in your action form.
> 
> -Original Message-
> From: Greg Amaroso [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 7:48 AM
> To: Struts Users Mailing List
> Subject: Re: Struts form validation of radio buttons and checkboxes
> 
> 
> Thanks for the response, but I don't think the problem lies with the actual
> validation that's happening.
> I suspect that when a user submits the form page without a checkbox/radio
> button checked, a blank variable is never sent to the form bean (i.e
> http://www.url.com/servlet.do?checkboxvar=), it just doesn't send anything.
> The form bean then sees it as as a nonexistent variable and returns a trace
> stack error. Any other ideas?
> I will however update my struts package.
> 
> 
> 
>> From: Robert Leland <[EMAIL PROTECTED]>
>> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> Date: Wed, 03 Sep 2003 22:09:14 -0400
>> To: Struts Users Mailing List <[EMAIL PROTECTED]>
>> Subject: Re: Struts form validation of radio buttons and checkboxes
>> 
>> Greg Amaroso wrote:
>> 
>>> I'm having trouble with the struts form validation framework when it comes
>>> to radio buttons and checkboxes. For some reason, I can validate any other
>>> type of field, but not radios/checkboxes. Here's where I seem to be having
>>> trouble: 
>>>  
>>> 
>> Try a --nightly-- build of struts. I believe it has enhancements in
>> commons-validator to validate
>> radio controls. you can tell for sure by looking at the validator-rules.xml.
>> 
>> In there you'll see itels like :
>>   function validateRequired(form) {
>> 
>> //Stuff deleted.
>> 
>>   if (field.type == 'text' ||
>>   //stuff deleted
>>   field.type == 'radio' ||
>>   field.type == 'password') {
>> 
>> So this says that for the 'required' rule radio is supported.
>> 
>> Do the same for integer, byte, etc to see if 'radio' is supported.
>> 
>>> In the struts-config.xml file, should the form-property type be set to
>>> java.lang.String or java.lang.Boolean?
>>> 
>>> In the page with the form, does it look right to create the radio buttons
>>> like this:
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Are there any other tricks to doing this that differs from validating
>>> standard text boxes, textareas, etc.?
>>> 
>>> Thank in advance.
>>> 
>>> 
>>> Greg Amaroso
>>> 
>>>  
>>> 
>> 
>> 
>> 
>> -
>> 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]


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



How to display an active GIF image after page submit

2003-09-04 Thread Julio . Font

This is a newbee question, sorry. I searched the archives but couldn't find
an answer.

Use case
User enters data on a form, selects a file to upload to the server and
clicks the Submit button.
While the file is uploading and the data is stored to the database display
an image (gif) until the submission is completed and the 'File uploaded
successfully page' is displayed.

How using struts can I display an active GIF on the browser while the file
is uploading?
The gif can be on the same page or on a new window as long as I can close
the new window when the submission completes.

Any help would be appreciated.

Thanks,
Julio


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



RE: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Andrew Hill

don't understand why I want to reset the checkboxes to their unticked value.


Im in a hurry to get home (taxi fare doubles after midnight!) so dont have
time to explain in detail, but if you check the javadocs for the reset()
method and search the mail list archive you should be able to find the info
you need :-) (This question is a regular one!)

Mind you, if your form is request scoped it would implicitly be 'reset' as
you are getting a new form instance each time. Hmm. Have you perchance set
the default value for the checkbox to be ticked or is this a session scoped
form?

-Original Message-
From: Greg Amaroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 23:03
To: Struts Users Mailing List
Subject: Re: Struts form validation of radio buttons and checkboxes


No, I haven't implemented it yet. But I must plead ignorance here, because I
don't understand why I want to reset the checkboxes to their unticked value.
If I'm submitting the form essentially back to itself, what does the
unticked value do for me? Or am I missing something?

As for the radio buttons, making the first one already selected is my out
with that. I only included them in this discussion because they
fundamentally work in the same way as checkboxes (i.e. they don't send
variables if not checked).

Thanks.

Greg



> From: "Andrew Hill" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Thu, 4 Sep 2003 22:38:19 +0800
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: Struts form validation of radio buttons and checkboxes
>
> Have you implemented code in reset() to reset the checkbox to its unticked
> value in the form yet?
>
> Not sure why radio buttons would give you problems though.
> They usually have one option selected which would get submitted.
>
>
> -Original Message-
> From: Greg Amaroso [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 4 September 2003 22:00
> To: Struts Users Mailing List
> Subject: Re: Struts form validation of radio buttons and checkboxes
>
>
> I currently have Struts 1.1. Is the checkbox/radio update available in the
> most current nightly build?
> Also, should the form-property type be "boolean" or "java.lang.Boolean"
> (case-sensitive of course)?
> Thanks.
>
>
>
>> From: "Mathew, Manoj" <[EMAIL PROTECTED]>
>> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> Date: Thu, 4 Sep 2003 08:48:19 -0500
>> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> Subject: RE: Struts form validation of radio buttons and checkboxes
>>
>> YES YOU R RIGHT. WHEN THE CHECK BOX IS NOT CHECKED, THE FORM WILL NOT
EVEN
>> HAVE THAT ELEMENT PRESENT. THIS IS AN ERROR IN STRUTS. IN OUR APPLICATION
> WE
>> WROTE A CODE WHICH CHECK FOR THIS ELEMENT AN IT IS IS NOT THERE THEN MADE
> IT
>> "FALSE"
>>
>> ALSO MAKE SURE YOU HAVE isCheckbox():return boolean  instead if
>> getCheckbox():return String  in your action form.
>>
>> -Original Message-
>> From: Greg Amaroso [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, September 04, 2003 7:48 AM
>> To: Struts Users Mailing List
>> Subject: Re: Struts form validation of radio buttons and checkboxes
>>
>>
>> Thanks for the response, but I don't think the problem lies with the
> actual
>> validation that's happening.
>> I suspect that when a user submits the form page without a checkbox/radio
>> button checked, a blank variable is never sent to the form bean (i.e
>> http://www.url.com/servlet.do?checkboxvar=), it just doesn't send
> anything.
>> The form bean then sees it as as a nonexistent variable and returns a
> trace
>> stack error. Any other ideas?
>> I will however update my struts package.
>>
>>
>>
>>> From: Robert Leland <[EMAIL PROTECTED]>
>>> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>> Date: Wed, 03 Sep 2003 22:09:14 -0400
>>> To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>> Subject: Re: Struts form validation of radio buttons and checkboxes
>>>
>>> Greg Amaroso wrote:
>>>
 I'm having trouble with the struts form validation framework when it
> comes
 to radio buttons and checkboxes. For some reason, I can validate any
> other
 type of field, but not radios/checkboxes. Here's where I seem to be
> having
 trouble:


>>> Try a --nightly-- build of struts. I believe it has enhancements in
>>> commons-validator to validate
>>> radio controls. you can tell for sure by looking at the
> validator-rules.xml.
>>>
>>> In there you'll see itels like :
>>>   function validateRequired(form) {
>>>
>>> //Stuff deleted.
>>>
>>>   if (field.type == 'text' ||
>>>   //stuff deleted
>>>   field.type == 'radio' ||
>>>   field.type == 'password') {
>>>
>>> So this says that for the 'required' rule radio is supported.
>>>
>>> Do the same for integer, byte, etc to see if 'radio' is supported.
>>>
 In the struts-config.xml file, should the form-property type be set to
 java.la

RE: [OT] Re: How to Proper Debug Struts Actions and stuff with the Eclipse plataform

2003-09-04 Thread José Gustavo Zagato
Thanks David !

One more question :

Did you include your java project into tomcat classPath ? 
Im asking this because every time I try to include my project
into thetomcat classPath the plugin can't start the tomcat,
because it dosen't  find the standartServerClass of the Catalina.

Tks !

Cheers !

  José Gustavo Zagato Rosa
System Analyst - Atos Origin
[EMAIL PROTECTED]


-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 4 de setembro de 2003 11:51
To: Struts Users Mailing List
Subject: [OT] Re: How to Proper Debug Struts Actions and stuff with the
Eclipse plataform 

--- José_Gustavo_Zagato <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi Folks !!
> 
>   I'm Experiencing to much trouble to debug a web/Struts
> application with the Eclipse (not WSAD !). Im trying to use the Sysdeo
> TomCat plugin but so far I just get exceptions while tring to debug.
> 
>   So, does anyone here can tell me a nice plug-in or any cool
> trick to get it done ASAP ?

I'm using the Sysdeo plugin and it works great for debugging.  All you
need to do is set a breakpoint in your Action and it should stop there
when you hit the page that calls the Action.  Make sure the plugin is
launching Tomcat in debug mode (I believe this is the default).  There's
not much more help I can give you without more details.

David


> 
> Cheers !
> 
>   José Gustavo Zagato Rosa
> System Analyst - Atos Origin
> [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
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: Is there a way to disable the browser's Back button withoutsending an http request?

2003-09-04 Thread Jing Zhou

- Original Message - 
From: "Mike Kienenberger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 7:09 AM
Subject: Re: Is there a way to disable the browser's Back button
withoutsending an http request?


> Jing Zhou <[EMAIL PROTECTED]> wrote:
> > When a user watches movies using a VCR, if the user touches
> > a wrong button by accident and the VCR gives a message like
> > "You have to replay the move from the beginning"
> > Would people consider the interface of the VCR good?
> > Could the VCR be improved to ignore irrelevant button's actions?
> >
> > I believe we will have answers.
>
> Actually, my very-expensive Sony VCR beeps three times when you push a
wrong
> button by accident, even while playing.
>
> Sometimes having any feedback is better than having no feedback :)

A question about your Sony VCR: does it allow you to continue from the
places where it get interrupted?

A similar question about your web application:
Assuming all pages are set to no-cached,
does it allow end users to continue the application flow after
the "Page has Expired ..." feedback?

I am interested in the answer to the second question and encourage
anyone to do a REAL experiment with your web application and find out
what is happening.

>
> -Mike
>

Jing
Netspread Carrier
http://www.netspread.com


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



Re: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Greg Amaroso
No, I haven't implemented it yet. But I must plead ignorance here, because I
don't understand why I want to reset the checkboxes to their unticked value.
If I'm submitting the form essentially back to itself, what does the
unticked value do for me? Or am I missing something?

As for the radio buttons, making the first one already selected is my out
with that. I only included them in this discussion because they
fundamentally work in the same way as checkboxes (i.e. they don't send
variables if not checked).

Thanks.

Greg



> From: "Andrew Hill" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Thu, 4 Sep 2003 22:38:19 +0800
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: Struts form validation of radio buttons and checkboxes
> 
> Have you implemented code in reset() to reset the checkbox to its unticked
> value in the form yet?
> 
> Not sure why radio buttons would give you problems though.
> They usually have one option selected which would get submitted.
> 
> 
> -Original Message-
> From: Greg Amaroso [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 4 September 2003 22:00
> To: Struts Users Mailing List
> Subject: Re: Struts form validation of radio buttons and checkboxes
> 
> 
> I currently have Struts 1.1. Is the checkbox/radio update available in the
> most current nightly build?
> Also, should the form-property type be "boolean" or "java.lang.Boolean"
> (case-sensitive of course)?
> Thanks.
> 
> 
> 
>> From: "Mathew, Manoj" <[EMAIL PROTECTED]>
>> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> Date: Thu, 4 Sep 2003 08:48:19 -0500
>> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> Subject: RE: Struts form validation of radio buttons and checkboxes
>> 
>> YES YOU R RIGHT. WHEN THE CHECK BOX IS NOT CHECKED, THE FORM WILL NOT EVEN
>> HAVE THAT ELEMENT PRESENT. THIS IS AN ERROR IN STRUTS. IN OUR APPLICATION
> WE
>> WROTE A CODE WHICH CHECK FOR THIS ELEMENT AN IT IS IS NOT THERE THEN MADE
> IT
>> "FALSE"
>> 
>> ALSO MAKE SURE YOU HAVE isCheckbox():return boolean  instead if
>> getCheckbox():return String  in your action form.
>> 
>> -Original Message-
>> From: Greg Amaroso [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, September 04, 2003 7:48 AM
>> To: Struts Users Mailing List
>> Subject: Re: Struts form validation of radio buttons and checkboxes
>> 
>> 
>> Thanks for the response, but I don't think the problem lies with the
> actual
>> validation that's happening.
>> I suspect that when a user submits the form page without a checkbox/radio
>> button checked, a blank variable is never sent to the form bean (i.e
>> http://www.url.com/servlet.do?checkboxvar=), it just doesn't send
> anything.
>> The form bean then sees it as as a nonexistent variable and returns a
> trace
>> stack error. Any other ideas?
>> I will however update my struts package.
>> 
>> 
>> 
>>> From: Robert Leland <[EMAIL PROTECTED]>
>>> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>> Date: Wed, 03 Sep 2003 22:09:14 -0400
>>> To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>> Subject: Re: Struts form validation of radio buttons and checkboxes
>>> 
>>> Greg Amaroso wrote:
>>> 
 I'm having trouble with the struts form validation framework when it
> comes
 to radio buttons and checkboxes. For some reason, I can validate any
> other
 type of field, but not radios/checkboxes. Here's where I seem to be
> having
 trouble:
 
 
>>> Try a --nightly-- build of struts. I believe it has enhancements in
>>> commons-validator to validate
>>> radio controls. you can tell for sure by looking at the
> validator-rules.xml.
>>> 
>>> In there you'll see itels like :
>>>   function validateRequired(form) {
>>> 
>>> //Stuff deleted.
>>> 
>>>   if (field.type == 'text' ||
>>>   //stuff deleted
>>>   field.type == 'radio' ||
>>>   field.type == 'password') {
>>> 
>>> So this says that for the 'required' rule radio is supported.
>>> 
>>> Do the same for integer, byte, etc to see if 'radio' is supported.
>>> 
 In the struts-config.xml file, should the form-property type be set to
 java.lang.String or java.lang.Boolean?
 
 In the page with the form, does it look right to create the radio
> buttons
 like this:
 
 
 
 
 
 
 Are there any other tricks to doing this that differs from validating
 standard text boxes, textareas, etc.?
 
 Thank in advance.
 
 
 Greg Amaroso
 
 
 
>>> 
>>> 
>>> 
>>> -
>>> 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]
>> 
>> 
>> --

[OT] Re: How to Proper Debug Struts Actions and stuff with the Eclipse plataform

2003-09-04 Thread David Graham
--- José_Gustavo_Zagato <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi Folks !!
> 
>   I'm Experiencing to much trouble to debug a web/Struts
> application with the Eclipse (not WSAD !). Im trying to use the Sysdeo
> TomCat plugin but so far I just get exceptions while tring to debug.
> 
>   So, does anyone here can tell me a nice plug-in or any cool
> trick to get it done ASAP ?

I'm using the Sysdeo plugin and it works great for debugging.  All you
need to do is set a breakpoint in your Action and it should stop there
when you hit the page that calls the Action.  Make sure the plugin is
launching Tomcat in debug mode (I believe this is the default).  There's
not much more help I can give you without more details.

David


> 
> Cheers !
> 
>   José Gustavo Zagato Rosa
> System Analyst - Atos Origin
> [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Can we create a Action class object

2003-09-04 Thread Michael Ruppin
I find that this can still be a valid solution, even when business logic is entirely 
factored out of Actions.  For example, I have Form A and Form B, both of which nest 
Form C.  My Actions are all related to LookupDispatchActions.  Action A checks the 
request for Form A specific submissions, and then calls Action C to check for Form C 
specific submissions.  Similarly, Action B checks the request for Form B specific 
submissions, and then calls Action C to check for Form C specific submissions.  Since 
my business logic is well factored, I could have had Action A and Action B check all 
the same stuff in the request that Action C does, and then call all the same business 
logic that Action C does, but why?  Then, I would have to do the same in every Action 
processing a Form which nests Form C.  Action C always handles whatever Form C may 
sumbit on any form in which it is nested; I instantiate it, and execute it, and it's 
up to the "parent" Action to determine what to do with the returned
 forward.
 
I had been doing this with chaining, but we all know where that leads ;)
 
m

Andrew Hill <[EMAIL PROTECTED]> wrote:
Danny is right you know. I probably didnt stress the point well enough in my
own response to the question just now.
You would be much better off doing a spot of refactoring.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 22:37
To: [EMAIL PROTECTED]
Subject: RE: Can we create a Action class object


Why? This sounds like bad design. Why not just refactor the common
code out into a helper class and call that from both actions?

--
Danny Yates



-Original Message-
From: Ashok.D [mailto:[EMAIL PROTECTED]
Sent: 04 September 2003 14:42
To: Struts Users Mailing List
Subject: Can we create a Action class object


Hi,

Can we create a Action class object. I need to access the perform method
from another Action class.

If we access this Action class by using *.do, I have some limiations in my
application. I don't want to use action.do.

But I need to execute another action class perform method.

Pls put some light on this issue.

Thanks & Regards,
Ashok.D


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


_
Notice to recipient:
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful.

When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued by
the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.
_



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


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Can we create a Action class object

2003-09-04 Thread Andrew Hill
The Action class normally has a reference to the ActionServlet that is set
by the ActionServlet or RequestProcessor (I forget which) when the object is
instantiated. If you are instantiating an Action instance yourself you will
want to set it, in case the code in the other action needs to get at the
servlet reference (or through it to get the ServletContext reference).

Action myAction = new MyAction();
myAction.setServlet( getServlet() );
myAction.execute(mapping, form, request, response);

Hmm. setServlet() is public in 1.1 final release, but Ive noticed in the
nightly docs it now seems to be package protected. That could be very bad
for a framework extension Im working on. :-(

-but its also another good indication that you ought to factor out the
common code into a third class rather than trying to re-use the action! ;-)

-Original Message-
From: Ashok.D [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 22:45
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Can we create a Action class object


Hi Andrew Hill,

Thanks for your reply.

Can I know about " setting the ActionServlet reference first!".

Thanks & Regards,
Ashok.D
- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 7:58 PM
Subject: RE: Can we create a Action class object


> Sure, just instantiate it and call its perform (execute in struts 1.1)
> method, passing your mapping, for, request and response refs. Dont forget
to
> set the ActionServlet reference first!
> (Of course it gets much more complicated if you dont want to give it the
> same mapping and form as your calling action is using! :-( )
>
> 
> Like action-chaining the need to do this is however probably a good
> indication that your actions have too much business logic in them (which
> should be in business classes invoked by the actions) and you might want
to
> consider how you could improve your architecture a bit!
> 
>
> -Original Message-
> From: Ashok.D [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 4 September 2003 21:42
> To: Struts Users Mailing List
> Subject: Can we create a Action class object
>
>
> Hi,
>
> Can we create a Action class object. I need to access the perform method
> from another Action class.
>
> If we access this Action class by using *.do, I have some limiations in my
> application. I don't want to use action.do.
>
> But I need to execute another action class perform method.
>
> Pls put some light on this issue.
>
> Thanks & Regards,
> Ashok.D
>
>
> -
> 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: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Andrew Hill
Have you implemented code in reset() to reset the checkbox to its unticked
value in the form yet?

Not sure why radio buttons would give you problems though.
They usually have one option selected which would get submitted.


-Original Message-
From: Greg Amaroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 22:00
To: Struts Users Mailing List
Subject: Re: Struts form validation of radio buttons and checkboxes


I currently have Struts 1.1. Is the checkbox/radio update available in the
most current nightly build?
Also, should the form-property type be "boolean" or "java.lang.Boolean"
(case-sensitive of course)?
Thanks.



> From: "Mathew, Manoj" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Thu, 4 Sep 2003 08:48:19 -0500
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: Struts form validation of radio buttons and checkboxes
>
> YES YOU R RIGHT. WHEN THE CHECK BOX IS NOT CHECKED, THE FORM WILL NOT EVEN
> HAVE THAT ELEMENT PRESENT. THIS IS AN ERROR IN STRUTS. IN OUR APPLICATION
WE
> WROTE A CODE WHICH CHECK FOR THIS ELEMENT AN IT IS IS NOT THERE THEN MADE
IT
> "FALSE"
>
> ALSO MAKE SURE YOU HAVE isCheckbox():return boolean  instead if
> getCheckbox():return String  in your action form.
>
> -Original Message-
> From: Greg Amaroso [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 7:48 AM
> To: Struts Users Mailing List
> Subject: Re: Struts form validation of radio buttons and checkboxes
>
>
> Thanks for the response, but I don't think the problem lies with the
actual
> validation that's happening.
> I suspect that when a user submits the form page without a checkbox/radio
> button checked, a blank variable is never sent to the form bean (i.e
> http://www.url.com/servlet.do?checkboxvar=), it just doesn't send
anything.
> The form bean then sees it as as a nonexistent variable and returns a
trace
> stack error. Any other ideas?
> I will however update my struts package.
>
>
>
>> From: Robert Leland <[EMAIL PROTECTED]>
>> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> Date: Wed, 03 Sep 2003 22:09:14 -0400
>> To: Struts Users Mailing List <[EMAIL PROTECTED]>
>> Subject: Re: Struts form validation of radio buttons and checkboxes
>>
>> Greg Amaroso wrote:
>>
>>> I'm having trouble with the struts form validation framework when it
comes
>>> to radio buttons and checkboxes. For some reason, I can validate any
other
>>> type of field, but not radios/checkboxes. Here's where I seem to be
having
>>> trouble:
>>>
>>>
>> Try a --nightly-- build of struts. I believe it has enhancements in
>> commons-validator to validate
>> radio controls. you can tell for sure by looking at the
validator-rules.xml.
>>
>> In there you'll see itels like :
>>   function validateRequired(form) {
>>
>> //Stuff deleted.
>>
>>   if (field.type == 'text' ||
>>   //stuff deleted
>>   field.type == 'radio' ||
>>   field.type == 'password') {
>>
>> So this says that for the 'required' rule radio is supported.
>>
>> Do the same for integer, byte, etc to see if 'radio' is supported.
>>
>>> In the struts-config.xml file, should the form-property type be set to
>>> java.lang.String or java.lang.Boolean?
>>>
>>> In the page with the form, does it look right to create the radio
buttons
>>> like this:
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> Are there any other tricks to doing this that differs from validating
>>> standard text boxes, textareas, etc.?
>>>
>>> Thank in advance.
>>>
>>>
>>> Greg Amaroso
>>>
>>>
>>>
>>
>>
>>
>> -
>> 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]


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



lists & c:forEach & struts-el html:link

2003-09-04 Thread Andy Richards
hi

I use RowSetDynaClass to get my results from a db then i add these rows to a 
List via  getRows(). The list is then returned to my jsp page which is using 
jstl and struts-el. I would like to use c:forEach to iterate over the list 
and print out the variables. Within the loop i would like to use struts-el 
html:link as follows...



Does anyone know if what i am trying to do is possible as i keep getting 
errors??

I not sure how to correctly pass my list to c:forEach. any ideas

Thanks


Andy


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



How to Proper Debug Struts Actions and stuff with the Eclipse plataform

2003-09-04 Thread José Gustavo Zagato


Hi Folks !!

I'm Experiencing to much trouble to debug a web/Struts
application with the Eclipse (not WSAD !). Im trying to use the Sysdeo
TomCat plugin but so far I just get exceptions while tring to debug.

So, does anyone here can tell me a nice plug-in or any cool
trick to get it done ASAP ?

Cheers !

  José Gustavo Zagato Rosa
System Analyst - Atos Origin
[EMAIL PROTECTED]



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



Re: Can we create a Action class object

2003-09-04 Thread Ashok.D
Hi Andrew Hill,

Thanks for your reply.

Can I know about " setting the ActionServlet reference first!".

Thanks & Regards,
Ashok.D
- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 7:58 PM
Subject: RE: Can we create a Action class object


> Sure, just instantiate it and call its perform (execute in struts 1.1)
> method, passing your mapping, for, request and response refs. Dont forget
to
> set the ActionServlet reference first!
> (Of course it gets much more complicated if you dont want to give it the
> same mapping and form as your calling action is using! :-( )
>
> 
> Like action-chaining the need to do this is however probably a good
> indication that your actions have too much business logic in them (which
> should be in business classes invoked by the actions) and you might want
to
> consider how you could improve your architecture a bit!
> 
>
> -Original Message-
> From: Ashok.D [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 4 September 2003 21:42
> To: Struts Users Mailing List
> Subject: Can we create a Action class object
>
>
> Hi,
>
> Can we create a Action class object. I need to access the perform method
> from another Action class.
>
> If we access this Action class by using *.do, I have some limiations in my
> application. I don't want to use action.do.
>
> But I need to execute another action class perform method.
>
> Pls put some light on this issue.
>
> Thanks & Regards,
> Ashok.D
>
>
> -
> 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: Can we create a Action class object

2003-09-04 Thread Andrew Hill
Danny is right you know. I probably didnt stress the point well enough in my
own response to the question just now.
You would be much better off doing a spot of refactoring.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 22:37
To: [EMAIL PROTECTED]
Subject: RE: Can we create a Action class object


Why? This sounds like bad design. Why not just refactor the common
code out into a helper class and call that from both actions?

--
Danny Yates



-Original Message-
From: Ashok.D [mailto:[EMAIL PROTECTED]
Sent: 04 September 2003 14:42
To: Struts Users Mailing List
Subject: Can we create a Action class object


Hi,

Can we create a Action class object. I need to access the perform method
from another Action class.

If we access this Action class by using *.do, I have some limiations in my
application. I don't want to use action.do.

But I need to execute another action class perform method.

Pls put some light on this issue.

Thanks & Regards,
Ashok.D


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


_
Notice to recipient:
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful.

When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued by
the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.
_



-
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: struts-tags to jstl on resin

2003-09-04 Thread David Graham
What does Tomcat do?  Print the tag code?  Throw an error?  Is your taglib
URI correct?  Do other JSTL tags (like ) work?

David

--- Richard Raquepo <[EMAIL PROTECTED]> wrote:
> hello everyone.
> 
> i have been using struts tags and struts-el tags for sometime now.
> my application works both on Resin and Tomcat.
> 
> Now my boss told me to re-write my jsp to use JSTL instead.
> 
> I was developing in a tomcat environment but here comes the problem...
> When i move my application to tomcat, my /core tags doesn't get
> executed.
> 
> i can't use c:if test, but resin does not show any errors.
> 
> has anyone experience the same errors.
> 
> please help me...
> 
> thanks.
> 
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Can we create a Action class object

2003-09-04 Thread Danny . Yates
Why? This sounds like bad design. Why not just refactor the common
code out into a helper class and call that from both actions?

-- 
Danny Yates
 


-Original Message-
From: Ashok.D [mailto:[EMAIL PROTECTED] 
Sent: 04 September 2003 14:42
To: Struts Users Mailing List
Subject: Can we create a Action class object


Hi,

Can we create a Action class object. I need to access the perform method
from another Action class.

If we access this Action class by using *.do, I have some limiations in my
application. I don't want to use action.do.

But I need to execute another action class perform method.

Pls put some light on this issue.

Thanks & Regards,
Ashok.D


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


_ 
Notice to recipient: 
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. 

When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued by
the pertinent Bank of America group entity. 

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.
_ 



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



struts-tags to jstl on resin

2003-09-04 Thread Richard Raquepo
hello everyone.

i have been using struts tags and struts-el tags for sometime now.
my application works both on Resin and Tomcat.

Now my boss told me to re-write my jsp to use JSTL instead.

I was developing in a tomcat environment but here comes the problem...
When i move my application to tomcat, my /core tags doesn't get executed.

i can't use c:if test, but resin does not show any errors.

has anyone experience the same errors.

please help me...

thanks.



How to create a Action class object

2003-09-04 Thread Ashok.D
 Hi,
 
 Can we create a Action class object. I need to access the perform method
 from another Action class.
 
 If we access this Action class by using *.do, I have some limiations in my
 application. I don't want to use action.do.
 
 But I need to execute another action class perform method.
 
 Pls put some light on this issue.
 
 Thanks & Regards,
 Ashok.D
ha 

Re: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Greg Amaroso
I currently have Struts 1.1. Is the checkbox/radio update available in the
most current nightly build?
Also, should the form-property type be "boolean" or "java.lang.Boolean"
(case-sensitive of course)?
Thanks.



> From: "Mathew, Manoj" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Thu, 4 Sep 2003 08:48:19 -0500
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: Struts form validation of radio buttons and checkboxes
> 
> YES YOU R RIGHT. WHEN THE CHECK BOX IS NOT CHECKED, THE FORM WILL NOT EVEN
> HAVE THAT ELEMENT PRESENT. THIS IS AN ERROR IN STRUTS. IN OUR APPLICATION WE
> WROTE A CODE WHICH CHECK FOR THIS ELEMENT AN IT IS IS NOT THERE THEN MADE IT
> "FALSE"
> 
> ALSO MAKE SURE YOU HAVE isCheckbox():return boolean  instead if
> getCheckbox():return String  in your action form.
> 
> -Original Message-
> From: Greg Amaroso [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 7:48 AM
> To: Struts Users Mailing List
> Subject: Re: Struts form validation of radio buttons and checkboxes
> 
> 
> Thanks for the response, but I don't think the problem lies with the actual
> validation that's happening.
> I suspect that when a user submits the form page without a checkbox/radio
> button checked, a blank variable is never sent to the form bean (i.e
> http://www.url.com/servlet.do?checkboxvar=), it just doesn't send anything.
> The form bean then sees it as as a nonexistent variable and returns a trace
> stack error. Any other ideas?
> I will however update my struts package.
> 
> 
> 
>> From: Robert Leland <[EMAIL PROTECTED]>
>> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> Date: Wed, 03 Sep 2003 22:09:14 -0400
>> To: Struts Users Mailing List <[EMAIL PROTECTED]>
>> Subject: Re: Struts form validation of radio buttons and checkboxes
>> 
>> Greg Amaroso wrote:
>> 
>>> I'm having trouble with the struts form validation framework when it comes
>>> to radio buttons and checkboxes. For some reason, I can validate any other
>>> type of field, but not radios/checkboxes. Here's where I seem to be having
>>> trouble: 
>>>  
>>> 
>> Try a --nightly-- build of struts. I believe it has enhancements in
>> commons-validator to validate
>> radio controls. you can tell for sure by looking at the validator-rules.xml.
>> 
>> In there you'll see itels like :
>>   function validateRequired(form) {
>> 
>> //Stuff deleted.
>> 
>>   if (field.type == 'text' ||
>>   //stuff deleted
>>   field.type == 'radio' ||
>>   field.type == 'password') {
>> 
>> So this says that for the 'required' rule radio is supported.
>> 
>> Do the same for integer, byte, etc to see if 'radio' is supported.
>> 
>>> In the struts-config.xml file, should the form-property type be set to
>>> java.lang.String or java.lang.Boolean?
>>> 
>>> In the page with the form, does it look right to create the radio buttons
>>> like this:
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Are there any other tricks to doing this that differs from validating
>>> standard text boxes, textareas, etc.?
>>> 
>>> Thank in advance.
>>> 
>>> 
>>> Greg Amaroso
>>> 
>>>  
>>> 
>> 
>> 
>> 
>> -
>> 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: Can we create a Action class object

2003-09-04 Thread Andrew Hill
Sure, just instantiate it and call its perform (execute in struts 1.1)
method, passing your mapping, for, request and response refs. Dont forget to
set the ActionServlet reference first!
(Of course it gets much more complicated if you dont want to give it the
same mapping and form as your calling action is using! :-( )


Like action-chaining the need to do this is however probably a good
indication that your actions have too much business logic in them (which
should be in business classes invoked by the actions) and you might want to
consider how you could improve your architecture a bit!


-Original Message-
From: Ashok.D [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 21:42
To: Struts Users Mailing List
Subject: Can we create a Action class object


Hi,

Can we create a Action class object. I need to access the perform method
from another Action class.

If we access this Action class by using *.do, I have some limiations in my
application. I don't want to use action.do.

But I need to execute another action class perform method.

Pls put some light on this issue.

Thanks & Regards,
Ashok.D


-
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: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Andrew Hill
OI!
STOP ALL THAT SHOUTING!
ITS GIVING ME A HEADACHE.
(I know your terminal can do lower case - I can see it in your sample code!)

And while Ive got your attention, it is *not* "AN ERROR IN STRUTS" that the
checkbox is not submitted, it is a result of the html specifications (whose
writers probably came up with the idea after a few too many beers and
thought it would be a "bit of a laugh").

Browsers simply dont submit *anything* for an unticked checkbox and there
isnt anything that struts can do about it apart from provide a workaround in
the form of the reset() method. (Well actually I can think of one other
thing it could do but it involves JS and hidden fields and I rather doubt
the committers would approve.)

If you had bothered to read the javadoc for the reset() method of the
ActionForm class you would know this:

http://jakarta.apache.org/struts/api/index.html ">
Reset all bean properties to their default state. This method is called
before the properties are repopulated by the controller servlet. The default
implementation does nothing. Subclasses should override this method to reset
all bean properties to default values. This method is not the appropriate
place to initialize form values for an "update" type page (this should be
done in a setup Action). You mainly need to worry about setting checkbox
values to false; most of the time you can leave this method unimplemented


(Note the bit about checkboxes)


-Original Message-
From: Mathew, Manoj [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 21:48
To: Struts Users Mailing List
Subject: RE: Struts form validation of radio buttons and checkboxes


YES YOU R RIGHT. WHEN THE CHECK BOX IS NOT CHECKED, THE FORM WILL NOT EVEN
HAVE THAT ELEMENT PRESENT. THIS IS AN ERROR IN STRUTS. IN OUR APPLICATION WE
WROTE A CODE WHICH CHECK FOR THIS ELEMENT AN IT IS IS NOT THERE THEN MADE IT
"FALSE"

ALSO MAKE SURE YOU HAVE isCheckbox():return boolean  instead if
getCheckbox():return String  in your action form.

-Original Message-
From: Greg Amaroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 7:48 AM
To: Struts Users Mailing List
Subject: Re: Struts form validation of radio buttons and checkboxes


Thanks for the response, but I don't think the problem lies with the actual
validation that's happening.
I suspect that when a user submits the form page without a checkbox/radio
button checked, a blank variable is never sent to the form bean (i.e
http://www.url.com/servlet.do?checkboxvar=), it just doesn't send anything.
The form bean then sees it as as a nonexistent variable and returns a trace
stack error. Any other ideas?
I will however update my struts package.



> From: Robert Leland <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Wed, 03 Sep 2003 22:09:14 -0400
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Struts form validation of radio buttons and checkboxes
>
> Greg Amaroso wrote:
>
>> I'm having trouble with the struts form validation framework when it
comes
>> to radio buttons and checkboxes. For some reason, I can validate any
other
>> type of field, but not radios/checkboxes. Here's where I seem to be
having
>> trouble:
>>
>>
> Try a --nightly-- build of struts. I believe it has enhancements in
> commons-validator to validate
> radio controls. you can tell for sure by looking at the
validator-rules.xml.
>
> In there you'll see itels like :
>   function validateRequired(form) {
>
> //Stuff deleted.
>
>   if (field.type == 'text' ||
>   //stuff deleted
>   field.type == 'radio' ||
>   field.type == 'password') {
>
> So this says that for the 'required' rule radio is supported.
>
> Do the same for integer, byte, etc to see if 'radio' is supported.
>
>> In the struts-config.xml file, should the form-property type be set to
>> java.lang.String or java.lang.Boolean?
>>
>> In the page with the form, does it look right to create the radio buttons
>> like this:
>> 
>> 
>> 
>> 
>> 
>>
>> Are there any other tricks to doing this that differs from validating
>> standard text boxes, textareas, etc.?
>>
>> Thank in advance.
>>
>>
>> Greg Amaroso
>>
>>
>>
>
>
>
> -
> 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: issue with the multi select

2003-09-04 Thread Andrew Hill
You need to submit the changes in the field contents to the server. I
presume when you talk about the form being 'refreshed' you actually mean
that it POSTs to some action which does some stuff and then you get
forwarded back to the same jsp again?

The web browser will only submit the values for the _selected_ items in the
respective  fields. As far as the browser is concerned there are two
seperate select fields, and the values that are selected are only the ones
that are highlighted! (We know of course that its conceptually one field
with one box being unselected stuff and the other box the selected stuff,
but the browser isnt so smart)

What you need therefore is to ensure that the values are selected
(highlighted) at submit time.
This will involve some fancy javascript coding to go and set the 'selected'
property on all the option elements in both boxes when the form is
submitted.

(Before going ahead and spending time writing javascript to do this you will
probably want to confirm that this actually is the issue by manually
highlighting all the values in both boxes in your page, and invoking the
submit. See how it gets handled and what gets submitted in the request)


I HAVE DECLARED 2 STRINGS FOR THESE 2 SELECT BOXES


Surely you mean a string array ( String[] ) for each of the 2 fields as they
will both be submitting multiple values?

-Original Message-
From: Mathew, Manoj [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 21:43
To: Struts Users Mailing List
Subject: issue with the multi select


Hi all

  I have 2 multi select box( wth size 5)  and have  "ADD" and :remove"
button in a dyna action form. Basically you can select one or more from a
select box and add it to the second one using ADD buton adn remove the
selected using "REMOVE" button. I have some other actions also in the same
page.

issue:

   Add and REmove are working(in java script). but when he entire form is
refreched( when some other actions are executed), the select box is not
retaining the value.So basically "ADD" and"REMOVE" is not updating the form
values. I checked the valuew of the select boxes when the form is posted.
The values are not correct. ie it is not retaing my "ADD" and "REMOVE"
values..

IN STRUCTS_CONFIG, I HAVE DECLARED 2 STRINGS FOR THESE 2 SELECT BOXES

ADD
function add(value,to)
{ 
var newoption= new Option(value,value);
document.forms[0].s2.options[document.forms[0].s2.length]=newoption;

}
function remove(from) { 
for (var i=(from.options.length-1); i>=0; i--) { 
var o=from.options[i]; 
if (o.selected) { 
from.options[i] = null; 
   
} 
} 
from.selectedIndex = -1; 
} 

thank you
manoj

-
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: Multiple web application support

2003-09-04 Thread Andrew Hill
Sounds more like a job for portlets.
Im not familiar with them myself , but Id suggest you might want to take a
look at JetSpeed (there are other portlet impls but I cant remember what
they are right now...)
http://jakarta.apache.org/jetspeed/site/index.html

-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 21:56
To: Struts Users Mailing List
Subject: Multiple web application support


I'm using struts framework for my application.
Currently it allows you to split a large application into smaller modules,
where each
module maintains its own set of configuration files. And it supports
switching from one
module to another.

My Requirement.

 The layout of the UI should be dictated by my ROOT application.
 My layout follows the usual convention, made of top, left [MENU], bottom
and center part.
 In the center part I'll have Tabs for each new sub application deployed.

 On clicking these TAB brings up that application. Only the center part gets
rendered by the
 sub-application, where as the layout remains intact.

 I'm looking at a way where I can deploy these sub applications like WAR
files in the
 servlet container and these gets linked to the main application.

 So, in future if I want to remove a sub application I just remove the
application respective war file and
 a place holder [URL pointing to this application] from my ROOT applications
page and vice-versa.

 It's something like providing a plug in feature for the application.

Q 1. Can we switch from one web application to another using
struts-framework? If it's possible, kindly
let me know the way to do it.?
Q 2. It'll be really great If I can get the answer for my above requirement.
How can we achieve it?
Any approach suggested will be helpful.

Thanks and Regards,
Ashutosh


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



Can we create a Action class object

2003-09-04 Thread Ashok.D
Hi,

Can we create a Action class object. I need to access the perform method
from another Action class.

If we access this Action class by using *.do, I have some limiations in my
application. I don't want to use action.do.

But I need to execute another action class perform method.

Pls put some light on this issue.

Thanks & Regards,
Ashok.D


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



Struts Security

2003-09-04 Thread Eyunni Srilatha
 HI,
I want to password protect a folder in Struts.I have many  folders 
under jsp
like 'test','general','report'.I want to protect only the 'report' 
folder.I have written this code in web.xml but its blocking all my 
folders from accessing .
I want only report folder to be password protected. can anybosy 
plez tell me this.

  
 SecureReportJSP
 Protect the reports
 /report/* //I have give lke 
this
  /jsp/report/login.jsp //and 
laso like this
 GET
 POST
  

 

 
Thanx in advance.Plez help me in this

___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp


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


Multiple web application support

2003-09-04 Thread Ashutosh Satyam
I'm using struts framework for my application. 
Currently it allows you to split a large application into smaller modules, where each
module maintains its own set of configuration files. And it supports switching from one
module to another.

My Requirement.

 The layout of the UI should be dictated by my ROOT application.
 My layout follows the usual convention, made of top, left [MENU], bottom and center 
part.
 In the center part I'll have Tabs for each new sub application deployed.

 On clicking these TAB brings up that application. Only the center part gets rendered 
by the 
 sub-application, where as the layout remains intact. 

 I'm looking at a way where I can deploy these sub applications like WAR files in the 
 servlet container and these gets linked to the main application. 

 So, in future if I want to remove a sub application I just remove the application 
respective war file and 
 a place holder [URL pointing to this application] from my ROOT applications page and 
vice-versa.

 It's something like providing a plug in feature for the application.

Q 1. Can we switch from one web application to another using struts-framework? If it's 
possible, kindly
let me know the way to do it.?
Q 2. It'll be really great If I can get the answer for my above requirement. How can 
we achieve it?
Any approach suggested will be helpful.

Thanks and Regards,
Ashutosh


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



RE: How to forward back to including page

2003-09-04 Thread Mathew, Manoj
if (popup != null) {
String path = mapping.findForward(variable1).getPath() + 
"?popup=" + popup;
actionForward = new ActionForward(path);
} else {
actionForward = mapping.findForward(variable1);
}
return actionForward;

-Original Message-
From: Mathew, Manoj 
Sent: Thursday, September 04, 2003 8:52 AM
To: Struts Users Mailing List
Subject: RE: How to forward back to including page


you don't have to give  in the struts config , instead give 
global forwards.  then in your action put logic to forward to any global forwards..

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 8:13 AM
To: 'Struts Users Mailing List'
Subject: RE: How to forward back to including page


Well, the problem is that I am including this fragment in *all* of my pages.  (The 
form allows the user
to login -- otherwise, the user is a "guest").
Basically, I want the "forward" of the action that processes the form to not be 
"hard-coded"
to a specific path but instead to the page that included it (actually to be more 
precise from the current URL).
Here is a visualization of what I want to do:


   importedForm.jsp --submit--> login.do 
--redirect-->ActionA.do
|
ActionA.do --forwards--> PageA.jsp


ActionB.do --forwards--> PageB.jsp
|
  importedForm.jsp --submit--> login.do --redirect-->ActionB.do

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 4:55 PM
To: Struts Users Mailing List
Subject: Re: How to forward back to including page


I'm a little confused, but when you submit the form the target should be an
action and couldnt you just do the processing within that action and if its
successful forward back to the page that includes the form?

- Original Message - 
From: "Siggelkow, Bill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 03, 2003 2:19 PM
Subject: How to forward back to including page


> I have an included page (included using ) that contains a form.
If the form processes successfully I want to return
> back to the original including page.  Is there a clean way of doing this?
The problem I have is that my action for the included page
> does not know anything about the page that includes it.  Maybe I could use
pass a request attribute that specifies the original URL or action?
> Any ideas?
>
> Bill Siggelkow
> 678.579.6458
> Mirant
> http://www.mirant.com
>
>
> -
> 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]


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



RE: How to forward back to including page

2003-09-04 Thread Mathew, Manoj
you don't have to give  in the struts config , instead give 
global forwards.  then in your action put logic to forward to any global forwards..

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 8:13 AM
To: 'Struts Users Mailing List'
Subject: RE: How to forward back to including page


Well, the problem is that I am including this fragment in *all* of my pages.  (The 
form allows the user
to login -- otherwise, the user is a "guest").
Basically, I want the "forward" of the action that processes the form to not be 
"hard-coded"
to a specific path but instead to the page that included it (actually to be more 
precise from the current URL).
Here is a visualization of what I want to do:


   importedForm.jsp --submit--> login.do 
--redirect-->ActionA.do
|
ActionA.do --forwards--> PageA.jsp


ActionB.do --forwards--> PageB.jsp
|
  importedForm.jsp --submit--> login.do --redirect-->ActionB.do

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 4:55 PM
To: Struts Users Mailing List
Subject: Re: How to forward back to including page


I'm a little confused, but when you submit the form the target should be an
action and couldnt you just do the processing within that action and if its
successful forward back to the page that includes the form?

- Original Message - 
From: "Siggelkow, Bill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 03, 2003 2:19 PM
Subject: How to forward back to including page


> I have an included page (included using ) that contains a form.
If the form processes successfully I want to return
> back to the original including page.  Is there a clean way of doing this?
The problem I have is that my action for the included page
> does not know anything about the page that includes it.  Maybe I could use
pass a request attribute that specifies the original URL or action?
> Any ideas?
>
> Bill Siggelkow
> 678.579.6458
> Mirant
> http://www.mirant.com
>
>
> -
> 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: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Mathew, Manoj
YES YOU R RIGHT. WHEN THE CHECK BOX IS NOT CHECKED, THE FORM WILL NOT EVEN HAVE THAT 
ELEMENT PRESENT. THIS IS AN ERROR IN STRUTS. IN OUR APPLICATION WE WROTE A CODE WHICH 
CHECK FOR THIS ELEMENT AN IT IS IS NOT THERE THEN MADE IT "FALSE"

ALSO MAKE SURE YOU HAVE isCheckbox():return boolean  instead if getCheckbox():return 
String  in your action form.

-Original Message-
From: Greg Amaroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 7:48 AM
To: Struts Users Mailing List
Subject: Re: Struts form validation of radio buttons and checkboxes


Thanks for the response, but I don't think the problem lies with the actual
validation that's happening.
I suspect that when a user submits the form page without a checkbox/radio
button checked, a blank variable is never sent to the form bean (i.e
http://www.url.com/servlet.do?checkboxvar=), it just doesn't send anything.
The form bean then sees it as as a nonexistent variable and returns a trace
stack error. Any other ideas?
I will however update my struts package.



> From: Robert Leland <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Wed, 03 Sep 2003 22:09:14 -0400
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Struts form validation of radio buttons and checkboxes
> 
> Greg Amaroso wrote:
> 
>> I'm having trouble with the struts form validation framework when it comes
>> to radio buttons and checkboxes. For some reason, I can validate any other
>> type of field, but not radios/checkboxes. Here's where I seem to be having
>> trouble: 
>>  
>> 
> Try a --nightly-- build of struts. I believe it has enhancements in
> commons-validator to validate
> radio controls. you can tell for sure by looking at the validator-rules.xml.
> 
> In there you'll see itels like :
>   function validateRequired(form) {
> 
> //Stuff deleted.
>  
>   if (field.type == 'text' ||
>   //stuff deleted
>   field.type == 'radio' ||
>   field.type == 'password') {
> 
> So this says that for the 'required' rule radio is supported.
> 
> Do the same for integer, byte, etc to see if 'radio' is supported.
> 
>> In the struts-config.xml file, should the form-property type be set to
>> java.lang.String or java.lang.Boolean?
>> 
>> In the page with the form, does it look right to create the radio buttons
>> like this:
>> 
>> 
>> 
>> 
>> 
>> 
>> Are there any other tricks to doing this that differs from validating
>> standard text boxes, textareas, etc.?
>> 
>> Thank in advance.
>> 
>> 
>> Greg Amaroso
>> 
>>  
>> 
> 
> 
> 
> -
> 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]



issue with the multi select

2003-09-04 Thread Mathew, Manoj
Hi all

  I have 2 multi select box( wth size 5)  and have  "ADD" and :remove" button in a 
dyna action form. Basically you can select one or more from a select box and add it to 
the second one using ADD buton adn remove the selected using "REMOVE" button. I have 
some other actions also in the same page.

issue:

   Add and REmove are working(in java script). but when he entire form is refreched( 
when some other actions are executed), the select box is not retaining the value.So 
basically "ADD" and"REMOVE" is not updating the form values. I checked the valuew of 
the select boxes when the form is posted.  The values are not correct. ie it is not 
retaing my "ADD" and "REMOVE" values..

IN STRUCTS_CONFIG, I HAVE DECLARED 2 STRINGS FOR THESE 2 SELECT BOXES

ADD
function add(value,to)
{ 
var newoption= new Option(value,value);
document.forms[0].s2.options[document.forms[0].s2.length]=newoption;

}
function remove(from) { 
for (var i=(from.options.length-1); i>=0; i--) { 
var o=from.options[i]; 
if (o.selected) { 
from.options[i] = null; 
   
} 
} 
from.selectedIndex = -1; 
} 

thank you
manoj

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



RE: How to forward back to including page

2003-09-04 Thread Siggelkow, Bill
Well, the problem is that I am including this fragment in *all* of my pages.  (The 
form allows the user
to login -- otherwise, the user is a "guest").
Basically, I want the "forward" of the action that processes the form to not be 
"hard-coded"
to a specific path but instead to the page that included it (actually to be more 
precise from the current URL).
Here is a visualization of what I want to do:


   importedForm.jsp --submit--> login.do 
--redirect-->ActionA.do
|
ActionA.do --forwards--> PageA.jsp


ActionB.do --forwards--> PageB.jsp
|
  importedForm.jsp --submit--> login.do --redirect-->ActionB.do

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 4:55 PM
To: Struts Users Mailing List
Subject: Re: How to forward back to including page


I'm a little confused, but when you submit the form the target should be an
action and couldnt you just do the processing within that action and if its
successful forward back to the page that includes the form?

- Original Message - 
From: "Siggelkow, Bill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 03, 2003 2:19 PM
Subject: How to forward back to including page


> I have an included page (included using ) that contains a form.
If the form processes successfully I want to return
> back to the original including page.  Is there a clean way of doing this?
The problem I have is that my action for the included page
> does not know anything about the page that includes it.  Maybe I could use
pass a request attribute that specifies the original URL or action?
> Any ideas?
>
> Bill Siggelkow
> 678.579.6458
> Mirant
> http://www.mirant.com
>
>
> -
> 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: Help me get my boss of my back

2003-09-04 Thread Siggelkow, Bill
It has nothing directly to do with Struts, but I have used Analog 
(http://www.analog.cx) with good success.

-Original Message-
From: Carl-Jakob [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 8:31 AM
To: [EMAIL PROTECTED]
Subject: Help me get my boss of my back


Hi,

 

We have put up websites for some customers despite I said no. nooo...
although now he has started bugging me about stats(5 min after they did go
live). Is there any tool for analyzing the accesslogs made in struts. Need
to be a webbased tool or I never be left alone for doing import developing.


 


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



Re: Struts form validation of radio buttons and checkboxes

2003-09-04 Thread Greg Amaroso
Thanks for the response, but I don't think the problem lies with the actual
validation that's happening.
I suspect that when a user submits the form page without a checkbox/radio
button checked, a blank variable is never sent to the form bean (i.e
http://www.url.com/servlet.do?checkboxvar=), it just doesn't send anything.
The form bean then sees it as as a nonexistent variable and returns a trace
stack error. Any other ideas?
I will however update my struts package.



> From: Robert Leland <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Wed, 03 Sep 2003 22:09:14 -0400
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Struts form validation of radio buttons and checkboxes
> 
> Greg Amaroso wrote:
> 
>> I'm having trouble with the struts form validation framework when it comes
>> to radio buttons and checkboxes. For some reason, I can validate any other
>> type of field, but not radios/checkboxes. Here's where I seem to be having
>> trouble: 
>>  
>> 
> Try a --nightly-- build of struts. I believe it has enhancements in
> commons-validator to validate
> radio controls. you can tell for sure by looking at the validator-rules.xml.
> 
> In there you'll see itels like :
>   function validateRequired(form) {
> 
> //Stuff deleted.
>  
>   if (field.type == 'text' ||
>   //stuff deleted
>   field.type == 'radio' ||
>   field.type == 'password') {
> 
> So this says that for the 'required' rule radio is supported.
> 
> Do the same for integer, byte, etc to see if 'radio' is supported.
> 
>> In the struts-config.xml file, should the form-property type be set to
>> java.lang.String or java.lang.Boolean?
>> 
>> In the page with the form, does it look right to create the radio buttons
>> like this:
>> 
>> 
>> 
>> 
>> 
>> 
>> Are there any other tricks to doing this that differs from validating
>> standard text boxes, textareas, etc.?
>> 
>> Thank in advance.
>> 
>> 
>> Greg Amaroso
>> 
>>  
>> 
> 
> 
> 
> -
> 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: Help me get my boss of my back

2003-09-04 Thread Ronald Rotteveel
Have you considered Awstats maybe?

I personally think it's a very good tool and Open Source too

Link: http://awstats.sourceforge.net/

Good luck with your boss.

Cheers,

Ronald

- Original Message - 
From: "Witbeck, Shane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 3:13 PM
Subject: RE: Help me get my boss of my back


> Webalizer is free, WebTrends is not :)
> 
> -Original Message-
> From: Carl-Jakob [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 8:31 AM
> To: [EMAIL PROTECTED]
> Subject: Help me get my boss of my back
> 
> 
> Hi,
> 
>  
> 
> We have put up websites for some customers despite I said no.
> nooo...
> although now he has started bugging me about stats(5 min after they did
> go
> live). Is there any tool for analyzing the accesslogs made in struts.
> Need
> to be a webbased tool or I never be left alone for doing import
> developing.
> 
> 
>  
> 
> -
> 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: populating Drop down -pls help(solved thanks)

2003-09-04 Thread Goldy J
thanks a lot my mistake problem solved ...

"Mainguy, Mike" <[EMAIL PROTECTED]> wrote:Are those typos in your jsp?
===>>>If so, that may be part of the problem...

Also, I'd check to verify that the values are not padded (i.e. CHAR(2)
datatype may yield "m " instead of "m" which is not the same value.


-Original Message-
From: Goldy J [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 5:38 AM
To: [EMAIL PROTECTED]
Subject: populating Drop down -pls help

Hello,
I have a JSP in which there are number of dropdown along with text boxes. I
am using struts tag lib for getting the value when I submit the form.
The problem is when I try to populate the dropdown in th JSP with the data
that i get from the databse . 
For example I have dropdown for gender with option M,F.Now when I select and
submit it I am OK but when I query and get the value from DB It doesnt set
to appropiate value but always with the deafult M. same for others
dropdowns.
Iam using the following in my JSP

value="m">

In formbean 
String gender;
setGender{};
getGender{};

Any help will be highly appreciated Thanks in advance.




-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.




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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Help me get my boss of my back

2003-09-04 Thread Witbeck, Shane
Webalizer is free, WebTrends is not :)

-Original Message-
From: Carl-Jakob [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 8:31 AM
To: [EMAIL PROTECTED]
Subject: Help me get my boss of my back


Hi,

 

We have put up websites for some customers despite I said no.
nooo...
although now he has started bugging me about stats(5 min after they did
go
live). Is there any tool for analyzing the accesslogs made in struts.
Need
to be a webbased tool or I never be left alone for doing import
developing.


 

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



RE: struts begineer mahavir

2003-09-04 Thread Mainguy, Mike
They left out a very import piece... the struts piece!
Add a file called hello-world/WEB-INF/struts-config.xml (you should have
gotten an error that it was missing I would think) and put the following
content in it...





http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>


  



Then access the page with the following path

/hello-world/hello.do

That should do the trick.

-Original Message-
From: mahavir [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 5:44 AM
To: Struts Users Mailing List
Subject: struts begineer mahavir

Hi Friends
i am begineer to struts,i searched on the net to start studing struts.i got
following one document,according to which i had written program but i am
geetting the  error.The error is at the end
And the document that i got from the net is

Create a Directory Structure
The first step in creating any web application is creating the base
directory that stores all of your information. We´ll call this base
directory hello-world. Inside the hello-world base directory, create a
WEB-INF directory in which to store application-level classes and
information. For more information on the structure of a web application, see
the Servlet specification.



Copy Necessary Files
The struts.jar file contains all necessary classes to run a Struts
application, including the ActionServlet class and the taglib classes. In a
normal binary distribution, the struts.jar file is located in the lib
subdirectory of the installation. Copy it to the hello-world/WEB-INF/lib
directory.
The struts-bean.tld file contains all necessary taglib information to
utilize the Struts message tag. In a binary distribution, the
struts-bean.tld file can also be found in the lib subdirectory. Copy this
file to your hello-world/WEB-INF directory.



Create the .properties File
A properties file is a file that contains a newline ("\n") separated list of
name-value pairs. In our hello world application, we need just one entry
called hello.message. Property resources are located using the classloader,
so make sure the properties file is in the CLASSPATH or that the servlet
container automatically places the files in the CLASSPATH of the
hello-word/WEB-INF/classes directory.
Create a file called HelloWorldResources.properties, and save it in
WEB-INF/classes/helloworld. This makes it accessible to the class identifier
helloworld.HelloWorldResources.
The following illustrates how one entry in the properties file should
appear:






hello.message=Hello Struts Developer




 Create the web.xml File
The web.xml file (deployment descriptor) describes your web application.
After creating this file, place it in the WEB-INF folder of the application.
A typical Struts web.xml file defines a servlet identifier for ActionServlet
using the  tags. Beneath the servlet tag, use init-param to define
the parameters that initialize the servlet. For this simple application,
we´ll define the servlet and one init-param to define where our application
resources are loaded. We´ll also define a taglib reference for use within a
JSP:






 action

org.apache.struts.action.ActionServlet

 
 
 
 

 
  application
  helloworld.HelloWorldResources
 
  1




 /WEB-INF/struts-bean.tld
 /WEB-INF/struts-bean.tld




 hello.jsp






 Create the Display Page
The last step before actually running the application is to create the JSP
display page. The display page is a normal JSP page that uses the Struts
taglib and one Struts tag. The display page should reside in the root
directory of your web application, in this case hello-world. We´ll name it
hello.jsp, and it should look like this:




<%@ page language="java" %>

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






error

Error: 500
Location: /hello-world/hello.jsp
Internal Servlet Error:

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
_0002fhello_0002ejsphello_jsp_21._jspService(_0002fhello_0002ejsphello_jsp_2
1.java:100)
 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(Compiled Code)
 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.ServletWr

Help me get my boss of my back

2003-09-04 Thread Carl-Jakob
Hi,

 

We have put up websites for some customers despite I said no. nooo...
although now he has started bugging me about stats(5 min after they did go
live). Is there any tool for analyzing the accesslogs made in struts. Need
to be a webbased tool or I never be left alone for doing import developing.


 



RE: populating Drop down -pls help

2003-09-04 Thread Mainguy, Mike
Are those typos in your jsp?
===>>>mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 5:38 AM
To: [EMAIL PROTECTED]
Subject: populating Drop down -pls help

Hello,
I have a JSP in which there are number of dropdown along with text boxes. I
am using struts tag lib for getting the value when I submit the form.
The problem is when I try to populate the dropdown in th JSP with the data
that i get from the databse . 
For example I have dropdown for gender with option M,F.Now when I select and
submit it I am OK but when I query and get the value from DB It doesnt set
to appropiate value but always with the deafult M. same for others
dropdowns.
Iam using the following in my JSP
 

 
In formbean 
String gender;
setGender{};
getGender{};
 
Any help will be highly appreciated Thanks in advance.
 
 


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.




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



RE: [SCAFFOLD] AccessBase, createKey and ResultSetMetaData JDBC drive r problems

2003-09-04 Thread Rohit Aeron
Test mail

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 4:18 PM
To: Struts Users Mailing List
Subject: Re: [SCAFFOLD] AccessBase, createKey and ResultSetMetaData JDBC drive r 
problems

Those utilities was originally developed using an older MySQL driver and 
may not be up to date. If you continue to have problems, my best advice 
is to have a look at the iBATIS DB layer , which uses 
the same approach to data access.

-Ted.

[EMAIL PROTECTED] wrote:
> Hi,
> 
> When using the scaffold AccessBase.createKey() method, to get a simple
> integer field from the database, I get a java.lang.ClassCastException:
> java.lang.Long. 
> 
> Looking at the log file, I find the following error message:
> 
> "Driver doesn't support strong ResultSetMetaData,  and PoolMan subsequently
> failed an attempt to fabricate  a table name in spite of the driver
> limitations".
> 
> Am using Poolman, Resin, Struts 1.1, J/connector, MySQL.
> 
> It has obviously a JDBC driver problem.
> 
> Has anyone come across this? Any ideas 
> 
> Thanks,
> Noam
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
Ted Husted,
   Junit in Action  - ,
   Struts in Action - ,
   JSP Site Design  - .



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



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


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



RE: "xmlns:bean" was already specified for element "jsp:root".

2003-09-04 Thread Loren Hall

i have, yes, both taglibs work independent, it's only when i import both


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


that i get the 'xmlns:bean" was already specified for element "jsp:root".'
error below

FYI:

c.tld:   http://java.sun.com/jstl/core

struts-bean.tld: http://jakarta.apache.org/struts/tags-bean-1.0.2


Loren


-Original Message-
From: hari_s [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:51 PM
To: 'Struts Users Mailing List'
Subject: RE: "xmlns:bean" was already specified for element "jsp:root".



Do You already put this taglib on your web.xml


/WEB-INF/c.tld
/WEB-INF/c.tld
  


/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  




-Original Message-
From: Loren Hall [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 11:35 AM
To: Struts Users Mailing List
Subject: "xmlns:bean" was already specified for element "jsp:root".


I just started using jstl's core tags on top of the struts tag my app
was
built on.  But I get a conflict when I import struts-bean.tld and c.tld
on
the same .jsp page . . . help appreciated . . . maybe there's a
particular
parser that will overcome this?

[Versions: tomcat 4.1.24, Struts 1.0.2, jakarta taglibs standard-1.0.3]

e.g.

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

```
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it
from fulfilling this request.
exception

org.apache.jasper.JasperException:

jsp.error.tlv.invalid.page

null: org.xml.sax.SAXParseException: Attribute "xmlns:bean" was already
specified for element "jsp:root".

at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.
java:105)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:430
)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:112
)
at
org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:661)
at
org.apache.jasper.compiler.Validator.validate(Validator.java:613)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:230)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:1
90)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invo

Re: logic:equal Tag

2003-09-04 Thread Vinit4J
Hi
If you want the parameters and values to be dynamic, then use 
tag with combination of 
This way you can pass any number of parameters with dynamic values from
within your JSP page.
Use  to compare the request parameters.
Try it out.
Vinit

- Original Message -
From: "Jan Van Stalle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 05, 2003 12:59 AM
Subject: Re: logic:equal Tag


> Manglu,
>
> it must be something like
>
> 
>
> where id should be the name which you pass to request.getAttribute("id")
>
> Jan
>
> "manglu" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> >
> > I noticed that a lot of tags support only the request parameters and
> > bean attributes.
> >
> > If i want to check for certain values from the attributes (say
> > request.getAttribute()== "Test" or the equivalent in Session) what tags
> > should i be looking for.
> >
> > THis is what i want to achieve.
> >
> > I need to pass certain parameters to my JSP
> >
> > and the view is rendered by the JSP based on these paramters.
> >
> > Currently in my struts-config
> >
> > 
> > is how i do it.
> >
> > Now these values are hardcoded.
> >
> > If my values are dynamic and determined by my action how do i get this
> > to work?
> >
> > I presume this would be a common requirement. How do the folks get these
> > stuff to work.
> >
> > TIA,
> > Manglu
>
>
>
>
> -
> 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]



  1   2   >