look at the bean:message tag:
johan
> -Original Message-
> From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 30, 2001 2:12 PM
> To: [EMAIL PROTECTED]
> Subject: template and I18N
>
>
> Hi all,
>
> I've just started to use Struts and I have some questions:
>
>
Yes this is a bug in the WTE (and also in
Tomcat3.1, IBM hasn't upgraded some classes)
If you want to be able to run them change the
pageContext.x(REQUEST_SCOPE) calls
to do it directy to the request is
self.
johan
- Original Message -
From:
Kenneth Petersen
To:
Debug through it and look what kind of rows are really selected from the db
the first time.
I have seen this behaviour many times but it was always a caching problem at
the browser site. Because the selected data was right the first time.
johan
> -Original Message-
> From: Gogineni, Pra
t stylesheet to generate the
> taglib documentation. This means that only the one XML file has to be
> updated when a tag is added or changed.
>
> --
> Martin Cooper
>
>
> - Original Message -
> From: "Johan Compagner" <[EMAIL PROTECTED]>
> To: &
Now the sources are not in the binary's anymore (i didn't check this but i think it is
true)
I download only the sources, because that is what i really need.
But i see that the sources don't contain the tld's!
Now i still have to download the binary's also, of course you can say, why do you care
, 2001 8:14 PM
Subject: RE: Constants.TOKEN_KEY value proposed change (doesn't work with javascript!!)
> Its opensource. you can always modify it for your needs.
>
> cheers,
> Amar..
>
> -Original Message-
> From: Johan Compagner [mailto:[EMAIL PROTECTED]]
&
d change (doesn't work with javascript!!)
> You can do this.
>
> document.nextpage["org.apache.struts.taglib.html.TOKEN"].value=themakey;
>
> David
>
> --- Johan Compagner <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> &g
something like that!!
Johan Compagner
ActionError constructor wants a message key. not just a string.
you could do:
errors.add("beanErr",new ActionError("general.exception",ex.toString()));
and then have a general.exception in youre resouce bundle:
general.exception="An exception occured: {0}"
johan
- Original Message -
Fr
Here you have 2 versions of Tomcat 3.2.2b3 Test Environments
one one stripped version: www.techfo.nl/jcom/tomcatstripped.zip
and full src version: www.techfo.nl/jcom/tomcatfullsrc.zip
(for the full src you need JAXP/Parser also in the workspace)
Johan Compagner
- Original Message -
From
Hi,
When i include my jsp inside a war file i really
don't know where those files are unpacked (if they are unpacked)
But if i want my jsp's to be updateable from the
internet (uploading)
where must i put my jsp's?
Can i for example put my jsp's inside a DB and then
have some common class
a nice addition to struts 1.0!
Johan Compagner
>
> autoCommit="false"
>description="Interbase Data Source"
>driverClass="interbase.interclient.Driver"
>maxCount="4"
>minCount="0"
>
form taglib is depricated everthing is in the html package now.
- Original Message -
From: "Stanley Tan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 13, 2001 9:33 AM
Subject: vs.
> What's the difference between and ?
>
> The documentation does not even mention
Now i think of it is it possible to supply only a hashmap to
and that the key's are the property (the keys) and the value the labels?
now i always have 3 methods to fill in a combo:
getXxxxId
getXxxxIds
getXxxxLabels
johan
- Original Message -
From: "Jim Crossley" <[EMAIL PROTECTED]>
3.5.2 is not the right version i believe (maybe it works maybe it doesnt)
because websphere only supports jsp1.1/servlet2.2 with 3.5.3 (tag support)
johan
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 09, 2001 4:48 PM
> To: [EMAIL PROT
Seet mod_jk
many articles on the jakarata site
johan
- Original Message -
From: "ntrgiang" <[EMAIL PROTECTED]>
To: "Struts-User" <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 5:17 PM
Subject: troubles with Tomcat
> Hi, thanks for reading my message
>
> When I test some JSP pages,
gt; and bandwidth. This causes exception on the server (tomcat) side of the
> connection. It is plainly cosmetic nuisance.
>
> There is plenty of information on this on the web if you run the search on
> "tomcat socket write error"
>
> Hope it helps,
>
> Michael S
Hi,
If i use Tomcat as a static (gifs) and dynamic (jsp) server, that is mostly
used inside a debugging evironment or maybe if it is specified that everything
in the webapp\app dir must be served by tomcat (still find this a very bad idee),
then i noticed that i get socket exceptions on specifiek
What the compiler of IBM does is that it also imports the generated java code
inside the ide, so that you can debug is. Therefore does ibm has it's own compiler.
Johan
- Original Message -
From: "Tom Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 22, 2001 7:3
Hi,
One tomcat question for this list (i know there are some tomcat developers here)
Why can't i find changes.html or something like that for the tomcat versions?
You got now a
3.1.x branch (doesn't seem to be in development anymore)
3.2.x branch (still development 3.2.2 beta 1 as latest mile s
insurance.getProperty("totalautotheft");
object[1] = insurance.getProperty("autotheft");
return object;
Johan Compagner
> > so not:
> >
> > // Retrieve the required property value
> > Object value = this.value;
>
> This will return null if you did not specify a "value" attribute, so the
> effect is the same as your desired result -- setting the new bean based on
> the name/property combination.
This is not my
Hi,
If i specify the value in the DefineTag then the name/property is ignored!!
But when i also specify the name/property then i want the value to be filled in when
name/property seems to be null!
so not:
// Retrieve the required property value
Object value = this.value;
if (value == null)
ent you must do the same but there i use Tomcat as http
server and app server.
And for every project i must have 2 context in tomcat. And they must be exactly the
way be configured as the
deployment server! Horrible
Johan Compagner
- Original Message -
From: Unify Support
To: [EMAIL
Hi,
Because i want Database Objects to control them self completely (like Enity
beans)
I must have a way to get Transaction support and make sure that in on thread
the same connection is being used. For example:
class Person
{
private String name;
private Country country;
Using another one is very difficult because how the properties are set.
(I want to use the org.apache.struts.sql one but this one has many more options
and totally different method names to set the properties (like url ect)
And also the open en close methods aren't called automaticly.
So i propo
Mostly at my place this is nothing more then setting one id!!
I would love to have the abillity that i didn't need any action for this.
johan
> -Original Message-
> From: Michael McCallister [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 07, 2001 4:16 PM
> To: [EMAIL PROTECTED]
> S
Do you just test the isClosed() method?
My plan was to execute a small sql code that has a very little overhead
and alway's returns normal for every db if the connection is still good.
But i don't know what kind of sql statement works for every db.
johan
> -Original Message-
> From: [E
The last (using 2 actions) is how it is done in the struts example
(last time i checked) with registering or changing user data.
But i also would like to have a popuplate without going through a action.
Then i could request this:
userdata.jsp?userid=1
instead of this:
userdata.do?userid=1
Th
It doesn't work on the Websphere test environment
in VAJ yet.
Because the websphere inside VAJ doesn't support
JSP1.1 yet (only the real websphere does that)
you must wait for Fixpack3 that will get the test
environment to the same level of Websphere 3.5.3
johan
- Original Message
This would be very nice but remember that the
struts-config.xml sits inside the war file
And you don't have any control over it then. Some
containers extract it (like tomcat)
others work directly in it. And maybe other extract
it to a internal database.
So what to update?
Maybe if struts
> Tomcat 3.1 and 3.2 seem to reliably detect cases where the servlet class
> you are actually calling has been changed, but they do not always seem
> to catch the fact that other classes have been changed.
>
> Tomcat 4.0 uses a different mechanism that reliably catches *all*
> changes to classes
> Have you heard about expected the time frame for patch3? That would be a
> nice thing to have.
The last thing i heard: Late februari (so that is pretty soon!)
johan
Title: RE: Still need help with VAJ & Struts
The tomcat test environment of IBM for VAJ is still
version 3.1.
I heard that after the release of patch3 (which
also brings the internal Websphere TE to JSP1.1/Servlet2.2)
the will release another one with i presume the
latest final (3.2.1)
Stru
Here is the link:
http://barracuda.enhydra.org/Barracuda/
Can we learn something from it?
Is it better or worse?
Johan
I use VAJ 3.5 with Tomcat and struts.
works perfectly can debug throught the jsp's (not really jsp's but the
generated servlets)
Can change code on the fly without restarting anything.
johan
Are you developing in java? :-)
Why?
You don't like it if i look at your list.
Every IDE that is written in Java has this as a negative 'feature'
johan
{
conn.setCatalog(this.catalog);
}
catch (SQLException e)
{
;
}
If i exclude this then everyting works,
Is this common behaviour?
How do you do this?
Johan Compagner
They aren't there or only 1K great of the last few day's
Johan C.
Hi,
If the is used and the request parameter (the name
specified)
isn't found i don't want an exeception but i want the bean parameter to use
a
empty string ("").
So that after that all prints that empty string if the paramter
wasn't there.
I want this behaviour because if a specifiek paramate
You must have a reference to the servlet or servletcontext somehow.
You could do something like this (you should store the servlet not the session):
protected void process(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
HttpSession session= requ
test
Hi,
My JSP files are stored in a database because it should be possible to change the jsp
pages
on the fly without deploying a complete new war file and/or shutting down the
application server.
And it must be possible to upload those jsp pages through our maintenance web pages of
our applicat
Look at the struts_config.xml of the sample application.
Below there are some /admin/XXX actions specified.
If you copy the /admin/reload to your config file then
you can do this:
/Your app/admin/reload.do
johan
- Original Message -
From: "Baquedano Jesús" <[EMAIL PROTECTED]>
To: <[EM
Hi,
I have a form: PropertyForm
which have a getProperty(String) and a setProperty(String,Object)
So not a get and setter for every property.
That property form relay's those calls to a DbObject that also has those
getProperty and setProperty.
At start (first request of) i set a specifiek DbObjec
üngliche Nachricht-
> Von: Hee Meng, Poh [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 17. Januar 2001 17:38
> An: [EMAIL PROTECTED]
> Betreff: Re: Auto Form Validation Not Done?
>
>
> Hi,
>
> U r right. Just found this too. But still having problem of
> not produ
In the struts config file you specify if the validate must be called or not:
Maybe you have specified false?
johan
> -Original Message-
> From: Hee Meng, Poh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 17, 2001 10:51 AM
> To: [EMAIL PROT
> > Why depend on this?
>
> Because it is the standard approach mandated for J2EE applications, to access
> all sorts of resources (including data sources).
But i don't want to get dependend on a J2EE server.
(it's already hard to find a JSP/Servlet ISP on the internet)
But the problem is that
> As I pointed out in a subsequent message on this thread ... you
> need to avoid the use of the initialization service
> if your container requires context attributes to be serializable.
> In such cases, the app server will provide an alternative means
> (JNDI InitialContext) to gain access to t
Add the jdbc optional package to your classpath.
Even it you don't use jdbc you need that package.
johan
> -Original Message-
> From: Timur Mehrvarz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 2:40 PM
> To: [EMAIL PROTECTED]
> Subject: Struts without SQL?
>
>
> Hello
Try to set the dtd file in the web-inf of your app.
I remember also having this problem but i thought i fixed it this way.
johan
- Original Message -
From: "Hee Meng, Poh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 09, 2001 4:53 PM
Subject: Re: Orion Application
Do it before the 1.0 release.
Because after that is will be much more difficult.
johan
- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts List" <[EMAIL PROTECTED]>
Sent: Monday, January 08, 2001 12:04 PM
Subject: HTML tag library
> Did we decide to rename the FORM
> Except that the javax.sql.DataSource API still includes this method signature, so we
>need to do something. I guess
> it would probably be better to return a "not implemented" exception of some sort,
>then just return a "regular"
> connection like it does now.
Yes or just a normal connection
> I suppose besides adding datasources with different logins, we could
> also add entirely different DBMS's?, on entirely different servers?
Yes that is what the current solution already offers. So the getConnection(String
user, String pasword)
doesn't have to be implemented, Because if you real
> It certainly could, along with other stuff like implementing the
> getConnection(username, password) call correctly.
How should it work?
You can't change a current connections username and password (correct me if i am wrong)
So you have to build up a new connection with the supplied username a
(), iResponse);
iResponse is my own implentation.
The RequestDispatcher interface wants only a ServletResponse (and a
ServletRequest)
It compiles fine so how is it possible that the RequestDispatcher throws a
ClassCastException inside itself?
What kind of ServletResponse does it wants?
Johan Compagner
Hi,
I will ask the basic question first so that you don't have to read the whole
email:
So is there no way to use the same request over 2 or more jsp files that are
nested in
each other?
Now my test case:
I have a template jsp file that has all the layout of my site.
in the right left corner w
> Since tag handler class org.apache.struts.taglib.form.LinkTag does not
> implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG
>
> I'm assuming that I've either not updated all the various bits correctly,
> or there has been a change in one or more of the tags that I need to
> account for
> I do not think that the "Referer" header will give you what you want, either --
> that comes only from the browser, which doesn't know anything about the server
> side forwarding.
Yes i came a cross this already
> I would suggest subclassing ActionServlet and making sure you create a
> reque
Hi,
If i click on a link that opens another page. And i that page i want
a link that wants the url that constructed that page.
for example:
The link i clicked on:
/maintenance.do?thema_key=pension
that shows the jsp page: maintenace.jsp
in that page i have my own TAG that extracts the info of
Use my ErrorTag attached.
I copied almost from ErrorsTag but only generated it for the property that was set.
I hope this or another one just like it will be in the default struts lib.
(they can use mine attached)
The current implementation isn't used very much on the internet. Users want
to see
Did you try one of the latest builds?
johan
- Original Message -
From: "Bill Pfeiffer" <[EMAIL PROTECTED]>
To: "Struts-User" <[EMAIL PROTECTED]>
Sent: Tuesday, January 02, 2001 1:48 PM
Subject: SilverStream 3.7 and Struts
> There was some mention a while back in a thread titled "Propo
I use the one of 27/12/2000 in VAJ3.5p2 with tomcat 3.1 and it works fine
johan
- Original Message -
From: "Ned Seagoon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 1:59 PM
Subject: agh! Suddenly Tomcat does not start with struts!
>
> Hi Guys, hope
Hi,
What parameters can i use and is recognized by struts in the WEB.XML file?
And the struts-config.xml? (i know i can look into the dtd but is there also a
doc/html that explains everything?)
johan
Hi,
( i am trying to subscribe to STRUTS-DEV but i don't get a confirmation message so i
post it first here)
When the new MessageResources class (and its sub) where introduced my app didn't
work anymore because of the changed behaviour in loading resouces.
I have 2 fixes that i have attached
And if i want to attach some code Or a html file?
- Original Message -
From: "Colin Wilson-Salt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 19, 2000 6:25 PM
Subject: Re: A great Shockwave flash movie
> There's probably no reason for a list like this this to all
g" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 19, 2000 4:16 PM
Subject: AW: i18n problem
> > Von: Johan Compagner [SMTP:[EMAIL PROTECTED]]
> > Which build do you use?
> > There are some problems with locale property resources with of 17 decemb
cForm form = new DynamicForm()
form.setDatabaseObject(javaMappingObject);
form.setEditableColumns(String[])
When the user presses submit i can validate the form in the perfom()
and get the updated database object back so that i can update the database.
does struts have something like this?
Johan Compagner
throws a NotSupportedException so none of the connections where returned to the pool
because the source.returnConnection(this); was never reached.
Johan compagner
's fixed.
Just let The ResourceBundle class do its work
loading the right .properties or .class files for a given locale.
johan compagner
- Original Message -
From: "Andre Wittenburg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 19,
in the iterator, these 3 must be generated:
maintenance.do?thema=pensioen&table=customer
maintenance.do?thema=pensioen&table=systemtable
maintenance.do?thema=pensioen&table=datatable
what is the best way to do this?
Johan compagner
it loads the ApplicationResources.properties
But there i have the properties of nl.
So to make it short: Struts should always try to load the current locale (default or
not)
and walk through the locale (nl_NL.prop then nl.prop and the "".prop) to try to load
the properties.
Johan Compagner
st way.
What do you guys think?
Johan Compagner
P.S. i am willing to implement this and give it to struts ofcourse.
:
org.apache.struts.action.Action.USER_KEY
com.xxx.xxx.User
com.xxx.xxx..DATABASE_KEY
com.xxx.xxx.DatabaseHandler
Or defining an object for every request.
Johan Compagner
> for such cases. Of course, this only works if the tag-property has been
> declared as an RTE.
sorry that i don't know al the terms like RTE.
But what is this? And are most of the property's in struts RTE?
johan
Hi,
I use many constants for storing objects in the different scopes.
But inside a jsp page i can't use those like this:
but i must type the string behind the constant:
Is there a property like name_as_constant or something?
johan compagner
> The tags listed in "struts.tld" (and implemented in the org.apache.struts.taglib
>package) are
> the Struts 0.5 version of the tags, and are only kept for backwards compatibility.
>New code
> should use the separate tag libraries.
and for complete backwards compatibility you can't point the
I use it also for labels of the form like:
Username [] (english)
Gebruikersnaam [] (My language)
- Original Message -
From: "David Winterfeldt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 12, 2000 10:28 PM
Subject: MessageTag
> I don't know if
Thx for the reply,
I made my own ErrorTag for now.
I hope this behaviour will be added in struts itself.
I attached my own solution...
Here is the xml defenition.
error
x.ErrorTag
empty
property
true
true
greetings,
Johan Compagner
P.S
JspException(messages.getMessage("forward.forward", name, e.toString()));
in taglib only the exception is thrown.
Why is this?
Johan Compagner
belowns
to that property or "" if none set.
Before i code this myself i thought let's ask it before i do something twice.
Johan Compagner
Title: Register for the MailReader Demostration Application
Validation ErrorYou must correct the following error(s) before
> One challenge with using a static method here is that it would be global to the
>entire web
> applciation. That's fine if all you care about is the *server* Locale, but the
>static method has
> no way to know what the client's Locale is without the session either.
Yes i had the idee to use a
Hi,
I want this because i don't have the a handle to the session object at all time so
that i can
call the MessageResources.getMessage(Locale, String) with the locale of the user.
(for example in a ActionForm class where i want client localised messages!!)
how do i those in the form bean? I kn
priate scope
if (debug >= 1)
log(" Storing instance under attribute '" +
attribute + "'");
if ("request".equals(mapping.getScope()))
request.setAttribute(attribute, instance);
else
session.setAttribute(attribute, instance);
instance.setSession(session); //ADDED
return (instance);
}
Johan Compagner
priate scope
if (debug >= 1)
log(" Storing instance under attribute '" +
attribute + "'");
if ("request".equals(mapping.getScope()))
request.setAttribute(attribute, instance);
else
session.setAttribute(attribute, instance);
instance.setSession(session); //ADDED
return (instance);
}
Johan Compagner
85 matches
Mail list logo