Does xhtml mode (h:html xhtml=true) work with tiles?
Only on the main page does the xhtml mode work, all included tiles from
there does not use it. Is it because xhtml mode is a page context
attribute which the included tiles cannot access? Any workarounds?
Hi
The ``JAVA Web User Group'' is pleased to announce.
Please meet for the BOF XIII London meet-up at the
``Belgo Central Restaurant'' at 19:00M on Friday, 28th October, 2005.
50 Earlham Street,
Covent Garden,
London,
WC2H 9HP
United Kingdom
Nearest Tube: Covent Garden
Cuisine: Belgian
I just try it.
SQuirrel SQL Client Version 2.0 final is very good.
2005/10/13, Zsolt [EMAIL PROTECTED]:
At http://squirrelsql.org I cannot see anything about eclipse. Can you help
me please where I can find the eclipse plug-in.
Zsolt
-Original Message-
From: news [mailto:[EMAIL
Thanks Adam.
I'm sure no one will be able to verify whether this was a bug in 1.1b2
(why I'm using b2 is a looong story, but I'm stuck with it).
Is there a way I can find out from Bugzilla whether this was a bug that
was fixed in later versions?
- Original Message -
From Adam Hardy
Hi Sunil,
I am much clearer now on what the problem is.
It is a problem with the struts validator.
If I follow the following sequence:
1) Request a URL
2) Struts reads action mapping
3) Struts creates a formbean
4) Struts passes this FORMBean to the validator - Before!!! the page has
ever been
Here is the problem; (sorry for long text)
Normally, when you validate an actionform and there is a validation
error, the input argument
in struts-config.xml points you back to the inputform, so you can place
an error message
on the form where the incorrect input is..
First problem:
Hi All
I have been working with Struts Framework for some time now. However, I am
stuck with a problem.
While writing code in JSP, whenever I want to compare multiple String cases,
I can cod it as below
%
String s=ABC;
if(s.equals(BC)||s.equals(CD)||s.equals(ABC)){
Hi all,
In a well written struts application, we assume declarative exception
handling is used. Therefore the code of the action classes will look clean
and short (and nice) because all the exception handling is done via the
exception-handler classes outside. My question is about db connection
I would argue that a well-written struts application will *never* (at
least 99.999% of the time) have jdbc code in it.
Larry
On 10/13/05, emre akbas [EMAIL PROTECTED] wrote:
Hi all,
In a well written struts application, we assume declarative exception
handling is used. Therefore the code of
Am I experiencing DejaVu?
Links that might interest you:
http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html
http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
(see Figure 9.1)
http://www.hibernate.org/
Best practice has nothing to do w/ struts. On Struts wiki there are
several DAO's you can pick from.
Struts allows MVC layers, so that you can unit test each layer. For
example unit test the model and dao.
Even w/in a DAO... you never use a connection.
So I recommend you select a dao, and
Hello, this is my first post here. I am pretty new to struts and have wasted a
ton of time trying to figure out why my error messages (using ActionErrors)
were not getting displayed on my .jsp page.
After commenting out all of my code, i've realized it has to do with the
following lines of
Everyone else raised completely valid points about not doing what your
doing in an Action and why you shouldn't, so I'll just try and answer
the question :)
* Wrap your call to getConnection() in a try block with only a finally:
try {
Connection con = getDataSource().getConnection();
I'm not sure about best practices, but I try to avoid database connections
in my actions. I tend to put this code in the model objects and let them
handle exceptions and so forth.
Hi all,
In a well written struts application, we assume declarative exception
handling is used. Therefore the
Hi All,
Can anyone please help me with the following error message.
I'm using Struts 1.2.7 and commons-validator-1.1.4
I had the validator working previously, but now for some reasons..its not
working..
Please help me in this.
The following is the error message Iam getting.
11:01:12,039 ERROR
John Andrews wrote:
Is there someway to get the validator to only return directly to the jsp
page only after a submit - not after an initial request? - or is there
some other good way to solve/design around this issue?
I simply turn off auto-validation.
In my Actions I forward to the
Frank W. Zammetti wrote:
Everyone else raised completely valid points about not doing what your
doing in an Action and why you shouldn't, so I'll just try and answer
the question :)
Thus ending a fine and noble tradition.
Booo, Frank, bo!
;)
Dave
Hi!
Perhaps this is offtopic but I don't know a better place to ask. Sorry for
that. ;)
I'm building a webapp with some function for painting specific diagrams.
This part is outsourced into an applet while the rest remains in normal
HTML/JSP-pages. As I need to load data from the server into
I seem to be getting warning No ViewControllerMapper has been configured
for this application.
This started happening in the portlet environment, not in plain servlet
environment.
First question, should I have to set up a view controller mapper instance
in the first place because shouldn't
With logic:equal and logic:notEqual the multiple OR logic can be done in a
round about way, but I don't think it's recommended. Just use JSTL or use
Niall Pemberton's tag extensions
http://husted.com/struts/resources/logic-niallp.htm
On 10/13/05, Meenakshi Singh [EMAIL PROTECTED] wrote:
Hi All
Hi
I am trying to use the struts taglibs as much as I can and I have the
following situation. I have a collection object filled with DTO beans
stored in session. The following prints out the list as I would expect:
logic:iterate id=row name=results scope=session
bean:write
Troy Bull wrote:
and if I try this on the same page what I can't figure out is how to
make this work:
html:select property=cname
html:options name=results property=countryName/
/html:select
http://struts.apache.org/userGuide/struts-html.html#options
Note the differences
On 10/13/05, Matthias Holthus [EMAIL PROTECTED] wrote:
Hi!
Perhaps this is offtopic but I don't know a better place to ask. Sorry for
that. ;)
Step 1.
Define a protocol to be spoken between the applet and the server side
application. XML would be first choice, but you also can use Java
On 10/13/05, Matthias Holthus [EMAIL PROTECTED] wrote:
Hi!
Perhaps this is offtopic but I don't know a better place to ask. Sorry for
that. ;)
Step 1.
Define a protocol to be spoken between the applet and the server side
application. XML would be first choice, but you also can use Java
On 10/13/05, Matthias Holthus [EMAIL PROTECTED] wrote:
Hi!
Perhaps this is offtopic but I don't know a better place to ask. Sorry for
that. ;)
Step 1.
Define a protocol to be spoken between the applet and the server side
application. XML would be first choice, but you also can use Java
On Thu, October 13, 2005 12:37 pm, Dave Newton said:
Frank W. Zammetti wrote:
Everyone else raised completely valid points about not doing what your
doing in an Action and why you shouldn't, so I'll just try and answer
the question :)
Thus ending a fine and noble tradition.
Booo, Frank,
Mike Duffy wrote:
I think AJAX will evolve to the point where it will become a serious Flash
competitor
Or JDNC, like roomity.com, that now in beta.roomity.com has video
streaming and on main site foaf and tagging ;-)
.V
I have a jsp (Parent Jsp) in which I use
jsp:include to include other jsp (child Jsp) .
In the Parent Jsp I retrieve an Object from the
formbean and set it in request scope.
bean:define id=ramQuestionsDocument
name=ramForm
temp temp wrote:
So my question is how to cast an object retrieved from
request attribute into its Original form ?
http://struts.apache.org/userGuide/struts-bean.html#define
Set the type?
Dave
-
To unsubscribe, e-mail:
Nobody?
I've searched the web for the past few hours and can't seem to find anything
related this topic. I can't be the only one to have this problem occur.
I should also mention that i've try using html:messages as well and they
don't show up either.
Someone must know the answer, please
On 10/13/05, Ryan Wynn [EMAIL PROTECTED] wrote:
I seem to be getting warning No ViewControllerMapper has been configured
for this application.
This started happening in the portlet environment, not in plain servlet
environment.
First question, should I have to set up a view controller
On 10/13/05, Mike Duffy [EMAIL PROTECTED] wrote:
I think AJAX will evolve to the point where it will become a serious Flash
competitor
IMHO Flash sucks:
http://jroller.com/page/javadujour?entry=laszlo
At this point, with the clear promise of AJAX, I cannot see any reason to
give up Struts
Everything is working correctly now. I think the ViewControllerMapper was
not being set/picked up because I had specified the myFaces
org.apache.myfaces.webapp.FacesServlet directly instead of
javax.faces.webapp.FacesServlet.
The filters are not causing a problem in Websphere Portal
I am trying to use jstl request tag to save an
object into request scope.
As per the docs syntax is
req:setAttribute name=myattAAbb/req:setAttribute
I want to put an object rather than a string in the
request.How can I acheieve this?
thanksregards
Sorry forgot to mention, I set it up with struts 1.1 (not the beta tho!)
Yes you can use bugzilla to look for an old bug. A key word search is
probably easiest but the search parameters on bugzilla can be set quite
extensively.
Sympathy for your situation. What a pain.
Adam
[EMAIL
I *finally* had time to download and build Shale from source and I did
notice that error(UICompnenet, String) is indeed fixed (thank you again,
Ronald Holshausen:)).. So anyway i decided to make parallel changes to
another of my backing bean's attributes.
So my jsp has this:
h:inputText
file along with any errors in creating the csv files. I'm finding that my
ActionErrors do not get returned to my .jsp file after calling the setHeader
method and changing the header. Does anyone have any suggests on how to best
to return errors to the user keeping in mind I already have a
Thanks for responding.
From you action after setting the headers and I assume you also write the Zip
file contents to the OutputStream how are you going back to the JSP.
Yes, i do the following:
response.setContentType(application/zip);
response.setHeader(Content-Disposition, attachment;
horshaq can you provide some details. I just spent four hours! on just
getting a simple validation going!... But perhaps I can help you.
- Original Message -
From: horshaq [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Thursday, October 13, 2005 9:39 PM
Subject: Re:html:errors not
From: [EMAIL PROTECTED]
So my jsp has this:
h:inputText id=userName required=true
value=#{registration.userName} /
..
h:inputSecret id=password required=true
binding=#{registration.password} /
My backingbean RegistrationBean has the
Miren,
I have a working example now
this is the validator-rules.xml (nothing changed in fact the normal one
delivered with apache)
!DOCTYPE form-validation PUBLIC
-//Apache Software Foundation//DTD Commons Validator Rules
Configuration 1.1.3//EN
response.setContentType(application/zip);
response.setHeader(Content-Disposition, attachment; filename= +
zipFileName);
response.setContentLength((int)tempCSVFile.length());
BufferedInputStream bufferedInput = new BufferedInputStream(new
FileInputStream(tempCSVFile));
BufferedOutputStream
Hi
I have an action class that serves us images from my application. The java
class is
fairly simple and mostly copied from (our friend) the wiki:
public class Image extends Action {
/** Creates a new instance of Image */
public Image() {
super();
}
public
On 10/13/05, Wendy Smoak [EMAIL PROTECTED] wrote:
From: [EMAIL PROTECTED]
So my jsp has this:
h:inputText id=userName required=true
value=#{registration.userName} /
..
h:inputSecret id=password required=true
Any Comments?
Does struts 1.2.7 has problem?
bib_lucene bib [EMAIL PROTECTED] wrote:
ok
got it to work...
But here is the catch.
I got it to work with struts.jar details of which are ...
Manifest-Version: 1.0
Extension-Name: Struts Framework
Specification-Title: Struts Framework
Wendy Smoak [EMAIL PROTECTED] wrote on 10/13/2005 05:57:58 PM:
From: [EMAIL PROTECTED]
So my jsp has this:
h:inputText id=userName required=true
value=#{registration.userName} /
..
h:inputSecret id=password required=true
Rahul Akolkar [EMAIL PROTECTED] wrote on 10/13/2005 07:40:06 PM:
I was tempted to change the prefix to JSF, but didn't want to break
the email thread.
Much to my surprise I actually know why you say this - my progress with
JSf/Shale has been so halting that most times i don't know if I am
From: bib_lucene bib [EMAIL PROTECTED]
Any Comments?
...
I got it to work with struts.jar details of which are ...
Implementation-Title: Struts Framework
Implementation-Version: 1.1
...
However if I use struts.jar from struts-1.2.7 I get an error saying
...
The first thing I would try is
Troy,
I think it should work like this
html:select property=cname
html:options name=results property=countryName
labelProperty=countryName/
/html:select
Hope it helps
Sunil
Troy Bull [EMAIL PROTECTED]
10/13/2005 11:33 PM
Please respond to
Struts Users Mailing List
Does anyone ever run any custom versions of Struts or
the Commons library? The reason I ask is because the
bug that I need fix (it is now fixed) in Commons
Validator isn't released for the Struts 1.2.x branch,
but most likely will be released with Struts 1.3
Well I don't like using release 1
At this point, with the clear promise of AJAX, I cannot see
any reason
to give up Struts and go to JSF. If I was starting a new web
application today, I would use Struts and AJAX.
Not that I going to jump JSF anytime soon, but:
http://www.icesoft.com/products/icefaces.html
51 matches
Mail list logo