Hi,
I already looked at the JGuru FAQ and other resources but I didn't find any
good (and complete information) on the subject. So, if it's already been
asked, I'm very sorry and I hope you would point me to the URL where I can
find the info.
So, what's the best way to handle exceptions
I think that you can't call an action (* .do) from inside a template' insert. This is
because templates do an include(), and then action do a forward(). This result in a
'error : response already committed' because jsp forbids a forward() after an
include().
Try to use Tiles instead of
Hello,
It looks like the web server do an error catching on a request basis rather
than on a include basis.
When you use the server general mechanism, via a declaration in web.xml, the
exception is catch by the top level page where the request start. As Tiles insert
mechanism catch any
I use the taglib tiles and i want display a static file (an html file
with pictures) with an absolute URL in a body's tile.
Is it possible and how can i do that ?
Thanks
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
I have the same error using Tomcat 3.3a.
But I haven't had this using the nightly build 20020318.
Best Regards,
Dennis Lee
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 5:17 PM
To: Struts Users Mailing List
Subject: Struts 1.1
Dave,
Thanks again for the detailed reply.
Where can I find information about the Map proxy
pattern? I found Dynamic pattern but not Map Proxy?
Rgs
Vikram
1) We use many patterns to implement this, but I
think that you are referring to the Value Object pattern2) The copy part
of the
Hi,
I know this is really silly, but I can't get it working :(
Here's my problem:
I try to write into an option tag. I tried first using struts tag (with and
without escape characters)
html:option value=bean:write name=\elt\ property=\id\/
html:option value=bean:write
_ Forward Separator
Rizvan KATCHERA (PARIS)
21/03/2002 10:59
|---+--|
| |Return Receipt: No|
|
1.
html:option value=bean:write name=elt property=id/
is not valid because JSP tag syntax is XML styled, i.e. a tag call cannot
include
another tag as attribute. Instead you can use scriplet notation if the tld
file declare
that the attribute can be JSP content (oposite to a constant value) :
I believe you may be missing a slash at the end of the html:option tag. This
might do the trick:
html:option value=bean:write name=elt property=id//
Regards,
Gardar
-Original Message-
From: Slimane Zouggari [mailto:[EMAIL PROTECTED]]
Sent: 21. mars 2002 11:01
To: [EMAIL
__ Reply Separator _
Rizvan KATCHERA/fr/socgen@socgen
20/03/2002 16:21:00
|---+--|
| |Return
After one day testing (but only few minutes thinking), we have found the
problem. The problem was that ServletExec 4.1 includes Crimson Jaxp, and
the xml-apis.jar file included with Xalan overrides some classes defined
there. We deleted those clases in the xml-apis.jar, and now the
Hi Vic,
I noticed that you are using a version of the struts menu that uses the
plug-in functionality. Couple of questions:
1) Where did you get this version, specifically the version I have doesn't
have a com.fgm.web.menu.MenuPlugIn class.
2) Do you know why I might be getting the error:
Hello all !
I think there is a bug in BUG in
org.apache.struts.util.ResponseUtils.filter(String value) method in v.1.0.2
This useful method states:
public static String filter(String value) {
if (value == null)
return (null);
char content[] = new
And why not converting é to eacute; and so on whith all HTML entities ?
All ok, but why this method does not converts '\n' to br ?
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL
Hi,
thanx for your answer, but that didn't do the trick :(
in fact when I add a slash at the end, here's the error I have:
html:option value=bean:write name=elt property=id/ /
error: ProjectAddRequest.jsp: Attribute elt has no value at line 39,
column 44
Friendly Regards,
Slimane
At 11:19
Check out this thread...
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19260.html
/\/\ark
From: Sanjay Choudhary [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: Nester iterate
Hi,
Thanks for your answer, but I'm not sure I understood it.
You say, if I understand it right, that my first try (using the html tag
of
Struts) wasn't correct.
And that my second try (using simple html tag) should work.
Your second try is mixing JSP tag with escaped and non-escaped
Hello all !
I think there is a bug in BUG in
org.apache.struts.util.ResponseUtils.filter(String value) method in v.1.0.2
This useful method states:
public static String filter(String value) {
if (value == null)
return (null);
char content[] = new
The function of this method is to conveniently ensure that
the text you're writing does not break or invalidate your
HTML/XHTML/XML.
E.g. convert x = y to x lt;= y so that an XML processor
can process it (otherwise it could just throw an error).
However, if you converted
two
lines
to two br
Hi,
THANX A LOT ! :)
now it works :) It was indeed the second method which did the trick.
Friendly Regards,
Slimane
At 14:02 21/03/2002 +0100, you wrote:
Hi,
Thanks for your answer, but I'm not sure I understood it.
You say, if I understand it right, that my first try (using the
I apologize in advance for submitting an off topic request to the struts
user community. However, this group is quite knowledgeable and helpful and
I could really use some assistance.
Basically I want to have a dynamic include in a JSP. Ideally I would like
the following snipping to work.
1
try this. Not sure
%@include file=%=includeFile% %
From: Hardee, Tony [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: OT: Dynamic JSP include
Date: Thu, 21 Mar 2002 13:48:55 -
I apologize in advance for
Struts uses the standard resource properties files, which can also be
made part of a localized resource bundle.
http://java.sun.com/docs/books/tutorial/i18n/resbundle/concept.html
Some containers reload these automatically, others do not.
Besides the localization features the resource
i'm surpised, i do the same thing in one of my JSP's (tomcat 3.2 on RH7.1
linux) :
i create a variable (incPage) in a preceeding % % block then issue
jsp:include page=%= incPage % flush=true/
Which works fine - is the URL you generate correct?
On Thursday 21 Mar 2002 1:48 pm, you wrote:
I
Martin,
You nailed it! The URL was incorrect. I was missing a / at the
beginning.
Thanks for your assistance.
Cheers,
Tony
-Original Message-
From: Martin Samm [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 8:55 AM
To: Struts Users Mailing List
Subject: Re: OT: Dynamic
Here is a link that talks about Dynamic Proxy classes. That is essentially what we are
using, but the underlying storage is a map.
http://java.sun.com/j2se/1.3/docs/guide/reflection/proxy.html
thanks,
dave
-Original Message-
From: Vikram Goyal01 [mailto:[EMAIL PROTECTED]]
Sent:
I've done this with resin on linux, osx and w2k and with
websphere/sunOs - when i tried it last week using
tomcat/apache/struts/linux (not sure versions of any of them because
i'm not at work) I got an error message telling me it was against the
jsp spec. I'll get the exact message and
Everyone,
Line 11 should have quotations around it like:
jsp:include page=%=includeFile% flush=true/
I do this throughout my application with JRun and with Tomcat and it always
has worked fine.
You can not do something like this at least with what I am running:
jsp:include
Subject: Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt - Struts Menu p roblem
From: Vic Cekvenich [EMAIL PROTECTED]
===
Struts menu is on Source Forge (the new version of Struts - menu uses
Struts 1.1 services, like Validator does).
So you have to use it in Struts 1.1 that uses service plug
We have found that using tomcat 3.2.1 it will not parse the inner script tag... We
did this:
%
String baseUrl = /pages;
System.out.println(baseUrl);
%
jsp:include page=%= baseUrl %/header.jsp flush=true/
We get a message saying /header.jsp could not be found. I have a feeling that older
Hi Vic,
Many thanks for the response; I am using struts 1.1, hence the plugin stuff
in struts-config mentioned below, but I still appear to get the error
mentioned below. Any ideas? I noticed you had an extra plugin at the bottom
of your struts-config, you mention a bug, could this be related or
i just wrote a custom tag, that allows you to include a page like:
my:includehttp://your.url.here//my:include
so it is possible to use clean struts tags for writing the url:
my:includebean:write name=myURL//my:include
it works with http:// adresses, absolute urls (/mypage.jsp) and relative
Hi Maris,
look into the following url.
Use GenericDataSource as Pool
http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/util/Generi
cDataSource.html
Raveendra Boyalla
-Original Message-
From: Teague, Susan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 10:15
Subject: Struts Validator: Use of anchor tag
From: Arthur Frankel [EMAIL PROTECTED]
===
Due to lots of fields on a form, I am trying to offer links within the error
messages (using Struts Validator). I would assume that I can do something
like this,
errors.date=A HREF='#{0}'{0}/A is not a
Here is a scenario. (Struts 1.0.2.)
I get a collection of objects and each object holds references to 2 more objects,
which are essentially beans. I want to iterate, and get data from both these beans at
once but the iterate tag allows only one bean id declaration per iterate as shown
below
I am trying to ouput the following:
a href=http://some.website.com;img src=bean:message
key=url//home10-08-00/img/b_cvfut.gif width=93 height=56
border=0/a
The problem is that the call to bean:message... returns nothing but plain
text. I have even tried it with single quotes and no luck.
If
Thanks for your response. I have tried what you indicated and continue to
have the same problem.
Additionally, I attempted to place all of the jar files from
java_xml_pack-spring02-dev\jaxp-1.2-ea2 (dom, jaxp-api, sax, xalan,
xercesimpl, and xsltc) in my WEB-INF/lib directory and rebuilt
Hi all,
been reading about tiles in struts 1.1-b1 and just wondering if it supports sub
applications when using definitions? we would need it to support a number of
definitons files , one for each sub application
Cheers
Ian
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Thanks Todd!
I've developed a very similar solution. Here are a couple of
questions/comments about the code:
1. I noticed that you are storing the user object in the session every time
this filter is invoked with a valid user. My solution sets the user object
once in the session after a
I'm not sure how (or if) you can do this within the Struts framework, but if
I were going to do it, I would create a simple start-up Servlet (i.e.,
configured to init on server startup in the web.xml file) whose only
function is to instantiate a Worker object. This Worker object creates a
Thread
You may take a look at the following article in JavaPro for ideas:
Take Java to Task - Building your own Java component to run and schedule
tasks is easy with two new JDK classes
http://www.fawcette.com/javapro/2002_02/magazine/features/eberkovich/
-Original Message-
From: Jose
Hi,
I was wondering if anyone has some pointers on how to create sort of a 'page
wrapper' with struts. I figure someone has tried something like this before
All of my pages have the same layout:
__
| header |
|__|
|| |
||
Hi,
I am facing a problem with the Struts'onblur'
tag on Solaris machine. It doesn't seem to get fired on Solaris machine,
while the same onblur event works fine on Windows.
It would be great if anyone knows the reason for
this problem or a work around.
thanks,
Meenakshi
The struts-template example does just that. It's part of the struts
download.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 12:30 PM
To: [EMAIL PROTECTED]
Subject: Page wrapper element?
Hi,
I was wondering if anyone has some
I have an object called AreaCode which contains a property called
areaId.
I have an object called AreaDislayBean which contains a property
called areas. This property is an array property which returns
AreaCode[] array.
My html:select tag looks like this:
html:select name=Constants.ADB
Hey guys,
I read in the tiles doc that you can associate a controller with each tile.
However, I cannot find an example of how this is done.
Any pointers?
Thanks in advance,
Jon
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Upon further investigation, looks like the problem resides with my Servlet
engine's implementation of Response.encodeURL()
Tim
-Original Message-
From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 8:53 AM
To: '[EMAIL PROTECTED]'
Subject: Possble bug in html:link
You may also want to look at the tiles framework (included in the 1.1 beta
or at http://www.lifl.fr/~dumoulin/tiles/)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 12:30 PM
To: [EMAIL PROTECTED]
Subject: Page wrapper element?
Hi,
Its actually the order in which the url is built inside
org.apache.struts.util.RequestUtils.
Look at the computeURL method.
-Shyam
Pedone, Tim
While the order is determined by RequestUtils.computeURL(), this final URL
is then given to Response.encodeURL() to handle putting the jsessionid into
the URL. I looked at the implementation of my Servlet engine (Resin) and it
puts the jsessionid after the anchor. I then looked at how Tomcat
Hi,
I am using struts 1.0.2 on weblogic 6.1sp2 jdk1.3.1.
I am facing the folowing problem:
html:text property=abc value=jsp:getProperty name=mybean
property=firstName /
does not work. This does not even render the textbox. The generated html is
html:text property=ssn value=/.
If I replace the
The nightly builds used to have the commons-*.jar files
but the currently availble ones don't seem to have them.
The readme says they are in the lib dir of the distribution
but I can't find them in any of the distributions.
Where can I find the latest ones?
Frank Lawlor
Athens Group, Inc.
(512)
I'm using a struts nightly build (1/2/02) and it uses
the commons-*.jar files. Before upgrading to JDK 1.4
the console would say something like:
logClassName=NoOpLog
Now it says
logClassName=org.apache.commons.logging.impl.Jdk14Logger
and in the localhost_log I get:
Subject: How do I pre-select an element from a select list?
From: Scott Danzig [EMAIL PROTECTED]
===
Hi,
Using Struts, I'm able to create an instance of a form, and prepopulate it
with various information, then have it display this information in HTML
spawned from a JSP page after the
Hi,
I want to fill radio button values with values from a constants class. What
is the best practice for this using struts?
For example, this code...
html:radio value=C4 property=crtainNum /Curtain Number Four
... could be...
html:radio value=%
Frank,
The class Jdk14Logger can be found in the nightly build jakarta-commons
logging project. You can get this jar at:
http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-logging/
Hope this helps.
Sincerely,
James.
-Original Message-
From: Lawlor, Frank
Subject: How do I configure a multi-app and URLs to reach sub-apps
From: Matt Raible [EMAIL PROTECTED]
===
I am trying to integrate the multi-app support into my application. I am
using tiles and the ActionComponentServlet as my action class.
I have the following settings configured for the
HI
might not be considered a valid value? Sorry if I am wrong.
Yanhui
-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:25 AM
To: [EMAIL PROTECTED]
Subject: How to compare a notNull string with the nullString!
Subject: How to
Try this :
.tableEvenRow{background-color:#dd;color:black;font-family:verdana;font-
size:10px;}
.tableOddRow{background-color:white;color:black;font-family:verdana;font-siz
e:10px;}
%
String [] rowStyle = { tableOddRow, tableEvenRow };
int i=0;
%
logic:iterate id=page
I can't seem to change the action on an html:form dynamically
I have this:
html:form action=/AccountMaint
I want to use
html:form action=/AccountMaint
or
html:form action=/CreateAccount
I tried to use an if around it
%
if( something) {
%
html:form
Step 1.
In JSP
html:select property=choice value=2
html:options labelProperty=labels property=values/
/html:select
Step 2.
the formbean has methods getLabels and getValues()
public Collection getLabels()
{
ArrayList a = new ArrayList();
Try using the present tag ex:
logic:present name=bean Name here property=property name here
/
Regards,
Dimitar
-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:25 AM
To: [EMAIL PROTECTED]
Subject: How to compare a
Presuming you've split out your business logic from your presentation layer,
you can write a simple client to your business logic (bypassing all the
struts stuff completely) and then call that simple client at 2am. Or write
a client that sits there until 2am and then calls your business logic
I think it's typical that most Un*x implementations of browsers don't 'behave as
nicely' with regard to JavaScript features as do Windows browsers.
Why? I don't know - seems to be a fact of life. It's not struts though - it's the
browser.
I don't like this either. However, javascript is
Take a look in your Javadoc for standard edition, and look up
java.util.Properties
Easient way to get a file from your classpath is to use the class
object's getResourceAsStream method.
eg:
Properties p = new Properties();
p.load(this.getClass().getResourceAsStream(configFileName));
Then you
You could just the bean properties from the returned object.
Say each one had a name attribute, to write it out...
logic:iterate id=iterateBean
bean:write name=iterateBean property=beanPropertyOne.name /
bean:write name=iterateBean property=beanPropertyTwo.name /
/logic:iterate
We're converting our existing JFC/Swing application to use struts.We
have 3 developer's and have written alot of jsp's. Our pages look quite a
bit different and it's time to start converging them to use a uniform
front-end look and feel.
Can others offer opinions as to how you're doing
Hi:
I think Struts is coming up with several interesting extensions:
-Tiles
-Validator
-Workflow
The bad thing is that you have to use appropriate ActionServlet
implementation for each extension.
Therefore you cannot, theoratically, use tiles for multiple view
Subject: Re: How do I pre-select an element from a select list?
From: Scott Danzig [EMAIL PROTECTED]
===
This helps a lot... it was very clear. I'm stuck on one more thing. I need
to dynamically set the preselected value from the Action class. I tried
adding a property to the form:
Remove the value attribute from the html:select tag. In your action's
perform method, call formbean.setChoice(2) prior to forwarding the
request to your jsp.
Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED] writes:
Subject: Re: How do I pre-select an element from a select list?
From:
name is the bean that you're working against (with the property
attribute etc), and id is the bean that's going to be the result.
[EMAIL PROTECTED] wrote:
With the bean:define tag, can some explain to me the difference between the
'id' attribute and the 'name' attribute?
I always get confused
Hi all,
I'm very newbie with struts and java. I'm developing an application anf I
don't like to use cookies or session objects.
Focusing in the struts example, the user is in the session. Why not set this
object in the request parameter in all the actions and jsps??
ActionClass
//Code
Subject: How do I use Tiles w/ iFrame
From: Matt Raible [EMAIL PROTECTED]
===
Simple Scenario:
-
I want to define a template (layout.jsp) that contains an iframe.
layout.jsp
iframe src=tiles:getAsString name=page/ id=window
frameborder=0/iframe
hello!
sorry for cross-posting this to cocoon-uses and struts-user!
i have the problem, that i need to dynamically include cocoon results into a
jsp page. because we use
hello!
sorry for cross-posting this to cocoon-uses and struts-user!
i have the problem, that i need to dynamically include cocoon results into a
jsp page. because we use
JSP Tags use an XML syntax, so you must have the same number of opening and
closing html:form jsp tags in your jsp. This is why your JSP engine
failed.
acording to struts-form.tld, action attribute in html:form tag can be JSP
computed. Try this:
%
String actionPath;
if( something) {
JSP Tag extension uses XML syntax, so JSP Tag calls cannot be nested
(a JSP Tag attribute cannot be set by another tag). You can instead use
scriptlet to set this value
html:text property=abc value=%= ... % /
Hi,
I am using struts 1.0.2 on weblogic 6.1sp2 jdk1.3.1.
I am facing the
78 matches
Mail list logo