Hi friends.
This is the problem of inserting selected values from
from jsp.
I give u in detailed code of mine.Pls observe it and answer .i'm very thankful to u.
And corresponding formbean:
Hi,
we have an application with four modules. We have defined four
struts-config:
struts-config-module1.xml
struts-config-module2.xml
struts-config-module3.xml
struts-config-module4.xml
This allows us to separate application logic in more little applications, as
the whole struts-config would be o
Hi,
We have 4 struts-config in our application as we have modules, and they
are 19,35,4,41 Kb each. We have never had problems with struts performance
at all, so I think the size file is not too much important.
Regards
Jose R. Díaz
> -Mensaje original-
> De: No
Oh sorry, the HashMaps works correct, BUT only if you DONT use a
DyaActionForm Formular.
If you use the Validation you have to use also a DynaActionForm-Session
Object (or request-Object).
now i have find something which helps me!!
http://radio.javaranch.com/channel/jason/2004/03/23/108
... and also, you're probably going to need to look into populating an
empty array or List called from your reset method. Pain in the butt, but
there is a lot in the archives about ways to handle it. For testing
puprposes to start with just give the form session scope which will
avoid the probl
I haven't tested this and it's late.. but your form property is "cart"
not item.. so if you are going to use JSTL (and not the nested tag which
is actually easier) it would be something like...
Using the nested tag it would be:
Jim Kennedy wrote:
Just to clarify som
At 10:38 PM -0400 5/26/04, David Friedman wrote:
Kendell,
Have you turned on Javascript debugging (if it is available) in your Mac IE
to see if it has any issues with the Javascript itself?
Unfortunately, MSIE 5.2 doesn't give very good feedback.
I can confirm that MSIE 5.2 and Struts aren't fundam
I've only really been concerned with such a thing in one instance, and that
was because we were caching some returned ResultSets, and they could be very
large... What I wound up doing is wrapping each ResultSet in a HashMap, and
I had two other elements, one storing the datetime stamp the object
Kendell,
Have you turned on Javascript debugging (if it is available) in your Mac IE
to see if it has any issues with the Javascript itself?
Regards,
David
-Original Message-
From: None None [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 10:27 PM
To: [EMAIL PROTECTED]
Subject: R
Just to clarify something. My expectation is that I can generate a form
that can grow (row-wise) at runtime and change/modify values in that form.
The processing action could then retrieve the dynaform and the changed
values would be saved back to whatever (array, collection list...)
-Orig
Have you verified what is being passed to the server? I use a tool called
HTTPWatch, but I'm betting it's not available for Mac, but I'm sure there
are comperable tools available. I can't imagine the browser isn't passing
the data, unless you have some script running before the for is submitte
Hi -
I deployed a web application this week that was written in Websphere 5.2,
Struts 1.0 -
One of our users is running IE 5.2 (which is apparently the latest version
on MacIntosh).
One of my forms, when filled in with data, and you submit, nulls out the
fields. Then, my Struts validati
System performance will obviously increase if unnecessary objects are cleared from the
session.
I'd be interested in the strategies used by members of this list to clear unnecessary
objects from
the session.
I think the most basic solution is not to clutter the session in the first place, but
I have defined a form that will grow dynamically at runtime. The problem
I'm having is that the values entered in the form do not save. The form
pre-populated just fine. I have an action that delivers the form and
another action that processes the form.
Here's the strutsconfig:
I wasn't involved in implementing modules, but from discussions and
experience, my understanding is that modules are conceived as pretty
isolated components, despite the fact that they are in one web
application.
It is possible to switch between modules using the SwitchAction, for
instance, an
I'm still working on the conversion after two weeks. It took me probably
two days to identify all the changes that had to be made, and then about 5
days of mostly search-and-replaces, and ever since then dealing with the
unexpected problems during testing. One of the tough parts was that this
Hi,
I have two modules in my application
Module A -> default (contains common functionality like logout etc)
Module B -> specific funtionality developed by a separate team.
Can actions in module B have access to the ones in Module A ?
i.e. can I lookup a Struts Action defined in Module A from
None,
That was EXACTLY the kind of information I was looking for! Thanks for the
deatiled answer.
My god that homegrown framework must have been a beast to convert, but I bet
the app is sure happier now that its using Struts.
Best,
Riyad
On Wednesday 26 May 2004 03:00 pm, None None wrote:
> My
My config file for a project I'm currently working on is 7k, and that's NOT
counting comments (something like 16k counting them - I'm a comment freak).
Since it's only parsed once at startup, I wouldn't be too overly concerned
about performance. Yes, your talking about a lookup for each reques
Brian,
This can definately get confusing if you are just thrown into the mix.
Tomcat 5 is definately the right way to go, its faster, more stable and
supports newer specs. Struts, IIRC, is designed to only need the Servlet 2.2
and JSP 1.0 or 1.1 spec, it was meant to be super-compatible, soyou
No problem, glad it worked.
On Wednesday 26 May 2004 02:50 pm, ksitron wrote:
> Thanks Riyad, I think you hit right on the head.
>
> Riyad Kalla wrote:
> >I believe if you have more than one resource file, you need to give them
> > keys. The resource file with no key becomes the default, and then
Thanks Riyad, I think you hit right on the head.
Riyad Kalla wrote:
I believe if you have more than one resource file, you need to give them keys.
The resource file with no key becomes the default, and then the others need
to be referenced explicity using the "bundleKey" (I think that's the name.
I'm a recent convert to java (from micro$oft... sh) and i'm still trying
to understand which versions of which products work together. I just got
Tomcat 5.x, which implements Servlet 2.4 and JSP 2.0. Does it matter if I
use Struts 1.0, 1.1 or 1.2 with this? Why?
How does the version of the
try something like this:
in WEB-INF/classes/net/wessendorf/
there must be a file called
-ApplicationResources.properties (default_file)
you can add files with names like thiS:
-ApplicationResources_en_US.properties
...
Cheers,
> -Original Message-
> From: ksitron [mailto:[EMAIL PROTEC
how do you declared this resource in your struts-config.xml ??
(place the code)
Henrique Viecili
PS.: Maybe your question is answered in the message titled 'Can I have multiple
ApplicationResources from the same locale?'
- Original Message -
From: ksitron
To: Struts Users Mailin
I believe if you have more than one resource file, you need to give them keys.
The resource file with no key becomes the default, and then the others need
to be referenced explicity using the "bundleKey" (I think that's the name...)
attribute of the struts taglibs.
On Wednesday 26 May 2004 01:5
I agree, it drove me nuts so I switched to using MappingDispatchAction and it
turned out to be exactly what I wanted. Same idea behind the DispatchActions,
but you specify the method name in the "parameter" field... can't get more
straight forward than that ;)
On Wednesday 26 May 2004 01:04 pm,
Ok this was what I was wondering about (runtime). I didn't know if the
hashtable with all the actions in it was going to be "too big" or something
to that effect.
Thanks for the feedback!
On Wednesday 26 May 2004 12:51 pm, Hubert Rabago wrote:
> If your concern is with the physical size of your
I'm not trying to hijack the original post, but does anyone know how to get
around the error caused by pressing 'Enter' to submit a form that has
multiple submit buttons. I use the LookupDispatchAction and it works
perfectly when clicking on a button, but I get an error when I press
'Enter'.
Thank
shankarr wrote:
Hi!
I am getting an exception which reads like this : *:does not contain
handler parameter named empfieldsaction
*
I have the following jsp.
Leads Custom Fields
I hate the LookupDispatchAction compared to the regular DispatchAction.
I started out using it thinking it wou
I introduced the resource bundle errors_en_US.properties into my
struts-config.xml file.
Now, all the other declared resource files are ignored, WHY !!
I ended up moving all declared messages into the
errors_en_US.properties, and things work again.
Anyone have any idea why.
Thanks in advance.
--
If your concern is with the physical size of your file, you can break down
your struts-config into multiple files with your entries spread among them.
What I do is have a main struts-config.xml containing my global values and
all plug-ins, then have several struts-config-nnn.xml files for nnn-rel
Just a guess but I think that the file is only read once on app
startup. So there is really no performance hit.
On May 26, 2004, at 1:36 PM, Riyad Kalla wrote:
I'm curious what the size of some of the verteran programmer's
struts-config.xml files are. Mine is approaching 2k lines right now,
and
I'm curious what the size of some of the verteran programmer's
struts-config.xml files are. Mine is approaching 2k lines right now, and I'm
about 1/2 done with the project I'm working on.
I don't know if I should really start worrying about performance/other issues,
or if this is normal and I s
So you've tried ${xyz.rows[1]} ?
-Original Message-
From: Axel Seinsche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 1:59 PM
To: Struts Users Mailing List
Subject: [JSTL] accessing rows by index
Hi all,
in my Struts application I can access result collection from sql:query
w
Hi all,
in my Struts application I can access result collection from sql:query
with the forEach loop. When I try access one single row by index, it
fails. Right now I solved this with defining a forEach loop where begin
and end are the index I want to access.
This looks like this:
...
In m
Hey that's perfect, thanks Mick!
On Wednesday 26 May 2004 11:49 am, [EMAIL PROTECTED] wrote:
> That is so if the key does not exist, you will get ???bundle.key.attr???
> instead of a null string.
>
>
>
> -Original Message-
> From: Riyad Kalla [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, Ma
That is so if the key does not exist, you will get ???bundle.key.attr???
instead of a null string.
-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 11:44 AM
To: Struts Users Mailing List
Subject: Re: Can I have multiple ApplicationResources fro
Ahhh ok, thanks for the info.
What is null=false for?
On Wednesday 26 May 2004 11:43 am, [EMAIL PROTECTED] wrote:
>
> key="BUTTONS_KEY" null="false" />
>
> And then in the use the 'bundle=""' attribute on the bean:write tag to
> specify the additional bundle to use, if different than t
And then in the use the 'bundle=""' attribute on the bean:write tag to
specify the additional bundle to use, if different than the default.
-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 11:38 AM
To: Struts Users Mailing List
Subjec
Do the reset method, it will avoid the new object creation.
On Wednesday 26 May 2004 11:42 am, Julio Cesar De Salvo wrote:
> Whats the best way to do so?
>
> Redefine the reset() method in each ActionForm and call it from the
> action?
> Or hold the values and do: form = new ActionForm(); in the
This may be a RTFM situation, but I didn't want to take a break and try it and
then after a hour find out it didn't work so I was hoping (while I was
coding) someone could let me know if the following is legal:
Situation:
I have an ApplicationResources_en.properties file that represents the Engl
Whats the best way to do so?
Redefine the reset() method in each ActionForm and call it from the
action?
Or hold the values and do: form = new ActionForm(); in the action call?
Thanks,
Julio Cesar De Salvo - Project Leader
iTechnology S.R.L. - Ciudad de la Paz 2846 - piso 1
Tel 54 11 4782.6
Dear All,
Thanks for all your feedback.
Based on the discussion i derive following conclusions. please comment on
their accuracy.
1. A Data Storage object (Say a HaspMap with the server name as a key
and the N value data object as value are stored along with the last
updated time)
I don't know English very well, I'm sorry...
How can I include an argument in an exception tag?
For example, this is a piece of my "struts_config.xml":
...
...
I would like to include an argument in my "errors.deleted" wich I can throw
from servlet "companies.actions.CompaniesDelete
I presume the element that's throwing the NPE is one of the elements that
the user cannot change. I presume this because let's say for the sake of
argument that all the fields of the ActionForm were on the screen, then what
you describe should never happen.
Your dealing with the classic statel
My advice may sound out of the context,
but how bout actually storing each last N value to a database. this way
you can even have an archive of the Last N value.
Or if you dont want to setup a database, just write the last N value to
a property file or text file.
Regards,
Irfandhy Franciscus
[E
Peter Pilgrim has arranged a meet up for informal drinks on Monday 7th June
2004 19:15 GMT @ Waxy O'Connor (Irish Pub) in central London, the West End.
Anyone else interested is welcome.
Theres a Map on Waxy's Web Site showing the location:
http://www.waxyoconnors. co.uk/london/index.asp
Is it possible to call an Action which pre-populates a form, forwards on
to a JSP page which displays the form values for the user to change, and
then submit back to an Action that will contain the form value? We're
running into a scenario where we prepopulate the Form in 1 action and
set it onto
On Wed, 26 May 2004 10:26:34 -0300, Paulo Rezende wrote:
> It's a way but I really dont like it. If I copy all the fields of a table
> to properties of the form, why i dont can copy also the image to a Blob in
> the form and use it? Do I need to create another connection with db and
> run another s
On Wed, 26 May 2004 14:52:08 +0200, Kransen, J. wrote:
>> I'm not sure on how to use the html:base tag in the opposite manner, ie
>> the href to be that of the struts action's path not the jsp's path?
>
> Indeed it seems impossible to create a tag containing an action path
> instead of a jsp path
It's an error to call getWriter after getOutputStream (or vice versa), but I
don't think it's an issue to call getOutputStream multiple times. Although,
even if it were, I really don't think Struts ever calls getOutputStream. At
least not in 1.1.
Quoting Bill Schneider <[EMAIL PROTECTED]>:
> >>I
>>I have a image in Oracle Blob field and i want to renderize it my jsp.
>Do I need to use or or this is not the way? My
>form property is a Blob, but i guess that this tags dont support this
Hi,
First remember how images work in HTML. the attribute is
treated as an href, so there are actually t
You must request it separatly because the browser DOES it like that.
He needs an object with a different mime-type.
Certain questions cannot be answered in a different way...
Zaid's answer points to the right direction.
hth
Alexander
-Original Message-
From: Paulo Rezende [mailto:[EMAIL
Because that's not the way HTML works. A cursory look at the tag
would have shown you that it accepts a url to an image, not a byte array.
You can not do (with Struts or custom tags) something that is not in the end
supported by html.
> -Original Message-
> From: Paulo Rezende [mailto:[E
a) doesn't seem so
b) something a googling with "How to configure tomcat with apache" could resolve
c) seeing his duplicate entries: SPAM
well, ... happens
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 26. Mai 2004 15:20
To: [EMAIL PROTECTED]
Subjec
Can you send the code for the DataTypePopulateAction class?
I'm having a similar problem, except I'm using a form with multiple submit
buttons and if I press the 'Enter' key rather than clicking on the button,
then I get the same error. At least I think it's the same error... I'll
check. I guess
Yes, nathan.
A action is so bettet than a servlet or a jsp. But are this the only way?
tks, Paulo
- Original Message -
From: "Nathan Maves" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 26, 2004 10:16 AM
Subject: Re: How to renderize a imag
Zaid,
It's a way but I really dont like it. If I copy all the fields of a table to
properties of the form, why i dont can copy also the image to a Blob in the
form and use it? Do I need to create another connection with db and run
another sql only to get the image?
tks, Paulo
- Original Mess
Hi list
Will u please tell me for my thearitical question
what is the need of to configure Tomcat with Apache web server.
And how to do it.
waiting for ur reply urgent
Thanks
Ganesh
-
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Me
Hi list
Will u please tell me for my thearitical question
what is the need of to configure Tomcat with Apache web server.
And how to do it.
waiting for ur reply urgent
Thanks
Ganesh
-
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Me
Is this a Struts question?
-Original Message-
From: ganesh g [mailto:[EMAIL PROTECTED]
Sent: 26 May 2004 14:15
To: user
Subject: why and how to configure tomcat with apache web server urgent
Hi list
Will u please tell me for my thearitical question
what is the need of to configure T
you can use whatever image tag you want. The real catch is that you
will need and action that pulls the info from the db and writes it to
the OutputStream in the response. The have the execute method return
null.
You might end up with a tag that looks like...
" >
This is if you use jstl other
Hi list
Will u please tell me for my thearitical question
what is the need of to configure Tomcat with Apache web server.
And how to do it.
waiting for ur reply urgent
Thanks
Ganesh
-
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Me
> I'm not sure on how to use the htmml:base tag in the opposite manner, ie
> the href to be that of the struts action's path not the jsp's path?
Are you sure you want to have the action path in the base href instead of
the jsp path? I would think that as you write the relative links inside the
jsp
Dear Paulo,
first of all, you need to make a jsp page (like photo.jsp) which will be
like this in your display page
the photo.jsp will need to make the contentType to img/jpeg or any typem
extract the BLOB field from database and flush the content.
Regards,
zaid
- Original Message -
neither request nor session.
the recommendation was to use the application context (also known as servlet context)
This is one context object FOR ALL servlets und users within the same web-application.
It would be shard between ALL users of the web-application, so the overhead of keeping
it alive
Friends,
I have a image in Oracle Blob field and i want to renderize it my jsp. Do I need to
use or or this is not the way? My form property is a Blob, but
i guess that this tags dont support this class, seemingly they support only a Map.
Really I'm helping a friend, and I thank so any help..
Well if its in the session scope it would be removed automatically when the
session is invalidated - which happens either when the user logs out or
their session times out due to inactivity. (And if you need to do some kind
of cleanup you can implement HttpSessionBindingListener to detect when this
> [The other problem here is in a cluster the server must be the virtual
> host fronting the cluster not the localhost, although this can be solved
> it's just an extra pain.]
According to
http://jakarta.apache.org/struts/userGuide/struts-html.html#base you can use
two attributes from which one i
There are currently four flavours of "Validator" ActionForms, so IMO it
would be good to say something about this.
Your example shows using the ValidatorForm - the alternative is if someone
wants to use "Dyna" forms and the equivalent is DynaValidatorForm, it would
be good to show an example of th
Hi,
Thanks for your response...
as you rightly pointed out the data is 'near realtime' not exactly
REAL-TIME.
Yes.. we need to store in the servlet context.. but what needs to be the
scope..
if scope is request, than we can show only the current value.
if the scope is session, than this bean
Hi all,
After a year of using Struts I want to contribute something to the
community. So I decided to write a short tutorial on Struts validator
framework in Struts wiki
http://wiki.apache.org/struts/StrutsBeginnerValidatorFramework
I will really appreciate it, if you guys can stop by for a minu
Why not store the info in the servlet context, using different keys for each
server?
That way if several users are all monitoring the same server they will be
looking at the same set of data.
Since the data is being multithreaded you will need to make sure you
synchronize in the appropriate place
On Wed, 26 May 2004 13:49:34 +0200, Kransen, J. wrote:
> You probably already know, but you can use Struts tag to
> dynamically create the base tag. This works great as you don't have to edit
> the tag if you move the page or change the server for example. It also
> creates the full "http://host/
You probably already know, but you can use Struts tag to
dynamically create the base tag. This works great as you don't have to edit
the tag if you move the page or change the server for example. It also
creates the full "http://host/webapp/page.jsp";
> -Oorspronkelijk bericht-
> Van: Mic
On Wed, 26 May 2004 13:28:23 +0200, Kransen, J. wrote:
> Do you have a tag inside your ?
No, but I'm playing around with that now...
One problem that arises from using the base tag is browser
differences:
IE: server name and port required in base href
Firefox: base tag doesn't work at all
Op
Hi,
Can anyone suggest some approach for this issue.
thanks & regards
-Ramudu
-- Forwarded message --
Date: Wed, 26 May 2004 14:52:23 +0530 (IST)
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: scope and presenting
Do you have a tag inside your ?
> -Oorspronkelijk bericht-
> Van: Mick Wever [mailto:[EMAIL PROTECTED]
> Verzonden: woensdag 26 mei 2004 13:17
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: Links relative to jsp not action in Opera
>
> On Wed, 26 May 2004 07:14:52 -0400, James Mitchell wrote
UK Struts Users
We have three people (including myself) who are meeting for informal
drinks on Wednesday 9th June 2004 19:15 GMT @ Waxy O'Connor (Irish Pub)
in central London, the West End.
Peter Pilgrim
Tim Penhey
Niall Pemberton
If there's anyone else interested please
On Wed, 26 May 2004 07:14:52 -0400, James Mitchell wrote:
> Opera should know nothing about your jsp, unless you are doing something
> else wrong. Are you using redirects or forwards?
Indeed I would think so too. There are naturally no differents in the html
source between the different browsers,
Opera should know nothing about your jsp, unless you are doing something
else wrong. Are you using redirects or forwards?
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Mick Wever" <[EMAIL PROTECTED]>
T
When our webpages are viewed with opera all our links are relative to the
jsp used (within tiles) not the actual url/action given.
Is there some way of changing the response so that the url is correct and
relative links don't reference the jsp?
Mick.
--
--
"It is not enough to have a good mind;
-
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]
Hi ,
I have used bean:size tag and getting JspException as shown below
Pls can anybody guess the problem. Thanks.
Thanks,
HAri.
**
javax.servlet.jsp.JspException
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:875)
at org.apache.struts.taglib.b
Linus Nikander wrote:
Is it possible to use multiple validation.xml files concurrently ? We're
about to launch a fairly large projetct and I see issues where one developer
has validation.xml checked out when another one needs to edit it as a
possible problem.
//Linus Nikander -
If you use CVS it
In a sense everyone does just this when they declare their plugin as
such:
It's just you put all the project specific stuff into one. Can't imagine
why adding more files to it wouldn't work (although could introduce it's
own set of "confuscation")
> -Original Messag
Is it possible to use multiple validation.xml files concurrently ? We're
about to launch a fairly large projetct and I see issues where one developer
has validation.xml checked out when another one needs to edit it as a
possible problem.
//Linus Nikander -
-
Yeah, I was using that in another project in BOs "getNameWithBrs()"!
But kinda disobeys the keep presentation in the presentation stuff. Which i
am believing more and more as it makes working with graphics/web ppl far
easier.
Daniel.
> -Original Message-
> From: Henrique VIECILI [mailto
Hi,
We are developing a web based interface (struts + jsp etc) for realtime
monitoring of server cpu usage.
We have written a bean that will contact the server and get the current
cpu usage and return that value. I want to plot a line graph (using
jfreechart) with the cpu usage in Y-axis and tim
Hi all,
if we have a master/child relationship to show after
execution of action/execute,
how shld we create the beans to display this using jsp
and logic:iterate ??
i tried creating 2 beans (one each for master and
child) but it is difficult to
match master record with child .
The output needs t
On 2004-05-24 at 16:18:18 -0500, Joe Germuska wrote:
> At 2:04 PM -0700 5/24/04, Wiebe de Jong wrote:
> >Ok. I've signed up as the first user in Vancouver. Now I just have to wait
> >for somebody else to signup...
>
> yes, at only 45 members, it's not really on-fire yet! Especially
now its 64 (o
Dear All,
We are using lookup dispatch action in our project with struts validator
also.
But when we are trying to access the page in case of new we validator is
getting invoked.Please note that my edit and JSP pages are same.
Please help.
Regards
Shoaib
--
94 matches
Mail list logo