1 ActionForm (session scope), 5 ActionMappings, one Action, 5 JSPs. Each
tab has link which submits form with that tab's form values, the tab submit
link is differentiated by mapping parameter attribute (or hidden form
field). ActionForm validate checks data is OK. Each submit of the current
tab
Struts supports this very well. You just add the resource properties files
you need and Struts uses the correct one according to browser language
setting.
Errors and messages use keys to lookup values in the resource properties.
Rob
Pretty much - add resources as required.
In your JSP add html:html locale=true
You will need to add META HTTP-EQUIV=Content-Type CONTENT=text/html;
charset=UTF-8 to JSP if using UTF-8. And set up your app server to encode
in UTF-8 if you want to support multiple languages in same page.
See
Hi
I hope this is me being dumb but I have a working Struts application that
uses a *.do servlet mapping for ActionServlet
Because I found that the servlet spec doesn't allow partial URL mappings
for security (eg. I can't specify a url-mapping of '/pub*'), I must now
change my app to use /do/*
this inside the head block of all your JSP pages:
html:base/
Here is a URL to the docs for this tag:
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#base
It solves exactly this problem.
Bryan
On Wed, 2002-02-27 at 10:39, Rob Breeds wrote:
Hi
I hope
, silly question time. Why would you want to put your pages under
WEB-INF? Honestly, I don't see why you would, but ... I'm hardly a 'guru'.
Thanks,
Eddie
- Original Message -
From: Rob Breeds [EMAIL PROTECTED
this line:
action path=/header forward=/WEB-INF/pages/header.jsp/
TO
forward name=header path=/WEB-INF/pages/header.jsp/
and then use html:rewrite to render this in your JSP.
HTH,
Matt
--- Rob Breeds [EMAIL PROTECTED] wrote:
Hi
I hope this is me being dumb but I have a working Struts
with the context.
Yep - img tag is what you need.
Matt
--- Rob Breeds [EMAIL PROTECTED] wrote:
Matt
I changed '/header' to 'header', but now if I enter /do/header in the
browser address field it is now not found. Changed it back so it works
For this example, I have one mapping and one JSP
-Original Message-
From: Rob Breeds [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:54 PM
It seems that migrating from a *.do to /do/* is not as straightforward as
I'd hoped. Especially if putting JSPs under WEB-INF (which is better than
leaving them exposed).
--
To unsubscribe
Hi
I'm currently using scriptlet to set up a Hashmap of params to pass in a
html:link. Works great.
Is it possible to use bean:define tags to setup the Hashmap without
scriptlets.
Similarly (?) how do I invoke setter methods on a bean I've defined with
the bean:define tag?
Thank you
Rob
Ditlinger,
Steve To: Rob Breeds/UK/IBM@IBMGB, Struts Users
Mailing List
I've got a problem with forms and frames I hadn't noticed until now. Two
frames - input form in one, which when submitted, the results appear in the
second. Works functionally (results appear in target frame) but the mouse
cursor remains with hourglass image when it is over the source frame.
I
source, only the generated HTML! I
am so confused by this!
Help!
Rob
Rob
Yug
I've just done this very thing with my Struts app which has to accept
multiple languages and output multiple languages on same pages.
I set my application server (WebSphere App Server v4.0.2 AE) encoding to be
UTF-8 for all languages (in WAS, you set 'client.encoding.override' to
'UTF-8@
You can add a user defined language in IE, say 'ss_IE' and make it the top
level language.
Add:
html:html locale=true
to JSP and then bean:message will pickup the correct resource file.
probably not quite what you were after but an alternative!
Rob
If you have an ear or war you should be able to deploy just like any other
web app. What do you mean by configure'? Beware that if you have a version
prior to 4.0.2 you will need a 'patched' version of struts.jar
Rob Breeds
is that?
-Ursprüngliche Nachricht-
Von: Rob Breeds [mailto:[EMAIL PROTECTED]]
Gesendet am: Tuesday, January 29, 2002 2:40 PM
An: Struts Users Mailing List
Betreff: Re: Struts on WebSphere 4.0
If you have an ear or war you should be able to deploy just like any other
web app. What do you mean
Hi
I need to link my Struts app to a separate help web site such that links in
my JSPs point to context-sensitive anchors in pages on the help site.
If I don't know the base location of the help site until runtime, I can't
put the locations in the mapping configuration file.
What would be the
Wojtek
Are you setting locale with:
html:html locale=true
?
Rob Breeds
wojtek
# (hash)
Rob
Matt Koidin
to be
modified to locate your messages resource files, jsps and classes
I'm surprised there is no output at startup though.
Rob Breeds
Jay Milam
I've been developing my first real Struts application for last several
weeks and things have been going OK. But I reached a point (about Sunday)
where the web app now doesn't always work correctly, in that it give errors
like:
Error 500: No action instance for path /findEntity could be created
are under
WEB-INF?
Please help
Thank you
Rob Breeds
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
effectively want to do: html:link href=bean:write name=abcd property
=xyz/
bean:write name=abcd property=xyz/
/html:link
but can't do nested tags.
How do I dynamically populate the content of the href attribute?
Help please!
Thanks
Rob Breeds
--
To unsubscribe, e-mail: mailto
No way to do this with purely Struts tags?
Thanks
Rob Breeds
Siggelkow, Bill
Use JavaScript to submit the form - the html:link has an onclick event.
Beware of having links and buttons simultaneously - Struts calls buttons
it generates 'submit' which causes a naming clash.
Rob Breeds
You will see the same session ID for two browser windows if you 'clone' the
browser window with CTRL+N (in IE). To get a separate session ID you need
to start two instances of the browser, not clone the existing window.
Rob Breeds
and used links
instead
Rob Breeds
Wolfgang Frank
security so any help is appreciated!
Thanks
Rob Breeds
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
before presenting to the user?
All help appreciated
Thank you
Rob Breeds
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
need to use a
transaction token?
Thanks
Rob Breeds
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
deleted value.
How can I prevent the user doing a double add/delete? Do I need to use a
transaction token?
Thanks
Rob Breeds
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Thomas
struts-simple does work! The struts config file does not have to be in the
WEB-INF dir - it's location is specified in web.xml. The struts.xml file is
the config file in this case.
Rob
://localhost/struts-simple/do/start;jsessionid=6knsr97rw1;
I deployed struts-simple like all other examples (struts-example,
struts-blank a.s.o). It does not work? Any reason available?
Thank you in advance
Thomas
-Original Message-
From : Rob Breeds [EMAIL PROTECTED]
To : Struts Users
That 'fixed' version of struts.jar would not cause this problem (you'd be
getting a 'missing attributes' type error message). WAS 4.01 doesn't need
the special struts.jar as the original bug in WebSphere is fixed.
Can you see your deployed application in the WAS admin console?
Rob Breeds
(document.forms[0],'del', 0) (last param
being the index)
html:link href=javascript:subForm(document.forms[0],'del', 1)
html:link href=javascript:subForm(document.forms[0],'del', 2)
.
.
.
Is the only way to do this using scriptlets?
Thanks
Rob Breeds
--
To unsubscribe, e-mail: mailto:[EMAIL
Yuriy
I'm keen to see the source for this - all working examples are useful to
help me (and others) avoid what must be common pitfalls.
Thanks
Rob Breeds
Rob
Breeds/UK/IBM@ To: Struts Users Mailing List
[EMAIL PROTECTED
Rob
Breeds/UK/IBM@ To: Struts Users
','%= i.toString()
%');try this/A
and it works! Why doesn't it work when the same code is put into the Struts
html:link href attribute ?
Rob
Rob
Breeds/UK/IBM@ To: Struts Users Mailing
List [EMAIL PROTECTED]
IBMGBcc
, we'll do the rest.
-Original Message-
From: Rob Breeds [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 11:03 AM
To: Struts Users Mailing List
Subject: request scope and forms
I'm getting stuck with request scope and ActionForm objects not sticking
around across requests
Don't use a protected modifier on your setter methods in ActionForms. Make
them public so that they can actually be invoked like you expected them to
be.
I did by 'mistake' and now I'm paying for it... : )
Rob
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands,
bean:write name=el property=name/
/logic:iterate
It's almost as if the ActionForm isn't being saved in the request but then
why does the display work when I don't use iterate?
I'm going round in circles with this so any help to get me moving again is
appreciated.
Thanks
Rob Breeds
--
To unsubscribe
=names
bean:write name=el property=name/
/logic:iterate
Thanks
Rob Breeds
Tom Klaasen
Brian
Thanks so much for that pointer - that was the solution to that part of the
problem.
Now I need to work out why the name value I'm submitting isn't getting into
the form... (just get nulls every time)
Rob Breeds
Hi
Is it possible to have multiple html:submit tags in a html:form
different only in name such that the action can differentiate between them.
The docs indicate there is no 'name' attribute for the html:submit tag
corresponding to the name attribute for a HTML input type=submit tag.
then assign the forward based on the value of
'action'
MyFormBean form1 = (MyFormBean) form;
String sAction = form1.getAction();
if (sAction.equals(Submit))
Brian
--- Rob Breeds [EMAIL PROTECTED] wrote:
Hi
Is it possible to have multiple html:submit tags in a html:form
different only in name
Yes!
Thanks to everyone for your help today - if I can't work it out now there's
no hope! : )
I'm off for sleep now...
Rob Breeds
|+-
|| Nocera, Robert |
|| [EMAIL PROTECTED]|
|| fizer.com
for confidentiality reasons
but that doesn't change the problem!)
Any ideas please? I'm stumped. I'm running in WebSphere App Server 4.0 and
up until now, that hasn't been a problem...
Thanks
Rob Breeds
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto
That's the error message I get in the browser for my current problem too
(see earlier post)! I don't think I see a specific ClassCastException
though, only 'incompatible object'.
You're right - it makes no sense
Rob Breeds
You can have your JSPs in the WEB-INF directory - I use that and it works
fine.
Are you using a html:base/ in your JSP?
Rob Breeds
|+-
|| Drozdowski, Terry|
|| Terry.Drozdowski@s|
|| chwab.com
1. You need to put the html:errors property=whatever/ where you want
them to appear. If you have several input fields, put a html:errors
property=whatever/ next to each input field.
The header and footer are for formatting but they are optional.
Rob Breeds
all
the errors.
Also, I would have thought that not including any error tag would mean no
errors would be displayed.
Marcos
-Original Message-
From: Rob Breeds [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 12:07
To: [EMAIL PROTECTED]
Subject: Re: problem with html:errors tag
1
/tr
tr
td align=right
html:submit styleClass=form1 property=submit value=Submit/
/td
td align=left
html:reset styleClass=form1/
/td
/tr
/table
/html:form
/body
/html:html
Any help gratefully received!
Marcos
-Original Message-
From: Rob Breeds
long, which is wrong.
I have a reset() method in my ActionForm setting the name value to null but
this has no effect.
Any ideas please on how to prevent the error message(s) displaying when the
page is displayed after hitting back button?
Thank you
Rob Breeds
/theimage.gif and will not show
the image (can't serve from WEB-INF)
Can anyone help please?
Thanks
Rob Breeds
://localhost:9080/myApp/WEB-INF/pages/index.jsp;
and that's bad because users shouldn't be able to get to WEB-INF directly
should they?
Rob Breeds
from the input frame. But if the errors collection is only
stored in the request, it'd be too late to retrieve the errors I think.
Can anyone offer a solution?
Thanks
Rob Breeds
58 matches
Mail list logo