I think the best thing is to make a custom tag library. The "formatting"
part of your project should be in the "view" part of MVC. You can also use
scriptlets, maybe just to test some code, but the most elegant way is
making a custom tag library.
Ciao
Antonio Petrelli
Rutger Heijmerikx wrote:
>He
Hi
> I was afraid that would be the answer :-( I really wanted to avoid
having files with page fragments that weren't well formed like that...
I'll have to dig into the Tiles code and see how ameanable the rendering
model is to being 'masaged' into supporting what I want it to do :-)
I was a begi
Wow There is something funky going on with either my mailserver or some
server between me and the list. I have seen this msg like 9 times now, I
checked the archives... it was sent once and I don't see all the list.
Anyone else experiencing this? At least before I unsubscribe and
re-subscribe :)
E
I was afraid that would be the answer :-( I really wanted to avoid
having files with page fragments that weren't well formed like that...
I'll have to dig into the Tiles code and see how ameanable the rendering
model is to being 'masaged' into supporting what I want it to do :-)
What's wrong wi
On 4/27/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> scope="request" <=== should be scope="session"
Thanks! I knew it had to be something simple like that! And I've
wasted a day and a half finding it.
-
On 4/27/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> path="/Something"
> type="app.SelectionAction"
> name="selectionForm"
> scope="request" <=== should be scope="session"
> validate="false"
> >
>
>
>
>
>
On 4/27/05, Mike Elliott <[EMAIL PROTECTED]> wrote:
> I'm trying to build an application where:
>
> 1) p1.jsp transitions via a link: /do/Something?action=initialize.
>
> 2) This causes class app.SelectionAction to have its execute() method invoked.
>
> 3) The execu
I'm trying to build an application where:
1) p1.jsp transitions via a link: /do/Something?action=initialize.
2) This causes class app.SelectionAction to have its execute() method invoked.
3) The execute() method, based on the parameter, initializes the form passed it.
4) The execute() method th
I agreed with all of you.
As much as we had tried to convince our top level people on several
occassions that user should be warned when leaving the page without
saving the modified data. But it was a majority rule that all our
clients wants it to be this way.
We developers have no choice bu
This is a good point that Scott makes... I've implemented this a number
of times myself, and in all cases I do "dirty data checking" to be sure
(a) I don't prompt the user it nothing has changed and (b) I DO prompt
them if ANYTHING has changed.
Frank
Scott Piker wrote:
This is more of a design
This is more of a design issue, but I personally hate it (and find it
dangerous in some cases) when anything is "automatically" saved for the
user without their knowledge. What if I don't want my work on page A to
be saved and really just want to go to page B?
In situations like this, I prefer to
Interesting indeed... How about trying this... change the two lines that
dynamically add the mouse handlers to:
row.onMouseOver = "this.className = 'hilite';";
row.onMouseOut = "this.className = 'rowNormal';";
I'm not 100% sure what the capitalization should be of the property your
setting (i.e.
Nothing personal but how many times are you going to ask this? I think I
have gotten it about 7 times now.
Al
-Original Message-
From: Saul Qunming Yuan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 3:27 PM
To: user@struts.apache.org
Subject: multi-level indexed proproerty vali
Curiously... the mouse events are all in lowercase when they are shown in
the dump.
Effective Date
CWW Schedule Type
Delete
- - - - - This is from the JSP - - - - - - -
03 January 2004
1 Week Cycle 2 Week
Cycle 3 Week Cycle 4
Week Cycle Regular Week
Schedule
- - - - - - - This is
From: "Nancy Lin" <[EMAIL PROTECTED]>
> 1. Here's our application requirement:
> when user modifies a page, say A and clicks on any other menu
> item or link, say B without clicking any button on the modified page
> A, page A needs to be automatically saved. If there is nothing wrong
> durin
Hmm... I notice that the JSP code is referencing onMouseOver, while your
Javascript is trying to set the attribute onmouseover... I wonder if the
capitalization difference is an issue? Certainly, if setAttribute()
takes case into consideration that would do it. You said the lines were
identic
Greetings,
Once again I call on my trusted community for insight !
I'm adding a row to a table dynamically. All is working well except for
one thing the Mouse events.
Here is the code for adding a row to the table.
There is more code that adds the cells to the table (not shown).
...
// Only add
I apologize for the confusion please let me rephrase my questions.
1. Here's our application requirement:
when user modifies a page, say A and clicks on any other menu
item or link, say B without clicking any button on the modified page
A, page A needs to be automatically saved. If there is
On 26/04/05 18:48 Grzegorz Stasica wrote:
My doFilter method looks like that:
public void doFilter(ServletRequest arg0, ServletResponse arg1,
FilterChain arg2) throws IOException, ServletException {
arg2.doFilter(arg0,arg1);
try{
HibernateSessionFactory.c
Thanks,
That worked. I need to read the documentation!!!
-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 12:21 PM
To: Struts Users Mailing List
Subject: Re: Dynamically generating parameterized links using
logic:iterate
I guess, it
yup, that's what i do now. works great :)
--- Morris Jones <[EMAIL PROTECTED]> wrote:
> Hmmm! I must have missed that in the docs. Thanks!
>
> So for the same functionality, I should include the JSTL _and_ Struts
>
> taglibs in my JSPs and write expressions with abandon? And perhaps
> that
On 4/27/05, Nancy Lin <[EMAIL PROTECTED]> wrote:
> Our application required that if user enter some data and click on
> other menu link or tab without clicking the submit button, the page
> will automatically be save.
What is the point in submit button then? Maybe you would rather show a
dialog "D
Hmmm! I must have missed that in the docs. Thanks!
So for the same functionality, I should include the JSTL _and_ Struts
taglibs in my JSPs and write expressions with abandon? And perhaps that
explains why the struts-el webapp doesn't work with Tomcat 5 ...
Mojo
Woodchuck wrote:
hihi Morris,
Nancy, could you try to be a little more specific and clearer in your
explanations?
Nancy Lin wrote:
Our application required that if user enter some data and click on
other menu link or tab without clicking the submit button, the page
will automatically be save.
Do you mean that you are submitti
hihi Morris,
sorry but i have to ask, why do you need the struts-el library when you
are using Tomcat 5.0.28?
Tomcat 5 already has EL capability built-in.
woodchuck
--- Morris Jones <[EMAIL PROTECTED]> wrote:
> I can't find any record in the bugzilla of this being a known
> problem, but
> may
I guess, it would something like this:
where com.acme.ParcelObj is the object type, which is collected within
"results" and which has parcel property.
Michael.
On 4/27/05, Randall Svancara <[EMAIL PROTECTED]> wrote:
> First of all, I know this must be a frequently asked question.
Our application required that if user enter some data and click on
other menu link or tab without clicking the submit button, the page
will automatically be save. The problem is it is causing double
submit, first the save submit action will be called and then the menu
link action that user want to
First of all, I know this must be a frequently asked question. In java
server pages, I would do this:
<%
while someiterator.hasNext(){
%>
Go
<%
}
This seems fairly strait forward. Using the struts framework and tags,
I am struggling.
I am not sure what I need to use in order to gr
Hello,
comments below
On Wed, 2005-04-27 at 10:19, Scott Purcell wrote:
> Hello,
> I decided to try and implement a filter for my struts application. A filter
> that would check for a session object, and if it does not exist, send the
> user to a certain link.
>
> Anyway, I found an example in
Hello,
Beeing a newbie i could use some help with the following:
I am busy with a simple struts application that displays an email message.
Now within the jsp this is the code to display the message;
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic
I can't find any record in the bugzilla of this being a known problem, but
maybe the struts-el libraries aren't tracked in the bugzilla:
Tomcat 5.0.28
Struts 1.2.4
Windows 2000
I installed the strutsel-exercise-taglib webapp from contrib/struts-el/webapp.
The index page gives a NullPointerException
On 4/27/05, Joe Germuska <[EMAIL PROTECTED]> wrote:
> We've recently also added support for "extending"
> config elements, although I believe this is only
> in the Struts 1.3 dev branch (did it get added to
> 1.2.x?)
Configuration inheritance only got added to the 1.3 branch. Putting
it in 1.2
Oh yes... I carefully looked at the code.
Apologies for misleading the list.
- Glenn
Dave Newton <[EMAIL PROTECTED]>
27/04/2005 10:42 AM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
Re: Filter Being Called Repeatedly
Classification
[EMAIL
[EMAIL PROTECTED] wrote:
Umh... I believe that you don't need the return after the chain.doFilter
You do, otherwise the remaining code in the filter will be executed
after the request is finished being processed: filters _wrap_ a request.
This is how a gzipping filter works, for example.
Dav
Scott,
I recommend you use getRequestURI to check against the path
(context-relative) you want to protect. Also, it's possible you're seeing
hits against the images in your page (10 images will call your filter 10
times).
Thanks,
Paul
-Original Message-
From: Scott Purcell [mailto:[EMAIL
At 2:58 PM +0100 4/27/05, Marco Mistroni wrote:
I am not blaming Struts 1.3 :-)
I am actually more concerned with Tiles by itself, since I was not
Able to use the same .tld file that I was able to use with Struts 1.1
Yes, we should make sure to note that on the "migrating to Struts
1.3" p
Scott Purcell wrote:
if (req.getServletPath().equals(onFailure)) {
[...]
resp.sendRedirect(req.getContextPath() + onFailure);
Are you sure that getServletPath() and getContextPath() + onFailure are
the same thing? My impression is that getServletPath() may not be
returning what you
Umh... I believe that you don't need the return after the chain.doFilter
if (req.getServletPath().equals(onFailure)) {
log.info(" equals ");
chain.doFilter(request, response);
remove --> return;
}
HTH,
Glenn
"Scott Purcell" <[EMAIL PROTECTED]>
27/04/2005 10:19
Hi,
I just looked briefly at your code, but could it be, that your filter
intercepts the calls to the error page as well? So you would be
redirecting, then interceptiong, redirecting, etc.
Maybe you could try a different URL pattern for the filter - something
like /protected/*
Hope this helps.
Hello,
I decided to try and implement a filter for my struts application. A filter
that would check for a session object, and if it does not exist, send the user
to a certain link.
Anyway, I found an example in the "Struts Cookbook" and I am implementing it.
But for whatever reason, when I hit
At 3:38 PM +0200 4/27/05, Rodolfo García Esteban/CYII wrote:
Hi
I'm using struts 1.2.4. I have an action which can be called from two
pages, and I need to change the input parameter in order to return and
show the errors in the previous page, by this cause I can't specify the
input parameter in str
It's was just a suggestion. I've been bitten in the past when I
wasn't consistant in my design or I didn't follow patterns. Mostly
with maintenance. It's made me more of a purist when it comes to
patterns.
To clarify, the Action doesn't build the byte[] array. It would
retrieve it from a utili
Its in the tiles 1.3 jar (i.e. struts-tiles-1.3.0-dev.jar)
Niall
- Original Message -
From: "Marco Mistroni" <[EMAIL PROTECTED]>
Sent: Wednesday, April 27, 2005 2:58 PM
> Hello Joe,
> I am not blaming Struts 1.3 :-)
> I am actually more concerned with Tiles by itself, since I was not
Hello Joe,
I am not blaming Struts 1.3 :-)
I am actually more concerned with Tiles by itself, since I was not
Able to use the same .tld file that I was able to use with Struts 1.1
Can anyone send me (or tell me where I can find) the latest
struts-tiles.tld?
Because the one with Struts 1
Hi
I'm using struts 1.2.4. I have an action which can be called from two
pages, and I need to change the input parameter in order to return and
show the errors in the previous page, by this cause I can't specify the
input parameter in struts-config.xml, I need to do something in my
application
Just to make sure, if you put the contents of this tile directly in
line in the page, you don't get this exception? I'm using tiles
generally with Struts 1.3 with no problems, including inlining
elements of a form where the form is in one page and the fields are
in other tiles.
I did run into
Well i guess thats technically correct but arguably if my action is delegating
control flow by validating the user is who he says he is before showing the pdf
to him. He can be bounced to 3 other screens via this action class and I don't
see much difference in using the action to stream back re
Hi
Addendum : You can only post 1 form at a time
Hermod
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 2:50 PM
To: user@struts.apache.org
Subject: RE: Multiple forms on one page
Hi
No problem - I have several pages that are multifo
Hi
No problem - I have several pages that are multiform - Validation is
also supported for multiform.
Hermod
-Original Message-
From: Fleischle, Samuel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 10:48 AM
To: user@struts.apache.org
Subject: Multiple forms on one page
Does
You can only submit one form at a time. This is an http issue - not a Struts
one.
The solution I have used is to combine all the neccessary fields into a
single form.
I typically do this with nested objects - so my form bean would have two
properties "data" & "search" say. These objects themsel
Does Struts support more then one form on a single page?
In my application I put two forms on one page, one form containing the data
and one form containing some search fields. I define one form bean for each
form. But if I submit one of these forms, e.g. the search form, I got only
one form fi
For what it is worth, Vinod, you can get the effective equivalent of
adding a dynamic ActionMapping by providing an application or class to
deal with the fields of the ActionMapping. For example, you might
forgo most aspects of the ActionMapping and provide a dynamic class
accessible by a base act
http://svn.apache.org/builds/struts/maven/nightly/
-Original Message-
From: ziggler [mailto:[EMAIL PROTECTED]
Sent: 27 April 2005 09:09
To: Struts Users Mailing List
Subject: Re: problem with Tiles & Struts 1.3
where is struts1.3?
On 4/27/05, Marco Mistroni <[EMAIL PROTECTED]> wrote:> >
Hello all,
I found exception stack trace for problem mentioned..
Will it 'enlighten' my problem?
I have moved my application from Struts 1.1 to Struts 1.3, and I
am currently experiencing problems
With Tiles.
Attached are all the files that I was using with Struts 1.1. and the
app
where is struts1.3?
On 4/27/05, Marco Mistroni <[EMAIL PROTECTED]> wrote:
>
>
> Hello all,
>
> I have moved my application from Struts 1.1 to Struts 1.3, and I
> am currently experiencing problems
>
> With Tiles.
>
> Attached are all the files that I was using with Struts 1.1. and
Hello all,
I
have moved my application from Struts 1.1 to Struts 1.3, and I am currently
experiencing problems
With Tiles.
Attached are all the files that I was
using with Struts 1.1. and the application worked just
fine.
I am afraid I don’t have exception
stack trace (I had
hi
[EMAIL PROTECTED] wrote:
In struts-config.xml change the element this way:
this worked. struts-config comments:
so i don't know y i have to explicitly declare it.
using: strts 1.3-dev tiles 1.3-dev
thanx a bunch
riyaz
-
Errr No... Let's start from the beginning.
1. Don't give to Tiles definitions names starting with "/".
2. You can put a Tiles definitions inside another tiles definition. For
example:
I hope this clears your doubts.
Ciao
Antonio Petrelli
Laurie Harper wrote:
In struts-config.xml change the element this way:
Ciao
Antonio Petrelli
rmanchu wrote:
> Dave Newton wrote:
>
>> In the struts configuration file. Instead of using a path to the JSP
you use the name of the tile. You must also be using the Tiles plugin, as
detailed in:
>
>
> i had defined it a
I used it only for its treeview tag. It is pretty interesting. For the
rest I think it's best to use Struts Menu.
Beware of the license! It is somewhat complicated. Its source is
available, you can use it freely if your project is GPL, but you have to
ask for permission (I don't know if it involves
60 matches
Mail list logo