hi there,
I've got working software on the server side and I would like (I have)
to create servlet-XML interface for it.
The questions are: How 'struts' is able to help me to do it faster ? Is
it able to support me at all ? Will I have something more from it ?
Thanks in advance
Sebastian
-Ursprungliche Nachricht-
Von:John Nikolai [SMTP:[EMAIL PROTECTED]]
Gesendet am:Mittwoch, 21. Februar 2001 01:31
An: [EMAIL PROTECTED]
Betreff:Template tags?
Hi all!
I'm defiantly new to the struts and taglibs so please bear with my questions:
We are
EJBs come in two flavours (as opposed to flavors), session beans and entity
beans.
Session beans represent business logic and rules, entity beans represent a
row in the database.
The model that you'd use is to have Actions do the basic processing of form
elements into data beans (just regular
As far as struts 1.0, the Form bean is used only to redisplay
information to the jsp page. Typically the EJB might be loaded/unloaded in the
action class. If you search www.mail-archives.co,m Craig talked more about this in
detail.
In future version of struts this may be enhanced.
-Rob
Unfortunately, there's not an official FAQ for Struts right now.
(Jakarta's Jyve
installation seems to be hopelessly broken.)
I've started a draft of a "kickstart" FAQ at
http://husted.com/about/struts/kickstart.html
in case that helps.
-- Ted Husted, Husted dot Com, Fairport NY USA.
--
"D. Veniseleas" wrote:
these taglibs. The template taglibs are in CVS and easily accessed but I'm
wondering if these are going to be distributed in the next release of
struts.
To quote David Geary, 'templates are here to stay'. All functionality that is in the
Beta or nightly builds will
Thank you both, Craig M. and Craig T. very much!
Maya
"Craig R. McClanahan" wrote:
Maya Muchnik wrote:
Hi,
How make a link or JSP URL "invisible" to a browser? I have read some chapter
in a book, I know that this is possible. Is it possible with Struts? Is it
some property
Wayne,
Thank you for your suggestion. I put copies of jaxp.jar and parser.jar from
jaxp1.0.1 package (Sun Microsystems) to /usr/java/jre/lib/ext and the file
was compiled.
Does anyone know why and what case we need to have crimson.jar, xlan.jar?
The second Q. (maybe it was corrected for the
Sorry if you find if this is a bit off topic. ;)
Hi all,
Hope this is not a FAQ. (I spent 2 hours to do net search but didn't
get a good answer)
8
jsp:useBean name="abc" scope="session" /
jsp:setProperty name="abc" property="*"/
8
Introspection magic makes the property setters called if
Hi all,
The struts example works fine on my W2K but when I try
to deploy it on solaris fails.
This is my setup:
Solaris 2.6
Sun JDK1.2
If it helps you, you can take a look on the
weblogic.properties, the start script (startEx.sh) and
the log (weblogic_pgn.log)
If you need something more,
At 05:35 PM 2/26/2001 -0800, you wrote:
James Howe wrote:
Is there some reason why the base tag defined in the HTML tag library
doesn't let you specify the optional target attribute? I'm working with a
frames based web application and I need to use both the href and target
attributes.
Hello all,
I am developing an application, where I need to have a form which is a
simple table. This table is built dynamically based on a database query.
When I click on each row, I should navigate to a page corresponding to that
row, and use the values in that row to display the page. How can
I think it is WebLogic related, because I do not have a problem to run
struts-example on Sun 2.7 with Sun JDK 1.3.
Pablo Estades Fernndez wrote:
Hi all,
The struts example works fine on my W2K but when I try
to deploy it on solaris fails.
This is my setup:
Solaris 2.6
Sun JDK1.2
If it
Hi there,
Can somebody help me in getting some sample code snippet for Struts Servlet
Controller(Struts Application startup Servlet).
Currently I am using SaServletEngine.class as the controller from Bluestone
Software(HP).
It just works fine, but I want to make a vender neutral app.
Thanks in
Hi folks,
My onclick (for a button ) does not work with javascript validation.
If I call the same javascipt function with onsubmit event in a form it works
fine. I tried both Netscape4.7 and IE5.0. Since there are no javascipt
errors in both the cases I am not able to debug. I guess event is
Hi!
Check the example application that is included with the distribution.
Another nice intro to struts can be found on:
http://www-106.ibm.com/developerworks/library/j-struts/index.html?openl=jls
t004,t=gr,p=Struts
// Torben
-Original Message-
From: Nageshwar Charka [mailto:[EMAIL
More information;
Here is my problematic index.jsp.
Do you think the error can be related to NOT to use
JDK1.3?
%@ page language="java" %
%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %
%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %
%@ taglib uri="/WEB-INF/struts-logic.tld"
Yes Maya, it seems to be WebLogic.
Are you using Tomcat under solaris or another server?
--- Maya Muchnik [EMAIL PROTECTED] escribi: I
think it is WebLogic related, because I do not
have a problem to run
struts-example on Sun 2.7 with Sun JDK 1.3.
Pablo Estades Fernndez wrote:
Hi all,
Is this the same index.jsp from struts-example? If so, I do not have a
problem to run example on Sun 2.7 and JDK 1.3.
Maya
Pablo Estades Fernndez wrote:
More information;
Here is my problematic index.jsp.
Do you think the error can be related to NOT to use
JDK1.3?
%@ page
nagesh,
I am not sure what you are asking for.
You are able to write a vendor neutral app using the bluestone servlet
engine.
If you elaborate a bit I can offer some advice.
You can get to a Trail Map on the gallery website for further information
Hi,
Do you have any ideas how registration.jsp file (struts-example) can be
changed to handle a situation when a user call it directly. I do not "like" a
SevletException to be displayed:
Error: 500
Location: /struts-example/registration.jsp
Internal Servlet Error:
- Original Message -
From: Maya Muchnik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 5:07 PM
Subject: struts-example - handle of ServletException
Hi,
Do you have any ideas how registration.jsp file (struts-example) can be
changed to handle a situation
I thought target was part of the spec. In looking at the spec on
www.w3c.org, the following page specifically mentions the target attribute:
http://www.w3.org/TR/html4/struct/links.html#edef-BASE
However, the DTD does not mention the target attribute so I'm a bit
confused.
I have my
Thank you.
I thought, that some struts "magic" I can use. If I will use a standard
"errorPage" as you suggest, I will lose all pluses of the good struts
interface.
Maya
Jean-Nol Ribette wrote:
- Original Message -
From: Maya Muchnik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Hi all,
I am working on an application where form fields need to default to
values that depend on the user's profile, which is stored in the
session. Unfortunately, it seems like struts forms are created
automatically without any hooks that allow access to the session to
initialize these
Hello,
In the beta release, which I downloaded and built, struts.jar did not have
html tags. So, I just downloaded yesterday's binary and it does not have
form tags. Am I missing something here?
Any information is appreciated.
Sundar
We wrap errors in our own exception class, and store them in our request/session.
Then redirect the user to a standard error page that knows how to retrieve the
error from the request/session, and display it in a 'friendly' way to the user.
Our exception class contains a user message, as well as
Thank you, David.
David Winterfeldt wrote:
You can always add some logic tags at the top of the
registration.jsp to check if he is logged in, certain
objects are in scope that the form needs, etc. If the
criteria aren't met, forward him to any page you want
and display a message. You
Thank you, Peter. So many good implementations around!
Peter Alfors wrote:
We wrap errors in our own exception class, and store them in our request/session.
Then redirect the user to a standard error page that knows how to retrieve the
error from the request/session, and display it in a
Hi,
Could someone please tell me what I am doing wrong below:
user is a bean in session scope in my JSP and its getSuppliers() method returns a
hashtable where keys are Suppliers Ids and elements are Supplier beans.
logic:iterate collection="%= user.getSuppliers() %" id="supplier"
The way this is typically handled is to use an Action to populate the
bean. So instead of linking your user directly to the JSP page, you link
them to an Action. This Action typically loads the bean and then returns
the success mapping, which, in struts-config.xml, you've mapped to the JSP
I currently use Log4j with NDC enabled combined with struts.
Here is how I use it:
- Run PropertyConfigurator from a startup servlet
- import org.apache.log4j.Category in your code
- set reference to log4j in your code
public class loginAction extends Action {
static Category cat =
On Tue, Feb 27, 2001 at 12:07:15PM -0500, Maya Muchnik wrote:
Hi,
Do you have any ideas how registration.jsp file (struts-example) can be
changed to handle a situation when a user call it directly. I do not "like" a
SevletException to be displayed:
Error: 500
Location:
Thank you Incze. This is the 3rd or 4th good suggestions!!! We have so many gurus.
The Life is good.
Maya
Incze Lajos wrote:
On Tue, Feb 27, 2001 at 12:07:15PM -0500, Maya Muchnik wrote:
Hi,
Do you have any ideas how registration.jsp file (struts-example) can be
changed to handle a
This is the 3rd or 4th thank you email!!! We have so many emails. The Life
is bad.
But seriously, I think everyone is thankful for responses they get to their
submissions. If everyone thanked people for every response the list would be
too cluttered. Why not say thanks in advance?
Hal
Hi,
Could someone please tell me what I am doing wrong below:
user is a bean in session scope in my JSP and its getSuppliers() method returns a
hashtable where keys are Suppliers Ids and elements are Supplier beans.
logic:iterate collection="%= user.getSuppliers() %" id="supplier"
Hi,
Is there anyway that I could prevent the call to getInstance of Category
in every action class.
So I can have instance of Category in base action class and every other
class would extend from it.
public class baseAction extends Action {
static Category cat =
Jean-Noel, merci beaucoup.
Although using the collection mode of options, rather than name made, I'm
accomplishing what I wanted to do.
thanks again
-Original Message-
From: Jean-Nol Ribette [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 7:43 AM
To: [EMAIL PROTECTED]
We specify CSS files in our JSP output with the HTML link tag. The
precise CSS files referenced should sometimes be different depending on
locale and a concept of brand within our application. I could easily write
my own JSP tag to do this but I was wondering if struts already offered
something
It's not a stupid question. I'm not sure if it's off-topic or not. :-)
The JSP fragment you posted suggests that your JSP is being invoked
directly. That is, the URL coming from the browser references the JSP, and
not a Struts Action (e.g. doSomthing.do). If this is the case, then I don't
Nimmi,
Check the properties names. In the working variant they are:
code, name, countryName. In the 2nd (not working variant) they are:
seq_nbr, name, country_name.
The second, maybe underscore sign is not allowed.
Maya
Shamdasani Nimmi-ANS004 wrote:
Hi,
Could someone please tell me what I
Uwe Pleyer of Germany was gracious enough to translate the Struts
Prensentation at http://www.us-eh.com/craiger/articles/struts/ to
German! Check it out if that is your native tounge.
Now I don't know German personally, so let me know if it's a real
translation, or just some German drinking
I had a little trouble using PropertyConfigurator.configure() to log to a
file: I wasn't exactly sure where to put the .lcf file so that servlets
could find it. I ended-up coding an absolute location. I kind-of thought it
should go in the application directory under WEBAPPS or in the application
PropertyConfigurator.configure() does like an absolute path and you still
can give it one using a relative web path in your webapp directory. You can
even specify the relative path your struts resource file ( if you chose to
do so ).
If you use a startup servlet, something like this should
I'm exercising my new copy of TogetherJ, and at the same time learning
Struts for the first time. I was wondering if anyone has had any
experience trying to model a Struts application using Together? (e.g.
which diagram types did you use, etc.)?
Regards,
Bryan
No, the typo was on my email not in the code.
-Nimmi
-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 2:51 PM
To: [EMAIL PROTECTED]
Subject: Re: How do I iterate thru a hashtable using iterate tag?
Nimmi,
Check the properties names. In
Hi,
In "A Walking Tour of the Struts App", the author has mentioned that "There is only
one object for each action (URI), so your action objects must be
multi-thread safe". Is the example itself is multi-thread safe?
I am asking this, because are several actions here, but not one of them use
The example is thread safe. Methods don't need to be synchronized if they
aren't manipulating a shared object such as an instance variable. If your
action class doesn't have any instance variables and it only deals with
local variables and parameters then there is a good bet that it is thread
Hello,
Robert Leland wrote:
As far as struts 1.0, the Form bean is used only to redisplay
information to the jsp page. Typically the EJB might be loaded/unloaded in the
action class. If you search www.mail-archives.co,m Craig talked more about this in
detail.
My understanding is that
I use EJBs without using copyProperties although it's a matter of
preference. I have a set of JavaBeans that you could call "Data Beans"
because they are often similar to my Entity Beans and they don't contain any
business logic. They are struts free and I pass these data beans to some EJB
I have the similar case with Beans not implemented "Serializable". I will use
PropertyUtils.copyProperties(destBean, srcBean) to propogate the properties.
Nick Pellow wrote:
Hello,
Robert Leland wrote:
As far as struts 1.0, the Form bean is used only to redisplay
information to the jsp
I'm not sure exactly what problem you're seeing, but here are a couple of
points that might be relevant:
1) The taglib that used to be referred to with the 'form' prefix (e.g.
form:html) is now deprecated. Those tags are now in the 'html' taglib
(e.g. html:html). The old struts-form.tld is
[EMAIL PROTECTED] wrote:
This is the approach that I am using, but to simplify the design I have
interconnected the view and model. I would like to eliminate this coupling-
so if anyone has some suggestions or could recommend a pattern I could apply
please let me know :) What I am doing
Hi,
In some of the e-mails I have seen nested syntax being used for property attribute,
e.g.,
html:text property="mailingAddress.street"/
what does that mean? Is it that the getMailingAddress() method of the bean will be
called, and then what is ".street" for?
-Nimmi
Hello,
Where is 26th nightly build binary/src version? Or any other build that has
image tag fixed for property attribute.
Cheers!
Sundar
Hi all,
Pls excuse for my poor english.
I want to put request URIs that mapped to some actions in jsp:include tag
like this:
jsp:include page="/action.do?queryString=xxx" flush="true"/
And the container can execute the requested action ,but the client can not
get the correct response.
Has anyone used Allaire's JRun and Struts yet? If so, are any of you fine
people willing to share tips or tricks of what to do or not do? Thanks in
advance.
Mike V.
The way this is typically handled is to use an Action to populate the
bean. So instead of linking your user directly to the JSP page, you
link
them to an Action.
Thanks for your response - i guess I arrived at the conclusion you
propose. However I'm still unhappy with the notion that lots
At 11:17 AM 2/28/01 +1100, Nick Pellow wrote:
I am very new to struts as is, but as I far as I can tell from reading
the implementation of the above method,
the ActionForm can only have String properties. Is this correct?
If so, it would be nice if the ActionForm could support types other than
There are many competing technologies to embrace the
Model 2 pattern.
I get the feeling that XML/XSL and Struts are mutually
exclusive. Is this a valid concern ??
[EMAIL PROTECTED]
__
The
I have a lot of experience using validation. I am of the opinion that if
possible validation should be done client-side using javascript. Is there a
way to implement this by extending Struts? If so, I would be very
interested in helping. Currently, I am working on expanding Struts Custom
Tag
Martin,
[EMAIL PROTECTED] wrote:
At 11:17 AM 2/28/01 +1100, Nick Pellow wrote:
I am very new to struts as is, but as I far as I can tell from reading
the implementation of the above method,
the ActionForm can only have String properties. Is this correct?
If so, it would be nice if the
Actually, the plan is to build exactly this type of validation into Struts
1.1. In particular, I am hoping to incorporate it into the automated bean
creation tool, one way or another.
The idea is to define your bean(s) in an XML file, and have the tool
generate the actual bean code for you.
Jessica,
You have not closed the link tag. After the %= display %, you need
/html:link.
Also, you might want to look into using the Struts logic:iterate tag
instead of using a while loop in a scriptlet.
Hope this helps.
--
Martin Cooper
Tumbleweed Communications
- Original Message -
Martin,
[EMAIL PROTECTED] wrote:
Actually, the plan is to build exactly this type of validation into Struts
1.1. In particular, I am hoping to incorporate it into the automated bean
creation tool, one way or another.
Yup, I minutes after my lost post, I received the post for Volunteer
Joel Regen wrote:
David,
Wouldn't it make sense to introduce a few attributes to the template tags
that allow specification of values using references to beans? This idea is
used extensively in the other struts tags. Look at the html:link tag, for
example. It allows you to specify a bean
66 matches
Mail list logo