Stanislav wrote:
Because you're doing XML, you need to escape XML entities.
Change your value to this:
jdbc:mysql://localhost/databaseName?useUnicode=true&characterEncoding=utf-8
I don't know where to put this :-
If I put this line of code in data-source I get error
Ah you
> Because you're doing XML, you need to escape XML entities.
>
> Change your value to this:
>
> jdbc:mysql://localhost/databaseName?useUnicode=true&characterEncoding=utf-8
>
I don't know where to put this :-
If I put this line of code in data-source I get error
Can you send me some par
Hi Richard
Couple of suggestions -
1. Set the following variables in catalina.bat
set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=8000
2. I had this error earlier then pointing eclipse and tomcat to use same
JRE fixed the problem.
3. After running catalina.bat jpda start, try to see if the sock
Hi,
Struts action is calling execute method twice due to presence of "#" in the input jsp file
I have the HTML table with like
I could not understand what is the relationship between these two. Removing this
# character makes the Struts action executing only once.
I have attached the sourc
The reason maybe JavaServer Face treating "/pages/projects/Projects.faces"
as an external context so whenever /pages/projects/Projects.faces is called,
com.sun.faces.context.ExternalContextImpl will doForward, however, since it
is included in Tiles Tag, and resposne is committed, you got the except
Dear all,
We have a full blown app written based on the core Velocity &
Turbine model.
I have a couple of questions?
1. is it really possible to migrate this app to a struts framework? if
so what complications needs to be faced?
2. If not? Is it possible to start the app from turbine itself
Try this:
:
This should create request parms like:
geSectionGroups[0].geSectionGroupComments[0].geComment.remark.
-Original Message-
From: Per Jørgen Walstrøm [mailto:[EMAIL PROTECTED]
Sent: Wed 11/23/2005 5:43 AM
To: us
Because you're doing XML, you need to escape XML entities.
Change your value to this:
jdbc:mysql://localhost/databaseName?useUnicode=true&characterEncoding=utf-8
__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
Hi David, yeap you got the stuff right. The only thing I forgot to tell
you is: if you not using Struts dialogs you have to "prepopulate" the
form. So you actually need two actions 1st for prepopulating of
properties and 2nd for correlation with the user input. Or you just use
Struts Dialogs, i
Cool site, thanks pal :)
I'm actually lived in Hannover 1999-2000, studied economics there...
Cheers,
Danny
Bednarz, id-on GmbH schrieb:
printx.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
On Nov 23, 2005, at 4:13 PM, Leahy, Kevin wrote:
However the put tag doesn't take nested elements. I tried already.
You're right, that's not supported. I like the idea though. I
wonder how hard it would be to support that.
I'm sure
there must be
Hi Greg
Really what I'm after now I'm looking at it more carefully is a way of
composing layouts from other layouts where the layouts themselves have some
flexibility in terms of the components that are inserted into them. This
seems such a basic requirement that I wonder if I'm missing something
> can you please demonstrate how u did that? where do we use the ModuleConfig
> Object...
Well, you have two solutions to get an ModuleConfig object.
You can get it in a struct actions, using
getServletContext().getAttribute(Globals.MODULE_KEY), or in any place
that can get the ServletContext,
Hi Dave
The problem is happening when I return from isAllowed.
This is just a helper class that the action is
calling. I just ass-umed that it would return to the
action called it on the stack. But now that you flag
it I barely see that there might be some trouble with
multiple instances and a p
> Hi
>
> Thanks for your clarification Craig. So, if I read you correct, Tiles and
> Clay
> go hand in hand. Use Tiles for assembling the pages, so that you only have to
> write jsp/html files containing the specific content (not the whole page).
> Then
> use Clay to do the work writing of t
On 11/23/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> Ok the problem with Rolodex seems fixed in today build :) But my french
> translation doesn't seem to be there (I can't find the file).
Craig just committed it about an hour ago, and it will show up in the
20051124 nightly build.
http:
Ok the problem with Rolodex seems fixed in today build :) But my french
translation doesn't seem to be there (I can't find the file).
On 11/23/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
>
> Hi David,
>
> I already know about facelets and it definately look like a nice project
> but I was giv
>This isn't a Struts prolem, and it's not a MySQL problem either. As usual,
>it's "user error" :-)
>These are two things to do:
>[1] If you're importing through Java, you need to make sure your file reader
>is properly decoding
>UTF-8 stings:
>http://javaalmanac.com/egs/java.io/ReadFromUTF8.htm
On 11/23/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> You can't change HTTP headers (which is what is required to do a redirect)
> from inside a RequestDispatcher.include() -- and that's what
> does under the covers.
Then what is flush="false" good for? I thought that the whole point is
to w
On Nov 23, 2005, at 12:09 PM, Leahy, Kevin wrote:
But now I want to user the base tiles for actual pages.
I want to be able to insert components into both layouts i.e.
When I try this, it just doesn't display the components inserted (
supposedl
Hello everyone,
I know I'm writing an off-topic question here, but I don't think there's any
better place to ask it, so I'll ask for your comprehension.
I have a webapp that uses treeview from struts-layout. It is working
perfectly and I'm happy with it.
The thing is that now I was required to p
On 11/23/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> My understanding was that once content was sent to the browser you could
> no longer do a redirect, so I'd think that once you started dealing with
> the include file it'd be too late.
That was true for JSP 1.1. Starting from JSP 1.2 you can us
On 11/23/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> I know that this is not a proper list, but considering that original
> author of Tomcat spends a lot of time here I thought it was worth a
> shot ;) Also, I didn't want to go through hassle of
> subscribing/unsubscribing to Tomcat mailin
Michael Jouravlev wrote:
Does anyone have a clue?
My understanding was that once content was sent to the browser you could
no longer do a redirect, so I'd think that once you started dealing with
the include file it'd be too late.
Dave
--
That was really helpful. Inserting another tile as the body is a good start.
I have just tried it though and I still have the following problem ..
I have MasterLayout.jsp and FormLayout.jsp again.
MasterLayout.jsp contains the website generic stuff. E.g.
FormLayout.jsp contains the layout o
I know that this is not a proper list, but considering that original
author of Tomcat spends a lot of time here I thought it was worth a
shot ;) Also, I didn't want to go through hassle of
subscribing/unsubscribing to Tomcat mailing list, I hoped I would get
help in my home list ;)
As I said, I us
Chris Pat wrote:
Okay the code is below. What I am doing is creating
sampleRequest from the action, then calling isAllowed.
The sampleRequest is being successfully made and
persisted in the db. The isAlowed is failing. I got
both working from fine from the command line. I am a
relative strut
hello again,
I guess that using
private Set geSectionGroupComments;
is not a good way to do it, as a Set is not really indexable. I mean, you can't
really do geSectionGroups[0].geSectionGroupComments[0].geComment.remark if
geSectionGroupComments is a Set?
I tried to change all my Sets to Lis
Hi Dave
Okay the code is below. What I am doing is creating
sampleRequest from the action, then calling isAllowed.
The sampleRequest is being successfully made and
persisted in the db. The isAlowed is failing. I got
both working from fine from the command line. I am a
relative struts newbie an
Chris Pat wrote:
Can anyone provide any insight?
Not too much without information (code, configs, ...)
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Frank W. Zammetti wrote:
There *was* in fact a server-side Javascript technology at one point,
but it was short-lived, not used much and IIRC specific to Netscape's
old web servers. I had the misfortune of having to deal with in app
developed in it probably seven or so years ago... not pleasa
Dave Newton wrote:
JavaScript runs in the browser. If it's not enabled in the browser then
JavaScript won't work.
There *was* in fact a server-side Javascript technology at one point,
but it was short-lived, not used much and IIRC specific to Netscape's
old web servers. I had the misfortune
5.5.12 of what?
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
Skype: jmitchtx
- Original Message -
From: "Chris Pat" <[EMAIL PROTECTE
Hello
In my Action I am creating an object and storing it in
a db. It works fine. The next line I then call a
method on the object, does some lookups printoutsa
proof that it is working and then on the return gets
this message:
java.lang.NullPointerException
org.apache.struts.action.RequestProce
fea jabi wrote:
Is there a way to execute the javascript on server-side?
Um... Simple answer is no.
My application requirement is the users may not have javascript
enabled on their browsers. Can I still use this html:javascript. Or is
there any oher alternative to do this?
I think you're
why, if I can write a javascript in validator-rules.xml, I should be able to
able to get the dialog right. using confirm of javascript.
if I give below in jsp
staticJavascript="true" />
it works fine.
But I observed that the javascript is generated on client side. Which I
don't want.
Is th
Hi, perhaps someone faces the same problem:
I would like to specify a bundle for example in this way:
but it is never recognized only when the default message-ressources in
struts-config without any key are defined
Because of that I'would like to test validator 1.2
and I've downloaded the dtd
Thank you for your reply. So in your ActionForm you have a List
property called cartEntries? And the struts populating mechanism is
aware of this because you have the [] characters in the textbox name,
right? And the cartEntries list contains a CartEntry object which has a
productCount property, a
On Nov 22, 2005, at 5:40 PM, Leahy, Kevin wrote:
Hi
Here's MasterLayout.jsp ( abridged )
Here's FormLayout.jsp ( again very abridged )
onsubmit="eventSearchPreSubmit();return validateEventSearchForm
(this);" >
Is FormLayout.
printx.org
*** REPLY SEPARATOR ***
On 23.11.2005 at 15:06 Danny Lee wrote:
>Here's a snippet from my checkout.jsp:
>
> varStatus="status">
>
>
>
>
>
>
>
>
> align=left height=40>
> value="${item.productName}"/>
>
Hallo Martin,
from what I have found it is enough to start the jJVM by
java -Xdebug -Xnoagent
-Xrunjdwp:server=y,transport=dt_shmem,address=8000,suspend=n
-Djava.endorsed.dir="..\common\endorsed"
-classpath
"c:programme\java\j2sdk1.4.2_06\lib\tools.jar;..\bin\bootstrap.jar"
-Dcatalina.base=".
Hi Alexandre
Tradeoffs Well, I guess we all have to live with them.
Well, back to Shale/Clay/Tiles for some more struggle... :)
Hermod
-Original Message-
From: Alexandre Poitras [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 23, 2005 2:54 PM
To: Struts Users Mailing List
Subjec
Here's a snippet from my checkout.jsp:
varStatus="status">
align=left height=40>
value="${item.productName}"/>
value="${item.productPrice}" type="currency" currencySymbol="€"/>
x
align="left"/>
I see. I think most of the time you're right. But in some complex situations
a tradeoff *might* be better, instead of having a lot of bloating views, you
put the logic in the backing bean. Of course, there are always ways of
reorganizing your code like by using JSP tags in JSP views.
But I get you
If you are using Tomcat I would suggest you use the Sysdeo Plugin
(www.sysdeo.com). With it one can smoothly debug web apps in Eclipse. I do
it all the time.
Martiin
> -Ursprüngliche Nachricht-
> Von: R. Markham [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 23. November 2005 14:40
> An
Hallo
Since several days I tried to debug my Struts Application with Eclipse. I
set following ENV variables
Set JPDA_TRANSPORT=dt_shmem
Set JPDA_ADRESS=8000
I called Catalina with "jpda start" parameter.
If I try to connect to jvm in Eclipse I always get the message
"Failed to conne
This isn't a Struts prolem, and it's not a MySQL problem either. As usual, it's
"user error" :-)
These are two things to do:
[1] If you're importing through Java, you need to make sure your file reader is
properly decoding
UTF-8 stings:
http://javaalmanac.com/egs/java.io/ReadFromUTF8.html
[2]
Did you try Categroy Configurations such as:
# Category Configurations
log4j.logger.jsp=DEBUG
log4j.logger.com.cmpyname.appname=DEBUG
>>> [EMAIL PROTECTED] 11/23/2005 6:30:53 AM >>>
Hello Strust Users
In Strus webapplication when i set log4.properties file with below
option
It logs also strus l
use a category to limit the DEBUGs from e.g. struts
xml-example:
-Opprinnelig melding-
Fra: nitin mandolkar [mailto:[EMAIL PROTECTED]
Sendt: 23. november 2005 13:31
Til: user@struts.apache.org
Emne: How to stop struts logging in my web application
Hello Strust Users
Hello Strust Users
In Strus webapplication when i set log4.properties file with below option
It logs also strus log which is creating the very big log file. I want
log only my webapplication log statement rather than strust.
Is there any property i have to set in log file where i can disabble
or
hi all,
i got a problem with struts forms.
i got a form called PeopleForm in which there is a bean called ItemBean
which is instatiated in the form as below.
ItemBean bean=new ItemBean ();
ItemBean has two attributes namely "name" and "code".
i am using tiles so i am getting these into a dropdo
Hi Alexandre
Ok, that claryfies things a bit. Allthough your example still does not feel
right with me. I still think taht anything to do with the view part, such as
changing the colour of a text etc. still should be handled in the view. What I
would do is to set a condition property in my code
Hi Palaniappan,
It is exactly what you told. I find the meaning of "page.common.exception".
Regards
Richard Markham
-Ursprüngliche Nachricht-
Von: Ramaswamy, Palaniappan [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. November 2005 11:40
An: Struts Users Mailing List
Betreff: RE: Qu
Hi hermod, I think you refer to my other post. The author just took the same
title. Confusing he?
I totally agree with your suggestions. Not a bad idea in my mind but maybe
some architectural considerations keep developpers from doing this (tied to
jsp instead of url implies it's too tied to the vi
Hi David,
I already know about facelets and it definately look like a nice project but
I was giving a try first at Shale. Struts already got a huge community, his
authors are quite famous and involves in the JSF JSR(s) and it proposes
somes nice other features so I am guessing Shale is going to re
Besides the fact that MessageResources was never intended to be changed at
runtime, what will you do if you deploy on a server that throws away
previous exploded WARs like JBoss? On restart, you just lost those changes.
If you need a dynamic bundle, consider using a database-backed
MessageRes
hello,
I use Struts 1.2.7 and in my jsp, I have the following nested elements:
:
my form, crudOutageForm, contains the following fields, with getters and
setters:
private Collection geSectionGroups;
this collection contains objects of GeSectionGroup. In GeSectionG
> -Original Message-
> From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 15, 2005 9:18 PM
> To: Struts Users Mailing List
> Subject: Re: logout/Back Button problem
>
>
> Firefox? Add "no-store":
This does not work in IE. Any other thing which can be tried?
rega
Hi Richard,
It is possible that your application is using the Tiles. In that case
follow the steps given below to find out the mapping between
page.common.Exception and your exception jsp.
1) Find for struts-config.xml file in the application
2) Look whether the following tag is present in the s
> >Where can i put this connestion URL in code? Only url connection I use is in
> >struts-config.xml,
> but >only this part: jdbc:mysql://localhost:3306/db-name.
> >
>
> this should be it, change to
>
> jdbc:mysql://localhost:3306/db-name?useUnicode=true&characterEncoding=UTF-8
>
OK. Tnx :-) I
Stanislav wrote:
Where can i put this connestion URL in code? Only url connection I use is in
struts-config.xml, but
only this part: jdbc:mysql://localhost:3306/db-name.
this should be it, change to
jdbc:mysql://localhost:3306/db-name?useUnicode=true&characterEncoding=UTF-8
-
> >I think that JSP encoding isn't relevant here, because I put these special
> >letters into Java
> Action, >not from Form, and (for now) i directly call taht action. I'm not
> doing anything with JSP
> > page...
> >
>
> I'll try to be generic here and suppose you use a form. The JSP
> gener
Hi
I must work through a huge program without any documentation. I found
something strange in struts-config.xml.
In the directory common exists exception.jsp. Is the parameter "page" in
"path=page.common.Exception" an attribute to point that that in the
directory "commo
unsubscribe
*** REPLY SEPARATOR ***
On 23.11.2005 at 11:42 Emmanouil Batsis wrote:
>Stanislav wrote:
>
>>I think that JSP encoding isn't relevant here, because I put these
>special letters into Java Action,
>>not from Form, and (for now) i directly call taht action. I'm not doin
Stanislav wrote:
I think that JSP encoding isn't relevant here, because I put these special
letters into Java Action,
not from Form, and (for now) i directly call taht action. I'm not doing
anything with JSP page...
I'll try to be generic here and suppose you use a form. The JSP
generati
I think that JSP encoding isn't relevant here, because I put these special
letters into Java Action,
not from Form, and (for now) i directly call taht action. I'm not doing
anything with JSP page...
- Original Message Follows -
> The problem may lies in Jsp Page encoding, I thnk.2005/11
Hi David
I will read the advanced features tutorial as you suggest. I had hoped there
was just going to some syntax that I wasn't familiar with. But here goes..
Many thanks for your time.
Kevin
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: 23 November 200
The problem may lies in Jsp Page encoding, I thnk.
2005/11/23, Stanislav <[EMAIL PROTECTED]>:
> Hello!
>
> I'm having very strange problem :-( I'm using CharacterEncodingFilter set to
> work with utf-8
> encoding (response and request) and when testing aplication geting:
>
> 08:29:42,970 INFO [ST
68 matches
Mail list logo