Ok the reason I had just put strings in the Map was because of
Lack of internationalisation, I've now done this but still I get
The same error that of a NullPointerException. I'm assuming this
Is because of a method not found error from my ServletException
Output in Tomcat... (See attached) Am I
Ok, here goes... I've definately defined the internationalization
Stuff in ApplicationResources. Note the struts config bit below
And the fact that I've specified the scope as session, does this
make a difference?
ng List
Subject: RE: Session Problems
Can you summarize the form bean you are using for the first page? What
are its properties? How is the Collection maintained? How is the bean
being created?
Sri
-Original Message-
From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED]
Sent: Thursd
mailto:[EMAIL PROTECTED]
Sent: February 27, 2003 1:54 PM
To: Struts Users Mailing List
Subject: RE: Session Problems
Can you summarize the form bean you are using for the first page? What
are
its properties? How is the Collection maintained? How is the bean
being
created?
Sri
-----Original Mess
addaddress.jsp
where they can enter an address and are then returned to the main page
where they can view the list of addresses that they have currently
entered.
Is this correct?
Many thanks,
Jon.
*-*
Jonathan Holloway,
Dept. Of
t page.
Jon.
*-*
Jonathan Holloway,
Dept. Of Computer Science,
Aberystwyth University,
Ceredigion,
West Wales,
SY23 3DV.
07968 902140
#x27;t use:
String action = (String)request.getParameter("action");
Because the index causes a problem,
Many thanks in advance for any help or tips you can provide me with,
this seems to be the last
part of my problems.
Jon.
*---
Tomcat is an implementation of the servlet spec that is part
of the J2EE architecture. You should be able to include the
jar files that are in tomcat as part of your classpath in
order to compile your servlets.
Jon.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
S
I've got the monkey complex example workign with Tomcat 4.1.18 using
Struts 1.1b2 but it was a pain in the arse to get working, if you
need the file then you can download it from
http://users.aber.ac.uk/jph8/monkey.war
Hope that's of some help to you people working with the nested tags.
Monkey
ult in
the property
being different for each of them because of the nested index, e.g. like
property="Banana[0].ripe"
Rather than just:
property="ripe"
which would allow mutual exclusion. Is there any way around this,
Many thanks,
Jon.
*--
Does anybody know how to use the nested:radio button component so
That you can have mutually exclusive sets of radio buttons?
Jon.
*-*
Jonathan Holloway,
Dept. Of Computer Science,
Aberystwyth University,
Ceredigion
en It'd be extremely appreciative,
Many thanks,
Jonathan Holloway.
*-*
Jonathan Holloway,
Dept. Of Computer Science,
Aberystwyth University,
Ceredigion,
West Wales,
ac.uk/jph8/frameworks.zip
Many thanks again for any feedback you can provide me with : )
Jonathan Holloway.
---
Hi everyone,
I'm currently writing a paper for one of my University assignments on
web application frameworks. It basically covers the different
approaches that web framework
the struts framework itself. If you could possibly
spare some time to give me some help and feedback on it then I'd
be extremely appreciative,
Many thanks,
Jonathan Holloway.
PDF Document
http://users.aber.ac.uk/jph8/frameworks.pdf
Word Document
http://users.aber.ac.uk/jph8/frameworks.do
.
*-*
Jonathan Holloway,
Dept. Of Computer Science,
Aberystwyth University,
Ceredigion,
West Wales,
SY23 3DV.
07968 902140
http://users.aber.ac.uk
ll fighting HTTP HTTPS problem
> well i am using a tomcat-standalone version... i know, that some
webservers
> like apache would do that task for me...
>
> well jonathan... thanks... i´ll try it and get back to You if i have
further
> questions... alright?!
>
> michy
>
>
try a sax parser
- Original Message -
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 11, 2001 8:35 AM
Subject: filtering unwanted characters
>
> Hi all,
>
> I might be posting this message in the wrong forum. My apologies if i
> have offende
0 PM
Subject: RE: filtering unwanted characters
> I have to check each and every character send as input by the user...Will
> SAX help me in this regard ?
>
> cheers,
> Amar..
>
> -Original Message-
> From: Jonathan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 1
I have 2 submit inputs with one form. both
have name="RESULT" but different values. Is this legal?
My suggestion would be that your action should forward you to a jsp page
that has a custom tag in it. That tag could do 1 of 2 things:
1) search for a bean in the request which has the pre generated html result
from a stylesheet transformation
2) get, process and display the transformed data usin
This Article is not completely accurate. The following is true and comes
from an e-mail conversation with Hans Bergsten who wrote the Java Server
Pages Book:
The Servlet spec before the new 2.3 uses ISO-8859 as the default encoding
and de-coding for the servlet container. How you encode your we
Character Filter Donation
- Original Message -
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 9:39 AM
Subject: Suggestions for Struts 1.1 TODO LIST Request Filtering
technology for Struts
> Hi Everybody,
>
> I would really
its read only. Also,
people on the list have been looking for a character filter, and here is
one. It may be useful or not. You guys are the brains around here ;^> I'm
just trying to learn from you.=)
Jonathan
- Original Message -
From: "Nanduri, Amarnath" <[EMAIL
Hello. I am placing more debugging in the
struts source files and I want these new classes to override the ones in the
struts.jar
I have placed the edited ActionServlet class in the
WEB-INF/classes/org/struts/action/ directory.
It should be working right? Its not. I
also have 2 war file
resources (strings) that work with that
ActionForm
The reason is that it is much easier to manage the
artifacts on a page by page basis.
How can I do this properly
Thanks
Jonathan
, rather than 100 different bundles to duplicate.
> As for naming problems, there is a simple solution. Use a naming strategy
for
> each key.
>
> .=Value
> or
> common.=Value <-- if this is common across all pages.
>
> HTH,
> Pete
>
>
> Jonathan Asbell wrote:
I have the strus classes already in the classpath
with out the struts.jar I shouldnt need the struts-documentation.war
file
I ask this because I cant figure out what struts is
doing when the ActionServlet is loaded. Below is my own printout using
weblogic. Notice how it calls init() twice
if I were going to have a huge number of bundles like one per
page,
> I would pull my resources from a database using a custom
> DatabaseMessageResourceFactory. I have considered writing a such a factory
> and the accompanying webapp to maintain the translations but I haven't
> fol
I am using weblogic 6 on w2k. I clicked on a
templated page and MAN.I wait atleast 1 minute for the results. Is
this known?
the
Exception
javax.servlet.jsp.JspException: JSP compilation of
/inc/template2.jsp failed: weblogic.utils.ParsingException: nested
TokenStreamException: antlr.TokenStreamException: Could not include
inc/imports.jsp at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.
hat templates are SLOW
> Weblogic sometimes has trouble parsing relative paths. Are you using
> Weblogic 6.0? It might be fixed in SP2. I do this <%@ include
> file="/include/toppage.inc" %> and it works. Try /inc/imports.jsp.
>
> > -Original Message-
>
Just wondering how you all were implementing visual
changes based on state. Ex. when a menu button says "logon" before the
person loggs on, and then says "logoff" after the person has logged on.
How are you doing this switching based on state? In the action? in
the template? Or are you a
telll me why I am limited to these two exceptions and
what you all are doing about this. The reason is that I have my own
exceptions for my app, and will need to throw them sometimes within the perform
method.
Thanx
Jonathan
his base - they implement a different,
> protected method called doPerform() that can throw any exception. The
> base perform() method calls doPerform(), catches exceptions and handles
> them appropriately. Would this design work for you?
>
>
> Jonathan wrote:
>
> >
I for one dont even understand the value in the "input value" parameter.
There could be MANY pages that got you to the page you are on. The "input"
value just makes one possible origin available for you to have as a return
target should things go fowl. I had been saying on this discussion that
t
why put it in the session when you can put it in the application scope?
I say this because heavily filled session objects have caused us problems in
weblogic, and it is really for the application anyway
- Original Message -
From: "Peter Alfors" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Ted, I have been questioning the value of the input property. The input
property in Joyce's case is literally the submitting page, which I hardcoded
into the struts-config.xml. If I came from another page, however, I will
STILL be forwarded to the uri of the input property. I believe this is no
y Stream data representing the
file
I realy have no idea, and I am looking around for
answers but am coming up empty.
Can someone sum up what is happening here, what the
request contains, what values the request works with, and what are the
requirements.
Thanks sincerely,
Jonathan
I am married. Its ME WHO IS EVIL
;^>
- Original Message -
From: "Darryl Pentz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Jonathan Asbell" <[EMAIL PROTECTED]>
Sent: Tuesday, June 12, 2001 8:53 AM
Subject: RE: Handling Multipart forms (sort o
/breconbeacons/it/class.java is this correct procedure in
Cheers Chuck
Jonathan Asbell wrote:
Part 1.1 Type: Plain
Text (text/plain)
Encoding:
quoted-printable
-- The views expressed by the sender of this message don't
necessarily represent those of B
a new mailbox ?
;^>
- Original Message -
From:
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 13, 2001 2:45
PM
Subject: mailing list
What do I need
to do to get off of this mailing list? It's overflowing my
inbox!
Chuck, I need the WHOLE path from
root.
- Original Message -
From:
Chuck Amadi
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 8:40
AM
Subject: Re: help with package
struts-classpath
Hi Jonathan , I sent u a word.doc with a alt &
print scrn visual o
tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\classes
Now try and tell me what happened
- Original Message -
From: "Chuck Amadi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 10:50 AM
Subject: Re: help with package struts-classpath
Hello All.
If I want to read in a file from a class which is
NOT A SERVLET, such as Action, how do I refer to it. Let me clarify
this. If it was a servlet I could have got the context, and from there a
relative path. BUT, from within a class there IS NO CONTEXT. For
example, I am running
My 2 collegues argue that the ActionForm (or any
bean) should not return values. They argue that if some day they decide
they want to insert a service between the Tag and the Bean, it would complicate
things because the inserted service would be forced to return the Beans object
to the Tag
- Original Message -
From: "Kiet Nguyen" <[EMAIL PROTECTED]>
To: "Struts-User (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 4:23 PM
Subject: strut diagram
> <<...OLE_Obj...>>
> Does any have struts diagram I can use. I created this one, any
suggestion.
> thanks
>
(See att
I dont understand. Noone has to concat anything. You can include xml
fragments in your master struts-config.xml like this:
]>
where "config1.inc" is a file with xml fragments of parameters and
"config2.inc" is a file with xml fragments of more parameters. You just
point to the file. Wantto
it? If not e-mail me back.
- Original Message -
From: "Dan Miser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Jonathan" <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 1:14 PM
Subject: Re: Extending ActionServlet
> I tried using entity referen
I suspect that you may have problems pointing to the external file.
You have file://
I have file:///
Also, I think it is better to use relative references
- Original Message -
From: "Dan Miser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Jonathan" <
set of ActionForm beans and a set of other beans, and
> need to find the best way to transfer data between the two.
>
> Jonathan Asbell wrote:
> >
> > I was on this track in another thread where I was saying...
> >
> > "What if ActionForm was an
I am creating a custom Struts tag which needs to
search for an object in a HashMap. I want the 'key" for the object in the
HashMap to be some agreed upon, pre-defined, final global value defined in a
file available to the whole application. How do I refer to this value in a
Tag attribute?
Anyone have any suggestions as to where in the code
I should concatenate my multiple resource files? I actually would like the
resource files to be in the same directory as the templates to which they
pertain (ie in with the jsp files). Assuming I put my jsp's in
WEB-INF/pages, I guess I w
I am submitting to an Action which when successful
places an object in the request and forwards to a second Action, which
looks for the item in the request, and forwards yet again to a third Action
which gets the item placed in the request object by the previous
Action:
Action1>Action2(p
ion
losing request objects ??
Is it possible that you are redirecting instead of forwarding?
Jonathan wrote:
I am submitting to an Action which when
successful places an object in the request and forwards to a second Action,
which looks for the item in the
If this is a part of my
struts-config.xml:
what specifically will match and not match my
Action's path (path="/presecure_jump" )
I understood that any occurence of the string
"/presecure_jump.do" in a url would trigger this Action. Is this not true?
I am submitting to an Action which FORWARDS
to a second Action, which REDIRECTS to a third Action which
FORWARDS to a jsp
Action1-(f)>Action2-(r)>Action3-(f)>jsp
Action 3 never gets triggered because the mapping somehow does not
match. When I look to see the mapp
My request triggers the servlet to use
Action1.
In the perform method I create an ActionForward
which redirects to "http://localhost:7001/successmtgs/postsecure_jump.do"
==
I get this message: "Invalid path
/successmtgs/postsecure_jump was requested"
console
It looks like the servlet cant match the path
correctly when I redirect to an Action
ex.
REDIRECTING TO; http://localhost:7001/successmtgs/postsecure_jump.do
org.apache.struts.action.ActionServlet
doGet()
org.apache.struts.action.ActionServlet
processPath()
PATH -
getAttribute("javax.serv
I can forward from an action to another
action.
Action1 (forward to
*.do)> Action2 (forward)>
I can NOT successfully redirect from an action to
another action
Action1 (redirect
to *.do)> Action2 (forward)>
The mapping gets screwed up so that the path
ou come up with a quick WAR that demonstrates the issue that we can
> try under different containers?
>
> > Jonathan wrote:
> >
> > I can forward from an action to another action.
> > Action1 (forward to *.do)> Action2 (forward)>
> >
> > I can N
In this example I will complete a secure activity
by:
1) starting on a nonsecure server
2) jumping to a secure server
3) do my secure activity
4) jump back to the non-secure server
SUGGESTED ACTION CLASSES AND THEIR
LOCATIONS
(non-secure side)
NonSecureSideSslJump - does
pre-processing if n
Can someone tell me if there is a way to configure
an action to match a path regardless of how deep it is in a directory?
That is, I want "/display.do" to be triggered in each case below:
"/charts/display.do""/news/display.do
"/events/outdoors/display.do"
How can I accomplish
this?
Are struts tags currently designed to handle this
for me?:
package com.vnu.models;
public class JumpUrlsBean extends
java.lang.Object{
private String targetUrl =
null; private String successUrl = null; private String
failureUrl = n
--Original Message-From: Jonathan [mailto:[EMAIL PROTECTED]]Sent:
Tuesday, July 10, 2001 3:01 PMTo: [EMAIL PROTECTED]Subject:
can Struts tags create a bean using constructor instead of
setter
Are struts tags currently designed to handle
t
I am trying to get the "indexId" as the value for
the field. Any help?
action="/test/bill_to_old_credit_card.do"
type="com.vnu.struts.forms.CreditCardForm"
name="existingCardForm"
scope="request">
id="list"
name="cardList"
type="Cred
How exactly do I implement it? The doc
say "The application context-relative path to the action", but this is not
clear to me. I am having the same trouble implementing the "input"
attribute. Can anyone make this clear for me: What should the
v
ActionForm's validation method with "if/then" statements to test if I
am on the first, second, or third page of the form and then use the
Action's validate method at the end?
I was interested in what you all were
implementing.
Cheers
Jonathan
n that value, do the corresponding validation in the
Form.
Amar..
-Original Message-From: Jonathan [mailto:[EMAIL PROTECTED]]Sent:
Tuesday, April 24, 2001 3:35 PMTo:
[EMAIL PROTECTED]Subject: *** implementing
consecu
Please share some techniques
guys.
Do we get a Local object when we use struts, or do
we have to implement it? It look like I get a default Local object for
free, but if I want to be able to change languages on the fly I have to
implement more Local objects. The documentation says:
"When the user logs on, the application c
Title: Java Bean log file.
page scope does NOT HOLD VALUES BETWEEN
pages. request scope holds values UNTIL THE END OF THE REQEST which could
be one or more jsps/servlets. That is, the page request is like a variable
useful within the jsp page and not from another page. You can ask the jsp
Im not sure...but if you get more please pass one my way
- Original Message -
From: "Suriyanarayanan, Senthil Kumar"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 25, 2001 7:00 PM
Subject: What is token and When/Why/Where to use it?
> Hello,
> I would like to know
It is not clear to me exactly whatthese values
could or should be. I understand that the ".do" is stripped of the
request, so does that mean I only have to match everything up to the ".do"
? Why is a "/" used? To me this means "root", and in fact in the
Login example the path changes fro
Where in the docs does it say that Action objects are pooled?!!
- Original Message -
From: "Rajan Gupta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Ryan Rich" <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 8:58 AM
Subject: Re: FormBeans and Thread Safety
> No. ActionForm are cre
It is not clear to me exactly whatthese values
could or should be. I understand that the ".do" is stripped of the
request, so does that mean I only have to match everything up to the ".do"
? Why is a "/" used? To me this means "root", and in fact in the
Login example the path changes fro
input attribute in the config file is the name of the jsp to which the control
should be forwarded in case of errors, which in most of the cases is the input
form whcih generated the errors. Hope this helps.
Thanks,
Uday.
[Natra,
Uday] -Original Message-From:
Jonat
of the capable individuals I have met on this list.
- Original Message -
From: "Roman Fail" <[EMAIL PROTECTED]>
To: "Jonathan" <[EMAIL PROTECTED]@i-2000.com>;
<[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 5:19 PM
Subject: RE: FormBe
I will omit the ## *** in my questions than. I had no idea this was
considered an expression of pushyness.
- Original Message -
From: "Iraklis Kourtidis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 5:11 PM
Subject: RE: To Roman Fail
You have to use url rewriting to send and save the session temporarily on
the https side, and when you are done you have to resend the saved session
info, again via url rewriting, back to the non-secure side which will still
have your session if you didnt take too long on the https side, and then
String referrer =
request.getHeader(Referrer);
requestDispatcher requestDispatcher =
request.getRequestDispatcher
requestDispatcher. forward(referrer);
- Original Message -
From:
Jeff
Trent
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 5:12 PM
Subject: Re: Overr
Emacs is geek overload. Try textpad, jbuilder(which is free), or webgain
- Original Message -
From: "Jon Brisbin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 4:50 PM
Subject: Struts debugging in Emacs/JDE
> I've been using the awesome Emacs ECB and JDE for
If your User bean is constructed from data in a database ONLY, via the
constructor and not by set() methods, then the object can only contain info
it was constructed with. This means that you cant guess and pass whatever
parameters because they were obtained from the database. So unless someone
k
Hi,
I have a page that is quite large so i'm trying to put anchor tags in the page so
that i can redirect the user to a specific part of the page. this is quite easy to
achieve so I'm told using the following piece of code in the struts-config.xml file:
action path="/action"
is in your Action to get the locale and set it on the form instance:
public ActionForward execute(...) {
...
Locale currLocale = (Locale)
request.getSession().getAttribute(Globals.LOCALE_KEY);
form.setLocale(currLocale);
...
}
Jonathan
> -Original Message
logies such as JSP and XSLT, FreeMarker really deserves some
serious attention.
For more information, visit http://freemarker.org/ (or
http://freemarker.sourceforge.net/) or the FreeMarker project page at
http://sf.net/projects/freemarker .
Best Regards,
Howdy,
Any tips as to where I can find code examples of how to break down a
large JDBC result
into say 25 rows per page?
Jon Hawkins
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
c tag and think that may be the way to go, but I can't
find an example
Please helpsuper powers..failing.must .stop
evilbad code before it'stoo late
thanks
jonathan
---
Does anybody have any information, case studies or figures they can share on the
performance of struts under tomcat.
Whats the maximum number of simultaneous users that can be supported by a single
tomcat instance running struts? I've got up to around 40-60 but need to increase this
to more
es for every type of exception that seems relevant in both
places but they don't seem to be getting called.
Thanks for your help,
Jonathan.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I found the description of how and when to use tokens in "The Struts
Framework, Practical Guide for Java Programming" by Sue Spielman very
useful.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 11:19 AM
To: [EMAIL PROTECTED]
Subject: To
Sonam, You do not want to kill a text-decoration simply because images do
not have text decorations.
Instead, on your image add this property
border="0" So your image tag should be:
I hope this helps. You can delete the style tag all together.
- Original Message -
From: "Sonam Belbase"
John,
ActionErrors is stored under the key: Globals.ERROR_KEY. You can implement
your ActionForm reset (which is called on all ActionForm objects on every
request) method to remove the ActionErrors found under this key from your
Request or Session.
Jonathan
-Original Message-
From: John
One guess would be because then you would lose some of the methods which
provide more functionality than just a TransferObject provides. Such methods
are validate and reset.
-Jonathan
-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 8:39
ute to a String for comparisons). If refValue is not a String you can
try the following <%= refValue.toString() %>.
-Jonathan
-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 10:27 AM
To: Struts Developers List; Struts Users Mailing
You are referencing modelYear as the property but your baseVO appears to
have a property called strModelYear.
-Original Message-
From: Rama, Shreekantha (K.) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 11:04 AM
To: Struts Users Mailing List
Subject: Select Property !
Impor
still getting the same error.
> 1) I want to know how do i get the value of the variable created using
> bean:define ??? I am using <%= var %> but i am not getting it .. plz help
.
>
> Plz help me out of this .
> Thanks
> Shakti
> - Original Message -
> F
u pre-populate your form in the ViewSystemProperties action.
return mapping.findForward("success");
-Jonathan
-Original Message-
From: Glanville, Jay [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 11:02 AM
To: Struts User List
Subject: How do I combine tiles and pre-
Sorry...I replied before I received this response.
-Original Message-
From: Greg Reddin [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 2:47 AM
To: Struts Users Mailing List
Subject: Re: How do I combine tiles and pre-populated forms?
Jay,
Use the first action mapping, but d
All,
I need to check the Session for an authenticated user before most requests.
To do this I subclassed ActionServlet and only call super(request, response)
upon verification that authenticated user is in the Session.
if (request.getRequestURI().endsWith("welcome.do") |
request.getRequestURI().
1 - 100 of 371 matches
Mail list logo