Hi
There is a simple solution for this : in your Tiles jsp file where you
want the document displayed, add an IFrame. Then target your link to
this. Any word enabled browser (IE) will then open it as a Word document
within the IFrame
Hermod
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [m
How many times should I say it? TILES ARE NOT FRAMES! It is only a way to
share common code in different pages. PAGES NOT FRAMESETS!!!
Uh, sorry for this yell.
Anyway, you cannot display a word document as a tile. If you want to do
it, you surely have to transform it into HTML, but I think it is no
> But realistically, I'm with Eddie -- what logging can you really
> apply consistently and automatically in a way that is more useful
> than noisy? If you have a bunch of fairly repetitive stuff
> spit out, then finding the real information is fairly tedious.
I also agree with it. I'm only looki
Hi Guys,
I am tasked to create a sort of forum website for our product support.
I hope you guys dont mind if I ask for your opinions.
Thanks
Richard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
Well, if the data is read only, then you can just cache the data in a
Hashtable and make it accessible through out the application.
If your data is volatile, then you may consider writing a simple time
based caching service -
http://www.javaworld.com/javaworld/jw-07-2001/jw-0720-cache_p.html
Hibe
Thank you both much!!! I guess I will try using the ServletContextListener
because I am using Servlet 2.3 as found in Tomcat 4.1. I have tried hard on
staying away from having a common initilization, but the scope of the service
platform I created requires the ability now...so that each produ
Yeah, I also wish there was more documentation on this.
I think I found the flaw in your original design. In layout.jsp you
want to take the "body" attribute defined in tiles-def.xml and pass it
on to bodyFrame.jsp as "bodypage". So you need to use beanName, right?
tiles-def.xml:
-
You're right - I should have looked more closely. Sorry about that.
On Tue, 30 Nov 2004 19:38:15 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote:
>
> You will be introduced to Struts, the primary MVC framework for building
> Java Web Applications.
>
>
> Doesn't sound like they go into it very deep
You will be introduced to Struts, the primary MVC framework for building
Java Web Applications.
Doesn't sound like they go into it very deeply. It may be a very good class
for a person that hasn't done any web development using Java technologies
though.
You should have approximately three
DevelopMentor offers a Struts class:
http://www.develop.com/us/training/course.aspx?id=202
I haven't taken this particular class but I've gone to two of their
other classes and was really impressed with them.
Melissa
-
To unsub
Marcio,
To know the ID of the user, you could change your options line to:
That only works if your users collection has a getId method along with your
[assumed] getName() method. When you submit it, if you need the name you
will probably have to look it up in your Action since you'll only have
Heh, hey. Substitute "sight" for "site".
in the first sentence of the below letter.
Too much time spent on web development for
me, don't you think?
-David "right sound, wrong spelling" Friedman
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 3
Grasshopper! The solution is in plain site in the userGuide for the HTML
Taglib.
Use the name="someBeanName" attribute available to many html:taglib fields.
Hopefully, you are using a version of Struts which is recent enough to
support that attribute (should be supported in 1.0, definitely in 1.1
At 6:02 PM -0500 11/30/04, Robert Taylor wrote:
A standardized approach would be to implement a
ServletContextListener and define it
in your web.xml for the web app. It will be invoked before the web
app accepts any requests
and when the web app is shutdown.
A more "Struts" approach would be to
If you want a across Tiles is one thing. If you want a
across Tiles is another. Do you have to have the
? If so, you can fairly easily write a custom sub-tag for
that would allow you to open the tag and close it part way
through on one tile and open it again and finally close it in another.
A standardized approach would be to implement a ServletContextListener and
define it
in your web.xml for the web app. It will be invoked before the web app accepts
any requests
and when the web app is shutdown.
A more "Struts" approach would be to use a PlugIn and define it in your
struts-confi
I know this is a bit off topic, but I figured I could get a better answer here.
I am using Tomcat 4.1 and the latest production build for Struts in an MVC
setup and have a large application already in production on the web.
I need to enhance the model, but this enhancement will require me to hav
Thanks for your helpful advice Joe & Graeme!
Allen
>>> [EMAIL PROTECTED] 11/30/2004 2:35:59 PM >>>
At 10:30 AM +1300 12/1/04, Graeme Miller wrote:
>Firstly make sure you have no spaces after the commas and that the
>struts entry is on a separate line from the rootlogger entry
>
>Try something
Yes it is possible
Firstly you might want to make sure your log4j properties is on the
classpath. Run a simple java test where you set log4 root level to
various levels and check that a simple java application logging levels
change appropriately
Secondly I don't actually do it the way you are do
From: "Graeme Miller" <[EMAIL PROTECTED]>
> How do I make it so that the
> html:form tag is scoped across both tiles as I want to be able to
> put controls in one tile and buttons to submit in another?
A search of the list archives turned up very little discussion of splitting
forms across differ
At 10:30 AM +1300 12/1/04, Graeme Miller wrote:
Firstly make sure you have no spaces after the commas and that the
struts entry is on a separate line from the rootlogger entry
Try something like
log4j.rootCategory=DEBUG,stdout
log4j.logger.org.apache.struts=FATAL
Note that Struts uses a few librari
At 10:02 AM +1300 12/1/04, Graeme Miller wrote:
Simple question with no helpful responses so far.
I must therefore conclude either
a)Noone uses tiles because they are broken
b)Noone understands tiles
c)The way I am proposing to use tiles is so dramatically wrong at a
design level that noone has a c
Hello,
thanks for your answer, but how can I do that the polish characters submitted
correctly?
f.e.: character ę (\u0119).
How can I convert this character to unicode. In the same way, that native2ascii
do this. Is there any possibility?
I use a servlet filter too.
kind regards,
Frank
---
That didn't make any difference, but it was worth a try so thanks!
Is there a way to turn off the Struts logging?
>>> [EMAIL PROTECTED] 11/30/2004 2:30:54 PM >>>
Firstly make sure you have no spaces after the commas and that the
struts entry is on a separate line from the rootlogger entry
Try s
thanks Bill,
your way to make nested tiles works fine. (After i changed "extends" to
"template" in the second definition).
It has the advantage that the jsp´s are smaller and easier to
understand, but at the cost you
need 2 definitions for each page. If you are only use one BodyFrame, you
need
Firstly make sure you have no spaces after the commas and that the
struts entry is on a separate line from the rootlogger entry
Try something like
log4j.rootCategory=DEBUG,stdout
log4j.logger.org.apache.struts=FATAL
-Original Message-
From: Allen Day [mailto:[EMAIL PROTECTED]
Sent: Wedn
I'm new to Struts. I would also like to reduce (or turn off) the Struts
logging.
Currently I'm using Struts 1.2.4, and I'm using log4j-1.2.9.
In addition to the first line, I added the second line to my
'log4j.properties' file, but nothing changed -
log4j.rootLogger=DEBUG, stdout, wlout
log4j.l
I don't think it is possible to "split" a form across multiple Tiles
because the Tile is a complete (translated) response. A form must be
complete on a Tile.
However, you can achieve the desired behavior by using the JSP include
directive -- the included fragment will can be a portion of the fo
Hi.
I noticed that Struts 1.2.x has a new method saveMessages(HttpSession
session, ActionMessages messages) that allows the ActionMessages to be
stored in the session instead of the request. This is very helpful for
displaying messages after a redirect. However, it doesn't seem like
html:messages
Simple question with no helpful responses so far.
I must therefore conclude either
a)Noone uses tiles because they are broken
b)Noone understands tiles
c)The way I am proposing to use tiles is so dramatically wrong at a
design level that noone has a clue what I am asking.
Just as a quick summary
At 3:40 PM -0500 11/30/04, Dahnke, Eric (Company IT) wrote:
I think you missed some other discussion on this -- Frank wants a
completely blank value to be accepted, but not a value which consists
only of one-or-more whitespace characters.
This is impossible in the current system, as the mask va
Cheers, Eric
> -Original Message-
> From: Frank Burns [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 21, 2004 8:23 AM
> To: Struts Users Mailing List
> Subject: Want to reject all-whitespace text input.
>
>
> Hi,
>
> I am trying to write a regular expression for a mask, for use
Set to "true" if a redirect instruction should be issued to the user-agent so
that a new request is issued for this forward's resource. If true,
RequestDispatcher.Redirect is called. If "false", RequestDispatcher.forward is
called instead. [false].
The culprit is redirect=true - check the d
redirect="false"
:)
Lee
On Tue, 30 Nov 2004 21:17:08 +0100, moralesdefrías wrote:
> Hi all¡¡
>
> I need your help, please.
>
> I have an action that forwards to another action, and i'm loosing request
> parameters.
>
> I have in struts-config this lines:
>
>
>
> but it doesn't work.
>
Hi all¡¡
I need your help, please.
I have an action that forwards to another action, and i'm loosing request
parameters.
I have in struts-config this lines:
but it doesn't work.
Can you help me?
Hello folks.
I have a Bean called users with two properties (Id and Name)
When a choose a name in this selection i need to know the ID of the
selected user. How can i do that?
Thanks for any help.
Marcio Lima
Or if you want custom msg for required validator then name attribute of
msg element should match that specified for depends attribute
-Original Message-
From: Ram Venkataswamy
Sent: Tuesday, November 30, 2004 9:57 AM
To: Struts Users Mailing List
Subject: RE: Validator question
Check
Check "required" validator in your validator-rules file - the message
takes one argument {0} is required - whereas in validation file you are
passing two values for 1 argument
try removing - it should work
-Original Message-
From: Vinicius Cald
Duncan Mills wrote:
It might be worth enabling logging on the digester classes to see
what's happening on the XML.
I run validator using apps with Struts 1.1 in OC4J with no problem so
there's not a fundamental issue here. Are you using OC4J inside
JDeveloper or deploying to it from an externa
And if you really like DispatchAction go a step further an try
LookupDispatchAction.
Shed.
-Original Message-
From: McDonnell, Colm (MLIM) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 3:41
To: Struts Users Mailing List
Subject: RE: Searching pattern/best-practise for forms
Graeme,
What is the attributes of your form (formAction)? Do you have a
getter/setter for "delete"? I believe that this what '' is looking for.
Shed.
-Original Message-
From: Graeme Miller [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 21:16
To: [EMAIL PROTECTED]
Subject: Ti
It might be worth enabling logging on the digester classes to see what's
happening on the XML.
I run validator using apps with Struts 1.1 in OC4J with no problem so
there's not a fundamental issue here. Are you using OC4J inside
JDeveloper or deploying to it from an external IDE? / Manually
R
> Also note that Struts' multipart processing currently is rather clumsy
> in handling form encoding. If the request object returns null from
> "getCharacterEncoding()", then Struts assumes ISO-8859-1. I was
Isn't it Tomcat itself? This is a behaviour per servlets
specifications (see page 41 o
On Tue, 30 Nov 2004 08:37:23 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
>
> The Category class in log4j has been deprecated for a long time, and I
> recall some recent discussions on the commons-dev list about bringing
> commons-logging "up-to-date" with that. I don't remember the details, b
Bill Siggelkow wrote:
Make sure you are using the latest release of Struts
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator
that caused this problem.
-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I'm trying to make my v
Joe Germuska writes:
[...]
> >As far as I know, the most reliable way is to specify
> >"accept-charset" as UTF-8 in the of the HTML (w3.org's
> >description of this parameter: "This attribute specifies the list
> >of character encodings for input data that is accepted by the
> >server processin
At 12:23 PM +0100 11/30/04, Guillaume Cottenceau wrote:
"Otto, Frank" writes:
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
The Category class in log4j has been deprecated for a long time, and
I recall some recent discussions on the commons-dev list about
bringing commons-logging "up-to-date" with that. I don't remember
the details, but basically you just need to have compatible versions
of commons-logging and log4
Incidentally I use a HUGE amount of AOP stuff and logging is the only
thing I am not using with it.
I use AOP for the following
Declarative security management ( down to filtering returned
Collections by an ACL )
Declarative transaction management ( so that I don't have any
transaction manageme
Make sure you are using the latest release of Struts
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator
that caused this problem.
-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I'm trying to make my validator projetct work
to summarise ... use spring or use log4j with eclipse plugin.
--b
On Mon, 29 Nov 2004 17:34:29 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> >>Would there be a simpler way of enabling automatic logging across
> >>entire application so that I do not have to modify all of my classes
> >>and JSP
Would there be a simpler way of enabling automatic logging across
entire application so that I do not have to modify all of my classes
and JSP pages?
Sounds like the textbook use case for aspect oriented programming.
Logging is about the only thing they all talk about!
But realistically, I'm with
Hi there! I'm trying to make my validator projetct work on oc4j (oracle
10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the
application runs it complains about some attributes being used but not
declared: " XML-0149: (Error) Element 'arg0' used
Was your question answered?
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Srinivas" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Sunday, November 28, 2004 10:55 PM
Subject: Every time Refres
The answer is in the error message
> The content of element type "struts-config" must match
> "(display-name?,description?,data-sources?,form-beans?,
> global-exceptions?,global-forwards?,action-mappings?,controller?,
> message-resources*,plug-in*)".
The order of the struts-config elements
The element should appear above the (&
) elements in the config XML
Regards
Duncan Mills
Brij Naald wrote:
Hi,
I'm trying to work with a subclass of requestprocessor. Therefore I add
in the
struts-config.xml.
How simple this looks, it doesn't work.
When I add this line to the struts-blank c
I teach it for $ on client site and you can google for 12 more places.
Email offline if you need more.
.V
> Hi,
> Could somebody recommend a good, advanced Struts
> classroom training course in the US,that covers
topics
> like Tiles/JSTL, JSF et al?
>
> Thanks,
> Shyam
>
> ___
Sounds like there are only a few interested parties.
Doing something like this would be a major investment of my time and money.
Since I do not have the infrastructure or materials in place, I probably
won't embark on that journey.
There are many great resources out there for doing your own self
Hi,
I'm trying to work with a subclass of requestprocessor. Therefore I add
in the
struts-config.xml.
How simple this looks, it doesn't work.
When I add this line to the struts-blank config-file, the end of the file
looks like this:
;
But when I start tomcat, it gives an exce
I was going to say something along those lines as well.
Create a class that represents a row in your table.
Create an associated class that has knowledge of how to persist the data to
the table i.e. CRUD methods.
Populate the data's primary key (Or keys) and read it with a passed database
connect
"Otto, Frank" writes:
> 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 (filt
Hi,
we recently migrated an application, which i consider large (about 100K loc
java code)
from XSLT / XSP / EJB to
JSP / STRUTS / COD
To be true we have not reused a single line of java code.
We reused much of XSLT code in jsps, because the outgoing html had to look
the same.
We reused some of
Hi,
we recently migrated an application, which i consider large (about 100K loc
java code)
from XSLT / XSP / EJB to
JSP / STRUTS / COD
To be true we have not reused a single line of java code.
We reused much of XSLT code in jsps, because the outgoing html had to look
the same.
We reused some of
A more MVC approach is to do DATA chacing in the DATA layer.
It is recomended that you do datacaching via a DAO. (iBatis, Hibrenate,
etc.)
.V
Jesse Alexander (KBSA 21) wrote:
concerning the actual access, that Javaworld article about sql in Java
sounds a cool way to do it...
about the initiali
Hello all,
I downloaded struts 1.2.4 yesterday to replace the 1.2.2 version that
I am developping against. However, testing my application with the new
jars (I copied all of the jars in the 1.2.4 tarball to the WEB-INF/lib
directory of my webapp) generates an exception:
[snipped]
root cause
jav
Eddie,
Thanks for your immediate and thorough reply.
> 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
concerning the actual access, that Javaworld article about sql in Java
sounds a cool way to do it...
about the initializing:
- create a standard servlet that fetches the data and sets up a JavaBean
(aka POJO) and stores that in the servlet-context
- define this servlet in the web.xml and add th
Nishant,
Following links may also help you. If you have time, try to read the
entire FAQs. They are really good.
http://struts.apache.org/faqs/newbie.html#avoidValidate and
For Wizard like WorkFlow
http://struts.apache.org/faqs/newbie.html#wizard
HTH.
Kinjal Sonpal
-
> I've tried some ways to do this and ended up with three actions for
one
> form: one for setting it up, one for displaying and validating it and
> one for the selected backend action. I just wonder if that is a good
way
> or if I'm introducing some problems into my applications.
The Struts Di
Hollaway, Shedrick L CIV TRIREFFAC wrote:
Alexander,
This should help you understand applying DAO/DTO patterns in a Struts
app: http://javaboutique.internet.com/tutorials/ApacheDAOs/
Shed.
Thanks for all your replys and suggestions, but I'm afraid I didn't ask
the right question. What I really wan
OK Sanjay. Are you using Websphere Studio Application Developer 5?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi
With Rose (pre XDE product from Rational), you cound reverse engineer the
relevant Struts jar files and save it in a model/package for reuse. Evrytime
you need it, you just apply the "Struts model" to your existing model.
Dunno, if you can do something alike in XDE, but think so...If it support
Hi Mark,
yes, i want to use rational xde with struts.
u told, i need to get hold of model files.
from where can i get these files ?
can u please explain it more ?
thanks
sanjay gupta
On Tue, 30 Nov 2004 07:59:07 +, Mark Benussi
<[EMAIL PROTECTED]> wrote:
> Is there a product called called Ra
Is there a product called called Rational XDE for Struts? I dont think there
is. If you mean can you use Rational XDE with Struts then you need to get
hold of the model files for the version of Struts your using and integrate
them into your XDE environment.
74 matches
Mail list logo