Hi;
The method I use (which gives no % update) is I forward to a page that says
please wait and has an animated gif. That page does a "
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, August 21, 2003 6:02 PM
Subject: Telling Users to Wait
Hello Struts Gurus,
I am facing an i
How to identify if user has manipulated the URL in Address Bar of the browser?
For ex., the application displays a page with the following URL:
http://localhost:8080/app/str/testview_srchpost.do
Now, the user modifies the URL in the address bard. Instead of testview_srchpost.do,
user types test
Consider adding "OT": or using an EJB mail list.
.V
Alok Tijoriwala wrote:
Hi Viral,
As per my understanding containers are smart enough to
treat the invocation as remote or local. I know that
for IBM Websphere 5.0.
Typically the web layer and buisness layers are
separately deployed and so a very
> I added the following to test what encoding my Struts app is using
>
> <%
>response.setContentType("text/html; charset=UTF-8");
>System.out.println(response.getCharacterEncoding());
> %>
>
> But it still print out the "ISO-8859-1", why? How can I set
> the contentType to "te
I am using many
http://developer.java.sun.com/developer/EJTechTips/2003/tt0626.html
Scroll down to "SERVLET LIFE CYCLE LISTENERS"
That's a hint, the rest is up to you.
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx
> -Original Message-
Hi Mark,
One way to do it is have a page refresh that checks for a completion flag.
The page/action would poll the object with the flag on eahc refresh, when
set, display completion message.
chuck
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 20
I did something similar and used a refresh tag to update the screen whilst
the process was running ... it would show % completed (in text i.e. 25%
etc).
I had my database processing running in a new thread.
I had a session attribute BEEN_HERE, if that was null I start the process.
When the pro
Hello Struts Gurus,
I am facing an issue in my application where I need to run a database
creation script, and a database import script through the web (running
bat files on the server). I can run these files fine, but they take a
few minutes to run...
How can I tell the user when they have fi
Hi All,
anybody knows by chance a program(s) that would show us (statistics) how many
concurent users are on the application at certain point of time
Thanks,
Rachid.
Hi everyone
I found the solution. Its related to the browser cached pages.
The trick is that in struts you specified to the controller not to let the
browser to cache the html pages of your apps. That way the browser has to
ask for the page every time that its been accessed. And in consequence, to
Or wait till 1.5 ;)
http://developer.java.sun.com/developer/community/chat/JavaLive/2003/jl0729.html
*Neal Gafter*: Then there's autoboxing/unboxing and varargs. Boxing
allows you to use a primitive int instead of a |java.lang.Integer|, and
unboxing does the reverse. varargs allows you to decla
My application allows you to download files. This is done by opening a new browser
window (separate from the main application) which walks the user through a wizard to
select a download. In the final action of this wizard, I set the mime type to
"application\download" and the Content-Disposition
Hello,
I used Struts to develop a web app which has a login form to permit access
to different functionnalities via a menu page. I use a session var I set at
login to check if the user has not logged out.
The problem that I have is, once I do the logoff, if I use the Back button
of the browser to
You can make your parms Object []
This way you can pass as many params as you want.
Of course you will need to keep track of what element is what.
Maybe Java 1.5 will have the feature you are looking for :-)
Alex.
> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> Se
Hi Prashanth,
you need to code a function for the onsubmit event. Link the function to
the onsubmit attribute of the form.
in the function, get the values from your dropdowns, concatenate them
with your chosen seperator character and set the resulting string into
the value property of a hidden
sorry, dude, but param arguments are evaluated at compile time. The best
you could do is overload the method.
Mark
-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 6:00 PM
To: Struts Mailing List
Subject: Quick Java question..
Hey as I'
To reach a goal, I need many different actions. One is to select a
record, then choose elements in that record and so on.
The select a record actions has actions within itself. Display search
criteria, display results.
Is it acceptable to have a single action as a controller, delegating
r
Hi Brad,
Isn't suggested not to use with Struts direct links to the jsp pages?
>>
I don't recall exactly if this is the code needed to "erase"/change the
location
but it looks just like simple html link and still I think this doesn't solve
my refresh problem I mentioned before
Cezar
-Origina
Hey as I've been building my actions I was thinking it could be useful for
me to have a method that does some database querying, but I would like to
give the user the ability to narrow down that query with as many input
fields as he needs. Is there a way to write a method that takes a non-set
amou
I think the issue of using up server memory with lots of shopping carts
in the session is worth thinking about. It's just a question of maths -
how much memory have you got, what is the peak number of users
envisaged, how much stuff are you going to store in the session? even
then I think some
Hi,
I am having problems using Validator framework to perform client
side validation on a String array property declared in a
DynaValidatorForm.
The results are that the validation does seem to work in a fashion
such that the user is not taken to the next page and is kept on
current jsp whil
Cameron,
Are you sure that your request attributes are named that way? I read that
as a 3 dimensional table...do you really have that in your page?
If you are getting those request attributes, then I'm stumped, but I'd love
to know the answer :-)
Otherwise...you need a getter/setter for th
I may be intestested. Email me off line and let me know
what you need help with.
robert
> -Original Message-
> From: Pedro Emanuel de Castro Faria Salgado
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 1:47 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Horizon: a view managemen
I remember reading something when we first started building our STRUTS
application that said that you had to have a physical file outside the
WEB-INF directory representing your welcomefile. All of our JSPs reside in
a subdirectory under WEB-INF, so we put a blank file named index.do in the
root d
Sateesh,
You can make the JavaScript solution as a component by having a tag library
produce the necessary java script and HTML tags together or by having it
just produce the HTML tags and including the necessary JavaScript functions
in a separate .js file.
You need to balance the ease of you deve
Did you try <% request.setCharacterEncoding("UTF-8"); %> ?
-Original Message-
From: Billy Ng [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 4:14 PM
To: Struts Users Mailing List
Subject: How to set charset UTF-8
Hi folks,
I added the following to test what encoding my Strut
Hi all,
I have a form with a nested bean. That bean contains a collection I'm
trying to iterate with indexed properties. I tried first doing this without
the nested tags but had no success. (The page displayed but instead of
myForm.nestedBean.element[0].property, I only got element[0].property
Hola Pedro,
How can I get a hold of your module ?
Thanks
Marcos oliva
-Original Message-
From: Pedro Emanuel de Castro Faria Salgado
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 10:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Horizon: a view management plugin
Hi,
> Pedro,
>
Hi,
> Pedro,
>
> I'ld be interested in your implementation as I did the same thing. I
> define what I call view configurations in an XML file. On startup they
> are cached and I can access them at run time. It sure beats
> writing a bunch of throw-away Java beans which are used to present data.
>
I just have an index.jsp that I still include in the war, even though
all my JSPs are pre-compiled. I'm not actually sure if the file version
or the pre-compiled version gets called. Doesn't really matter I
guess.And I use a META refresh to redirect to my main page:
">
K.C.
Pat Quinn wr
To me, if resources and time allowed, I would use pure JavaScript to do it
for
faster performance. But using a server-side reusable logic is also very
appealing.
You could attach a custom event to the first drop-down list as follows:
In your action class, if you find the parameter with name "9
Vic Cekvenich wrote:
BaTien Duong wrote:
Emerson Cargnin wrote:
any advice in choosing tiles vs jetspeedy?
I suppose tiles integrates better, but at the other side jettyspeed
follows the portlets specification. Any other comments?
It is still too early to tell. I believe in simplicity and
I think this part we need to explore. Even I don't know about this configuration but
if we can find solution to this then nothing like that...
Otherwise configuration using the external properties/xml files always there... :)
But still I think we need to have code for both , accessing remote and
Hi Viral,
As per my understanding containers are smart enough to
treat the invocation as remote or local. I know that
for IBM Websphere 5.0.
Typically the web layer and buisness layers are
separately deployed and so a very rare chance of
having a local interface for your EJB. And if the
communica
I am retrieving resources as indicated by the following two examples:
src='staticResource.do?content_type=image/gif&resource_source=graphics/struts-power.gif'
alt='Powered by Struts'
height='15'/>
href='staticResource.do?content_type=text/plain&resou
Pedro,
I'ld be interested in your implementation as I did the same thing.
I define what I call view configurations in an XML file. On startup
they are cached and I can access them at run time. It sure beats
writing a bunch of throw-away Java beans which are used to present
data.
Accessing a parti
>1/ Can I use EL in my own tags (${loop.count}), if not automatic how?
Yes, http://jakarta.apache.org/commons/el/api/index.html
Are you constructing a list of different types? If so that will complicate
things especially if they
have no common characteristics. If they are all of the same type, yo
I'm not so expericed in struts, so any correction from the gurus are
welcome.
If your DTO is a list, I think you have to put it at some context
(req,session or app, it depends of the your app). So at at the page you
use iterate (for a table list), or select/options (for a combobox), etc.
If i
Hello. I am fairly new to STRUTS and am trying to write a BLB (Business
Logic Bean) in the 'Model' to connect to a database, do a simple query, and
return a resultset.
Should I then read the resultset into the DTO/Value Object/DataBean so I can
dispay them on the appropriate page?
Any advice a
On Thu, 21 Aug 2003, deepaksawdekar wrote:
> Date: Thu, 21 Aug 2003 09:33:42 +0530
> From: deepaksawdekar <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Performance of UI for Struts.
>
> Hi, Please excuse
>1. Store your cart in session, and when that all works. For everyone.
>Gets to the checkout and funds are exchanged.
While I agree with the previous posters who said that it would make your
life easier if you can require login, if you absolutely need to save
carts of users regardless of login st
Alex,
I found it!! It was a beta version of the FileUpload in the
JBoss/Tomcat-4.1.24. I just replaced it with the FileUpload 1.0 that
came with Struts and it works now, thank god :)
Erez
-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 200
Hi Mark,
Actually this is EXACTLY what I was thinking of doing.
The one problem that I had with this idea is that I was
a bit worried about filling up the session object with
lots of stuff.
Is this not really a problem?
Cheers,
Brian
-Original Message-
From: Mark Lowe [mailto:[EM
Rick, thanks a lot for taking the trouble to find the
web link to the Husted discussion forum. I have
posted my question there and hoping to get some
instructions soon. I appreciate your help.
Caroline
--- Rick Reumann <[EMAIL PROTECTED]> wrote:
> On Wed, Aug 20,'03 (10:38 PM GMT-0700), Caroline
Hi,
I have app which needs to go to external url to make payment.
I am aware of how to redirect but from what I understand it is
not possible to redirect and post. ( only to put parameters to
request). That is not acceptable solution if customer's and account
credential are taken into account.
My
Yes, SOAP, WSDL and UDDI are THE standards for web services. The primary
motivation for web services is interoperability among disparate systems.
Without the using the standards, you won't get the interoperability. The
Java Web Services Developer Pack (JWSDP - http://java.sun.com/webservices/)
> Pedro Emanuel de Castro Faria Salgado wrote:
>
>>Hi,
>>
>> I have built a plugin for Struts that creates view beans using
>>dynabeans that are defined on a xml file and i was wondering if anyone
>> in the Struts project/mailing list was interested on checking the use
>> of it?
>>
> When I see
I now have a (very beta) version of the calendar popup taglib available for
download and testing:
http://www.mattkruse.com/javascript/javascripttoolbox.zip
I'm not sure if it's in a correct or usable form as-is, but anyone familiar
with Struts should be able to get the examples running in their co
Hi All,
Thanks for your suggestions..
The JavaScript option which most of you mentioned cannot be made as a
component . If we have a Tag Lib tag for this , we can just pass say an
ArrayList and the dependency relationship so that it will be reused across
many pages/ Applications..
Any way
What do you want to do with HttpServletResponse in
ActionForm.reset()?
The reset() method is intended to reset necessary
properties in form beans in case they are not posted
from browsers. If anything gets wrong in the method,
you could throw IllegalArgumentException or
IllegalStataException.
Jing
I haven't any tech input, but I've an idea how I'd stagger the
development.I'd forget about cookies and db's at first, save them for a
later stage.
1. Store your cart in session, and when that all works. For everyone.
Gets to the checkout and funds are exchanged.
2. Create a login where clever
I am trying to write an actionform which will properly handle an array
of indexed properties which look like this:
ip[0].itemPropertys[0].itemPropertyId
ip[0].itemPropertys[0].value
ip[1].itemPropertys[0].itemPropertyId
ip[1].itemPropertys[0].value
etc...
In my Action form, what getters and se
> Tell me more about your plugin.
>
> How are the beans defined?
The beans are defined on a xml file.
Can you specify validation with the beans?
no... what do you mean by validation with the beans?
i use my views like a DTO and i copy the dao/bo values
(never thought of doing val
I have a List of subclasses that need to be iterated over and rendered in
jsp.
I notice that 'instanceof' is a reserved word in jstl, but has not been
implemented yet. So I now feel the need to write a tag.
On 1st glance I thought custom tag would be limited to Strings, but I see
that I can get a
You can achieve this by using a controllerURL to change the definition on the fly. I
use this technique for my personal site so the user can set their own style sheet and
layout. I am not a graphics person so the results are not very impressive. Here is
the link: http://www.calandva.com/holma
Make sure you do not have another file upload jar in your classpath.
Where are you hosting your app, what OS?
Alex.
> -Original Message-
> From: Erez Efrati [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 11:14 AM
> To: 'Struts Users Mailing List'
> Subject: File Upload error
Many thanks for your input,
I am trying to justify converting my implementation to use SOAP and
WSDL. My main concern is in the complexities that this would introduce
into this web service. If a large majority of developers out there are
not familiar with SOAP and WSDL it might add a large learnin
Hi,
I am trying to do file uploading of several files and I keep getting the
following error:
java.lang.NoSuchMethodError:
org.apache.commons.fileupload.MultipartStream.setHeaderEncoding(Ljava/la
ng/String;)V
I am using JBoss/Tomcat 4.1.24. The upload struts sample works just fine
under 4.1.27 -
Craig R. McClanahan wrote:
On Wed, 20 Aug 2003, BaTien Duong wrote:
Date: Wed, 20 Aug 2003 13:31:17 -0600
From: BaTien Duong <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Struts and Jetspeed
Emerson Ca
Hmm
Strugling a bit with this one now.?? I have extended requestProcessor and
tried to perform a requestDispatch and responseRedirect, however both fail as
the error message informs me the reponse has already been submitted. I
thought i may be able to use declarative exception handling with glo
Huh ..
now I see that it is in classes/resources ...
now it is works
Cezar Nasui wrote:
Hi
Usualy restarting Tomcat or reloading the app from Tomcat Maanger should do
the trick,
Maybe try clearing the cache of the browser,
HTH,
Cezar
Hallo,
i want to try to change some value in application.proper
Hi Vic,
Definitely life would be easier, but I don't think it's as good :-)
Thanks though,
Brian
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: 21 August 2003 02:30
To: [EMAIL PROTECTED]
Subject: Re: [OT] Shopping cart best practices - Cookie, Ht
Hmmm ...
I was stop all JBoss, clear temps in disk, clear cache in browser, but
it sis still dzsplazs old value.
in deploy/test.war/WEB-INF/src/java/resources/application.properties is
new value but server still displays old :(
in struts-config is default:
What can I find ?
Cezar Nasui wrote:
--- deepaksawdekar <[EMAIL PROTECTED]> wrote:
> Hi,
> Please excuse me for the question but I want to test the performance of
> my User interface developed using struts. Mainly I want to test how much
> time it takes to load the page if execute method of action class doesn't
> do any thing except f
Hey Tero,
Thanks for the reply. Really appreciate the tips.
Brian
-Original Message-
From: Paananen, Tero [mailto:[EMAIL PROTECTED]
Sent: 20 August 2003 18:36
To: 'Struts Users Mailing List'
Subject: RE: [OT] Shopping cart best practices - Cookie, HttpSession or
DB
> The options I hav
Hi
http://jakarta.apache.org/struts/faqs/indexedprops.html
Struts doc. seems to be sufficient for this query.
Mohan
-Original Message-
From: Florent LOTHON [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 5:41 PM
To: Struts Users Mailing List
Subject: multiple input form edi
you mean you can mention these in ejb-jar.xml?
How?
Shashank S. Dixit
Software Analyst.
Datamatics Ltd.
Contact: 28291253 ext 146
Mobile: 9820930075
Be brave against all odds. Never give up.
-Original Message-
From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003
Is the generated javascript compatible for both IE and NS ??
Regards
Sreekant G
@ 98404-65630
"Nagendra
Hi
Usualy restarting Tomcat or reloading the app from Tomcat Maanger should do
the trick,
Maybe try clearing the cache of the browser,
HTH,
Cezar
Hallo,
i want to try to change some value in application.properties file :
welcome.title=myTest Application
but browser shows still the old value.
I w
I use a filter to catch requests that map to "/" and request my
Homepage.do action instead. So I don't have any index.html or index.jsp
page at all.
I think the 2.3 spec wants some sort of file to map to.
I did hear of one person who set the to 'index.do' and
put a dummy index.do file in the
Hi everyone,
I posted this question a couple days ago, but no one took a bite. Any suggestions?
I'm trying to get the HttpServletResponse from within the ActionForm.reset() method.
Any ideas?
Thank you in advance for any help...
Sincerely,
Eric H. Jung
Software Engineer
Russell/Mellon Analytica
LO,
I have a form with multiple input as this
...
i made a usersForm as this :
private String[] name = null;
private String[] surname = null;
...
I would like to show the content of a the "usersForm " object
I tried as this :
<%
int i=0;
%>
<%
String surname = "surname["+
Use the HTML tag?
Or, alternatively if you want to use window.onLoad - checkout the source on
IE's error page that does this pretty effectively by extracting the server
information from document.location.href - full source attached below (you'll
need to identify the appropriate bit
it would be nice if this was a webinar
-Original Message-
From: Van Riper, Mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 9:51 PM
To: '[EMAIL PROTECTED]'
Subject: [ANNOUNCE] Introduction to Hibernate by Norman Klein: 6:30pm on
September 3rd in Mountain View
The next
I ran into a similar problem with my login application. What I did was
simply replace the page name that is put in the history with a page that
I wanted.
Cezar Nasui wrote:
Hi Henry,
The problem I noticed is if you go Back to the first page after login and
make a refresh on that page you
Hi Henry,
The problem I noticed is if you go Back to the first page after login and
make a refresh on that page you will be able to navigate again in your app
as a new session is created 'cause refresh re-post the login data.
Your app does that? Do you know any solution for this one?
I think wit
Hello,
We are using apache as a proxy server in front of weblogic. Struts
is used in the application with SSLExt. When request is forwarded
within the application, control directly goes to weblogic skipping
the proxy server.
i.e.
1) url: https://AppacheProxyServer/myapp/first.jsp
2) When any li
I'm using tiles and i know i can't set the attribute in
web.xml to a tile definition or a struts action url. I'm also precompiling
all my JSP's so i can't assign it to a JSP... i was thinking about assign it
to a html file and then onLoad i could redirect to my logon action url... to
do this i
Hallo,
i want to try to change some value in application.properties file :
welcome.title=myTest Application
but browser shows still the old value.
I was tied to restart application (unzipped war), application server
(JBoss) and all computer too, but there is stil old value.
Where can be mistake?
Yeah you should only need to define your custom
AuthenticationRequestProcessor class which extends RequestProcessor in
controller element of your struts-config.xml.
Andy Richards wrote:
Hi Kok
Good point, never thought about that! One point towards extending the
requestProcessor then, as if i
Although I am extending Action class as of now but
extending Requestprocessor should be a better choice. After all
ActionServlet, after all the initializations, delegates control to
RequestProcessor.
Let's keep ActionServlet only for one time inits.
hth
Navjot Singh
|-Original Message-
Hi Kok
Good point, never thought about that! One point towards extending the
requestProcessor then, as if i am right i configure this in my
struts-config.xml and dont need to extend it from every action class.
Thanks
Andy
On Thursday 21 Aug 2003 10:26 am, Kok Wei, Koh wrote:
> Hi Andy,
>
> I
This seems to be good idea.
I think EJB configuration files may also help us to achieve the same.
-Original Message-
From: Shashank Dixit [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 2:29 PM
To: Viral_Thakkar; Struts Users Mailing List
Subject: RE: RE : Remote and local E
You can have properties file where you can define which interface should you
consider for calling EJBs. SO that you dont have to change your code to
serve your purpose.
Let me know what do you think
Shashank S. Dixit
Software Analyst.
Datamatics Ltd.
Contact: 28291253 ext 146
Mobile: 9820930075
B
Hi Andy,
I guess the decision boils down to how your application is going to be
written. For a project I worked on couple of weeks back, I ran into a
problem where one of my Actions needs to extend a class to inherit some
functionality, but I was stucked because I need to extend my
"Authentica
If we know that EJBs and struts classes will reside in same JVM then why we should
also invoke the stateless session bean remotely? We can invoke that session bean using
the local interface... rite .?
Although I agree that in furure, we may deploy web and app classes on different
machines, so t
Thanks Yann
-Original Message-
From: Yann Cébron [mailto:[EMAIL PROTECTED]
Sent: 20 August 2003 19:19
To: [EMAIL PROTECTED]
Subject: [OT ]Re: jstl:fmt i18n weirdness
> I'm experiencing werdness with localised fmt:message calls. It appears
that
This tag has nothing do to with Struts, so
Hi
After deciding which approach to take and reading a few of my struts books
about the controller object ; ) I am now confused as which is the most
appropriate class to extend to perform my login functionality. David suggests
extending the base action class, however i have read that the
Reque
Not sure about how you've named you methods for one..
for
getIndustryId()
This has always been the case with JSP tags even if you use
if you dislike the lowercaseization(such a credit to the english
language :o) ) of the first letter you could revert to
<%= Detail.getIndustryId() %>
or s
Thank you ...
I would liked to have used a filter as this was my first idea, however my
clients app must be deployed onto their raq550 server which supports only
tomcat 3. I believe only tomcat 4 supports filters(or the servlet spec it
uses)? I believe i will follow davids example and extend th
Hi,
Should not be a big task to put the
SecurityRequestWrapper request on the request as a attribute into securityfilter code.
Max Cooper wrote:
Marius,
I know this is something that would be very useful to have, but I haven't
given it too much thought about how to implement it yet.
I do have
Hi folks,
I added the following to test what encoding my Struts app is using
<%
response.setContentType("text/html; charset=UTF-8");
System.out.println(response.getCharacterEncoding());
%>
But it still print out the "ISO-8859-1", why? How can I set the contentType to
"text/html
Dear Greg,
As I understand, web services have similar goal as what you have done
i.e to allow remote systems to invoke an area of an app's functionality.
Your invocation.dtd and response.dtd seem similar to SOAP envelopes.
Consider a service to enter customer Orders at the url
http://www.xyz.com
94 matches
Mail list logo