> I need to load file dynamically, because properties file must be
> located outside /WEB-INF dir. Is there any way to obtain that?
In that case, I'd recommend taking a look at Struts' resource loading code
and make sure you're doing the equivalent.
L.
OK, thanks.
Andy
-
Hi Everyone,
I am developing application in struts 1.1 and in my tomcat5.5 localhost
log file i am getting
INFO: Could not load TagExtraInfo class
org.apache.struts.taglib.nested.NestedWriteNestingTei:
org.apache.struts.taglib.nested.NestedWriteNestingTei
printed very frequently.
I tried
Thanks Laurie,
Some code eg., or templates would be really helpful..
On 3/2/07, robin bajaj <[EMAIL PROTECTED]> wrote:
Hi there,
I am looking for similar results (*dynamically load properties file
without restarting the server))
>You'll need to implement your own MessageResourcesFactory and
Hello All,
I'm using Struts 1.0 version with a dynaform and a select control. For some
reason the struts validator doesn't work with that control. I've seen that
mentioned in an article before. Is this corrected in later versions or is there
a workaround for this?
Any help is appreciated!
Than
Hi there,
I am looking for similar results (*dynamically load properties file
without restarting the server))
>You'll need to implement your own MessageResourcesFactory and configure
> it in struts-config.xml. Your custom factory and/or the resource
>bundles
> it creates can use whatever logi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
> --- Laurie Harper <[EMAIL PROTECTED]> wrote:
>> URL res = Thread.currentThread()
>> .getContextClassLoader()
>> .getResource(pathToConfigurationFile);
>> // Save the properties
>> OutputStrea
Thanks but It wouldn't work because I call some old code that use
request.getParameter() and not ActionContext.
finally, all I wan't is just a standard "forward"...
Mike
cilquirm a écrit :
why can't you add parameters in chain?
In your action, can't you :
1) implement ParameterAware
2)
>Why not just configure the target action in your action mapping as normal?
Does it work for you ? Not for me : 404 Not Found.
And this is, I suppose, because Struts2 use filter instead of servlet.
I also tried by addin FORWARD as I saw
somewhere but still no luck.
But maybe is it with my apps
why can't you add parameters in chain?
In your action, can't you :
1) implement ParameterAware
2) set a parameter value in the map that's passed in
3) chain to your action
4) have the value be set in your chained action, via the params interceptor
-a
Laurie Harper wrote:
>
> Mike Barou
I'm not sure what you mean by 'nested objects' here, but the error
message is telling you that insuranceForm.beneficiaries can't be
resolved to a value. Either insuranceForm is undefinded, the
InsuranceForm class is missing a getBeneficiaries() method, or that
method is returning null.
L.
Gl
Mike Baroukh wrote:
I can't figure how to do this.
Can somebody help me
I wan't to forward an action to another with something like
requestDispatcher("/action.do?param1=value1").forward(req, res);
- I can't use redirect because I wan't to use the same request scope.
- I can't use chain be
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> URL res = Thread.currentThread()
> .getContextClassLoader()
> .getResource(pathToConfigurationFile);
> // Save the properties
> OutputStream out = new FileOutputStream(res);
> properties.store(out, "");
Ooo, I did
Prithivirajan Dhamodharan wrote:
Help required to load values in properties file(MessageResources) without
restarting/reloading the server.
Kindly give your suggestions.
You'll need to implement your own MessageResourcesFactory and configure
it in struts-config.xml. Your custom factory and/or
Yes you are right, but what i have in the properties file is the database to
which the user wants to connect, for example oracle or sql.
Thanks
2007/3/1, Laurie Harper <[EMAIL PROTECTED]>:
Dave Newton wrote:
> --- Daniel Chacón Sánchez <[EMAIL PROTECTED]>
>> I have a question, how I can set th
I just see your answer, thanks!!! In fact is the same that the solution i
Found, Thanls
2007/3/1, Laurie Harper <[EMAIL PROTECTED]>:
Dave Newton wrote:
> --- Daniel Chacón Sánchez <[EMAIL PROTECTED]>
>> I have a question, how I can set the path for the
>> OutputStream like i get it for the
Glenn wrote:
Hi,
I have an application that I'm moving over to J2SE1.5 and J2EE 1.4.
I am getting an error when executing a JSP:
javax.servlet.jsp.el.ELException: Unable to find a value for
"beneficiaries"
in object of class "hronline.secure.personal.insurances.InsuranceForm"
using
operator "
Got it:
String path= Thread.currentThread().getContextClassLoader().
getResource(pathToConfigurationFile).getPath();
OutputStream out = new FileOutputStream(path);
properties.store(out, "");
2007/3/1, Daniel Chacón Sánchez <[EMAIL PROTECTED]>:
S
Andrzej Bengner | e-direct Polska Sp. z o.o. wrote:
The ususal way to expose resource bundles for use with Struts1 is to include
the properties files in the webapp's classpath, configure them in
struts-config.xml and let Struts deal with loading them. Is there a reason
you need to store the files
Dave Newton wrote:
--- Daniel Chacón Sánchez <[EMAIL PROTECTED]>
I have a question, how I can set the path for the
OutputStream like i get it for the InputStream with
getResourceAsStream?
I'm not sure you can do that, particularly since a
resource might be inside a JAR file or be located in a
H Just testing whether my id is working or not. sorry for inconvenience.
--
View this message in context:
http://www.nabble.com/Testing-new-message-tf3329546.html#a9258094
Sent from the Struts - User mailing list archive at Nabble.com.
--
Bear in mind that this way, if the user types in 'abc' for one of your
money fields, you wont be able to re-display their incorrect input.
That's the other major reason for making your form fields String-typed.
L.
Gundersen, Richard wrote:
Actually, I tried out your first solution, and it act
Thanks Mike.
In another part of my project,
I was trying to convert my "jnlp" file to "jsp" file,and include it in the
result.jsp. But somehow, when I include the file, jnlp partiulars[like download
etc] does happen.. Actually the jnlp contents are not being done with the
include..
--- Daniel Chacón Sánchez <[EMAIL PROTECTED]>
wrote:
> Someone?
Sorry it took me so long.
> I have a question, how I can set the path for the
> OutputStream like i get it for the InputStream with
> getResourceAsStream?
I'm not sure you can do that, particularly since a
resource might be inside
Someone?
Hi all
I have a question, how I can set the path for the OutputStream like i get it
for the InputStream with getResourceAsStream?
This is my code:
Properties properties = new Properties();
String pathToConfigurationFile =
"common/properties/Configuracion
you can't forward to 2 jsps.
Eventually you can include the result of a jsp in another with
or you can use tiles or sitmesh to do it.
Maya menon a écrit :
Has anyone tried forwarding to multiple mappings ? or multiple jsps ?
we have a requirement to use two jsp pages together. Upon su
Has anyone tried forwarding to multiple mappings ? or multiple jsps ?
we have a requirement to use two jsp pages together. Upon success, how will
we forward to two jsps ? Is this possible ?
I have never done it and am unsure whether it can be done too. If anyone
knows an idea, please
--- Paul Saumets wrote:
>> is this one of those trick interview questions?!
> lol. umm yes. :) it's strictly for reference.
It's better than a couple I've gotten over the last
few days, that's for sure :/ Normally I'm the -er, not
the -ee, and I'll tell you what, it's driving me
mental.
>> Includ
> Could someone please tell me why JBOSS is giving me
> the following error when launching my application:
>
> 11:52:29,729 INFO [STDOUT] 11:52:29,727 ERROR
> [[/xx]] Exception starting filter sitemesh
> java.lang.NoClassDefFoundError:
> com/opensymphony/module/sitemesh/filter/Pa
--- Paul Saumets wrote:
> Could someone please tell me why JBOSS is giving me
> the following error when launching my application:
>
> 11:52:29,729 INFO [STDOUT] 11:52:29,727 ERROR
> [[/xx]] Exception starting filter sitemesh
> java.lang.NoClassDefFoundError:
> com/opensymphony/module/sitemes
Actually, I tried out your first solution, and it actually works very
nicely too, so I'm going to go with that one for now!
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Mess
Could someone please tell me why JBOSS is giving me the following error when
launching my application:
11:52:29,729 INFO [STDOUT] 11:52:29,727 ERROR [[/xx]] Exception starting
filter sitemesh
java.lang.NoClassDefFoundError:
com/opensymphony/module/sitemesh/filter/PageFilter
at java.lan
I think there's something to be said though for maintainability when
there's only a single well-known object a developer has to go to to
populate the screen, form data or not. I personally prefer the ActionForm
be viewed as a VO between the view and control, and I don't figure the
values it passes
Hi Ed
Thanks for the detailed explanation. I'll take your advice on this -
sounds like using Strings is going to be much less error prone, and
easier to maintain.
Thanks again!
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank pl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
> --- Christopher Schultz wrote:
>> If you have a form that needs to be populated,
>> submitted, validated and possibly re-displayed, why
>> not use an ActionForm to populate the form in
>> the first place?
>
> If you're tal
--- Christopher Schultz wrote:
> If you have a form that needs to be populated,
> submitted, validated and possibly re-displayed, why
> not use an ActionForm to populate the form in
> the first place?
If you're talking about only form data, sure. That's
why I explicitly stated I was referring to
Hi,
I have an application that I'm moving over to J2SE1.5 and J2EE 1.4.
I am getting an error when executing a JSP:
javax.servlet.jsp.el.ELException: Unable to find a value for "beneficiaries"
in object of class "hronline.secure.personal.insurances.InsuranceForm" using
operator "."
If I remove t
Hi all
I have a question, how I can set the path for the OutputStream like i get it
for the InputStream with getResourceAsStream?
This is my code:
Properties properties = new Properties();
String pathToConfigurationFile =
"common/properties/Configuracion.propertie
It has nothing to do with Struts, the error message is saying that
commons BeanUtils cannot convert the string from the form submit into
a BigDecimal. Turns out that your issue is BigDecimal is not as
permissive as Double when it converts a non-numeric string to a
BigDecimal. If a string is not a
I am setting the struts form I created into session.
I agree that this is all working fine without any problems. But there is
something "icky" about it but I can't put my finger on it.
One reason could be that this is generating a coupling of the struts
form to the java code, something which the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
> --- Christopher Schultz wrote:
>> If page2.jsp contains a form, then it is perfectly
>> natural to use an ActionForm to shuttle data from
> the
>> action to the page.
>
> That's actually debatable, and has been in the past.
Hi Guys,
I expreinced another trouble with my validator using wildcards definitions.
I've got the following in my struts.xml
/index.jsp
/login/login.jsp
/login/login.jsp
I've got two methods: login and logout.
So my action url is http://mywebsite
--- Christopher Schultz wrote:
> If page2.jsp contains a form, then it is perfectly
> natural to use an ActionForm to shuttle data from
the
> action to the page.
That's actually debatable, and has been in the past.
Some people prefer to use ActionForms exclusively for
form data and not Plain Old
Hi,
Thanks for your help but I found my mistake.
Ive had the parameter type="redirect" in the result (struts.xml):
/register/step1.jsp
and since i removed it, it works
/register/step1.jsp
Rgs,
E
Hi,
I dont see
<%@ taglib prefix="s" uri="/struts-tags" %>
in your jsp page, this may be the p
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael and Chaudhary,
Michael Jouravlev wrote:
> On 2/28/07, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote:
>> I have page1.jsp which has a form which calls Page1Action which forwards
>> to page2.jsp. Also, session scoped Page1Form and Page2Form.
>>
>>
runReportReport!show
/queryReport/ajax
auditLogQueryReport
/pages/ajax/query.jsp
When I call , I get the following
error
WARNING 03/01/2007 08:51:50 AM [OgnlUtil.internalSetProperty ()] Caught
OgnlExcep
The struts 2 taglibs (in ajax theme) use Dojo, so they are really one in the
same.
On 3/1/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:
Hi,
I am involved in a project which needs Ajax features. We have decided to
use
struts 2 for development.
For Ajax support is it advisable to use Dojo w
Hi
Has anyone had problems with BigDecimal and DynaValidatorForms?
I've got a form with two fields (advisorFee and grossIncome) defined as
java.lang.Double. I want to change them to java.math.BigDecimal because
they are money fields.
If I change advisorFee to BigDecimal, the validation fails wh
Ok, got the difference.
Now being a new bie to AJAX, what are the best techiques that should be used
to design a well designed web app ?
Again, my page has to show the new data thats being added to database.
Frank told about creating a "timed AJAX event". Where can I get more det
runReportReport!show
/queryReport/ajax
auditLogQueryReport
/pages/ajax/query.jsp
When I call , I get the following
error
WARNING 03/01/2007 08:51:50 AM [OgnlUtil.internalSetProperty()] Caught
OgnlExcept
Dave:
I see what you are saying. I changed my form to
have a string field and now it captures the value
of the button that was pressed.
It does not match the doc but it works!
Thanks,
Neil
--
Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim
I can't figure how to do this.
Can somebody help me
I wan't to forward an action to another with something like
requestDispatcher("/action.do?param1=value1").forward(req, res);
- I can't use redirect because I wan't to use the same request scope.
- I can't use chain because chain doesn't a
--- Neil Aggarwal <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Any ideas why this is not working?
I would guess because it's trying to convert the
string value into a true/false boolean and failing?
(If I change the value to "true" for the msg1/msg2
buttons it works.)
So I guess I'm a little c
You can mix them. Dojo will be available to you, just as if you had included
it on your application yourself. There are some tags on the ajax theme that
can help you do simple stuff. On top of that there is a JSON plugin that you
can use to generate/populate JSON from/to your actions. For ajaxtags
On 2/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Thank you for your reply.
Why is it only server-side ?
Because no-one has written the equivalent functionality in JavaScript.
Validwhen uses antlr to evaluate expressions on the server side -
replicating its functionality in JavaScript
Take a look at the Ajax section on showcase. It has several examples,
although nothing like the mailreader. This might also help:
http://struts.apache.org/2.x/docs/ajax-tags.html
regards
musachy
On 3/1/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:
Has any body came across good application (aja
Hi.
I'm using a custom stack that calls use the following interceptors :
exception, alias, fileUpload, servlet-config, cardibox-bo,
prePreparationParams, prepare, i18n, chain, checkbox, static-params,
params, cardibox-web, conversionError, validation, workflow.
Si I just have 2 customs inter
56 matches
Mail list logo