I am working on a struts web application with oracle as back end.I use
tomcat. I am using filter so that if user has not logged in he cannot access
any of the pages.I have a problem for logging..
I login into my application..Use the application..Now if suddenly i close
Tomcat Server.. and rest
We have been using stxx for a while now, mostly for output
transformations only and it work perfectly. I would recommend you to
consider it, and I have no stock in stxx ;-) !
Apart from this, we quite often use inline XSL transformations provided
by JSTL nowadays not as flexible, but certainly
Hello all
Has anybody successfully used Stuts tags and Custom tags together?
For example:
Consider a custom tag with the following code:
out.println("" + entry[ix] + "");
The custom tag appears to write the output directly to the socket without
further Struts
tag evaluation, consequently the
Hello all,
I have an action to retrieve an image from a database BLOB field and
display it.
It works great.
However I wanted to resize the image proportionaly. Hence I think on
writing a second action, that would
call the first in order to retrieve the image. Then, would work on this
image t
thanks !
On 8/18/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Lixin Chu" <[EMAIL PROTECTED]>
>
> > is there a road map/milestone for Shale developemnt ?
> > I am pretty comfortable with Struts now but would like to explore
> > Shale in the next project.
>
> Craig has posted a roadmap on t
Be aware that document.all is IE specific.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
08/18/2005 06:43 PM
Please respond to
"Struts Users Mailing List"
To
user@struts.apache.org
cc
Subject
RE: How can I refer a control in _javascript_ which hava a "." in i ts name
Try th
Try this: document.all['myForm'].value
__
Senior Programmer Analyst, Tax Distributed Systems Development
Tax & Compliance Development, ADP IT
Phone: (909) 592-6411 Ext. 3863
e-mail: [EMAIL PROTECTED]
-Original Message-
From: Jeff Beal
Steven,
Thanks!
Yeah, great idea. In fact I was reading about that on O'Reilly's Struts
Cookbook.
I have one question to you though:
How is the filter executed? After the login? Or after every http request
to the server?
What does fire the filter up? Is it like an event for a GUI app? I woul
Luc,
I have designed Laszlo applications having both PHP and Servlets as
controllers.
It worked great and your idea is right on.
In fact I am starting a Struts/Laszlo app pretty soon.
Have in mind that Laszlo is the View of the MVC model.
I understand that you can also use Laszlo as the control
Hi All,
Seems a bit of the "silver bullet" scenario is going in the discussion of
XSLT versus Struts approach, someone has correctly said "there's no silver
bullet".
You are required to use your judgement based on your experience on which
tool/technique to use for what situation for opti
Anybody knows how I can generate JSP with struts tags with XSLT and pass JSP to
JSPProcessor, for compile them? Because I have tags that client browse simple
don't known.
-Original Message-
From: John Martyniak [mailto:[EMAIL PROTECTED]
Sent: Thu 8/18/2005 7:08
> -Ursprüngliche Nachricht-
> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 18. August 2005 22:11
> An: Struts Users Mailing List
> Betreff: Re: Struts with XSLT
> Ever heard of translets? But even if you call XSLT processor
> for every request, I D-O-N'T C-
You also have the option of doing document.form[0]['myobject.subobject'].
On 8/18/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
>property="myobject.subobject" styleId="subobject" .../>
>
> then get the field by using
>
> document.getElementById("subobject");
>
>
> Tony Sm
I´m trying to test the action below :
public class FamiliaDNCAction extends BasicAction {
public ActionForward unspecified(ActionMapping actionMapping, ActionForm
actionForm, HttpServletRequest request, HttpServletResponse response) throws
BusinessException {
Set msgs = new HashSet();
On 8/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> > On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote:
> > > * Should I just stop fighting city hall and abandon XSLT in
> > favour of JSP?
>
> Yes :-) Really. We did it a year ago, and gained A LOT of performance. Not
> to mention that XSLT
>
On Thursday 18 August 2005 20:52, Leon Rosenberg wrote:
> > I'm glad to see there is some support for XSLT. Makes me feel
> > like I haven't been barking up the wrong tree for the last
> > few years. Sending the XML to the client is a nice idea in
> > principal but has so many problems that IMHO it
> I'm glad to see there is some support for XSLT. Makes me feel
> like I haven't been barking up the wrong tree for the last
> few years. Sending the XML to the client is a nice idea in
> principal but has so many problems that IMHO it's not worth
> it. Transformation server side is cheap
> -Ursprüngliche Nachricht-
> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 18. August 2005 21:33
> An: Struts Users Mailing List
> Betreff: Re: Struts with XSLT
>
> On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote:
> > * Should I just stop fighting city ha
On Thursday 18 August 2005 20:32, Michael Jouravlev wrote:
> On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote:
> > * Should I just stop fighting city hall and abandon XSLT in favour of
> > JSP?
>
> No. XML/XSLT is more flexible than JSP and has been supported bunch of
> other markup tecnhologies
On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote:
> * Should I just stop fighting city hall and abandon XSLT in favour of JSP?
No. XML/XSLT is more flexible than JSP and has been supported bunch of
other markup tecnhologies like XML, XHTML and XPath for a long time.
Keep it if it works. Don't fo
I have also successfully used Struts and XSLT, Haven't had an issue.
I currently use JSP to generate the dynamic top component, and then
include the XSLT generated HTML in the main content area.
I think that it is easier to manipulate XML with XSLT then it is to
do it with JSP/Tags.
-Jo
Heh: even more of a hack, provided you're OK keeping with lists rather than
tables as in your original example:
#msgs { list-style: none; }
Laurie Harper wrote:
I can't think of a way to find out how many messages are queued for
displ
I can't think of a way to find out how many messages are queued for
display, but you could do something like this (ugly, and untested):
<%-- 2nd or subsequent messsage --%>
<%-- This is the 2nd message of N; start the list --%>
<%-- output previous mes
property="myobject.subobject" styleId="subobject" .../>
then get the field by using
document.getElementById("subobject");
Tony Smith <[EMAIL PROTECTED]>
Tony Smith <[EMAIL PROTECTED]>
08/18/2005 01:07 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing
Hi everyone:
Here is my jsp:
...
...
If user change the selection in the "select", I would
like to change the content of the "text". Thus, I
write my change() function in javascript:
> Have you considered Spring and it's IOC framework? Works wonderfully with
> Struts (even has a lovely plug-in to get the whole thing working together).
>
> The configuration is only one aspect of the whole Spring framework.
I was reading about Sprint but I was unable to catch what the Spring
I used XSLT for all my applications to generate content as html files which
Struts includes in a page template using tiles.
It also allows me to search the pages as pure html content.
If you are putting logic in your page you could... don't shudder, use XSLT
to generate JSP's.
-Original Mess
On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote:
> * Should I just stop fighting city hall and abandon XSLT in favour of JSP?
Two thoughts strike me as I read your discussion, and the reasoning
for which you like XSLT:
* You seem to be concluding that XSLT and JSP are mutually exclusive.
Esp
Thank you, for your very elaborate answer.
After reading your post, it seems that there is really no big difference
between the two approaches, so I guess I'll stick with what I've already
implemented.
I guess losing type safety is not a big issue, since I'll only use my
"special" DTOs for d
Sounds like you're using a data transfer (tree)map pattern, this is
largely similar to the rowset version except for the following:
* You have to copy values from the underlying data access
solution into the TreeMap
* Your view component needs to know about the contract for
attribute key
I'm trying to use the tiles taglib with JSTL (servlet spec 2.4).. if I use
just the HTML tags they work file, and JSTL 1.1 by itself works fine. The
problem comes when I need to use them together. Here I have a list of
inscriptions in the request scope and I want to loop through them and pass
each
Hi EveryBody
i have problem with this:
1) i have:
">add
2) and it works fine, but i want to put image button insted of link "add"
3) how do i have to do that?
4) where put ?
thanks for reply
regards
Weź udział w naszym letnim k
On Thursday 18 August 2005 16:02, Don Brown wrote:
> Hmm...smell of death for stxx might be a bit harsh :)
Yeah ok, it was a bit harsh - sorry. I'll take another look. It's sometimes
hard to know when a project is on it's last legs though. A message from one
of the core developers within an ho
Hmm...smell of death for stxx might be a bit harsh :) While it true I
need to get a release out that better supports 1.2, I've been using it
in production for over a year without problems, and would recommend
you take another look. You, of course, are welcome to get involved,
submit patches, even
On 8/18/05, Lucas Bern <[EMAIL PROTECTED]> wrote:
> I´would it be a nosense to integrate Laszlo with struts???
Not a complete non-sense, but maybe an overkill ...
> I think Laszlo is responsible for controlling the application, so, may be we
> can hav struts incharge of generating data in XML
Thanks for your answers.
I added a new method to my DAO that allows me to execute predefined
queries and returns kind of "general-purpose-dto"s, that only consist of
a treemap which stores the requested values from the db. So I get one
g-p-DTO per row in my ResultSet that can be passed to the
Hi folks,
This isn't your usual "How do I do X?" type question so get ready. Hopefully
it will fuel a good discussion. I'm fairly new to struts but have a solid
grasp of Model 2 design ideas. The problem, I suppose, is that I am a lone
developer (for my own company) which makes it hard to get t
At 11:44 AM +0530 8/18/05, sachin wrote:
hi ,
Yes, you can use any number of struts-config files; there is a
servlet init parameter which accepts a comma-separated list.
I Have many struts-config files in one of my application and i
initialized them with a comma separeted List ...
EveryTh
From: "Lixin Chu" <[EMAIL PROTECTED]>
is there a road map/milestone for Shale developemnt ?
I am pretty comfortable with Struts now but would like to explore
Shale in the next project.
Craig has posted a roadmap on the Struts Wiki:
http://wiki.apache.org/struts/StrutsShale
--
Wendy
-
I am not sure I follow what you are wanting to do. You can already return data in XML from struts. It is all in how you create your output. You can return XML in the response. As for presentation, Struts is primarily a controller framework. You can implement any model or view structure you wi
If you are thinking about using a single query and bypassing your DTO's
then consider using the Data Transfer RowSet pattern; it can be a useful
pattern for easily transferring data from a DAO to a view component. If
it's disadvantages (clients need to know something about the database
metadata, it
Greetings,
I have sent this post more almost 2 days ago without one response.
I hope it was simply lost with other posts but still worthy of attention.
Here is the original post:
I am unable to find a solution... even after searching... and waiting for
the espresso to kick in.
I have messages a
Hia guys...
I´would it be a nosense to integrate Laszlo with struts???
I think Laszlo is responsible for controlling the application, so, may be we
can hav struts incharge of generating data in XML format so that Laszlo
presentation server show it???
I´m thinking of extending struts so that i
Sometimes the simplest answer is the best... and even when it isn't the
best, it's *still* simple :) ...
How about just creating a new DAO/DTO that only contains the data you need?
It would be a duplication to a degree, but that's not *always* an
absolutely evil thing... especially since it sound
Have you considered using a Filter to put the extra stuff in your
Session? We use an initialization Filter that looks up a User record
based on the authenticated user id. We then place that User object both
in the Session and a thread local variable so that it is available to
all the layers of ou
Hello List,
I need to display the results stored in the Hashmap.
How can I achieve it by using logic:iterate
I know the way to do it for List type data.
Can anyone help me in this ?
Thankx n regds,
Amol
Hi everybody!
In my app, I am using DAOs/DTOs to perform CRUD operations on a legacy
database packed with lots of triggers and stored procedures. Some of my
DTOs are pretty complex, meaning, they have to be assembled from many
tables.
A simple example:
Object a (loaded by aDAO) has a list of
use "saveMessages(request, errors);" instead
- Original Message -
From: "Tuan Jean Tee" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 18, 2005 6:06 AM
Subject: RE: What do you do with ActionError in Struts 1.2
> David,
>
> Thank you for the good link. Base on it, I have change the c
Thank you Christian - you are correct. A colleague also referred me to:
http://www.systemmobile.com/wp/?p=152
I had a copy of jsp-api.jar in my app (/WEB-INF/lib/jsp-api.jar)
And Tomcat (both 5.0.28 and 5.5.9) has a copy under
$CATALINA_HOME/common/lib/jsp-api.jar
This makes the copy in my app
Trying the example in
http://husted.com/struts/tips/index.html
#3 Use LookupDispatchAction ...
I use following Action, Form, JSP, application.properties and struts-config
+++Action
public final class MyAction extends LookupDispatchAction {
private static Log log = LogFactory.getLog(MyActi
Thnx :)
Hermod
-Opprinnelig melding-
Fra: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sendt: 17. august 2005 17:52
Til: Struts Users Mailing List
Emne: Re: Tiles standalone jar
On 8/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
>
> Does anbody know where to get hold of the Ti
Hi all,
Problem solved. So I will share the solution in case someone has the
same problem.
Just use the following class:
com.mysql.jdbc.jdbc2.optional.MysqlDataSource as the DataSource class.
so, the correct code is:
type="com.mysql.jdbc.jdbc2.optional.MysqlDataSource">
value
is there a road map/milestone for Shale developemnt ?
I am pretty comfortable with Struts now but would like to explore
Shale in the next project.
thanks
lixin
On 8/18/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 8/17/05, Joe Germuska <[EMAIL PROTECTED]> wrote:
> > At 11:49 AM +0100 8/1
Re-call the former action
Hi!
My problem is the following: the workflow should be
something like this:
Page1 ->
action1.execute(mapping1, form1, ...) {
if(action2 is not performed)
go to Page2
}
Page2 ->
action2.execute(mapping2, form2, ...) {
do something
indicate in the se
Hello All,
I have the following datasource declared. The password, URL and user
name as well as Database name (on the URL) are corrected and I have them
tested.
Here it is:
However, when I put it in my
Hello Everybody,
I am trying to pre-populate a jsp page form via the reset function of an
ActionForm. All values appear correctly in the form except the select /
option combinations. Could somebody have a look at the following and
provide some pointers? (Have not used
2005/8/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> I think I can figure out how to display the tables using the nested:XX tags,
> but cant figure out how to display the nested collection by radio button. I
> guess I need to understand how to "index" a collection dynamiclly. I know
> JSTL is the p
57 matches
Mail list logo