Hi, I am new to struts and currently encountered these errors:
Error 500--Internal Server Error
javax.servlet.jsp.JspException: Missing message for key
"analystprofile.edit.screen.title"
In struts-config.xml
in analystprofile_labels_en_GB.properties
analystprofile.edit.screen.title=Edit Analys
> Having to set things back explicitly is very bad.
You should _always_ set whatever you change explicitly!
Silent changes will fail in most frameworks or distributed environments. If
struts would show such behaviour you should report it as bug.
> Often the objects in
> question are non-trivial
> Having to set things back explicitly is very bad.
You should _always_ set whatever you change explicitly!
Silent changes will fail in most frameworks or distributed environments. If
struts would show such behaviour you should report it as bug.
> Often the objects in
> question are non-trivial
Hello Guys,
How can I include a carriage return inside a properties file. I tried
\r\n and it show as \r\n on the
emails being sent.
Thanks
Richard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
pick something from the scope and change it you have set it back explicitly
Ive heard something similar too. Id quite like to hear from someone
(like Craig ;->) who can give a definite answer.
Having to set things back explicitly is very bad. Often the objects in
question are non-trivial and b
Hi,
We had to check out some design issues because the client wanted a
clustered environment. We never tested it though.
I know that if you pick something from the scope and change it you
have set it back explicitly. I recall that this is a requirement to enable
session replica
Hi,
It will not be updated unless and untill you dont put one getter method for
the Id in the form bean which you have given in the logic iterate tag.
In your case, its ...id="email"
Hope this helps ..
sachin
-Original Message-
From: Kandula, Sunita [mailto:[EMAIL PROTECTED]
Sent
Hi
apologies if this has been asked before but mail-archive seems to be busted.
I have a form which has these methods
public void setMenuSections(MenuSectionEntityValue[] menuSections)
public MenuSectionEntityValue[] getMenuSections()
public MenuSectionEntityValue getMenuSection(int idx
David,
Yes, struts-conf is in WEB-INF,
Here's the application error log, apparently it's finding the for.jsp before
crashing,
DEBUG - insert page='/portal/forms.jsp'.
DEBUG - servletPath=/portal/forms.jsp, pathInfo=null, queryString=null,
name=null
DEBUG - Path Based Include
INFO - default: Def
Julian:
In addition to the Chain Action, you can definitely configure a chain
which dispatches to a sub-chain based on the request URI. The base
chain is designed to provide backwards compatible behavior with
existing Struts installations, but with a bit of adjustment, you can
definitely break
Julian,
If you just need to invoke a chain, you can make your action be
"org.apache.struts.chain.legacy.ChainAction". If you need some actions to
do chain "A" and some to do chain "B" THEN do execute other logic in the
action, subclassing ChainAction might be the best course. Your subclass
could
Sorry, Bryan, here's the rest:
protected String convertToUTF8(String original) {
try {
byte[] utf8Bytes = original.getBytes("UTF8);
original = new String(utf8Bytes,"UTF8");
} catch (UnsupportedEncodingException uee) {
// logging, etc.
}
return original;
}
J
Have you checked your application server's log files to see if there were
any Struts startup errors? Where are you putting the "struts-conf" file?
Are you putting it in the file "/WEB-INF/struts-config.xml"?
Regards,
David
-Original Message-
From: Jim Douglas [mailto:[EMAIL PROTECTED]
Se
Hi,
I was looking at the struts-chain config
(http://cvs.apache.org/viewcvs.cgi/jakarta-struts/contrib/struts-chain/src/conf/chain-config.xml?rev=1.10&view=markup)
and was wondering if one can apply different chains
depending on the request URI? From what is available
in the SVN repository it lo
To all,
This is my error message in the browser,
javax.servlet.ServletException: Cannot retrieve mapping for action
/SelectUser
The class files are in the right place. This is struts-conf,
Thanks,
Jim
-
Hi, Bryan,
I could not agree more. But, you might as well bang your head against
the wall as play Cassandra to this version of the Trojan Horse (JSF).
What I do in these cases is to just extend the tags. This one is
fairly easy. Here is a sample early method I built off of which you
can modify
I'm assuming that the nightly build broke when the SVN repository was
reorganized.
This is purely ad hoc, but here's a JAR built from the SVN head
against commons-chain 1.0 and Struts 1.2.4.
http://www.apache.org/~germuska/struts-chain-0.5-dev.jar
Given the changes which are pending, I'm not te
Thanks, the forEach works great. The problem with using a hardcoded form name
is that I have an abstract Base form with several derived children each with
their own form name. Using the forEach you sent me though shows that the form
name is stored in a request attribute
"org.apache.struts.actio
Hi,
I am trying to download a build of struts-chain from
http://cvs.apache.org/builds/jakarta-struts/nightly/struts-chain/
, but when I try to unzip any of the files, they are
empty. Is this the wrong location for nightly builds
or are they not available?
Thanks,
Julian
=
Live simply so o
> -Original Message-
> From: Jim Douglas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 2:38 PM
> To: [EMAIL PROTECTED]
> Subject: RE: getAttribute syntax
>
>
>
> This worked,
>
> String userName = ((LogonForm) form).getUsername();
>
>
> How would you
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 2:18 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Oreilly example question
>
>
> I have done that in 1.1, but the issue I have is that each of
> my actions could potentially throw
From: <[EMAIL PROTECTED]>
> I am trying to pull the value from a property in a collection(LinkedList)
> stored in the request object and store it in a script variable.
Have you considered using JSTL and the tag? I'm not entirely sure,
but it looks like all you're doing is checking the value of o
Try something like this:
-Bill Siggelkow
Wessel van Norel wrote:
Hi all,
I was wondering if it is possible to use a HashMap containing vectors
as the input for a logic-el:iterate tag.
Why do I use a hashmap? That's because I first have to iterate through
a l
Well, for the form you can use the form name as specified in your
struts-config.xml.
To list the attribute keys and values in the request use something like
this (works equally well sessionScope and applicationScope):
First of all, John, I encourage you to learn JSTL -- really permits you
to write much cleaner pages yet still do some fairly complicated logic
on the JSP page.
Okay, to answer your immediate question, you can put a property value
into a scripting variable using the tag like this:
However, yo
Declarative exception handling honors the exception hierarchy. For
example, if you want to trap all exceptions with your custom handler
simply specify 'java.lang.Exception' as the type. As far as the stack
trace printing; how this is handled depends on your logger. Log4J will
print the stacktra
This worked,
String userName = ((LogonForm) form).getUsername();
How would you do it container managed? That sound like the next
best way. (BaseAction being the best.)
Jim
From: "Jim Barrows" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Strut
No big surprise that it works. The DAO pattern is for abstracting out
implementation details of how you actually talk to your DB. If you know that
you will always use OJB for your data access, then you don't need the DAO
layer.
If you know that you will never use anything but struts for your
Hi again,
I'm actually trying to get the form name, or a reference to the object, from
the JSP page. Also, how can I (using JSTL) get a list of all attributes and
their values in request, session, and app scope from the JSP page also?
Thanks again,
Abdullah
-Original Message-
From: Abd
Hi,
How can I get the actionform name from the session?
Thanks,
Abdullah
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have done that in 1.1, but the issue I have is that each of my actions could
potentially throw many different Exceptions that all have different text
associated with them.
In addition to that, I would love to be able to see the root cause of each
error.
So:
1. Do I create a global exception e
On 12/14/2004 12:32 PM Andrew Hill wrote:
According to the sevlet spec: "context attributes are local to the JVM
in which they were created. This prevents ServletContext attributes from
being a shared memory store in a distributed container".
What Id like to know is how this affects configuratio
Hi guys,
I am trying to pull the value from a property in a collection(LinkedList)
stored in the request object and store it in a script variable. I can
write the property value to the response page using a tag
inside a tag, but I can't seem to find a way to get the
value into a script varia
Evgeniy Strokin wrote:
This is exactly that I have. Also i asumed that I need
in ContactInfo.class something like this:
public Email getEmails(int index){
return emails.toArray()[index];
}
For property:
model.currentPerson.contactInfo.emails[0].emailAddress
But I notised that Struts calls getEmail
I'm wandering could this exception be because value of
emailAddress is null?
--- Evgeniy Strokin <[EMAIL PROTECTED]> wrote:
> This is exactly that I have. Also i asumed that I
> need
> in ContactInfo.class something like this:
> public Email getEmails(int index){
> return emails.toArray()[index]
Hi,
We heard that IBM is going to de-support struts portlet framework
from IBM Websphere Portal 5.1.
Initially (way back 4.x) they said they are going to support all
the features of Struts and that is the road map for Portal
applications. But the framework was not complete, it doesn't perfo
This is exactly that I have. Also i asumed that I need
in ContactInfo.class something like this:
public Email getEmails(int index){
return emails.toArray()[index];
}
For property:
model.currentPerson.contactInfo.emails[0].emailAddress
But I notised that Struts calls getEmails() for this
property
> -Original Message-
> From: bryan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 1:02 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: Annotations and Struts
>
>
> yet 99.% of the time all that people want to do are
> CRUD actions ..
We
Can you give code details of ContactInfo and Email classes .
I am assuming you will have something like the following, basically no
indexed methods are required.
ContactInfo.class
/**
* @return
*/
private Collection emails;
public Collection getEmails() {
return ema
> -Original Message-
> From: Jim Douglas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: getAttribute syntax
>
>
> Can anyone tell me the best way to access the currently
> loggoned on user
> when needed in an application.
>
yet 99.% of the time all that people want to do are CRUD actions ..
--b
On Wed, 15 Dec 2004 14:20:23 +0800, Andrew Hill
<[EMAIL PROTECTED]> wrote:
> Im not so sure that would work too well as the actionforms are
> representations of the view state, and whats in a form on the view
> d
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: Oreilly example question
>
>
> I was looking into refactoring our Exception Handling and
> looked at the struts 1.1 Oreilly book.
> My
> -Original Message-
> From: Derek Broughton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 12:09 PM
> To: Struts Users Mailing List
> Subject: Re: Struts, JSTL and ResourceBundle
>
>
> On Wednesday 15 December 2004 14:07, Jim Barrows wrote:
> > > From: Nicolas De Loof [
Thanks,
I think I'm getting close))
But your example gives me this exception:
---
Invalid argument looking up property
model.currentPerson.contactInfo.emails[0].emailAddress
of bean form
---
Could you clue me in why is what?
Thanks,
Eugene
--- "Kand
Can anyone tell me the best way to access the currently loggoned on user
when needed in an application.
Is this the best way to go about it?
HttpSession session = request.getSession()
String LogonName = session.getAttribute("userName");
Thanks,
Jim
---
On Wednesday 15 December 2004 14:07, Jim Barrows wrote:
> > From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> > My customer would like to be able to change i18n messages
> > easily (without requirement to redeploy webapp or edit files
> > in context/WEB-INF/classes/...)
> >
> The solution isn't to
Evgeniy Strokin wrote:
Thanks,
but the server doesn't respond. Could you sent the pdf
or copy and past the page from pdf.
I'm really stack with this problem and appreciate any
help.
--- Sebastián Gorgo <[EMAIL PROTECTED]> wrote:
Evgeniy Strokin wrote:
Hi,
I have a problem:
Struts config file has:
I was looking into refactoring our Exception Handling and looked at the struts
1.1 Oreilly book.
My question is this.
They talk about extending the ExceptionHandler to provide more extended
functionality. Is this still the proper approach in Struts 1.2.4?
Mick Knutson
Wells
On Wed, 15 Dec 2004 08:31:03 -0800, Karr, David <[EMAIL PROTECTED]> wrote:
> First of all, note that you could use "c:forEach" instead of
> "logic:iterate". You should be able to do it with both, but there's no
> sensible reason to use both kinds of iteration constructs.
Well, I came to the logic
Could be done like this:
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
-Original Message-
From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: indexed property is not updated after submit
> -Original Message-
> From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 3:16 AM
> To: Struts Users Mailing List
> Subject: Struts, JSTL and ResourceBundle
>
>
>
> Hello,
>
> My customer would like to be able to change i18n messages
> easily (withou
Hi liooil,
I'm using OJB in my struts application.
At the beginning I used Druid to create the package with the beans
(BusinessObjects? or DTO as explained in
http://www.reumann.net/struts/lesson1/step4.do) and the repository.xml file.
Here you can find Druid: http://druid.sourceforge.net/index.h
Sounds like a job for a map backed action form, see the Struts FAQ for a
description of this approach:
http://struts.apache.org/userGuide/building_controller.html#map_action_f
orm_classes
-Original Message-
From: Turley, Michael [mailto:[EMAIL PROTECTED]
Sent: 15 December 2004 17:25
To:
Thanks,
but the server doesn't respond. Could you sent the pdf
or copy and past the page from pdf.
I'm really stack with this problem and appreciate any
help.
--- Sebastián Gorgo <[EMAIL PROTECTED]> wrote:
> Evgeniy Strokin wrote:
> > Hi,
> > I have a problem:
> > Struts config file has:
> >
> >
Evgeniy Strokin wrote:
Hi,
I have a problem:
Struts config file has:
On JSP I have:
property="model.currentPerson.contactInfo.emails"
name="form" >
It generates folowing HTML:
But when I submit the form actual values in a bean are
not updated. They are still the same.
This is my Bean:
p
From: "Turley, Michael" <[EMAIL PROTECTED]>
> I am looking for a more graceful strategy than creating an
> ActionForm with an arbitrary amount of getAccount_/setAccount_
methods
> to retrieve and act on user submitted data. Any ideas?
I have a page that displays all the accounts that a user is all
Hi there! I have a dispatch action that receives a forward parameter and
I need to find the approprieate path for it. Since this action is used
by a lot of scenarios, It's not desirable to be setting new forwards for
each new scenario that uses it (would be to confusing the struts-config)
and o
First of all, note that you could use "c:forEach" instead of
"logic:iterate". You should be able to do it with both, but there's no
sensible reason to use both kinds of iteration constructs.
The critical problem is likely that the "collection" attribute is an RT
expression that evaluates to a col
> -Original Message-
> From: Vinicius Caldeira Carvalho
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 10:28 AM
> To: Struts Users Mailing List
> Subject: Forwarding question
>
>
> Hi there! I have a dispatch action that receives a forward
> parameter and
> I need to
> -Original Message-
> From: Turley, Michael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 10:25 AM
> To: 'Struts Users Mailing List'
> Subject: Multiple form elements
>
>
> Hi,
>
> I have an JSP/Beans application which I am migrating to
> Struts and
> have come
Hi,
I have an JSP/Beans application which I am migrating to Struts and
have come across an interesting problem. My application generates a list of
form elements to a JSP (which correspond to an ArrayList of objects) of an
arbitrary size (fed from a datastore) of the form account_1, account
Using OJB and struts is not really any different from using jdbc with
struts.
Set up ojb as per instruction on their site, and use it in the same places
where you'd normally make jdbc calls.
I;m not sure if there are any nice examples (havnt looked since i began
using ojb a long time ago). I've
What exactly are you confused on? You've picked a fairly wide topic with a lot
of different ways to answer it. If you are confused on how to implement a web
application from presentation through data, then that's a deep subject that's
mostly off topic.
If you're just not sure how it all fits t
I can send you an invite if you want one. Just email me privately.
-Yves-
On Tue, 14 Dec 2004 22:23:53 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote:
> Any word on when they might open that to GA? I'm curious to get a peek at
> it ...
>
> Eddie
>
> - Original Message -
> From: "James Mi
HashMap doesn't implement the Collection interface, and has no method for
getting an iterator.
Look at the methods values(), keySet() & entrySet() on HashMap which do
return Collections.
Paul
> -Original Message-
> From: Wessel van Norel [mailto:[EMAIL PROTECTED]
> Sent: 15 December 2004
[Curse that Yahoo Mail spell checker. Take 2]
Agreed. That is where Google took me after I first tried to run the W3C
conformance tester against a Struts generated page. Applying the
or the tags did not cause Struts
to close the tags or to remove the name attribute from the form
tag (which
At 9:47 AM -0500 12/15/04, James Mitchell wrote:
Why did you choose OJB? Is it something you are already familiar
with or is it something your Company has dictated?
James' question aside, the fact that you are trying to connect to a
persistence framework based on OJB is not important. How are y
Agreed. That is where GoGoogleook me after I first tried to run the W3C
conformance tester against a Struts generated page. Applying the
or the tags did not cause Struts
to close the tags or to remove the name attribute from the form
tag (which I am not advocating anyway).
If someone could pr
On Tuesday 14 December 2004 17:09, D. Stimits wrote:
> Martin Wegner wrote:
> > The Struts doc does suggest that should cause the
> > tag to be XHTML compliant but for some reason it does not. The W3C XHTML
> > validator also does not like the Struts output of the elements.
> > Struts does not
If you have a choice I recommend you use spring/hibernate before you
go any further.
--b
On Wed, 15 Dec 2004 09:41:51 GMT, liooil <[EMAIL PROTECTED]> wrote:
> Hello world,
>
> I'm trying to connect my web to my db through OJB ...
> I found many threads relative to this topic (persistence, ...,
Hi all,
I was wondering if it is possible to use a HashMap containing vectors
as the input for a logic-el:iterate tag.
Why do I use a hashmap? That's because I first have to iterate through
a list of questionnaires, and per questionnaire I've a list of
questions. The hashmap has the questionnaire
Hi,
I have a problem:
Struts config file has:
On JSP I have:
It generates folowing HTML:
But when I submit the form actual values in a bean are
not updated. They are still the same.
This is my Bean:
package com.mycomp.securityadmin;
public class SecurityAdminModel implements
Serializ
Why did you choose OJB? Is it something you are already familiar with or is
it something your Company has dictated?
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "liooil " <[EMAIL PROTECTED]>
To: <[EMAI
Hi,
Had loads of fun over the past 3 days trying to get the Nested Taglib to
iterate over a (java.util.) Set from my form bean.
Has anybody else managed to do this?
Has anybody else had problems with this?
I don't fully understand why it won't work. It works with the
Logic.Iterate Taglib!! Se
Hello world,
I'm trying to connect my web to my db through OJB ...
I found many threads relative to this topic (persistence, ...,
whatever, ...)
And after that, i feel fuzzy about all mentioned patterns :
DAO, Broker, Business Delagate, and so on ...
At this moment, i'm stuck with my ODMG/OJB Str
Hello,
My customer would like to be able to change i18n messages easily (without
requirement to redeploy webapp or edit files
in context/WEB-INF/classes/...)
We suggested to put messages in database, and use a custom Struts
messageResource impl to retrieve them, according to
http://wiki.apache
If I were to speculate which would be more usefull to the community,
implementing something basic like this or creating support for JSF I
would imagine that this would
probably be more useful.
This reminds me of my skateboarding days, before learning how to do a
360 fakie kickflip it's kinda usefu
77 matches
Mail list logo