You can do something like this :
In your tiled definition :
--snip--
--snip--
In your jsp:
Do something like
So in the ... a value corresponding to the value of messageText which
is message.text will be fetched in the resources and will be replaced.
So in short in the tiles defin
Servlet filters (javax.servlet.Filter) lets you do this.
But... this is available in Servlets 2.3 and not in any earlier servlet
specs. So check if your container provides support for 2.3
This link may give you some start but a google search would give you much
more.
http://www.onjava.com/pub/a/o
I have a question that I always thought of for such situations. It is
adviesd to have 2 action mappings as Bill suggests for such situations, one
that sets up the form with validate=false
And the next that handles the form POST. Why is that?.
In my ActionForm I look for a condition which tells me i
using JSTL:
HTH
Avinash
-Original Message-
From: Naresh Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 10:13 AM
To: Struts Users Mailing List
Subject: Passing parameter : include
HI,
Please let me know equivalent struts tag,... I guess its bean:
"java:comp/env" is the namespace that a J2EE container uses to tie logical
names to the various components being managed by the container.
The J2EE defines a naming policy for application components. This namespace
is rooted with "java:comp"
"comp" is a sub-tree for component related bindin
>>Now there are general validation needed at submit time for each Form
Does this means that you save the data onto a persistent storage on each
form submit.
If that is the case, on a validation error of the final credit application
all you have to figure out is which form does the error belong too
Oops missed an attribute
-Original Message-
From: Avinash Gangadharan [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:53 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] DisplayTag and Links
Daniel,
Try this :
The displaytag user list
Daniel,
Try this :
The displaytag user list would be a great place too for such questions:
[EMAIL PROTECTED]
Avinash
-Original Message-
From: Daniel Kalcevich [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:02 AM
To: Struts Users Mailing List
Subject: [OT] Display
nForm
> with the Actions. As you say it's not a big deal, I can just
> do the empty
> form like you said, but I'd like to know if that's the only way...
>
>
> >From: Avinash Gangadharan <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing
Matt,
In your action class, you have the request and the response object which
will get you all your form elements
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws java.lang.Exception {
String xxx
your web.xml specifies Servlet 2.4
Avinash Gangadharan wrote:
> Hi All,
>I'm trying to use the jstl/functions tag library and cannot seem to
> make it work. In my jsp I have something of the this sort:
>
> <%@ taglib prefix="fn" uri="http://java.sun
Hi All,
I'm trying to use the jstl/functions tag library and cannot seem to make
it work.
In my jsp I have something of the this sort:
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>
The length is : ${fn:length( str )}
The standards-example webapp that comes as a par
It won't work that way, you've got to use the -el tags for such a thing.
Moreover just specifying the property should suffice for population of the
hidden field , you would not need to explicitly do it using the bean tag
unless there is some other issue that makes you do it. IN that case:
---
ut it's a tile!
Avinash
thanks for the reply and i am lloking in to those examples. but still what
is the difference between
and
Thank-you,
Manoj Mathew
GIS-Systems
(515-362-0539)
-----Original Message-
From: Avinash Gangad
t;value" should be .jsp
file
Thank-you,
Manoj Mathew
-Original Message-
From: Avinash Gangadharan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 7:57 PM
To: Struts Users Mailing List
Subject: RE: 'Can't insert page' Error - But it's a tile!
Try this :
Try this :
-Original Message-
From: Mark Mandel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 5:50 PM
To: [EMAIL PROTECTED]
Subject: 'Can't insert page' Error - But it's a tile!
Hey All -
This is driving me nuts!
I have a tile defined as:
--
Marcelo,
If you do not want to reinvent the wheel and save some time, there is
a great opensource DB Conn pool package available on SF. Check it out. It
takes out all the extra efforts you need to put in and has great features
and flexibilities. It's called proxool.
http://proxool.sourceforg
Frank,
You cannot have that working. To do something like that you'll need to
use the html-el tags along with JSTL core tags and do something like
Ofcourse you would need to include those taglibs ( core and -el ).
But why do you want to set the value as the form bean should populate it
us
Hello All,
I have a field in a form which expects a predefined set of data existing
in the database. The dataset is of type code-description, where the user is
expected to select or enter a description and the form passes back a code
for it. This can be presented best in the form of a dropdown l
little saved, but i don't think theres a
tag to do this.
Avinash Gangadharan wrote:
> I have 2 lists of Strings. How can I have 2 iterators run in parallel
> not nested.
>
> Can some one suggest a tag( JSTL ?? ) replacement for the scriptlets
> in the code below :
>
I have 2 lists of Strings. How can I have 2 iterators run in parallel not
nested.
Can some one suggest a tag( JSTL ?? ) replacement for the scriptlets in the
code below :
<%--first - lists of names--%>
<% Iterator i = names.iterator(); %>
<%-- second - list of nicknames for the names --%>
nstead.
Hope this solves the problem.
Avinash
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 5:10 PM
To: Struts Users Mailing List
Subject: Re: string substitution in tiles
Avinash Gangadharan wrote:
>If you are using the bean-el tag it shou
doesn't work. I get an exception and look in
the log and see:
2004-03-29 17:15:07 DEBUG InsertTag.java:945 - [ServletException
in:/WEB-INF/tiles/layouts/FormLayout.jsp] Cannot retrieve mapping for
action /'
any other ideas?
Dean Hoover
Avinash Gangadharan wrote:
>Try this :
>
&
Try this :
In tiles-def.xml ---
In your jsp ---
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject: string substitution in tiles
I have a general form layout I am defining in
tiles. But the
Very true XML can be huge. But you never need to layout the whole object in
XML, you just need to send the piece of info in the XML using which the rest
of the object can be created. You would definitely need a little more than
just the ID of a db column.
SO basically you serialize / marshall it in
It seems like u need to send the attributes from a JSP-Tomcat env to another
JSP-Tomcat or a ASP.net/IIS. In this case I think it could be very benefical
if you send the data you want to send in an XML format that could be
understood between platforms so that if it is ASP.net it can create the List
26 matches
Mail list logo