Use resource bundle:
ResourceBundle messageresources =
ResourceBundle.getBundle("ApplicationResources");
Or
Properties messageresources = new Properties();
BufferedInputStream is = new BufferedInputStream(
getClass().getResourceAsStream("ApplicationResources"));
properties.load(is);
Chandra
Hi This would be a very good solution but when
I test it this way:
public static void main(String args[])
{
ResourceBundle messageresources =
ResourceBundle.getBundle("ApplicationResources");
}
I always get an exception:
java.util.MissingResourceException: Can't find bundle for base nam
http://java.sun.com/j2se/1.4.2/docs/api/java/util/ResourceBundle.html
Check the description for the following method:
public static ResourceBundle getBundle(String baseName, Locale locale,
ClassLoader loader)
Give it a shot
Chandra
-Original Message-
From: starki78 [mailto:[EMAIL PRO
Hi,
I'm a toatal newbie to Struts.
Aim:
I want to generate an xml-stream that I'll use for pdf-generation using FOP.
Questions:
- How generate the xml-stream the best way? Can I use xml-templates and
insert my data somehow?
- In general: Is there a tutorial how to proceed in this case?
Thank
Just my 2 cents.
If you design an application you can consider using different
frameworks for different application parts. Struts is there for the
presentation layer only. Struts doesn't care for the business logic in
behind, and this makes you more flexible. You can use ejb with struts,
or spring
Anuradha S.Athreya would like to recall the message, "Using message
resources in non-action class".
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 3/13/06, Jubin Kuriakose <[EMAIL PROTECTED]> wrote:
> But its growth is limited to being a webframework only. Spring on the other
> hand is the whole deal.
That's a bit of a misnomer, really. The Spring distribution contains
several interdependant frameworks. They have a Dependency Injection
pi
Oshima Tlholoe wrote:
> Even in Tomcat, cos u have to configure your ActionServlet,and tell it which
> initial parameter to load at startup, hence you need to specify your
> tiles-defs.xml as an initial parameter. This is tomcat/Jboss related, I have
> never worked on Websphere.
>
It's not Tomc
starki78 wrote:
> Hibernate is a very fine tool to learn the basics of java Database
> programming very deeply so if you have time beneath your studies you can
> learn most from Hibernate!!
>
As a counter-view, I would argue that Hibernate actually _masks_ the
basics of Java database programm
On 3/13/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> starki78 wrote:
> > Hibernate is a very fine tool to learn the basics of java Database
> > programming very deeply so if you have time beneath your studies you can
> > learn most from Hibernate!!
> >
>
> As a counter-view, I would argue that Hi
Something like the following should do the job...
request.getSession().removeAttribute("action_form_name");
Jeff
-Original Message-
From: Markus Demetz [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 11, 2006 6:05 AM
To: Struts Mailing List
Subject: remove ActionForm from session
Hi al
Hello,
I am building a new Web App with the Struts 1.2.8 Action Framework and have a
strange problem. I have build a login page a dynaform and a Action class for my
app and if I test it I get the error that the form is Null ! I have misspelled
the form name delibaretly and it gave the error it
Hi:
In my application I have a dinamic menu (it changes frecuently). I need to pass
the value of a property in the ActionForm asociated to this menu, where the
value is the text at the link (e.g. option). I have did it like the
example above, but in my menu there are words with acute characters
Using struts 1.2.7
which one to use? html:messages or html:errors??
I am using html:errors now and displaying errors for each property i.e using
Just wondering why html:messages is available? when this tag can be used?
Thanks.
___
On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote:
> Using struts 1.2.7
>
> which one to use? html:messages or html:errors??
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
--
Wendy
-
To unsubscribe, e-mail:
Hi,
I'm trying to do a link over an image like this:
But it doesn't work. It leads to a strange behaviour in Internet Explorer...
The browser shows the link (in the statusbar) when the mouse is over the
image, but the link doesn't work. When rightclicking->open in new window..
it work
Forgot the most important thing ;-)
Project website: http://jspcontrols.sourceforge.net/
Download from: https://sourceforge.net/project/showfiles.php?group_id=154342
Thanks to Danny Lee for notifying that samples did not work correctly.
I forgot to include jstl.jar and standard.jar. Now this issu
What does the raw html look like?
>>> [EMAIL PROTECTED] 3/13/2006 9:38:48 AM >>>
Hi,
I'm trying to do a link over an image like this:
But it doesn't work. It leads to a strange behaviour in Internet
Explorer...
The browser shows the link (in the statusbar) when the mouse is over
the
> What does the raw html look like?
produces:
it works in mozilla but not in IE.
markus
>
> >>> [EMAIL PROTECTED] 3/13/2006 9:38:48 AM >>>
> Hi,
>
> I'm trying to do a link over an image like this:
>
>
>
>
>
> But it doesn't work. It leads to a strange behaviour in Inte
Hi All,
I am not sure if this is correct forum , but still if some one outhere has
any information. Please let me know.
I am developing Struts Portlet for multiple portletes. To switch back to View
Mode from Edit Mode I am using
Webspher has added attribute urltype to link tag.
Markus Demetz wrote:
>> What does the raw html look like?
>>
>
>
>
>
>
>
> produces:
>
> src="/images/mf.jpg">
>
> it works in mozilla but not in IE.
>
Do you really want an image input tag there or do you simply want an
image used as a link?
Dave
Ok, I've updated to the 20060313 release and the LoadBundle issues are
definitely fixed. Good job!
But I'm still having an issue with my t:columns not getting the class
set at all. I've uploaded a simple example that produces the problem to
www.thewallacepack.net/shale-style-
I would like you to point out where I said "this is what I read" or
"this is what I heard", Craig. Why don't you point out where you saw
this. The real problem with you is that I don't care for your pet
projects. You are political. I am not. Big deal. I have nothing to
sell. So, if this gent
per http://struts.apache.org/struts-taglib/tagreference-struts-html.html
# Render an input tag of type "image" Renders an HTML
tag of type "image"
# Render an HTML img tag Renders an HTML element with
the image at the specified URL
> -Original Message-
> From: Markus Demetz [mailto:[E
I think the proper way is to have a regular link and to make it look
like an image with CSS. This way a link will stay a legible link in
text-only mode. Same works with a button.
Image button is an atavism.
On 3/13/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> per http://struts.apache.org/st
ok thank you for your answers.
I'll fix it in some way...
thanks, markus
> -Ursprüngliche Nachricht-
> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 13. März 2006 18:40
> An: Struts Users Mailing List
> Betreff: Re: problems with enclosed by a
>
>
> I think the pr
Markus Demetz wrote:
> ok thank you for your answers.
> I'll fix it in some way...
>
"Some way?"
Just use the correct tag.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello, thanks to all for the help given.
My web page has many nodes. Each of them represents a
treeview "expand (i.e., + )" and "collapsed (i.e., -).
Therefore, a Collection can be either collapsed or in
collapsing state if that Collection is not empty. If
users want to collpase a Collection, t
Hello, thanks to all for the help given.
My web page has many nodes. Each of them represents a
treeview "expand (i.e., + )" and "collapsed (i.e., -).
Therefore, a Collection can be either collapsed or in
collapsing state if that Collection is not empty. If
users want to collpase a Collection, t
>From: Richard Wallace <[EMAIL PROTECTED]>
>
> Ok, I've updated to the 20060313 release and the LoadBundle issues are
> definitely fixed. Good job!
>
> But I'm still having an issue with my t:columns not getting the class
> set at all. I've uploaded
Gary VanMatre wrote:
From: Richard Wallace <[EMAIL PROTECTED]>
Ok, I've updated to the 20060313 release and the LoadBundle issues are
definitely fixed. Good job!
But I'm still having an issue with my t:columns not getting the class
set at all. I've uploaded a simple
On 3/13/06, Dakota Jack <[EMAIL PROTECTED]> wrote:
>
> I would like you to point out where I said "this is what I read" or
> "this is what I heard", Craig. Why don't you point out where you saw
> this. The real problem with you is that I don't care for your pet
> projects. You are political. I
Hi,
I am using Struts and Tiles for an intranet application. I want to disable the
back button.
How can I achieve this?
Any help would be appreciated.
Thanks
-
Yahoo! Mail
Use Photomail to share photos without annoying attach
In:
<%=ind%> is not getting replaced with its value when I see the html source in
the browser. How to make the <%=ind%> interpreted by the jsp engine?
Thank you and have a great day...
--Jay Jakilinki
Verizon Wireless
IT PFS System
908-306-7721
[EMAIL PROTECTED]
The information contained
I'm about to set up a template file for managed-beans and I was planning
on inserting the methods supported by the ViewController interface.
My question is, does it hurt to have empty ViewController methods in the
bean if I'm not using them? If, for some reason, I'm not using the
init() method,
On 3/13/06, James Reynolds <[EMAIL PROTECTED]> wrote:
>
>
> I'm about to set up a template file for managed-beans and I was planning
> on inserting the methods supported by the ViewController interface.
>
> My question is, does it hurt to have empty ViewController methods in the
> bean if I'm not u
I get it. Thanks!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan
Sent: Monday, March 13, 2006 3:30 PM
To: Struts Users Mailing List
Subject: Re: [Shale] Creating my Managed Bean template
On 3/13/06, James Reynolds <[EMAIL PROTECTED]>
>From: "James Reynolds" <[EMAIL PROTECTED]>
>
>
> I'm about to set up a template file for managed-beans and I was planning
> on inserting the methods supported by the ViewController interface.
>
> My question is, does it hurt to have empty ViewController methods in the
> bean if I'm not using
Marked OT... this isn't Struts-related...
There isn't any way to do it cross-browser that I am aware of, and there
isn't any way to do it definitively. However, because you say you are
working on an Intranet application, you may have some options that you
otherwise might not...
First thing,
How about this?
http://www.mail-archive.com/dev@struts.apache.org/msg14112.html
Niall
- Original Message -
From: "Dakota Jack" <[EMAIL PROTECTED]>
Sent: Monday, March 13, 2006 5:11 PM
I would like you to point out where I said "this is what I read" or
"this is what I heard", Craig. W
Niall Pemberton wrote:
> How about this?
>
> http://www.mail-archive.com/dev@struts.apache.org/msg14112.html
>
*sigh*
We were doing so well!
;)
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
Hi fea
is deprecated as it doesn't allow html styling to the
messages, the only way thats possible is through the reasource bundle which
is bad design priciple. allow messages to be formatted using
html.
here is an eg.
>
>
>
> cla
hi all
I got to authorise a particular part of my web app, I have configured my
web.xml as follows
>
>
>
> father
> Security
> /father/*
> GET
> POST
>
>
> admin
>
>
>
Hi All
In my struts based web application how do I handle exceptions. I just want to
display a message to the user, and on clicking "ok" I want to take himm to the
index page of web application.
Can some one please point me to an example of how to do this.
Thanks
bib/-
Here you go:
http://struts.apache.org//struts-doc-1.2.7/userGuide/building_controller.html#exception_handler
As you describe, I think you'll very much like the global exception
handling mechanism.
Frank
bib_lucene bib wrote:
Hi All
In my struts based web application how do I handle ex
Color me tired of your baloney.
Check this out:
http://mail-archives.apache.org/mod_mbox/struts-user/200503.mbox/[EMAIL
PROTECTED]
This citation, which I discussed many times, came almost a year before your
complaint. I cannot help it if you don't pay attention to the list.
Furthermore, i
How about that? Read my reply to Craig.
On 3/13/06, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Niall Pemberton wrote:
> > How about this?
> >
> > http://www.mail-archive.com/dev@struts.apache.org/msg14112.html
> >
>
> *sigh*
>
> We were doing so well!
>
> ;)
>
> Dave
>
>
>
> -
You know, when someone like Craig decides to pick me out for a bullshit
attack, I am going to respond. Talk to Craig. He seems to find himself
totally immune from what he jumps on other people for at will. Where I come
from there is a name for that.
On 3/13/06, Dave Newton <[EMAIL PROTECTED]> w
How about those? You cannot describe something by attempting to be ignorant
about it. At least try to feign fairness.
http://mail-archives.apache.org/mod_mbox/struts-user/200502.mbox/[EMAIL
PROTECTED]
http://mail-archives.apache.org/mod_mbox/struts-user/200503.mbox/[EMAIL
PROTECTED]
http://m
StrutsUser craig = StrutsUserList.getUserWithRealIdentity("Craig
McClanahan");
StrutsUser dakjak = StrutsUserList.getUserWithFalseIdentity("Dakota Jack");
assertTrue( craig.getCredibility() >> dakjak.getCredibility() ); //
using overloaded operator "is much greater than"
assertTrue( craig.getSki
are u all mad..
On 3/14/06, Hey Nony Moose <[EMAIL PROTECTED]> wrote:
>
> StrutsUser craig = StrutsUserList.getUserWithRealIdentity("Craig
> McClanahan");
> StrutsUser dakjak = StrutsUserList.getUserWithFalseIdentity("Dakota
> Jack");
>
> assertTrue( craig.getCredibility() >> dakja
are u all DAM!! (reverse it... There seems to be some filter)
On 3/14/06, Jubin Kuriakose <[EMAIL PROTECTED]> wrote:
>
>
> On 3/14/06, Hey Nony Moose <[EMAIL PROTECTED]> wrote:
> >
> > StrutsUser craig = StrutsUserList.getUserWithRealIdentity("Craig
> > McClanahan");
> > StrutsUser dakjak = Struts
I think you'll find the problem here ...
Jubin Kuriakose wrote:
>are u all DAM!! (reverse it... There seems to be some filter)
>
>>>Dakota Jack wrote:
>>>
... b,u,l,l,s,h,i,t ...
-
To unsubscribe, e-mail: [EMAIL PROTEC
how come dakota gets to say bullshit but i can't seem to get pass the
administrators filter with my vocabulary.???
On 3/14/06, Hey Nony Moose <[EMAIL PROTECTED]> wrote:
>
> StrutsUser craig = StrutsUserList.getUserWithRealIdentity("Craig
> McClanahan");
> StrutsUser dakjak = StrutsUserList.getUser
ah ok leave it...
On 3/14/06, Hey Nony Moose <[EMAIL PROTECTED]> wrote:
>
> I think you'll find the problem here ...
>
> Jubin Kuriakose wrote:
>
> >are u all DAM!! (reverse it... There seems to be some filter)
> >
> >>>Dakota Jack wrote:
> >>>
> ... b,u,l,l,s,h,i,t ...
>
>
>
> --
A truly candid statement indeed.
Jubin Kuriakose wrote:
>how come dakota gets to say bullshit but i can't seem to get pass the
>administrators filter with my vocabulary.???
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
56 matches
Mail list logo