Hi Anubhav
for this you have to play along with both textfield and select
show Select first and then provide a button for new entry very immediate to
select and when he clicks it hide select and show text field..
i hope this must be in ur mind previously ... or may help you.
abhijeet
-
On 11/18/2003 12:47 AM Michael Blair wrote:
I have been able to get a MemoryRealm in Tomcat to work using BASIC
authentication. If I try to do this with FORM based authentication it seems
to think the ACTION=j_security_check in my login.jsp seems to make struts
think this is an action that should
hi anubhav
Continuing previous mail rather than having Buttong along with select field
add Doubleclick Event to both text field and select and hide each other on
double click by checking the tpe of Object it is...
abhijeet
- Original Message -
From: Abhijeet Mahalkar [EMAIL PROTECTED]
I have this in my code:
errors.add(ActionErrors.GLOBAL_ERROR,
new
ActionError(error.key.invalid-value.dummy,keyname,value,expected);
I have this in application.properties:
error.key.invalid-value.dummy=DUMMY: key:{0} Value:{1} expected:{2}
However, using html:errors/ in my page,
This may be a copy/paste issue, but this shouldn't even compile as it
looks here. You are missing a ) at the end.
Dominique de Waleffe wrote:
I have this in my code:
errors.add(ActionErrors.GLOBAL_ERROR,
new
ActionError(error.key.invalid-value.dummy,keyname,value,expected);
I
I have an application that has used bean:message for quite some time. I have
had multiple struts-config files and each one defined message-resources that it
needed. This all worked correctly
I just changed my application to use Struts Modules. I confirmed that I have
everything working correctly
On 11/17/2003 08:04:21 PM Janice wrote:
Hi Gang,
I was having problems getting validation to work at all. I've read every
post
on getting it to work, followed all step-by-steps, and nothing would ever
do
it. Today I yanked all the .jar files out of my lib directory and
updated it
with
Brad Balmer wrote:
This may be a copy/paste issue, but this shouldn't even compile as it
looks here. You are missing a ) at the end.
Cut-n-paste error. The code compiles. Only the replacements do not appear.
When I put an extra placeholder {3} and give 3 args only, the {3}
appears in the
On 11/18/2003 07:29:41 AM Dominique de Waleffe wrote:
I have this in my code:
errors.add(ActionErrors.GLOBAL_ERROR,
new
ActionError(error.key.invalid-value.dummy,keyname,value,expected);
Are keyname, value, expected evaluated or literal values? Do you mean
to have the quotes around them?
Susan Bradeen wrote:
On 11/18/2003 07:29:41 AM Dominique de Waleffe wrote:
I have this in my code:
errors.add(ActionErrors.GLOBAL_ERROR,
new
ActionError(error.key.invalid-value.dummy,keyname,value,expected);
Are keyname, value, expected evaluated or literal values? Do you mean
to have
Does anyone use datavision as reporting tool together with struts? any
examples?
thank you.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
This transmittal and any attachments may contain confidential, privileged or sensitive
information and is solely for the use of
I've just made a little test writing DUMMY: key:keyname Value:value
expected:expected in an html document.. and i got DUMMY: key: Value:
expected:
the problem is that is a special html symbol explorer thinks its an
unknown tag and outputs nothing.
if you look in the HTML source of
Hello all,
I have been asked to create an Action that would dynamically modify
struts-config.xml and ModuleConfig in order to avoid restarting the
app server to read the new struts.config.xml. I did some research and
looking at the code in the ModuleConfig implementation, it always
checks the
Hi,
I´m running Struts 1.1 with Tomcat 4.1.24 and also with Websphere (wsad) 5.
I have a tiny application developed under wsad running fine under tomcat.
When I try to deploy the same app to websphere I´m constantly getting
nullpointer exception for the objects I try to pass from my action class
Caroline Lauferon wrote:
I've just made a little test writing DUMMY: key:keyname Value:value
expected:expected in an html document.. and i got DUMMY: key: Value:
expected:
the problem is that is a special html symbol explorer thinks its an
unknown tag and outputs nothing.
if you
Hi,
I'm trying to run with no network connection, and I've set
the init param validation to false. Yet Struts is looking for
the Validator's DTD. Thanks for any help.
--
Nick
95 [main] INFO validator.ValidatorPlugIn - Loading validation rules
file from '/WEB-INF/validation.xml'
3130
Abhijeet,
This kind of thing will work but we will have to tell the users to double
click to enter the values. I have seen many dropdown lists in which when you
click on the display area, you can write new values or click on arrow to the
right to select a values from the list.
I am not sure how to
I use this:
http://ireport.sourceforge.net
.V
[EMAIL PROTECTED] wrote:
Does anyone use datavision as reporting tool together with struts? any
examples?
thank you.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
This transmittal and any attachments may contain
which tag do u use to access the constants from the class as I don't want to use JSP
Scriplets???
Thanks,
S!
[EMAIL PROTECTED] 11/17/03 05:41PM
Import the class in your jsp, then you can directly access it.
%@ page import=GSOPConstants%
-Original Message-
From: Srinivas Kusunam
Hi, running Tomcat 4.1.27. I have the following JSP:
jsp:include page=../database/list.do
jsp:param name=dbid value=%=dbid%/
/jsp:include
Whatever comes after the above, does not make it to the browser.
Tomcat's log reports a closed stream:
- Root Cause -
java.io.IOException: Stream
BDY.RTF
Description: RTF file
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If you do not require the collection after the page is rendered, you could put it into
request scope. This is what I do to populate listboxes, tables, etc..
That way they don't hang around any longer than they need to - they get used to render
tha page, then get discarded. If you are using a
I don't think there is one, but maybe somone will educate me. ;-)
Why not put this in ApplicationResources and then use the bean:message
tag?
Larry
[EMAIL PROTECTED] 11/18/03 8:31 AM
which tag do u use to access the constants from the class as I don't
want to use JSP Scriplets???
Thanks,
S!
Nevermind. It's just a simple configuration issue. Got it resolved.
-Original Message-
From: Pingili, Madhupal
Sent: Monday, November 17, 2003 1:51 PM
To: 'Struts Users Mailing List'
Subject: Does Struts-Menu work with J2EE 1.2 (servlet 2.2 and JSP
1.1) lev el container?
how can use this tag to pass more the one parameter, for example 4 parameter?
With out use JSTL .
Only Struts tag!
How can I do?
This would be a fine place to look:
http://jakarta.apache.org/struts/userGuide/struts-html.html#link
Hint: If you prefer to specify a java.util.Map that contains all of the request
parameters to be added to the hyperlink, ...
Quoting Mauricio T. Ferraz [EMAIL PROTECTED]:
how can use this tag
I found that Tomcat bug 21440 regards this. Basically JSP included pages
have direct access to the out stream, an naturally this is transparent
to the included page, so the struts framework closes the out stream
(prematurely seen in perspective of the including page).
Any suggestions for
Hi all,
Altough this might not be the right place to ask, but I'm just curious.
Recently I see a lot of different frameworks which pretty much promise the
same functionality as the Struts framework.
For instance I found:
struts
webwork
Spring
etc...
Which one is the best? I have been using
I don't know if you can directly link to a tile, because the web container will
still need a way to get to your tile from a URL. You might still need an action,
but at least if you use the ForwardAction that comes with struts, you won't need
to write one.
-Original Message-
From: [EMAIL
Kris, do you have any example to show me?
How can I use this?
I´d like to pass 3 parameter fixes and other parameter in a
(java.util.Property)
Is there a way to do it???
- Original Message -
From: Kris Schneider [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent:
Hi.
1.What version of struts are you working with ?
2.If the action map's validate attribute is set to true, the
form.validate() method is called *before* the action is executed. If
there are errors it will forward back to the input page (value of the
input attribute).
3.To avoid
BDY.RTF
Description: RTF file
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Personally, I consider MVC frameworks to be commodities. It doesn't
really matter which you use use. The real point of the exercise is to
treat web applications like applications, rather than some throwaway hack.
Which framework is best for a particular project is going to depend on
the
You are right. This is not the right forum.
The reason you are asking on this forum (you will get a good answer quickly)
is the reason you are using struts and the reason struts has a future. All
the other frameworks except for JSF and Microsoft are of technical interest
only.
Edgar
A few good things to know when using struts and jsp/servlet security:
1.the logic:present and logic:notPresent tags let you conditionalize
your jsps based on the users role.
2.Your code can use
javax.servlet.http.HttpServletRequest.isUserInRole
3.Since you are using tomcat
Hi,
I have a scenario where I have an array of checkboxes
along with other data displayed in a table format on a
JSP. I have to keep track of which checkbox is checked
or unchecked when a user submits the form. I use the
validate() method of my ActionForm to do validation.
However, the values of
I wonder if there is a struts way for reacting to
changes on the checkbox and making changes to other
controls as a result. What I would like to happen is
to disable a submit button when no checkbox is
selected, and enable it when only one checkbox is
selected, disable it again if more than one
Hi,
I am using the following in a JSP (Welcome.jsp) - trying to output the User-Agent
header value.
%@ page language=java %
%@ taglib uri=/tags/struts-bean prefix=bean %
%@ taglib uri=/tags/struts-html prefix=html %
%@ taglib uri=/tags/struts-logic prefix=logic %
...
logic:present
Thank you Richard and Susan,
I feel silly, of course I didn't have validate=false on the mapping for
displaying the form. But now I do and its finally validating!!!
Janice
(now if only I can figure out how to get the tiles to work, I can really get
to work!)
Ted Husted [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Personally, I consider MVC frameworks to be commodities. It doesn't
really matter which you use use. The real point of the exercise is to
treat web applications like applications, rather than some throwaway hack.
Which
Is there any way to disable URL rewriting (with jsessionid) in Tomcat or
via struts-config.xml or anything? I'm about at my wits end with this
jsessionid thing - now our search engine which indexes by crawling the
site (and doesn't support cookies) can't index properly because of the
Can any one correct me where I'm wrong using the following rule for validating email
addressIt fails to validate against the valid email address..?
[EMAIL PROTECTED],4}$
Tnx in advance :)
-Ram
-
To unsubscribe,
BDY.RTF
Description: RTF file
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'd suggest calling:
org.apache.commons.validator.GenericValidator.isEmail(String arg);
-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 1:03 PM
To: Struts Users Mailing List
Subject: Email Validation Rules
Can any one
We want to use commons-pool package for instance pooling,
where can I find a running complete example
,also we would be happy if somebody share their experinces with us ,,
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I have a Tiles Controller adding an attribute to the ComponentContext. This piece
works fine and I can see the new attribute in the Controller class. The attribute is
called message, which is a string.
context.putAttribute(message, this is the message!);
The problem is the JSP that uses the
yeah...I tried that way but the problem I belive is it does accepting special
character after the . part of email address.
any other idea how to make it work???
-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 1:16 PM
To: Struts
Am Montag, 17. November 2003 22:48 schrieb Daniel Blumenthal:
Hi,
i've been looking into adding blogging functionality to my website
(which uses struts), and one which was suggested was pmachine
(http://www.pmachine.com/index.php). however, this uses php, and this
raised the question of
Hi,
I really needed to know how ProcessAction acts. Struts In Action says
The ProcessAction will than just save the ResultList collection in
request scope, using the default RESULT attribute name, and forward
control to success..
The problem is that i am not getting a RESULT attribute in my
Hi all !
My application is running behind a proxy which caches everything, if the url
is the same.
It's no use that I have this in each Jsp:
meta http-equiv=pragma content=no-cache
Therefore I used the Struts-property
controller nocache=true/
But it was not that I expected:
My
NAFAIK, but that's by no means definitive. I *do* know that you can configure a
TC context (or default context) to do the opposite. In other words, turn off
cookies and only use rewriting.
Hm, what if you create a filter to wrap the response with an
HttpServletResponseWrapper that no-ops
We are trying to perform some complex form validaion with the new Validator plugin.
Here is what we are trying to do:
1 -- validate a form field based on other form fields
2 -- validate a form field based on div style settings
I know that I could solve the first problem with the old validation
George,
I have done something similar to this. I haven't looked at browser
compatability yet(we're currently using this with ie6), but the concept
that I use is that I look at the parents of the form field, trying to find
out if the element is hidden. If I find that a parent that is
Kris,
Thanks for the response. I saw that I could do the opposite :) - no help
there. I'd be really interested in pursuing your second suggestion.
Ideally, I'd see setting up a filter that processes every incoming
request and determines if its originating from our search engine, if so,
then
Nick,
Thanks for your response. I'm doing something similar with javascript. What would be
better is if we could validate the form serverside with the validation framework... I
think we would have to write a custom validator that somehow would get the div parent
of the form field and check
Are there any pro/con 's for either?
Nathan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
George,
You can't do the validation server-side as you proposed because the browser
only sends HTML form elements. It will not send any information regarding
the div tag. You would have to have a hidden form variable and use
JavaScript to populate it with any values of interest when the form is
First, check out a tutorial on Servlet 2.3 filters. One at:
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets8.html
Essentially, it'll boil down to creating two classes: a filter (implements
javax.servlet.Filter) and a response wrapper (extends
Am Dienstag, 18. November 2003 18:29 schrieb Brice Ruth:
If anyone knows a solution to this matter, I'm definitely interested
in hearing about it, too. From all what I can tell, some search
engines don't care (Altavista's Scooter, for example), while
some do (Google, in particular) and go away
I am having trouble accessing a message from my
non-default message bundle.
I have the following entries in my struts-config.xml
file...
message-resources
parameter=com.it.rfr.resources.rfrresources
/message-resources
message-resources key=shared
I like struts managed db pools, however, the struts developers aren't too
happy about the quality and the dependency on the commons-pooling library
and are attempting to phase it out.
Edgar
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18,
I'd probably do a User-Agent header check ...
Now, I've got a Filter already doing some things for the site - so I
know how to configure web.xml and such, what do I need to do to use
HttpServletResponseWrapper?
Brice
Kris Schneider wrote:
First, check out a tutorial on Servlet 2.3 filters.
Got it.
Simple as pie, actually. Created the Wrapper class, no-op'd the
encodeUrl/encodeURL and put it into the Filter that was already setup to
handle all incoming requests ... piece of cake :)
Sweet!
Here's the wrapper code:
public class StripSessionIdWrapper extends
Am Dienstag, 18. November 2003 20:10 schrieb Kris Schneider:
Oh, I see that I left that approach out, for I dropped it at an
early stage in my design considerations. Of course, you can
kill off session information via a filter that way, but what will
happen if the user has disabled Cookies, and
I'm going to handle this by specifically looking at the User-Agent
header that gets sent ... if I can detect that it is a search engine
(particularly *our search engine crawler), then I'll disable the
encodeURL/Url methods ... otherwise, I'll leave things as is.
This takes care of your
I think in struts-config.xml there is a section for enabling validator plugin,
if i am not mistaken you have to comment that section out..
Khalid
Quoting Afshartous, Nick [EMAIL PROTECTED]:
Hi,
I'm trying to run with no network connection, and I've set
the init param validation to
Hi,
I have the following defined in my config:
action
path=/buildCRAction
type=com.hnw.apps.ml.clients.action.BuildContentReleaseAction
validate=false
name=contentReleaseForm
input=/build_content_release.jsp
Felipe,
How is '/componentes/mensagens.jsp' related to the Action or to
'tiles.erro'? When do you get this message vs. the blank white page? Have
you viewed the source of the 'white page' to see if it contains any html?
-Richard
-Original Message-
From: Felipe Nascimento [mailto:[EMAIL
Is there a way to turn off all (750 lines!) of the JavaScript that gets
generated for form validation?
Thanks,
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM
-
To unsubscribe, e-mail:
Hi,
I'm using Struts with Tomcat 4.1. If you disable cookies in your tomcat
context, all your ULR will be rewritten with a jsessionid. So the proxy
issue should be solve. However I don't know If there is a way to enable
cookies AND be sure that the proxy's cache is disable.
In my project I
Hi,
I'm trying to pass some initialization parameters to an Action and I'm having
some trouble. What I want is to be able to tell my LoginAction not to validate
passwords for development systems. Here is what I have right now followed by the
error I get on startup:
struts-config.xml:
action
I'm not sure that this will solve your pb, but I think you should use
public boolean isPasswordDisabled() {
return passwordDisabled;
}
instead of getPasswordDisabled.
Carl
Frank Maritato wrote:
Hi,
I'm trying to pass some initialization parameters to an Action and I'm
having some
I've been fiddling around with Struts for a while now and am still a
little puzzled as to whether JSPs should be getting their data from my
DynaActionForm or from the session/request context. For example, if my
JSP contains:
html:select property=selectedCustomer size=5
html:options
Gede,
Thanks so much for your help! The problem was that I had the property
listed as driverClass instead of driverClassName, so the BasicDataSource
couldn never locate my driver. When I fixed that, it fired right up.
Thanks again!!
Brent
-Original Message-
From: Gede Indrawan
Carl,
That didn't work, but thanks anyway. I also tried changing the data type for
passwordDisabled to a String and have the normal get/set methods but that didn't
seem to change the outcome either.
I think the real problem is that it is trying to call setPasswordDisabled on
So I have been stuck for a day or so on this exception:
org.apache.jasper.JasperException: Cannot find bean org.apache.struts.taglib.html.BEAN
in any scope
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at
Have you a vaild formBean define for this html:form in your struts
config file ?
form-bean name=myForm type=org.myForm/
Is this bean called in your action mapping ?
action path=/htmlForm type=org.myAction name=myForm
scope=request validate=true input=/page.jsp
forward name=success
I don't appear to have to declare customers in the form, but
if I don't declare suburb, I get an error... what is the difference?
'suburb' is a form property, Struts will call get/setSuburb as it
populates the Form Bean and generates the HTML.
'customers' is a collection of things to be used
Frank,
I think you are on to something here. Why don't you subclass ActionMapping
and in your subclass put your member variable and getter and setter. You can
then access the value from your action class's excecute method's mapping
parameter after you cast it to your ActionMapping subclass?
ActionForm objects are representation of a form and the data in the form.
It holds the values of your INPUT, SELECT, TEXTAREA and other form
controls.
The options of a SELECT control are only used to help the user choose a
value; its only purpose is to give the SELECT control a value and isn't
Although, I don't really see a major problem with storing the options in the
form itself (just to make things simple). Anybody have a compelling reason
NOT to do this?
i.e. I put my statesCollection as a property on my ActionForm with a List
datatype. Then I can just use the form property to
Hi,
I've recently switch to a resource.properties file to externalize all
text from jsp (in the perspective of translation of the site)
The site is a classic e-commerce web site, so I dsiplay a Cart and the
amount of the products in the custumer's cart.
In my old jsp I wrote :
Hi,
Can anyone please send me an example for ExceptionHandler? I need to to know
what goes in teh config file, the action class and the other files.
TX,
S P
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Check this article out:
http://javaboutique.internet.com/tutorials/excep_struts/index-7.html
-Richard
-Original Message-
From: Sharmila Pandith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 3:34 PM
To: [EMAIL PROTECTED]
Subject: ExceptionHandler example
Hi,
Can anyone
From: Frank Maritato [mailto:[EMAIL PROTECTED]
I think the real problem is that it is trying to call
setPasswordDisabled on
org.apache.struts.action.ActionMapping instead of my
LoginAction class.
I remember being confused about this, too. When struts-config.xml gets
run through the
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Although, I don't really see a major problem with storing the
options in the form itself (just to make things simple).
Anybody have a compelling reason NOT to do this?
i.e. I put my statesCollection as a property on my ActionForm
with a List
Hi,
For x and y reasons I've to create my own version of the c:out tag.
Everything is working great for everything BUT DynaValidatorForm where I get Unable to
find a value for value in object of class
org.apache.struts.validator.DynaValidatorForm using operator .
I'm using the evaluate
The reason I don't do this is because if the form is in session scope,
it hangs around consuming memory until the session goes away.
As a caching mechanism, this bites rocks, because it is cached for each
user. :-/
By putting this type of stuff in request scope instead of on the form,
it
Thank you very much! That was exactly what I needed. Now I just need a
little advice on working with Tiles.
Do I need to have a tiles definition for every single different view?
I will give a small example.
definition name=page.default path=/templates/index.jsp
put name=head
I believe so... Here is my config and some of the relevant directory
tree... The action for NewLocation appears to successfully take me to
the AddLocation page. (it only forwards right now).
form-beans
form-bean name=addLocationForm
type=org.cs101.fdb.struts.form.AddLocationForm /
Frank,
I tried subclassing ActionMapping and setting the type attribute in the
struts config action-mappings tag.
The runtime error goes away but the setter method never gets called. It
could be a bug.
-Richard
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
The options of a SELECT control are only used to help the user choose a
value; its only purpose is to give the SELECT control a value and isn't
itself a value of the form. Think of it this way: the form doesn't lose
any data by
U r welcome :)
That configuration I just adopt it from the information at
struts-documentation.war from the binary distribution of struts.
http://localhost:8080/struts-documentation/faqs/database.html
I install it on Tomcat 4.1.29 using default port.
best regards
-GI.
- Original Message
I am designing my first struts application, but I have been a java
developer for about 5 years. I am actually refactoring a survey app. I
wrote. The way struts was explained to me was my ActionForms were like
my Transfer objects and my actions were just that, the action that was
requested...
Hi,
I'm nearing the end of a prototype for my first Struts application.
At first, I used JSTL to handle most of my iteration, declarations,
and conditional operations. Then, as I learnt more about the Struts taglibs,
I decided to simply use the Struts libraries, for the sake of
Once you use EL, you don't have much of a choice than to use them
side-by-side.
Nick Faiz wrote:
Hi,
I'm nearing the end of a prototype for my first Struts application.
At first, I used JSTL to handle most of my iteration, declarations,
and conditional operations. Then, as I
Thanks Brice,
I just checked out Struts-EL. I think I'll begin using it with JSTL.
Nick
-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 November 2003 12:36 PM
To: Struts Users Mailing List
Subject: Re: anyone using jstl side by side with the
Brice Ruth wrote:
Once you use EL, you don't have much of a choice than to use them
side-by-side.
For the benefit of us noobs... what is EL?
-Gus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I'm sorry if this is too basic, I'm still really green.
I'm validating a form. This form is used for adding and editing widgets. I
use the same actionHandler, where I test a request parameter and set up the
form accordingly. It builds my form object and either resets it for an add,
or
Gus,
http://jakarta.apache.org/struts/userGuide/building_view.html#struts-el
EL is an acronym for `Expression Language'.
Nick
-Original Message-
From: Gus Heck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 November 2003 12:37 PM
To: Struts Users Mailing List
Subject: Re:
1 - 100 of 111 matches
Mail list logo