what you have to lookup is the jndi name. I am using Weblogic and I have
a weblogic-ejb-jar.xml where you say the name you want to put to EJB in
jndi directory.
jndi-namenamexxx/jndi-name
ConfigHome home = (ConfigHome) ctx.lookup("namexxx");
Bye
"G.L. Grobe" wrote:
Probably not
The html:img tag now contains an altKey attribute that does what you want.
e.g.
html:img src="someImage.png" altKey="someImage.alt.text"/
-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: 28 March 2001 21:54
To: [EMAIL PROTECTED]
Subject: Re:
Hi Senthil,
Sorry for answering a question with a question. How do you redirect errors
from perform to the input page without ActionErrors?
Best regards
Suresh
I still am unable to get Tomcat4 to reload my app when a class changes. Can't figure
it out. Resin
does the reload with no problem, so it isn't some problem within my app. Guess I'll be
using Resin
for the time being.
- Original Message -
From: "William Jaynes" [EMAIL PROTECTED]
To:
Thank you, Howard. And if this does not work for me, is that meant, because I
am using Tomcat 3.1? In your example below I am using pageKey instead of src.
Howard Moore wrote:
The html:img tag now contains an altKey attribute that does what you want.
e.g.
html:img src="someImage.png"
I've added these to our Jyve FAQ:
How Do I use Javascript in my Struts forms?
---
The relevant HTML tags provide support for the Javascript event handlers
onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress,
onkeyup, onmousedown,
Every now and then I get the following exception:
Location: /poc/
Internal Servlet Error:
java.lang.IllegalStateException: Can't happen - classname is null, who added
this ?
at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)
at
It's possible I suppose. I've tried it with Tomcat 3.2 using pageKey rather
than src and it works ok (using Struts 1.0b1). What happens when you try to
use the tag, e.g. what html is produced or what exception is thrown?
-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Hello,
I want to use tag iterate for displaying my
data. Is it working properly? Where should be placed my Collection property?
I'm receiving data from database in
CustomAction.java bean. Is it correct?
My target JSP page contains:
tablelogic:iterate id="lang"
Have
you played with the order that these occur in the CLASSPATH?
-Original Message-From: Ali Ozoren
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, August 29, 2000
10:10 AMTo: [EMAIL PROTECTED]Cc:
[EMAIL PROTECTED]Subject: struts and
cocoon
Hi
all-
Ive
been
I understand what the end result of these do, but how do they do them, and
how are they used?
Do they modify the struts-conf.xml or just the ActionMapper?
!-- The standard administrative actions available with Struts --
!-- These would be either omitted or protected by security --
yes, thats what we doing currently but under certain conditions I would
like to change the target frame.
Thanks
Sean
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 10:49 PM
To: [EMAIL PROTECTED]
Subject: Re: ActionForward and
It looks to me like LanguageBean has a method call
langCollection that returns your collection. If this
is true the tags should be like this. The will loop
through each element in the collection.
table
logic:iterate id="lang"
name="estatenet.custom.LanguageBean"
Title: RE: JUNIT and Struts
Is there a sample available for testing struts with j2eeunit
Thanks,
Padma
-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 5:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re:
Title: RE: JUNIT and Struts
Is there a sample available for testing struts with j2eeunit
Thanks,
Padma
-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 5:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re:
I have the following struts/JSP fragment that creates a dropdown with values
from the networkTypes attribute.
html:select styleClass="Field" property="networkType" size="1"
html:options property="networkTypes"/
/html:select/td
The networkTypes attribute is created in the "getNetworkTypes"
Hello All,
I'm new to the struts framework. I've set up struts using weblogic 6 and
the newest version of struts.
On my first application, when trying to retrieve the web page, it produces a
"Parsing of JSP File '/Test.jsp' failed" message. The following is the
error from my server console:
No exception. Here is a short cut from view source:
...
form name="logonForm" method="POST" action="/jndi2/logon.do;jsessionid=...">
table...>
tbody>
tr>td>Username:/td>
td>input ...>/td>
/tr>
tr>td>Password:/td>
td>input ...>/td>
/tr>
tr>td>input type="image" name=""
Hello All,
I'm new to the Struts framework and trying to compile my first struts
application using weblogic 6 and the newest download of the struts
application.
Here is my code for the test page.
%@ page language="java" %
%@ taglib uri="/WEB-INF/struts-form.tld" prefix="struts" %
Forgive me if this has been asked; I'm having trouble reading old messages.
Within a page, I need to show a variable number of rows (each of which
represents a database row). Each row will have a text entry field. The
user can enter values in any number of these fields before submitting them
We can use mapping.getInput() to forward to the "input" page.
--
Jacob
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 4:18 AM
To: [EMAIL PROTECTED]
Subject: Re: How to redirect to the input jsp page from the formbean's
validat e
Hello everyone,
I am learning struts and have following question:
Why form should be described in two places:
1. in jsp page (I am looking at logon example):
html:form name="LogonForm" type="fully qualif. name" ...
2. struts-config.xml
form bean
The html:form tag will either lookup or instantiate the ActionForm so that
the form parameters can be set to meaningful values on the page. Then, when
the user makes changes and submits the form, the ActionServlet will populate
the same ActionForm instance (if it is given 'session' scope) with
Hello all,
In the template tag example, the template file used the table and table row
to indicate where in the layout to insert the content. Is there a way to
build the template file using frame instead of table? How do you specify the
src so that it will take template:get name="anything"/ to
Hello friends,
I was wondering if there is a way to store a relatively big amount of text
(which can't be fitted in one single line) assigned to some variable in
the ApplicationResources.properties file. This text eventually will be
local-sensitive that's why I want to put it into the
Here is a good explanation how this application works and other stuff.
http://www.husted.com/about/struts/example-tour.html
http://www.husted.com/about/struts/
Maya
"Charlemagne L. Rey" wrote:
Hello everybody,
I think I still don't understand how did the struts-example flows.
Could anybody
On Thu, Mar 29, 2001 at 10:49:24AM -0600, Young, Wayne wrote:
I have the following struts/JSP fragment that creates a dropdown with values
from the networkTypes attribute.
html:select styleClass="Field" property="networkType" size="1"
html:options property="networkTypes"/
On Thu, Mar 29, 2001 at 10:34:47AM -0500, Maring, Steve wrote:
I understand what the end result of these do, but how do they do them, and
how are they used?
Do they modify the struts-conf.xml or just the ActionMapper?
Just the later.icnze
On Thu, Mar 29, 2001 at 09:46:15AM -0500, Szlapa, Michael wrote:
Every now and then I get the following exception:
Location: /poc/
Internal Servlet Error:
java.lang.IllegalStateException: Can't happen - classname is null, who added
this ?
...
To be precise it happens when I navigate back
Eugene,
If I have understood your question, the 1st place is jsp file, where the form
is directly used. The 2nd place (config file) where you set mapping up. For
example you tell that logonForm (the first letter is lower case) is coming from
the class LogonForm, and jsp file logon.jsp will be
Does anyone have a code example for validating a date field in the validate
method of actionform? Actually, a date in a string attribute.
thanks in advance for your help,
Donnie Hall
Yes, you can put anything into your application file (jsp file name, image
file name, and text file name). The problem is who will read it? You need to
have some Action that for a particular request will open this file (name you
can get though MessagesResources) and read it.
Maya
Yuriy Zubarev
Hi everybody,
I am faced with a unique situation. I have at present 45 Action
classes in my project. In the future this number may climb to more than 100
( yeah it is a huge project). We just completed requirements and want to
make sure that struts can really handle such a heavy load
Thanks. I moved my call to populate the dropdown values from the Action
descendant perform() method to the ActionForm descendant reset() method.
That worked makes sense to me.
Question: Is this violating any kind of "separation" rule that I'm going to
get drilled on by other developers?
Wayne
syntax : forward name="advanced" path=""/
What I do is put in the actual name for the forward, and then point the
path to an "under construction page" where I also list any beta-testing
issues.
As the pages come online, you simply need to update the configuration
file -- all the
Ted ,
Regarding your reply i hate typing in the same name again and again...
forward name="help"path="/help/index.jsp"/
forward name="helpBid" path="/issues.jsp"/
forward name="helpDonate" path="/issues.jsp"/
forward name="helpFacts"
During the demo i noticed that i get a 404 error when trying to reach this
page (which is as it should be). I want to keep an indefined state page to
these. My problem is that i don't want to write the 'undefined.jsp' in each
You can specify an 404 handler page for the servlet engine
how do i unsubscribe from this list?
To stop subscription for this address, mail:
[EMAIL PROTECTED]
where john = your username, host.domain = your domain name.
"Perez, Bill" wrote:
how do i unsubscribe from this list?
Hello! :)
Our dev team for a big enterprise app has been going back and forth on how
to send the data from the ActionForm to a Session bean. We have a number of
options and I was hoping for some feedback because we've had enough talk and
its time to decide! :) (Our architecture is as of now to
Hello everybody,
I currently have the 1.0 version of struts. I tried to look at
the examples and studied it. When I recompiled the sources from
the examples/src directory, I noticed that the byte size are not
equal. And when I replaced the classes, it produces a different
output. It is very
First, be sure that you have followed the "tour" that comes with the
example. There's a small link on the first page.
The "do" pages are "action mappings". When the Struts ActionServlet is
registered with the container, it asks for the "do" pages. The
ActionServlet then refers to the mappings
Different sizes - I can understand, because the different compilers and
/ or different build environment. Why does not work - no clue? I am
using prebuild (night build) version.
"Charlemagne L. Rey" wrote:
Hello everybody,
I currently have the 1.0 version of struts. I tried to look at
the
Hello Struts Users,
I am fairly new to struts (like a lot of folks), and was fairly confused
by the duplicate tags in the struts.tld and other of the struts tag
libraries (e.g. struts-bean). I finally saw in the release notes for the
beta 2 that this entire tag library is deprecated. Why is
hi.
I am new to struts...
I have a problem with getting a value from bean...
here are some pieces of my code where i set and get values:
In jsp page i have this:
-
td align="left"
html:text property="totalCopies"
How about a slight variation on #1?
interface BusinessBeanThingie {}
class YourActionForm implements BusinessBeanThingie {}
class YourSessionBean { YourSessionBean(BusinessBeanThingie bbt) {} }
Because YourActionForm implements BusinessBeanThingie, you can pass it
to your session bean in your
I think your html:form tag is instantiating a new Form bean and hence the
fields have their default values when the page is rendered. When the page is
submitted another form bean is getting created. You may want to set the
scope to 'session' and remove the bean appropriately.
--
Jacob
Chris,
What we've done is this:
- Put a layer of business logic session stateless beans above the entity
EJBs. The beans in this layer have methods that perform specific business
functions.
- Have the Action classes translate the user's click into one or more calls
to the business logic
This is what i think should happen...
(Correct me wherever i am wrong...)
This is how i call bean for setting values in config file:
!-- Form bean --
form-bean name="myForm"
type="org.apache.struts.dir1.dir2.MyBean"
I've been working on some validation routines. There
is a date one in
com.wintecinc.struts.validation.Validator in the
src/share directory. The date validation doesn't
support multiple locales though, but you could enhance
it.
You can get to the source at (more recent builds).
ActionServlet will take MyBean from 'session' scope (put there by
html:form tag) and populate it with the form parameters before calling
ProcessMyBean.perform().
--
Jacob
-Original Message-
From: Nishit Trivedi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 3:29 PM
To:
Thank you very much. I just now realized that the version I am using
is not updated and contains the unstable source codes. I already
shifted to the nightly version, I hope that I'll have more success on
this one.
Maya Muchnik wrote:
Different sizes - I can understand, because the different
Hello,
I have my logon.jsp page as ..
%@ page language="java"
isErrorPage="false"
errorPage="errorpage.jsp" %
%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %
%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %
and errorpage.jsp as ..
%@ page
Hi all-
Ive been trying to get cocoon and struts together, however one is using
the servlet.jar the other servlet_2_2.jar.
Is it possible to combine these two?
Thanks!
Hi Doug,
If you do not require cookies and you want clustering to be effective, then
the app server/ servlet container you choose will have to embed the server
specific information into JSESSIONID parameter. You would then load balance
to any web server that has a plug-in which can decrypt the
I'm getting the error at the bottom and would like to know if there's
anything special I need to do inside an Action. Server type is Orion 1.4.5.
ConfigBuildBean - Session Bean
ConfigBuildHome - EJBHome
ConfigBuild - EJBObject
-- ejb-jar.xml
Is there a downloadable version of the javadoc for Struts (found online at
http://jakarta.apache.org/struts/api/index.html)?
I normally like to keep these things on the local disk for offline work.
Burr
Absolutely everything is in the source distribution.
Burr Sutter wrote:
Is there a downloadable version of the javadoc for Struts (found online at
http://jakarta.apache.org/struts/api/index.html)?
I normally like to keep these things on the local disk for offline work.
Burr
-- Ted
Beta 2 is still under development, which is why it's not available for
download yet. The release notes are there, I believe, as a "running
commentary", if you will, on the changes that have happened so far between
Beta 1 and the current nightly builds. Beta 2 should happen soon, but I'm
not
See comments intermixed.
- Original Message -
From: "Nishit Trivedi" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 29, 2001 3:29 PM
Subject: RE: getting value from bean
This is what i think should happen...
(Correct me wherever i am wrong...)
This is how i call bean
Hi everyone
I want to use MySQL with Struts. Although not
a Struts specific question, what jdbc driver is the best to use. I
downloaded the driver from caucho and noticed that it was marked as
experimental. I know that may mean that it is still a good driver.
But I would like an
I'm using : org.gjt.mm.mysql.Driver it work fine for me, very fast.
but I have a problem :
when I do ;
Context env = (Context) new InitialContext().lookup("java:comp/env");
DataSource source = (DataSource) env.lookup("jdbc/db");
Connection conn = source.getConnection();
Statement stmt =
Hello Anh,
In the template page, you have to write something like :
---
frameset rows="73, *, 73"
frame src="%=request.getContextPath()%template:get name="header" /"
name="header"
frame src="%=request.getContextPath()%template:get name="body" /"
name="body"
frame
63 matches
Mail list logo