Dear all
What is the exact usage of bean:struts and bean:resource tag
Please mail me back
thanks
senthil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Its considered best practice to go through an action first - even in
those cases where the action doesnt need to do anything.
In such cases its recommended (though not unanimously - we had a bit of
a debate about this a couple of weeks ago on the list!) that you also
put your JSPs under WEB-INF
1. How to find out what time zone the user is in?
You cant (afaik). The closest you can get is to use javascript to determine
their current GMT offset, that however will not give you the actual
timezone (including such things as daylight savings rules and so forth)
but it may be close enough for
I have a question about validation framework use javascipt in struts.
If I define a rule in validation.xml with field "customerName"
required, and there are two input text items use this name,
then javascript validation doesn't work.
What should I do? I use struts 1.1
--
Anthony Hong
-
is it a good idea to have a direct link to jsp instead of going
through an action in a jsp page?
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
I don't know clearly about functions of Nested Tags. I have not used it
before. I read in struts.apache.org about it, and all I know is it's
somthing like logic ...
plz, show me the powerful ability of Nested Tags
Thanks for advance
Anh Tuan
---
try http://javadocbuilder.sourceforge.net/
- Original Message -
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, February 17, 2005 11:00 AM
Subject: RE: [OT] Auto comment generation
> I wound up using NetBeans. I couldn't find the function
When i deploy my application to the newly download Sun One Java System
Server Platform Edition version 8, i got this error when i trying to call
the first JSP page to display.
The application has been running well in JBOSS Server. ANy help will be much
appreciate, tq.
The Error i got from the
You might profit from dropping into you local bookstore and perusing
through Rod Johnson's "J2EE Development without EJB" which is really
good. Chapter 13 covers web tier design and the Web MVC that comes
with Spring. (Rod is the primary author of the ideas behind as well
as the code behind the S
Hai
Thx for ur answer can u tell me why we have to use old plain html
Bye
vijay
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beal
Sent: Thursday, February 17, 2005 8:04 PM
To: user@struts.apache.org
Subject: Re: You must specify exactly one of "forward", "href"
I assume you know this but just in case: Struts (a web application
framework) is not a "rival" not for the Spring Framework (which is a
lightweight j2ee applicatoin framework). I assume, then, that you
must mean the standard web application framework that comes with
Spring? Is that right?
Jack
I have 50 gmail invites, if anyone wants one.
Jack
--
"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed. The Sky now goes all the way to our feet.
~Dakota Jack~
"This message may contain confidential and/or privileged information.
If you are not the
Hello,
I have used Struts for four years. And I am evaluating SpinrgFramework.
Anybody can give me some suggestions on them ??
Eric
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Jason Long wrote:
I switched my code to the following jstl tags as suggested. The first part
works with no problem, but I get no output from the tile attempt except for
the layout being applied with the word "testing". Do I need to use
or some other tag to make the quote bean accessible
from the
Hi again
a related question. if I load up the data I need from within a plug in
and store it in the application scope, is this an acceptable
sepatation of "view" and "Model" as long as I am doing so from a
service?
Remember, this app architecture I'm using has a "service factory"
(which was set u
At the risk of causing people to run around in little circles [ ;-) ],
can you tell me what Faces is? Is that MyFaces? How does Faces
differ from Shale? Thanks for any information. If the question
upsets anyone, my apologies.
Jack
On Thu, 17 Feb 2005 14:03:32 -0800, Don Brown <[EMAIL PROTECT
Thanks for the help, that set me down the right path.
Now, on just a normal page with an ActionForm, all the data is
automatically 'set' into the Bean by the ActionForm because the property
names match. Do I need to write this code now to take each param and map
it to a setter or is there a bett
so i have a couple of beans that i'm sending to the frontend. They
are getting their initial values just like they should. (the jsp is
behind an action that saves values to bean1 and bean2.
The jsp page looks something like:
-
This is for bean
Matthew,
I don't think that "extends" can be used with the "path" attribute. I have
always understood, and practiced, tiles where one definition extends the
main definition (like a template) and overloads the COMPONENTS of the
original template. I have always thought extends should NEVER be used
Hi All,
I am new to struts and am trying to learn it...
I configured the action and forward in the struts
confuguration file and when i deploy the war file in
tomcat and restarted iti saw the following
errorcan anyone help me figure out where i am
going wrong.
TIA,
kishore
---
Feb 17, 2
I switched my code to the following jstl tags as suggested. The first part
works with no problem, but I get no output from the tile attempt except for
the layout being applied with the word "testing". Do I need to use
or some other tag to make the quote bean accessible
from the tile?
I switched my code to the following jstl tags as suggested. The first part
works with no problem, but I get no output from the tile attempt except for
the layout being applied with the word "testing". Do I need to use
or some other tag to make the quote bean accessible
from the tile?
Hi
We have a situtation where we will be hosting our web
server in USA and users from all over the world will
be accessing this, these users will do some
transaction which will update the database.
Now the problem is with date and time, we dont want to
enter system date and time, but the local date
At 10:30 PM + 2/17/05, Eric Lemle wrote:
Tried
but nothing shows up. Is this what you meant?
So if I get the latest struts.. this might work?
You definitely can't pass parameters through a call;
the end result of the insert tag is a call to
requestDispatcher.include(...), which doesn't acc
You'll have a form with at least two submit buttons. One to submit the
form, and another to lookup some other data. You'll probably use a
LookupDispatchAction (or something similar) to map each submit button to
different methods in your Action class. The lookup method will lookup
the data, store
The Apache Struts team is pleased to announce the adoption of its latest
subproject, Struts Flow, a continuations-based approach to complex web
workflows. Struts Flow originated at the struts.sf.net project and has
been formally adopted now as a Struts subproject. Struts Flow is a port
of Apache
Tried
but nothing shows up. Is this what you meant?
So if I get the latest struts.. this might work?
-Eric
Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt Lake City, Utah 84111
United States of America (USA)
(801) 442-3688 -- e-mail
I think I am misunderstanding something. I have two layout JSPs in my
application
doc.mainLayout
doc.admin
...
Basically mainLayout.jsp does 99% of the layout work. adminLayout.jsp
just looks like this:
--adminLayout.jsp---
<%@ page language="java" contentType="text/html;
This might not be good for I18n, but if you just have some custom message
you want to bundle together with your ActionMessages, it would be nice to do
this without this hack... or having to resort to sticking it straight on the
request under some key.
I think, this is a pretty good question, flexi
Right. I thought of this.
Is there a way to do this without this hack? Whoops... I mean simulation...
:)
Thanks.
-Original Message-
From: Scott Piker [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 4:21 PM
To: user@struts.apache.org
Subject: Re: ActionMessage without using a
You usually want to avoid doing this because you lose a lot of
flexibility, but you can pretty easily simulate this behavior by just
defining an empty message in your .properties file with one argument:
message.custom={0}
and then use the arg0 slot for your hard-coded custom message
new ActionMe
Is there a way to construct a completely custom message without using
a key from application.properties?
ActionMessage constructor seems to insist on having a key that would
be mapped to the application.properties.
Thanks,
JQ.
-
Hello Guys:
First and foremost, I wanted to thank you all for answering my question. I
believe I can learn a
lot of Struts skills and other related skills here. Thanks again.
> Yan Hu wrote:
>
> >Hello Guys:
> > This is my first real Struts-based project. I am fairly new to Struts. I
> >
On Thu, 17 Feb 2005 10:25:23 +0100, Ramiro Alba Queipo <[EMAIL PROTECTED]>
wrote:
> Hello everybody:
>
> I am trying to migrate from an struts application to STRUTS + JSF +
> TILES. The problem I have is that the old struts application is using
> heavily mapped properties at the action forms bean
Hi
http://jalopy.sourceforge.net/
this is a pretty cool plug-in to format the code as
well as add java documentation
Ashish
--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:
> Anyone know of a tool (Eclipse plug-in perhaps?)
> that will take a Java
> source file and put javadoc comments (a ske
Jason Long wrote:
try:
tho i recommend using jstl's c:foreach instead of logic:iterate :)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Where are all the Tiles gurus? I asked this question in less detail about a
month ago and I still have not made any progress in this matter. Please see
original message below.
Thank you for your time,
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.super
Where are all the Tiles gurus? I asked this question in less detail about a
month ago and I still have not made any progress in this matter. Please see
original message below.
Thank you for your time,
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.super
Matt,
Try this:
href='<@html.rewrite page=""/>/FTL/resources/css/mainstyle.css'
(its in the freemarker syntax, so change that for JSPs)
When I use this, all links, etc. have to be given the path relative to
the context and not to your current document.
That way I can keep everythign in order, and
Previously all the JSPs in my application were in the same folder. To
organize things a bit, I categorized them according to action and now
they are nice, but the problem is all the links in my application are
relative. And they all expect that they are in the same base folder,
but now they'r
> I'm not seeing that option Tim... I'm using v9.0.3.1... I
> don't see anything about comments when I right-click
> anywhere, nor do I see a Source menu (or source anywhere that
> I looked).
I'm using 9.0.5.2, so maybe they've added it since your version.
--
Tim Slattery
[EMAIL PROTECTED]
-
Do you have any idea why that is not working for me? Is there
something I should do with the Font object to close it or something?
That seems unlikely but I wonder. I am running this on XP
Professional on a laptop in development.
On Thu, 17 Feb 2005 09:54:57 +, Mark Benussi
<[EMAIL PROTECT
I'm not seeing that option Tim... I'm using v9.0.3.1... I don't see
anything about comments when I right-click anywhere, nor do I see a Source
menu (or source anywhere that I looked).
I'm not all that familiar with jDeveloper, I usually stay away from IDEs
in general unless I have something specif
> I wound up using NetBeans. I couldn't find the function in
> jDeveloper
Right-click in your Java class, choose "Add Javadoc Comments". Or
"Source|Add Javadoc Comments".
--
Tim Slattery
[EMAIL PROTECTED]
-
To unsubscribe, e-
I wound up using NetBeans. I couldn't find the function in jDeveloper,
and Eclipse seems to be a manual process (which is still helpful). Thanks
for all the suggestions everyone that responded!
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
In eclipse, you can do them one at a time easily:
Go above the method, and type /** and press enter.
It fills in the skeleton for you.
You can also press Alt+Shift+J while in the method to do the same thing.
Larry
On Thu, 17 Feb 2005 13:04:56 -0500 (EST), Frank W. Zammetti
<[EMAIL PROTECTED]
Hi,
This is pretty simple application and the requirements are not new for
web based projects.
You don't have to create individual JSP pages for each of the student.
But yes, layout (template for each of the student is going to be same).
Information inserted can vary from student to student.
Mor
FormBeanConfig cfg =
mapping.getModuleConfig().findFormBeanConfig(name);
form =(DynaActionForm)
DynaActionFormClass.createDynaActionFormClass(cfg).newInstance();
The cfg object has the properties for my dyna bean, but I get:
java.lang.IllegalArgumentException: ActionForm is not dynamic
at
netbeans has this feature.
www.netbeans.org
> -Original Message-
> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 17, 2005 1:05 PM
> To: user@struts.apache.org
> Subject: [OT] Auto comment generation
>
>
> Anyone know of a tool (Eclipse plug-in perhaps
It looks like your issue isn't about customized page names, but
customized links.
I don't know your implementation, and I'm going to abstract out the
Tiles/Struts portion, but here is how I would do it:
- For the intro page, load the class schedule from the database, and its
according class co
> Anyone know of a tool (Eclipse plug-in perhaps?) that will
> take a Java source file and put javadoc comments (a skeleton
> basically) before each method, that will include all
> parameters, methods and throws?, and then I just have to fill
> in the details?
Oracle JDeveloper (free from Or
Apart from all the other suggestions, if you're going to be doing this
kind of work often you might want to look at Freemarker:
just create the template and retreive all customizable data from ur
framework.
HTHs,
Karan
Yan Hu wrote:
Hello Guys:
This is my first real Struts-based project. I am
Anyone know of a tool (Eclipse plug-in perhaps?) that will take a Java
source file and put javadoc comments (a skeleton basically) before each
method, that will include all parameters, methods and throws?, and then I
just have to fill in the details? Thanks!
--
Frank W. Zammetti
Founder and Chie
The only thing I do not like about that solution is that it marries
you to both Struts and Tiles.
Both are fine tools, but I do not understand how they simplify the
process enough to justify using them over a simpler filter+jstl+tiles
solution.
Larry
On Thu, 17 Feb 2005 18:45:31 +0100, Mark Low
Greetings,
I've searched through the archives but can't really seem to find a
solution. If one exists, please just point me there.
I have a form that is to be filled out. However, one of the fields needs
to have a seperate lookup, and then return back to the original page
with the results.
For example, a
student is taking Eng101, Chem101, and CS120 this semester
These all look like modules you'll want to search for "indexed
properties" on the archieves, and you'll start to see how to go about
this.
StudentBean student = new StudentBean();
CourseBean course = new Course();
course.se
I agree that tiles controller is the nicest option in terms of design,
but last time i use tiles controllers for exactly this problem I found
that tiles controllers don't throw exceptions in such a way that a
handler can deal with them, and an informative way during development.
But they are a nice
Similar to c:url, rarely useful for media like stylesheet, javascripts
and images as appends session ids.
Mark
On Thu, 17 Feb 2005 10:11:49 -0700, Eric Lemle <[EMAIL PROTECTED]> wrote:
>
> definition is ... Renders a URI
>
> What exactly does this do? Is it similar to
> -Eric
>
> Eric D.
I was referring to just the LabelValueBean class not the entire Struts
jar.
Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt Lake City, Utah 84111
United States of America (USA)
(801) 442-3688 -- e-mail: [EMAIL PROTECTED]
>>> [EMAIL PR
Hello Yan,
While the concept of constructing JSP's dynamically is an intriguing one, I
am still of the opinion that you can handle your situation below in a more
conventional manner.
For example, one simper way would be to have an array of String, which
represents that particular student's cours
Do you really need to construct JSPs on-the-fly or do you instead need to
create a template that contains sections that are modified on a
per-student basis?
The student-specific page sounds to me from what you wrote to more or less
just be a links page with links to the classes specific to each st
Hello Guys:
This is my first real Struts-based project. I am fairly new to Struts. I
know some basics and
tried a few toy examples. Now it is time for a serious one.
My project involes students. Each student has her own page that might take
her to pages that
are customized just for her.
Hi,
I´m trying to do a Validator class in Struts 1.2 with J2SE 1.4.2. I
have got some sample codes, but all sample codes use Struts 1.1, and they don´t
work at Struts 1.2... Can anyone send me a sample code of a Validator Class
using Struts 1.2 ? Here´s the code that is
IMO, it is not wise to have your DAO return a list of LabelValueBean objects.
I would be more likely to use a Map or a simple bean to do that
instead of marrying your DAO layer to Struts.
Struts' tag can introspect the label and value
from the bean properties of your choice. This works for *all*
3. load the menu options one time from the database and place in the
application scope. While this is the best memory option (and probably
the most efficient for speed), I'm not sure how I would reload this
after a change was made to the underlying database (or even detect
that a change was made).
Check your relative path of image file give image fiel alone
Webappa name wil be appended automatically by struts
regards
Senthil
Vijay Kumar wrote:
Hai
I am new to struts I am using to call a java script and
for displaying the images
But it's giving an error javax.servlet.jsp.JspException: Canno
> Although JavaScript is not Java, the language designers adopted the
> same syntax for integer literals that is found in Java (and C/C++/C#)
> ... integer literals with a leading 0 are interpreted to be octal
> literals, unless they start with 0x or 0X to indicate hexadecimal
> literals.
>
> Crai
It is not possible. This a restriction of JSP rather than Struts.
One workaround would be:
Paul
> -Original Message-
> From: Ann Vah [mailto:[EMAIL PROTECTED]
> Sent: 17 February 2005 14:34
> To: Struts Users Mailing List
> Subject: Struts tags inside struts tags
>
>
> I
Don't use to execute a JavaScript. Just use plain old HTML.
-- Jeff
Vijay Kumar wrote:
Hai
I am new to struts I am using to call a java script and
for displaying the images
But it's giving an error javax.servlet.jsp.JspException: Cannot create
rewrite URL: java.net.MalformedURL
Exception: You
Is it not possible to use Struts tags inside struts tags? For example, is not
possible to do this:
">
thanks in advance
Use a caching DAO layer (like iBATIS), and let it cache the data.
Then, to get the data, use a filter and have it run on requests for
resources that match "*.do" and "*.jsp". The filter can put the menu
into request scope (remember, it is just a reference to the menu, not
the entire menu structure,
This is TOTALLY inappropriate.
You have just won a free entry in my "delete immediately" filter.
Larry
On Thu, 17 Feb 2005 14:57:35 +0800, Koon Yue Lam <[EMAIL PROTECTED]> wrote:
> ** Be prepared, rate R **
-
To unsubscribe, e
If the menu is to be the same for all users, then I'd have a servlet
that contructs the menu at startup and places it in the application
context.
Mark
On Wed, 16 Feb 2005 17:29:37 -0700, Mr Maillist <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am building an application that will store menu options
It may be better to create a value object containing the Dept DTO and
its respective collection of EmpDetails DTO. Then you don't have to
"jump through hoops" when using Maps.
/robert
Sachin Bhutada wrote:
hi,
I have a HashMap which has Key and Value both as DTOs
Hello everybody:
I was using tomcat 4.0.24 to develop an application with struts, I and
decided to migrate to tomcat 5.0.28 so as I could user EL natively from
JSP 2.0. I thought it would be a good idea to compile STRUTS 1.2.4 under
servlet 2.4 and JSP 2.0 from tomcat 5.0.28. Everything went wrigh
Yes it did.
Original Message Follows
From: Shey Rab Pawo <[EMAIL PROTECTED]>
Reply-To: Shey Rab Pawo <[EMAIL PROTECTED]>
To: Mark Benussi <[EMAIL PROTECTED]>
CC: user@struts.apache.org
Subject: Re: Temp file being written to / with Font
Date: Wed, 16 Feb 2005 13:20:50 -0800
I was too fast i
As noone has responded to my problem placing
a default value in case of a non-existent tag,
I found my own solution for it:
I created my own tld and corresponding class,
adding parameters like baseKey and defaultValue.
It was pretty easy: Just copy and past the existing
struts implementation and
Hello everybody:
I am trying to migrate from an struts application to STRUTS + JSF +
TILES. The problem I have is that the old struts application is using
heavily mapped properties at the action forms beans, and I can manage to
make them work under JSF. For example, at the old application:
and
I guess you should better use the "collection" attribute instead of "name".
See http://struts.apache.org/userGuide/struts-html.html#options
Pavel
On Thu, 17 Feb 2005 14:05:06 +0530, Krishna Mohan Radhakrishnan
<[EMAIL PROTECTED]> wrote:
>
>
> HI,
>
> I have one doubt regarding the use of html
HI,
I have one doubt regarding the use of html:options tag.
In the jsp itself I have got a set of values like List questions= "SOME
VALUE OBTAINED FROM THE DATABASE- ie name value pairs".
In the jsp I have a html:options tag.
I don't have any entries in the form bean for the collection . O
Hi!
Can you give me an example of specifying log4j as init-param. within
struts-config.xml?
Thanks,
Jan-Jaap
Ye, Young wrote:
yes, you can.
-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
Sent: 2005/02/16 4:48 PM
To: Struts Users Mailing List
Subject: log4j struts
I want
hi,
I have a HashMap which has Key and Value both as DTOs
Key contains Dept DTO (Dept has Dept No, Dept Name)
Value contains Collection of EmpDetails DTO (It has Name, Email-Id,
etc information)
In the jsp page I want to iterate through this Map using logic iterate
tag so
83 matches
Mail list logo