You could create a servlet (or an action) that uses user Locale object to
put the localized image in HttpResponse (a binary stream). Doing so you
would have to define a mapping in web.xml (/images/localized/*.gif -
LocalizedImageServlet) as I don't think browser will accept image without
good
Hi all,
Just a quick easy question. Will struts automatically load all files
suffixed with .properties from the resources directory into the local
context at start-up? Or do we have to wirte a declaration for each of the
files we want struts to acknowlege?
Cheers
Simon
Institut fuer
The below example is worked by using Hastable and logic:iterate combination.
I think it is usefull for you Let me know..
%
java.util.Hashtable bunchList = new java.util.Hashtable();
com.km.struts.tutorial.TestBean test1 = new
com.km.struts.tutorial.TestBean();
bunchList.put(0,test1);
Hello,
How do we reference images in the resources files and how to use them in the
jsp pages with Struts ?
Thanks
Risika Randrianasolo
--
Ce message est confidentiel. Son contenu ne represente en aucun cas un
engagement de
I experienced that buidling AF and adding Parameters via
ConvertUtils.addParam(af.getPath(),method, choose) from Husted´s
Commons Toolbox adds URL rewriting to params, so that - amp; . On
forwarding even via redirect, amp; was never resolved correctly (?
cause of html:base used in jsp ?). I
Why Validator doesn't support i18n for testing numbers (float,double)
whereas it does it for date types?
I'm wondering whether i have to
1 /subclass org.apache.struts.validator.FieldChecks and overwrite method
validateFloat and validateDouble
or
2/ add to GenericTypeValidator (package commons
Hi All,
I'm just trying to work out where I need to put all of my database access
code within the struts architecture. If I'm reading Craigs comments on the
Action class correctly and have got the MVC set up right, all the action
class should do is gather any necessary information, add it to the
Hi,
I have a property-file including urls of my images.
I have a tag inside a JSP as follows:
html:img src='../../../images/buttons/New.gif' border='0'/
And now I want to replace images/buttons inside the HTML with the appropriate value
out of my property-file because I'm not allowed to place
Greets all,
We have developed a struts application which makes use of the struts
data-source. This is working fine, but when it is left overnight, the
connections are dying. When I re-start the Tomcat, connections are
re-opened and everything is fine, until the next period of idleness.
Note,
Hallo, All!
I'm trying to use struts with tiles framework. The idea of tiles
definitions seems to be very good. But I can't find how is it possible
to pass the attributes to the definitions, which I use as attribute.
Here is an example with the explanation of my problem:
Suppose, I need to
When I deploy 2 war files in the tomcat, one of this return the folow message. In 2
wars files, the struts.jar is located in WEB-INF\lib.
The insteresting, is then strus exemples run without problems. What can I make wrong
in my applications?
java.lang.LinkageError: Class
U will have some thing like following ..
The action classes are handlers...So when u need to get some data to the
screen,U will call the action class and the action class will then call a
Busines Layer class to perform the database access logic and return the
result.And action will then put
Sweet. That's just what I was planning to do. Thanks for the
verification.
I have only one question about it though. When the Action class is called
by more than one user, is it instansiated more than once by struts or will
struts use the same instance?
Cheers, and Thanks again,
Simon
go through the struts documentation carefully..It will help u clarify lot of
doubts..:-))
It specifically says Action classes are multithreaded..Means same action
instance is used for all the requests..so thats why u have to be careful not to
have any attributes in the action...So long as they
Do anyone know a good upload/download java component??
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Do anyone know a good upload/download java component??
Webdav?
This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error
[EMAIL PROTECTED] wrote:
WSAD 5.0 with tiles-definitions and struts 1.1 dont work with exemples of
configuration give by apache
I actually haven't tried those examples. I just follow the API guides. I
use Tiles and definitions. It works for me for what I've done with it so
far (developed an
Hi everyone,
I'm using Struts 1.0.2.
I need to do some stuff on application startup. I consulted the documentation, and
noticed that there's support for such a thing in Struts 1.1. No mention of it in
1.0.2, though.
Is there a way I can do some action on application startup in Struts 1.0.2.
On Thu, 6 Feb 2003, Ashish Kulkarni wrote:
But now we are moving to websphere, and it is not
possible to have each one one copy to play with on his
machine
Honestly? Now is a good time to point out to your bosses the benefits of
Tomcat for exactly this reason -- cost. Remind them that they
If you want to look at another cheap, easily configurable and extremely
efficient application server solution, you might want to consider Resin from
Caucho (http://www.caucho.com). We have been using it for over a year now
and it is incredibly useful to use in a multi-user environment.
That's because tiles is integrated with struts now. I think struts-user is
the appropriate place for tiles questions.
David
From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE:
Hi,
Can Struts v1.0.2 be used with Sun JDK 1.3.1? We are trying to use the Digester class
but the compiler is complaining about org.xml.sax.SAXException could not be imported.
Thanks.
Chiming
-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up
Hi, James, okay, I will tell
I do the whole thing with programs that allow me to write and to execute
scripts on a target machine over the web. There isn't anything you cannot
do with product development that way.
You can really do any kind of distributed programming you want through port
80
Thank you for the reply. For some reason, we need to switch from JDK1.4 back to JDK
1.3. From Eclipse, I changed the the JRE_LIB to point to JDK 1.3. the Eclipse says
The project was not built since its classpath is incomplete. Can not fidn the class
file for org.xml.sax.HandleBase. Fix
Is this inside a form element that has the ActionForm spgLooper associated with it?
such as:
html:form property=spgLooper action=/jsp/spgLooper.do
if so, then yes.
Is spgLooper called spgLooper in your form declarations of your struts-config.xml?
under the form-bean declarations:
!--
I use windows' mstsc to access other computers, it's the best (and of course
native) solution there is out there for remote computing. ATTT labs has
another slim line product that does the same as PCAnyWhere but there's a
java applet client for it, of course there's also one available for
On Thu, Feb 06, 2003 at 02:57:36PM -0500, Sri Sankaran wrote:
Why not just do
html:text
name=userForm
property=subject
style=whatever/
This will display the current contents of the subject field in the
Form? I just seem to get a blank each time. The contents of the form
before
Oh yeah, I saw you a few months back at the AJUG meeting that Chuck
presented. I wanted to say hey, but you disappeared before I could catch
you. I could hardly believe what Mark Fleury did halfway through the
Beer4All presentationLOL.
Yes, I'm running Win2k Advanced Server at home, but
Not sure if you are referring to VNC??? I use that all day longhome and
here. Being surrounded by idiots takes a toll on my stress level.I feel
more like I'm tech support than a developerJames, why can't I copy
this Excel sheet into PowerPoint?.James, what is ODBC and how can
I just checked, the latest CVS snapshot of Liferay
also has an Online Shop and Wiki portlets also. These
are going to come out with the 1.8 release. There are
already pre-built portlets for Mail, RSS feeds,
message boards, and many more. So you don't have to
build all these components from
Hi,
I'm trying to add an html:link tag to point to action/delUser action and
pass the username attribute within an iteration over an ArrayList of Users
(bean). I did some research but could not find the syntax.
Any help would be greatly appreciated
logic:iterate id=user name=usersList
I think you want to use the param attributes of the link tag. It would probabaly
look something like this:
html:link href=action paramId=uname paramProperty=username /
I might be a little off but I think the above should generate something like this.
a href=action.do?uname=user123
If this
would it work to just leave the form tag in there at all times and simply be
conditional regarding the fields? The empty form shouldn't cause any
problems that I can see.
-Original Message-
From: Justin Ashworth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 4:19 PM
To:
Hmm.. I didn't know that WebSphere was inspired from
JetSpeed..
I had been thinking for the longest time about whether
to abandon Struts for portal development and start
using JetSpeed. This was due to the fact that I didn't
know any portal server that is based on Struts. I like
Struts, but yet
34 matches
Mail list logo