My homepage is loaded with struts, tiles.
Because I use the url parameter preview
(http://localhost/page/Page1.do?preview=true), this is inserted in all
the links and forms actions (links).
I use the request.getParameter(preview) in the JSP page to test if it
should load the special preview stuff.
Hi All,
I have got a bean in my session scope. I want to find the length of a string
which is a member variable of that bean.
I tried bean:size but this works only with collection.
Any help?
--RahulJoshi
try
int lenth = beanId.StringName.length();
-Original Message-
From: rahul [mailto:[EMAIL PROTECTED]
Sent: Friday, November 18, 2005 2:19 PM
To: user@struts.apache.org
Subject: How to find length of a string in a bean
Hi All,
I have got a bean in my session scope. I want to find the
hi,
you can try some technique similar to AJAX. Open the popup and do the
necessary search either directly doing a http request..with submit or
using HttpXMLRequest if your server support such request. And then use
javascript window.open.href etc to point to the form in the page and do
the
I'm not sure if this is what you're looking for, but I just have a
setStrDate(String strDate) method and do the conversion yourself. Set your
form property to strDate. First test for nullness (if such a thing exists)
and set the date to something your validation rules will pickup.
Z.
Thanks
Given that we are talking about an MVC framework, that kind of controlling
input should be processed in the controller. In other words, it would be
best to
request.getParameter(preview) in the action class.
- Nick
On 11/18/05, Jesper Preuss [EMAIL PROTECTED] wrote:
My homepage is loaded with
Yo may use a customized requestProcessor that check for this preview
attribute (or any other thing) and put a flag in request scope. Any
other controller/view element can then check this flag to change it's
behaviour.
Nico.
Nick Sophinos a écrit :
Given that we are talking about an MVC
(I used to make on sf.net many years ago a zip of a compleate Struts,
jstl, w/ tomcat, etc.)
It be nice to make a zip of a Struts 1.3 start.zip that includes a super
simple master/detail(displaytag) and standard development enviroment.
It would include things that we normaly and regulary use
Hi Michael!
I've just installed the new version and tryed out the new features!
Stuff works fine and having EVENT-DIALOG-SOMETHING in struts-config.xml
seems to be much more logical then having getKeyMethodMap() inside of
Action.class!
The migration took something like 10 minutes, so go on
We're looking at a major redesign of an application currently
implemented in ATG Dynamo 5 and their JHTML / FormHandler technology.
The decision makers here have settled on Dynamo 7, hosted inside
WebSphere.
Dynamo has discontinued support for JHTML, replacing it with a set of
JSP tags - but
On 11/18/05, netsql [EMAIL PROTECTED] wrote:
(I used to make on sf.net many years ago a zip of a compleate Struts,
jstl, w/ tomcat, etc.)
It be nice to make a zip of a Struts 1.3 start.zip that includes a super
simple master/detail(displaytag) and standard development enviroment.
...
So the
In my JSP
have a checkbox. When it is checked by user have to make sure 2 of the
entries are enteried.
i.e
chkBox1 -- checkbox --- checked
txtfield1 --- Should have entered value.
txtfield2 Should have entered value.
Also, have a 2 radio buttons. When
Use Validate method in the Action Form or write your own Validator.
On 11/18/05, fea jabi [EMAIL PROTECTED] wrote:
In my JSP
have a checkbox. When it is checked by user have to make sure 2 of the
entries are enteried.
i.e
chkBox1 -- checkbox --- checked
txtfield1 ---
write your own Validator
do you mean in Validator.xml right?
can I right a javascript in there that does this?
where can I find an example that does such stuff?
Thanks.
From: Srinivas Jadcharla [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users
Look for examples in the net or you can use validate method in the form it
is easier.
On 11/18/05, fea jabi [EMAIL PROTECTED] wrote:
write your own Validator
do you mean in Validator.xml right?
can I right a javascript in there that does this?
where can I find an example that does such
using dynaactionforms. would prefer using the the validator xml for this.
thanks for your response.
From: Srinivas Jadcharla [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: struts javascript
I re-read it.
This looks great:
http://dojotoolkit.org/archive/dojo-2005-11-07/demos/widget/
.V
Wendy Smoak wrote:
This thread might help:
http://www.nabble.com/OT%3A-Best-AJAX-framework-t511421.html
--
Wendy
-
To
Iam sorry i have no idea abt DynaAction forms.
On 11/18/05, fea jabi [EMAIL PROTECTED] wrote:
using dynaactionforms. would prefer using the the validator xml for this.
thanks for your response.
From: Srinivas Jadcharla [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
On 11/16/05, Jesus Salvo Jr. [EMAIL PROTECTED] wrote:
Thanks ... I sort of worked around it by using java.sql.Date instead,
since the built-in converts in commons-beanutils does not really have a
java.util.Date converter,
only a java.sql.Date converter.
However, I still have one problem
I have a form with multiple rows on it say it has columns a b c chk hid
I have javascript to set hid to Y or N based on someone clicking chk
Then in my form bean I have
String[] a;
String[] b;
String[] c;
String[] hid;
My question is how can I make my check box set the correct hid (if I
Jesper
With the 2.3 servet API, there is a new method:
request.setCharacterEncoding(String encoding)
one must call before calling
request.getParameter(Watever)
HTH
Martin-
- Original Message -
From: Jesper Preuss [EMAIL PROTECTED]
To: Struts Users Mailing List
What part of this would AJAX solve? Not questioning because I know to be
smart, but honestly asking. Right now what we're doing is having the
popup submit itself to a traditional action, then refreshing to another
JSP that handles that the updating of the parent page. I'd love it if
AJAX were the
Thanks Laurie for the detailed explanation.
I am still not able to get the validation working .. after spending almost
a frustrating one week on it.
Can you help me by telling me what I am doing wrong here... everything
seems to be right.. just that it isnt working... :(
Bean definition and
Hello!
I'm new in Struts.
I don't know how to write such code using Struts (version in html):
html
head
titleSimple Forward/title
/head
body
You can rename the source html file and it allways will works!!!
br
form name=test method=get onsubmit=javascript:
this.action=document.location
Hello,
I am using struts 1.2.7 and am having trouble outputing error messages for
specific fields.
If I have the following (in a form):
html:input property=name /
and in my action I do something like:
messages.add(name, new ActionMessage(error.name.required));
Problem solved... must be Friday.
Aladin
Hello,
I am using struts 1.2.7 and am having trouble outputing error messages for
specific fields.
If I have the following (in a form):
html:input property=name /
and in my action I do something like:
messages.add(name, new
Yes it's Friday indeed (TG). For the benefit of you out there
searching the archives, you can accomplish this by using html:errors
property=name / . You can get more information here:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
Hubert
On 11/18/05, Aladin Alaily [EMAIL
Have a jsp with a checkbox.
If this is checked have to make sure 2 other textfields are not empty.
validator name=confirm
classname=org.apache.struts.validator.FieldChecks
method=validateConfirm
methodParams=java.lang.Object,
org.apache.commons.validator.ValidatorAction,
Yeah, I do it this way:
In the ApplicationResources.properties:
errors.email=font color=redstronginvalid e-mail address./strong/font
And in the jsp:
tr
td width=200 align=rightbean:message
key=label.screen3.emailAddress/:/td
tdhtml:text property=emailAddress//tdtdhtml:errors
Hi,
Jason suggested some fix and I tried. Still some where it is going wrong.
Any other suggestions please,
Thanks in advance,
Bala
I attached the output html:
HTML lang=zhHEAD
META http-equiv=Content-Type content=text/html; charset=UTF-8 META
content=MSHTML 6.00.2800.1522 name=GENERATOR/HEAD
My application was using struts-layout and I wanted to upgrade to 1.2.8.
I thought the tiles tags would translate 1 to 1 but they don't seem to.
When I change template:get name='header' %@ include
file=header.jsp%/template:get
to tiles it says it can not have content in a body. I would like to
On Nov 18, 2005, at 3:03 PM, Garner, Shawn wrote:
When I change template:get name='header' %@ include
file=header.jsp%/template:get
to tiles it says it can not have content in a body. I would like
to default
the header to this if they don't supply a header.
You probably need to include
OTOne does wish that every UI technology had the XForms concept of
repeat [1]/OT
-Rahul
[1] http://www.w3.org/TR/xforms/slice9.html#id2632123
On 11/16/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
This is an older simpler version: http://superinterface.com/rdapp/viewList.do
And source code
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
On 11/17/05, Laurie Harper [EMAIL PROTECTED] wrote:
Craig McClanahan wrote:
On 11/17/05, David Whipple [EMAIL PROTECTED] wrote:
I would like to be able to create a custom tag which is able to use the
struts html:text, html:dropdown or html:hidden fields. I am not able
to find a way to
On 11/18/05, rahul [EMAIL PROTECTED] wrote:
Hi All,
I have got a bean in my session scope. I want to find the length of a string
which is a member variable of that bean.
snip/
Try JSTL fn:length().
-Rahul
I tried bean:size but this works only with collection.
Any help?
Hi Alex,
I've finally discovered why the jsessionid appended to the
html:rewrites, links, and images was breaking my app.
As it turns out, the apache-tomcat connectors were configured to handle
anything going to /WEB-INF, *.do, *.jsp. Unfortunately, jsessionid is
handled properly only via
I fixed the Chinese locale issue and the mistake was forgetting the encoding
option in native2ascii.
Used
native2ascii dummy.properties ApplicationResources_zh.properties
instead
native2ascii -encoding UTF-8 dummy.properties ApplicationResources_zh.properties
Thanks for all.
Have a good
*Assuming* ApplicationResources.properties contains
In the ApplicationResources.properties:
errors.email=font color=redstronginvalid e-mail
address./strong/font
If your key value isnt pointing to errors.email then it should be pointing
to a bundle specification for your ApplicationResources
Thanks! I went with my original setup and things are working well. A
bit more coding than I wanted but that's OK ;-)
On Nov 17, 2005, at 5:36 PM, Michael Jouravlev wrote:
On 11/17/05, Jon Wynacht [EMAIL PROTECTED] wrote:
Hi,
I have a question that might have already been answered but I
Yeah, no easy solution for this. The more I think about it the more it
occurs to me that what we're attempting to do is setup a common code
base for updating any N number of forms using Javascript. The plumbing
for this is easy and obvious (I listed it earlier). But making it a
single code base
fea jabi wrote:
Have a jsp with a checkbox.
If this is checked have to make sure 2 other textfields are not empty.
validator name=confirm
classname=org.apache.struts.validator.FieldChecks
method=validateConfirm
methodParams=java.lang.Object,
org.apache.commons.validator.ValidatorAction,
One thing jumps out right off: your form bean is a DynaActionForm. It
needs to be an instance of ValidatorActionForm for validation to occur;
either DynaValidatorActionForm form or, probably, DynaValidatorForm.
If that doesn't work, I'd suggest adding a simple String-type property
to the form
Yes. Starting with browsers :-(
Rahul Akolkar wrote:
OTOne does wish that every UI technology had the XForms concept of
repeat [1]/OT
-Rahul
[1] http://www.w3.org/TR/xforms/slice9.html#id2632123
On 11/16/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
This is an older simpler version:
Rahul Akolkar wrote:
On 11/17/05, Laurie Harper [EMAIL PROTECTED] wrote:
Craig McClanahan wrote:
On 11/17/05, David Whipple [EMAIL PROTECTED] wrote:
I would like to be able to create a custom tag which is able to use the
struts html:text, html:dropdown or html:hidden fields. I am not able
Thanks Atta. It is reloading the pages now.
PS. Is this default behaviour for STRUTS? And if so,
do you know why? It seems to me that the default
should should be not to cache pages with dynamic
content.
Is there a way to configure this in Tomcat or in the
struts config?
--- atta-ur
Where would AJAX help? A few ways, but principly by cleaning up the flow
when you submit/close the popup; instead of the browser submitting the
form, sending a request, reading the response, pulling the required data
from it, and firing the Javascript to update the opening window, you'd
make
Thanks Laurie.
--- Laurie Harper [EMAIL PROTECTED] wrote:
As far as I know, Tomcat only supports fully
reloading the whole app.
You might want to ask on the Tomcat list to be sure,
though.
L.
Mon Cab wrote:
Thanks Laurie.
That helps a lot. I read about the context.xml
Jakub Królikowski wrote:
Hello!
I'm new in Struts.
I don't know how to write such code using Struts (version in html):
html
head
titleSimple Forward/title
/head
body
You can rename the source html file and it allways will works!!!
br
form name=test method=get onsubmit=javascript:
Sorry, my bad... I wasn't aware of the LocaleAction. Apparently my
suggestion was a good one, just late :)
Frank
Frank W. Zammetti wrote:
I just wanted to point out the 3rd question on this page:
http://husted.com/struts/FAQ/view-i18n.htm
Laurie, your a committer now... this seems to me
On 11/18/05, Mon Cab [EMAIL PROTECTED] wrote:
Thanks Atta. It is reloading the pages now.
PS. Is this default behaviour for STRUTS? And if so,
do you know why? It seems to me that the default
should should be not to cache pages with dynamic
content.
Is there a way to configure this in
Hi,
I have STRUTS 1.2.7 based web application which I want to protect the
decompilation of class files. I would like to obsfucate the code using
JShrink or other obsfucating tools.
I am wondering if anyone done this before to make the Struts 1.2.7 based web
application work with obsfucated class
52 matches
Mail list logo