Hi,
I am a newbie to web development in Java. Coming from ASP.Net background, I
thought Shale framework would be easier for me to understand. Actually, I am
able to progress well with Shale/Clay/MyFaces and pretty much do everything
that I could using ASP.Net. I am stuck with this problem of ini
Hi all,
I am using struts1.1 and i am using validator framework.I have a problem
regarding branching of validation and optional validation of some fields.
The situation is like...
I have a search form which contains two tabs search by number and search by
name .I am using a single action form
Hi All,
Can anyone please tell me something regarding BasicDynaBean class and
DynaProperties. Any examples or links where i can find examples will be of
great help.
Thanks in Advance.
-
Find out what India is talking
It's not the browser. That is bad information.
On 7/13/06, RODRIGUES DE ALMEIDA Thiago <[EMAIL PROTECTED]> wrote:
Hi Antonio,
Thank you for your reply.
Would you have the reference for these problems ?
If it's a browser's bug or limitation, i would need to prove it. :)
I'll try to do this re
Hello:
I've playing with struts 1.3.5, specially with
struts-faces and get standar jsf implementation work.
But i'm going to start trying to make icefaces work
with struts.
I want to use the expandible table component of this
jsf implementation.
If someone have some experience integrating struts
On 7/13/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
On 7/13/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> Say I want to redirectto to a same action that has been posted to from
> a browser. I don't have a hardcoded action name that I want to call. I
> need to obtain this name (with con
On 7/13/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
Say I want to redirectto to a same action that has been posted to from
a browser. I don't have a hardcoded action name that I want to call. I
need to obtain this name (with context and such) from the request.
What do I do?
I can get reque
The element relates solely to the validation message and is a
"replacement parameter" in that message - with the position indicating
which parameter to replace. So if you have a validation message in you
resource bundles that looks like this:
minimum.error={0} must be greater than {1}
will rep
Is this LookupDispatchAction?
One common problem with that is whitespace around the label text -
make sure you put the contents of the button all on one line or split
the lines within the jsp tags
Nialll
On 7/13/06, Pillay, Kiren KN <[EMAIL PROTECTED]> wrote:
Hi people,
I'm sure you've seen
Say I want to redirectto to a same action that has been posted to from
a browser. I don't have a hardcoded action name that I want to call. I
need to obtain this name (with context and such) from the request.
What do I do?
I can get request.getRequestURI(), request.getRequestURL(),
request.getCon
On 7/13/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
Gomathi wrote:
> Hai,
> What is the use of dynamic attribute of in struts-config.xml
> like
IIRC, it's to tell Struts to treat your form bean as a DynaBean when
it's not based on DynaActionFrom or a sub-class. In general, you
shouldn't need t
At some point in the past, my log files would include nicely indented
information on all of my validation rules. I can't seem to get that
to happen anymore with Struts 1.3.5-SNAPSHOT and Validator 1.3.0.
log4j.properties has:
log4j.category.org.apache.commons.validator=DEBUG, daily
log4j.categor
If you have a collection of, say, JavaBeans, that you've set on the
request, you can use to iterate over each of the beans in
the collection and generate your checkbox, select list, and text field
dynamically for each of the entries in the collection.
I.e., let's say in my action, I've set a
I have been trying to generate a property using a list defined in the
formbean. I want to know, if i can populate an empty list while looping
through another outer list
The alternative, if you can't or don't want to use container managed
security, is to have your SecureAction logic save the initial request
URL (and/or any required request parameters) to the user's session or
somewhere, and redirect to that location after authentication.
Unfortunately there's n
Are you sure the messsges are stored as error messages? What happens if
you include messages="true" on the logic:messagesPresent and
html:messages tags?
L.
fea jabi wrote:
Validator messages are not getting displayed in JSP.
When debugged the code i.e JSP, I see the RequestAttributes does
c
Gomathi wrote:
Hai,
What is the use of dynamic attribute of in struts-config.xml
like
IIRC, it's to tell Struts to treat your form bean as a DynaBean when
it's not based on DynaActionFrom or a sub-class. In general, you
shouldn't need to set it.
L.
---
Hello again,
I've found plenty of examples online for how to create dynamic sets of
checkboxes and radio buttons (and I've put them to good use), but I need to
also dynamically create select and text fields. I managed the text field by
coding the HTML for it by hand, since I don't need to pre-pop
I have two submit buttons previous and next.
I need to validate only when I hit next button. I can control this by using
page attribute in valdation.xml.
This works for server-side. It doesn't work for client side validation.
How can I do client side validation only when i hit next button.
Is th
I am using Struts 1.2.8, Tomcat 5.5, AJAX DOJO. It will later be enclosed as
a portlet using Struts Bridge for deployment on Jetspeed 2 Portal.
I have a table that is populated dynamically from a database (MySQL).
In this table - each table element includes an In Line Edit widget for
real-time e
On 7/13/06, Akshay Ahooja <[EMAIL PROTECTED]> wrote:
I tried using
1. While Struts html:form tag will properly parse out the query
parameter out of "action" attribute, it is not a recommended way to
pass data from a submitted form. You might want to use a hidden field
instead (unless you use GE
I think part of the problem is that Akshay had not stated his terms
completely, which prompted us to wildy throw solutions to an undefined
problem at him. So with that, Akshay, what specifically do you need to do?
Dynamically/Statically set a value before form submission? Where does the
value co
Did you add the element to your struts config file where
this action is defined?
-Adam
-Original Message-
From: Pillay, Kiren KN [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 July 2006 11:22
To: Struts Users Mailing List
Subject: missing resource in key method map
Hi people,
I'm sure
I'm confused, as long as the "property" attribute of your tags
match the appropriate methods in the bean, you get it for free. I.e.,
Struts uses reflection to find the name of the setter methods on the bean
and calls them when the form is submitted.
Monkeyden also just mentioned another way. Ju
Hi people,
I'm sure you've seen this one before, its quite frustrating and I'm too
new to struts to figure it out.
missing resource in key method map 'load'
My application.properties:
button.add=Add
button.delete=Delete
button.edit=Edit
button.load=Load
Strut-config.xml
Did you try ?
Set the value dynamically if need be, just before you submit.
document.forms['yourFormName'].hiddenInputName.value = newValue;
document.forms['yourFormName'].submit();
On 7/13/06, Akshay Ahooja <[EMAIL PROTECTED]> wrote:
Hmm ok that makes sense and the form submits..
The probl
I'm reading the validator 1.1.3 DTD file and I'm trying to understand the
purpose of the "position" attribute in the element and the
element itself. According to the DTD: 'The "arg" element defines a
replacement value to use with the message template for this validator or
this field.'
Can someo
I might not be understanding your question, but to "store" values in the
form bean seems to imply you want to put it in session scope... what would
happen then is when the form is submitted, Struts would populate it, and
since its stored in session, it will persist across requests. This is a
basic
Hmm ok that makes sense and the form submits..
The problem is I need to store some values in the Bean before/while I submit
the form.
Is there anyway to store the value in the bean so when teh form submits it
stores the needed values.
I tried using wrote:
I've not used any AJAX widgets, but
Thank you Antonio,
I really need to figure out how to solve this problem. From the client's point
of view, it's very annoying to have to wait for such a long response when he
opens "many browsers".
Sometimes the main window, since the other windows open as "popups", gets
freezed.
Well, if you
I've not used any AJAX widgets, but what you say sounds logical if you want
to submit the form at this point.
I assume the widget is not in its own form but rather one of several/many
other widgets in the form so submitting the form submits ALL the values, not
just the one? I guess it really does
If your action is a rendering action you do not need to redirect. If
your action is a submit action then you need to redirect to rendering
action that in turn forwards to JSP.
See some info here (work in progress):
http://wiki.apache.org/struts/StrutsManualActionClasses
On 7/13/06, Pankaj Gupta
I love this part:
"...you should avoid doing standard Web browsing while these settings are in
effect"
Why should "standard Web browsing" not be subject to the HTTP Protocol
Specification? These guys are characters. I'm glad I made the right
decision years ago when I chose the Java camp, and no
To elaborate on Frank's reply, the name of the form comes from the name
attribute of the in the struts-config, but this value is
just a reference to the configuration. Within the context of
the , I might even call it a misnomer. People new to struts
might be better served by a "bean", "form" o
I am using Dojo AJAX Inline Edit widget - and when the save button is
pressed it automatically calls an onSave JS handler ... I believe you have
to do the submit in JS in this case?
-Akshay
On 7/13/06, Adam Gordon <[EMAIL PROTECTED]> wrote:
That really depends on what you are actually trying t
When I implemented Struts-EL (4 years ago, I think), I made a judgement
call on what taglibs had "best value" for implementing as EL taglibs.
In retrospect, it probably would have been worthwhile to implement both
nested and tiles, even if they wouldn't be used much.
Thinking about it at this poin
That really depends on what you are actually trying to do. We use J/S to
make XML HTTP requests (using AJAX) to make requests without having to
reload the page. We do this to display "dialogs" in the same browser
window, e.g., to show report details.
If you want other examples, Google's Gmail us
Hi,
If you do a 'view source' and have a look at the actual HTML that struts
generates you'll see that is generates a form with an ID which is the
same name as the form associated with the action in strutsconfig. Hence
to submit the form from JS you need to so something like:
document.getEle
RODRIGUES DE ALMEIDA Thiago ha scritto:
What would you recommend for my scenario ?
Should i limit the number of "windows" openned ? Or maybe should i try to pass
over this HTTP limitation ?
What would you do ?
Err... I would do... nothing! It does not seem a problem to me, because
if I wai
On Thu, July 13, 2006 10:58 am, Akshay Ahooja wrote:
> Hi,
>
> Does anyone know how to call a Struts action using Javacript...
>
> I am using:
>
>
> ...
>
>
>
>
> I know for regular form tags () you can use:
> document.formname.submit
> ()...
>
> How would you do it for ? I have to use this becau
Hi Shawn,
On Thu, July 13, 2006 10:49 am, Garner Shawn wrote:
> I need to come up with some reasons to upgrade from Struts 1.1 to
> 1.2.9 in production.
> These need to be business reasons that will convince my program
> manager it's worth my time.
If you don't already have reasons of your own, y
Do you need any of the new features in 1.2.x vs. 1.1? If not, I would wait
for 1.3.x or even 2.0.x as 1.2.x is a dead end (I am developing for 1.2.x
and happy with it, but if getting up-to-date is the most important reason:
wait)
Martin
> -Ursprüngliche Nachricht-
> Von: Garner Shawn [mai
Hi,
Does anyone know how to call a Struts action using Javacript...
I am using:
...
I know for regular form tags () you can use: document.formname.submit
()...
How would you do it for ? I have to use this because I am using
the Struts Bridge in Jetspeed-2...
Thanks,
Akshay
Validator messages are not getting displayed in JSP.
When debugged the code i.e JSP, I see the RequestAttributes does
contain the ActionErrors object and the also the messages in it.
the message has
Key is ___ "hrs[1].adHrs"
value is _ "lbl.notvalidnumber"
have the below in the JSP
Hi Antonio,
Thank you for all these important informations.
Now, one last point:
What would you recommend for my scenario ?
Should i limit the number of "windows" openned ? Or maybe should i try to pass
over this HTTP limitation ?
What would you do ?
Thank you very much,
Thiago
-Message d
I need to come up with some reasons to upgrade from Struts 1.1 to
1.2.9 in production.
These need to be business reasons that will convince my program
manager it's worth my time.
I would like to do this and thought people on this list might be able
to come up with some reasons pretty easily.
Th
Well this is a commun pb with the unstatfull nature of the http
protocol itself i think there is no real solution to this but hacks:
some suggest sending a http 200 msg as soon as the request is recived
and then continue the processing. I think also adding a hidden field
in the form with the trans
RODRIGUES DE ALMEIDA Thiago ha scritto:
Would you have the reference for these problems ?
With a bit of googling:
http://support.microsoft.com/kb/183110
If it's a browser's bug or limitation, i would need to prove it. :)
It seems to be a standard, at least for HTTP 1.1:
http://blogs.
Hi Antonio,
Thank you for your reply.
Would you have the reference for these problems ?
If it's a browser's bug or limitation, i would need to prove it. :)
I'll try to do this research on my own too.
I appreciate if you help me out.
Arrivederci,
Thiago
-Message d'origine-
De : Antonio P
RODRIGUES DE ALMEIDA Thiago wrote:
> Hi All,
> I have this scenario:
>
> In my application, the user has the possibility of openning multiple
> windows (browser) simutaneously.
> In this case, each new window makes requests for data thru a struts
> action.
>
> That means, one user can make multiple
RODRIGUES DE ALMEIDA Thiago ha scritto:
The problem i have is concerning the performance.
Since the user has oppened more than 4 windows, the browser (IE 6)
becomes freezed.
If I am not wrong, this is a browser "bug" (or feature), not a Struts
nor Tomcat issue.
If I remember correctly, both
Hi All,
I have this scenario:
In my application, the user has the possibility of openning multiple
windows (browser) simutaneously.
In this case, each new window makes requests for data thru a struts
action.
That means, one user can make multiple requests to the servlet container
(Tomcat 5.5) at
I understand that providing direct access to JSP's is not a good idea.
But the problem that I am facing is that if we dont use redirect, the
user of the application is confused by the way Browser's refresh and
back/forward operations behave.
Can you suggest some other way by which I can preven
Hi,
Under Tomcat i would keep my jsp's under an accessible directory and
use the security-constraint in web.xml : (something like)
...
protected jsp
/jsp/*.jsp
to prevent direct access to my jsp's files then forward to them from actions.
The added benefit is that we enforc
54 matches
Mail list logo