All Struts Gurus:
We have a pretty large application which needs to migrate into Struts
and possibly to Tiles for the UI. The existing application is quite
similar to MVC-2 model. We have our own Controller and Handlers. The
Handlers communicate with Session EJB to process data through stored
p
Hi Friends,
How can I use Rational XDE for Struts ?
If anyone has any idea please share with me.
--
Sanjay Gupta
Research Engineer
C-DOT, New Delhi
India
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
Nishant,
Use *page* attribute while defining your validation.xml. Like this :
--8<8<8<--
--8<8<8<--
In your Jsp page, add a hidden attribute defining the value for the
page. Like this :
--8<8<8<--
--8<8<8<
- Original Message -
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 29, 2004 10:10 PM
Subject: Re: WAR based project layout vs Sun J2SE blueprint layout
In the one or two instances were I had page developers and bu
In the one or two instances were I had page developers and business
logic developers separate, it was a fairly simple approach... Everyone
checked the appropriate files out of source control each morning (page
developers got JSPs, back-end develoeprs got Java files) and both teams
got the lates
We do the same as Eddie, with 1 exception. Our test server (really
only for clients and a good point of reference) runs CruiseControl, I
find that this takes care of the hassle of keeping the client/test
copy up-to-date. It also allows the developers to have complete
freedom in their testing/deb
Our development servers are essentially our own workstations :-) Our
development/test box we may only deploy to via a web interface. It's not so
terribly convenient considering it's not typically necessary to publish
things unless there's been significant advancement. Oh there's some times
w
Response in-line ...
- Original Message -
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 29, 2004 7:35 PM
Subject: Re: WAR based project layout vs Sun J2SE blueprint layout
We actually have two production environme
What is the correct pattern for placing a struts html:form tag in a
layout where
- the controls may be in a different location (and hence different
tiles) from the buttons that submit the form
- where you want the action the form submits to to be customisable by
whatever jsp uses this form?
If an
We actually have two production environments here... One is a real
hosting environment where there are admins in charge of everything. They
require nothing but WARs. Then there is another environment that was
SUPPOSED to be THE environment eventually, but that plan got nixed. All
the apps hos
I couldn't agree with Craig more. Especially when we're talking about
development, I can't concieve of having to WAR things up, whether it's
going on my own machine or a remote box. I've even seen some people
work with something like Resin that will pick up ANY change instantly
and automatica
On Mon, 29 Nov 2004 17:58:20 -, McDonnell, Colm (MLIM)
<[EMAIL PROTECTED]> wrote:
> Have you considered deploying exploded versions of your WAR file in the
> development environment?
This approach works great for me ... the lack of copying really
improves turnaround time on redeployments duri
Interesting. I'm not sure why your code doesn't work. Maybe the value
attribute in should be
/WEB-INF/pgs/startpage.jsp.
Anyway, I haven't done nested tiles in the same way as you do. This is
how I do nested tiles. Maybe someone can comment on which way is better.
Do people really deploy things to production like this? We generally just
publish an EAR or WAR file to the server and keep the source in a versioning
system. It seems like pretty wasteful space on a production server to have
an application plus all the files that make up the application. ...
Hi,
Iam converting an existing frames based WebApp to
tiles based WebApp.
I have a requirement where i need to show a word
document in the browser when the user clicked on a
link.
In the old application it was a hard link to the
document.(http://my.yahoo.com
---
Here is a tomcat specific setup of the app:
Folder web is much war like! But... next to it in ../mds/src is where
src is.
hth,
.V
Dahnke, Eric (Company IT) wrote:
Thanks for the response. In this case then, the dev/ folder is
presumably under vcs and the layout would be fairly WAR based?
Thx.
Thanks for the response. In this case then, the dev/ folder is
presumably under vcs and the layout would be fairly WAR based?
Thx.
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic
> Sent: Monday, November 29, 2004 6:18 PM
> To: [EMAIL PROTECTED]
> Subject: Re:
I think most projects point "Tomcat" to the dev folder, and then issue a
reload command. As soon as you change JSP or java and "reload", you see it.
Read up on tomcat reload and then find out your container'saproach.
.V
Dahnke, Eric (Company IT) wrote:
Hello List Members,
Whether to layout a proj
Possible? Yes ... but you're not going to get much meaningful information.
IMHO, meaningful information comes out of exceptions, and I personally trap
those and cause the app to show meaningful errors to the user. The best
place to have logging is in your catch statements - be that in your act
Commons-Validator :-) You've got the wrong list, my friend. Try:
http://jakarta.apache.org/commons/validator/
They have their very own user list (well, their very own shared user list!)
;-)
http://jakarta.apache.org/site/mail2.html#Commons
It's possible you might get some leads here, but I'd
hi,
i have a problem with nested tiles. I found not much about it in the
struts doc.
the problem is that it not displays the correct body page.I get a
directory listing there.
At the definition startpage i have the value "/startpage.jsp"
This should be displayed at my page. But it doesn´t :(
I
These techniques:
http://www.javaworld.com/javaworld/jw-10-2004/jw-1018-filter.html
http://www.javaworld.com/javaworld/jw-11-2004/jw-1122-select.html
Used against a collection loaded at application init()
Might be what you are looking for.
JC
It looks for bean "myProperty".
Shed.
-Original Message-
From: Graeme Miller [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 16:21
To: [EMAIL PROTECTED]
Subject: Form tag spanning more than one tile - surely this is possible
or is there alternative pattern?
Hi guys,
Here
Hi guys,
Here is what I think should be a very simple tiles question. So simple
in fact that I am left scratching my head thinking there is no way
struts could not do this - I must be doing something wrong!
Lets say I have a base layout jsp
simple-layout.jsp
<%@ page language="java"%>
<%@ tagl
Hi
I have a table in DB2 on AS400 which has about 1
records, i want to cache this data to improve my web
application performance,
I dont want to cache it in session,
I was thinking of loading the data in array or some
class and load it in servlet context,
what is the best way to do it?
is the
Alexander,
This should help you understand applying DAO/DTO patterns in a Struts
app: http://javaboutique.internet.com/tutorials/ApacheDAOs/
Shed.
-Original Message-
From: Dahnke, Eric (Company IT) [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 11:01
To: Struts Users Mailing Li
Hi,
I have a html form. The user can input text in ISO-8859-2 format.
After submit the form the characters are wrong. I don't know why.
I have set
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
and there is a filter (filters.SetCharacterEncodingFilter) to encode UTF-
Thanks for all the answers. The problem was indeed that i used perform
instead of execute :-s
_
Kies nu de Site Van Het Jaar en win prachtige prijzen!
http://www.sitevanhetjaar.be/
--
On Monday 29 November 2004 14:27, Aidas Semezys wrote:
> It is not allowed to have just part of attribute value as JSP expression.
> Here is the correct solution:
> "
> property="sharesPer"/>
Thanks! That solved a problem I was about to ask ...
--
derek
-
Thank you all. I will experiment with the Javascript
option.
O. Oke
--- [EMAIL PROTECTED] wrote:
> I'm not sure how tricky it is in JavaScript...
>
> function doit(obj) {
> obj = obj.form;
> i = 0;
> while (obj.elements[i] != null) {
> if (obj.elements[i].type.toLowerCase() !=
> "bu
I'm a big believer in simplicity. To that end, the way we work here at my
behest, at least during development, is that applications are simply zipped up
when they need to be moved somewhere and deployed in exploded form. All
developers have Tomcat on their desktop, set up identically, so they
It is not allowed to have just part of attribute value as JSP expression.
Here is the correct solution:
" property="sharesPer"/>
Peace,
Aidas
sachin <[EMAIL PROTECTED]> wrote:
> I have a jsp page in which i have a loop and a text field inside it.
> Now to create a dynamic styleid i have used the
Damn, that's not bad is it. I had thought of variations of that, but
hadn't considered ant. Those types of ant tasks would be fast too
wouldn't they.
Having client siders use ant is not a show stopper (they use it now to
reload after struts-conf and tiles-defs changes they make). Thanks
> Hav
Eric,
Have you considered deploying exploded versions of your WAR file in the
development environment? The client side coders could then copy their
deltas directly into the application without having to build and
redeploy it. The means of copying the files could be automated by making
the explod
Try the nested tags:
http://struts.apache.org/api/org/apache/struts/taglib/nested/package-summary.html#package_description
http://www.keyboardmonkey.com/next/index.jsp
Niall
- Original Message -
From: "atta-ur rehman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTE
Hello List Members,
Whether to layout a project within version control as a WAR based layout
(images/ pages/ tiles/ WEB-INF/ WEB-INF/src) or as a sun J2SE blueprint
layout (build/ conf/ src/ lib/ webapp/ docs/ test/ etc.
http://java.sun.com/blueprints/code/projectconventions.html) is an issue
tha
All,
What's the 'standard' way in Struts to input data in a table whose
number of rows and columns (yes, for both rows and columns) is
decided dynamically on every request? Indexed properties don't seem to
be working with variable number of columns.
So far I've to deal with only elements but th
I'm not sure how tricky it is in JavaScript...
function doit(obj) {
obj = obj.form;
i = 0;
while (obj.elements[i] != null) {
if (obj.elements[i].type.toLowerCase() != "button") {
obj.elements[i].value = "";
}
i++;
}
}
Attach this to the onClick event of a button in the f
And if actionForms just used reflection ( to detect if there was a
validate method ) or had to implement an interface rather than having
to inherit from a base class you and everyone else wouldn't have to do
this ...
--b
> Then lookin into the DispatchAction class of struts, and you'll need
> -Original Message-
> From: aris [mailto:[EMAIL PROTECTED]
>
>
> Instead of a reset you could use a simple button and the
> related onClick
> event to call a javascript that sets all field to "".
> What do you think about this "workaround"?
> Take note that it isn't an expected behavio
Hi there,
I would like to try out Validator outside Struts.
I've got the initializion of validatorResources working.
Does anyone have sample-code for using the resources and calling the
validator,extracting validationResult ?
thanks in advance
That should be:
public EmployeeDTO create(EmployeeDTO employee)
Thinking and typing at the same time. ;-)
> -Original Message-
> From: Dahnke, Eric (Company IT)
> Sent: Monday, November 29, 2004 10:56 AM
> To: Struts Users Mailing List
>
Look into the DAO pattern. Create, for example, an EmployeeDTO
(transport object) and an EmployeeDAO class with create(EmployeeDTO
employee), update(EmployeeDTO employee), delete(EmployeeDTO employee)
and getById(...) - is also a crucial method in the DAO pattern.
Here's the create method for exa
Hi there,
I have a question concerning Struts validator framework:
If have the same attribute for example salary in two forms is there any
possibility
to define the validation rule in one place.
So that my form-field can depend on that rule.
regards
Hello,
I'm pleased to announce that my book, JavaServer Faces in Action
(ISBN:1932394125), is now available in book stores, including Amazon. The
book covers JSF 1.0 and 1.1, and also includes the following features:
- How JavaServer Faces works and how it relates to other frameworks and
techno
Hi,
I am using Struts1.1. The development env is Websphere(WSAD5.1) on WinXP.
Here is a strange thing.
When I click on submit on a page, which used to work earlier, I get a
HTTP 500 Internal Server error.
No other link/function in the application gives me this error. The
strange thing is that th
Hi
The data which i want to cache has about 1 rows
and i want to cache it in may be servlet context, what
is the best way to cache it, do i just create a java
bean and cache it or some kind of mechanism already
exist like Hibernation (i am not sure what is does)
Ashish
--- "Frank W. Zammetti"
On Monday 29 November 2004 10:15, aris wrote:
> Instead of a reset you could use a simple button and the related onClick
> event to call a javascript that sets all field to "".
> What do you think about this "workaround"?
> Take note that it isn't an expected behaviour for a reset button. I suggest
Instead of a reset you could use a simple button and the related onClick
event to call a javascript that sets all field to "".
What do you think about this "workaround"?
Take note that it isn't an expected behaviour for a reset button. I suggest
you to name such a button with a value different from
Please help!
Background
==
I retrieve data from the database, copy the data into
an Action Form, the data is then automatically entered
into corresponding fields.
After viewing the data, I want the RESET button to
empty all fields whenever it is clicked. Presently,
after clicking the RE
I'm searching for a pattern/best-practise for handling standard
data-manipulation forms (like list, create, edit, update, delete
functionality) in Struts. I've read about the CRUD
(create/read/update/delete) pattern many times, but couldn't find any
in-depth papers on it.
Is there any recommen
Given a tile definition like:
and a message that I would normally retrieve like:
How can I pass the message to the tile?
I realized that in this particular case, it made more sense to invoke the tile
using:
and have layout.jsp get the message from the k
Hi listers,
I'm developing a struts 1.2.4 based small-medium sized application
with around 35-40 JSPs, 6-8 formbeans, 6-8 DispatchActions.
I'm going to make the application available for the testing users (for
kind of blackbox functional testing). I've so far not used logging of
any kind in my ap
WTP = Web Tools Platform
I've seen the Sysdedo plugin, but I was trying to keep my environment here
congruent with what's at work. The WTP seems to be what's running inside of
WSAD.
I don't see anything inside the Windows -> Preferences section. I do see a
top-level node for "Solar Eclipse"
> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]
====
>
>
> Has anyone successfully setup IBM WTP with Tomcat 5 under
> Eclipse 3.01?
> Every time I go to fire the server off it fails and says
> there was a problem in thread main. I can launch Tomcat just
> fine
Has anyone successfully setup IBM WTP with Tomcat 5 under Eclipse 3.01?
Every time I go to fire the server off it fails and says there was a problem in
thread main. I can launch Tomcat just fine from the command prompt or as a
service :-|
My guess is that it's doing something wrong in trying t
Solved !
I used a struts-1.2.6 jar i compiled myself. Replacing it with binary dist
makes my app work.
Don't know where I failed building struts jar...
Nico.
>
> Heloo,
>
> I'm getting strange troubles on my webapp and I've set a minimalist webapp to
> test it :
>
> 1 action "/logon" & 1 fo
Heloo,
I'm getting strange troubles on my webapp and I've set a minimalist webapp to
test it :
1 action "/logon" & 1 for "LogonForm" with 2 fields "username" & "password".
Struts 1.2.6 without any plugin
- If I use DynaForm for my formbean, my (trivial) jsp runs fine and displays
the HTML for
Jason King wrote:
It caches by default. To test this, put some arbitrary obscure string
like "I am not a number, I am a free man" inside your js file, clear
the browser cache, load the page once and you should find this in the
cache once. You'll have to use a find utility that searches on
str
I don't see that there will be an issue there - the Applet will run in a
different JVM from the server side part of the application and you
probably want to package it separately in any case as a stand alone JAR
Regards
Duncan Mills
http://www.groundside.com/blog
Ashish Kulkarni wrote:
Hi
Has a
60 matches
Mail list logo