Hi
I am using an img( i.e.html:img) for different links of my page. This img is using usemap for these different links.For this situation I could not achieve the URLrewriting when the cookies are disabled.
If I can use html:link instead of href of the area tag of map tag, then the prob would be
Hi
guys,
there
hasnt been much response to my Iplanet mails, but here goes another
one...
I have
finallt succeded in deploying the taglibs, getting IWS to recoqnize the
strust.dtd and the action servlet is ALMOST
running
However i get a SaxException when it tries to parse the
Hi,
I have mySQL Database and the data-source I have defined in the
struts-config.html.
In a JSP-site I want to access to this database with an methode like
ArrayList getAllNames() and this list I want to put in a dropdown menu
with the html:option html:select Tags, but how can I get this
A few weeks ago, there was a post about an updated
translator for Dreamweaver that meant you could use struts more easily with
DW.
Is this available anywhere for download?
Also can someone explain the difference between this and
the CTLX extension for Dreamweaver?
TIA
Robin
Try:
select name=select size=7 class=textbox
logic:iterate id=modelo name=listado
option
bean:write name=modelo
property=imagen/
/option
Hi, Cheers for that i will try and endevour to use ants prcedure.
Chuckie
Calvin Yu wrote:
Chuck,
This error in NetBeans is due some other compilation error or some problem
with the way your source is setup in the project. I would recommend that
you do *not* use NetBeans for now and try
Hi everybody,
I have a problem with the struts example 1.0 and SilverStream 3.7.2.
When I deploy the war, the server console display:
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
Not registered,
When I start the site, I get the fallowing error message:
Cannot find bean mitarbeiter in scope null
The code I wrote is:
select name=select size=7 class=textbox
logic:iterate id=mitarbeiter name=allMitarbeiter
optionbean:write name=mitarbeiter property=value//option
Thank-you for replying. The html:select tag is inside the html:form
tagI used the property attribute as the API did not give a use for the
'name' attribute in this instance. I have the get/set methods for
privilegeLevelit still doesn't compile and gives me the same error
-Original
This is hosted at Jakarta Tablibs now.
http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
Hi Stefan
I think this is how u should do it
bean:define name=YourFormName id=names
property=nameArrayList /
html:select property=selectedName
html:options collection=names property=value
labelProperty=label /
/html:options
Here retrieve the names in your Action class using -ArrayList
check the getter and setter naming convention in the bean
getPrivilegeLevel ( )
setPrivilegeLevel ( )
- Original Message -
From: Rehana Sheikh (Contractor) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Struts (E-mail) [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 10:22 AM
Subject: RE:
Although I am quite new to struts, I'd like to participate in this IPlanet
discussion because
we are probably going to deploy our app to the same AS.
But actially we haven't tested anything yet under that environment, so all
comments are warmly welcome.
Concerning your xml problems:
To my
thanks for your input...
Im currently loading all the dtd's frm localhost...
I havent checked whetether or not IWS comes with an xml parser, but
currently i have added jaxp.jar and parser.jar from the tomcat installation
to my classpath...
i thought that i had the taglibs running, but it seems
Do I have to define anything in the resource bundle (properties) file at
all?? The runtime failure in custom tag 'select' seems to indicate
that
-Original Message-
From: suhas [mailto:[EMAIL PROTECTED]]
Sent: 09 July 2001 15:33
To: [EMAIL PROTECTED]
Subject: Re: Select / drop-down
Hello,
Does anyone have any code examples or information
on how to write the reset() -method in order to reset only checkboxes in a form
(and still keep any textbox values etc) ?This to avoid the unselect
problems in checkboxes using Struts.
Thanks in advance,
Bjørn Erik Andersson
Yeah , U should have
key - createGroup.privilegeLevel , createGroup.p1 , createGroup.p2
,createGroup.p3 in the properties file
put that in AlpplicationPropeties file and mention this properties file in
the web.xml
Suhas
- Original Message -
From: Rehana Sheikh (Contractor) [EMAIL
Hi,
I know, this is a totally newbie question, but the struts manuals handle this issue
quite marginal.
So, what's the difference between a forward and a redirect?
It would be all right, to get an URL to that topic, if there is one, so you don't have
to fill this
mailing list with it.
Thanks
This is the code.
I've tried to put the href in many positions but the combo keeps on being no
sensible.
Any idea?
Thank-you anyway!
select name=select size=7 class=textbox
logic:iterate id=modelo name=listado
a
call to
etServletContext( ).getRequestdispatcher(/resourceNametoForwardTo ).forwar
d(request , response)from one resorce to another totally happens on
server side . But in case of Redirect the request goes to
ser-agent( browser) telling that browser that resource is been moved
temporarily
Hi ,
Wht is the meaning of Localization and how it is
achieved in struts ? Any examples ???
Suhas
make sure struts.jar is in your classpath in kregedit.
Also, if you have any ActionClass or FormClasses that
you're calling from action, you'll need to make sure
the full path to
\iPlanet\ias6\...\APPS\...\WEB-INF\classes is in your
classpath. It's a bug in iPlanet, but this workaround
works
This is a common problem when configuring struts on weblogic. Reason is that
the parser could not fetch the
file(http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd) from the
web.
The easiest way is to alter the request to your local file.
For example:
FROM:
!DOCTYPE struts-config
Hi,
I am using logic:iterate tag as follows to print a table with text
boxes.
logic:iterate id=product name=productSearchForm
property=productList
tr
td align=left
bean:write name=product property=productNumber
filter=true/
/td
td
We had the same problem using tomcat3.1. When using 3.2, it worked.
HTH
-Ursprüngliche Nachricht-
Von: vj nas [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 8. Juli 2001 00:36
An: [EMAIL PROTECTED]
Betreff: javax.servlet.ServletException: cant remove Attributes from
request scope
I had
Hi strutters , can anyone recommend help / demo ( online-print)
regarding ant's build other that netbeans ideV2.
I would like to verbose/print thus have a good read in the bath.I am
aware of the
Ant 1.3 Manual never the less it is not user printable foramt. Well not
4 me anyway.
Cheers chuck
--
Hi,
If this is true, what do I do wrong, as this line of code
TD
SPAN class=f-data
html:text property=geoEntityType.id size=4 maxlength=4
title=Enter Type ID/
/SPAN
/TD
produces this error:
org.apache.jasper.compiler.CompileException:
Do u have setter methods in the Product class like - setQuantity(int qty)
???
Also U need to have indexed iterate tag written by Dave Hey . So u can use
html:text name=product property=quantity size=3 index= true/
Here is the ActionForm
public Product [ ] getProductList( ) {
return
When I give the index=true attribute, it gives me following error
Attribute index invalid according to the specified TLD
-Original Message-
From: suhas [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 10:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Iterate tag update
Do u have
The problem is, the generated names of the HTML form elements do not
correspond to the names of properties of your ActionForm.
Here a sample, how this can be done:
logic:iterate name=myForm property=elements id=element indexId=i
type=de.grayman.test.struts.MyElement
tr
td
Where can i get indexed iterate tag written by Dave Hey???
thanks,
Vaibhav
-Original Message-
From: suhas [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 10:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Iterate tag update
Do u have setter methods in the Product class like -
take it from http://www.husted.com/about/struts
Check for the extensions - Iterate tag
- Original Message -
From: Vaibhav Patil [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 1:44 PM
Subject: RE: Iterate tag update
Where can i get indexed iterate tag written by
Hi,
how can I use a button instead of the fallowing link?
html:link page=/editRegistration.do?action=Createbean:message
key=index.registration//html:link
The button should do the same as the link.
Best regards,
Stefan
--
hmi-Informatik GmbH
Hello everyone.
I am currently having some problems with iterating over an array of objects.
In my action class I have put an array into the session object
(request.getSession().setAttribute(orderedsandwiches,...);)
I would like to loop over these objects in my jsp page.
I am trying to do
Hi
I also had problems with the URL DTD references, and attributed them to our
company firewall.
You can solve the problem by removing the 'DOCTYPE' statement from the XML
documents. What you can do also is copying the DTD directly into the XML,
e.g. for web.xml:
!DOCTYPE web-app [
Hi, i am currently reading up on delegating as much processing as possible to
javabeans components hence i have come across various beans regarding html forms
ie html:select,html:option, logic:iterate etc etc . Pls could anyone explain or
advise were one can get an understanding on selection to
Hi,
Can someone pls send me a sample of how to implement checkboxes? I've tried
to but think I may be missing something in an action class/config
file/bean.
Am having the same problem I had with the drop-down box but am ignoring that
for now
Thanks.
Hi , I have constructed a classpath bbnpa/WEB-INF/classes/org/apache/struts/action
.
Thus within ActionForward.class hence the package name is as
follows
package classes.org.apache.struts.action;
Now is this correct or shpuld the package name simply be package
action;
As i have on numerous
I guess my question has to do with an error response from the EJB
Container too. I'm getting an Error
Response (String) from the EJB Container and I'd like to display it like
I display the other validation errors? Any ideas on how to do that?
This is what I tried so far (which did not work!):
Hi
As a newbie I am trying to run the example app on
Tomcat 3.2.2.
I can login alright but when trying to edit a
subscription, I get the following error:
org.apache.jasper.JasperException: Unable to compile
class for
html:checkbox name=MyForm property=contactbyEmail/
where contactbyEmail is a boolean variable in MyForm
Rehana Sheikh (Contractor) wrote:
Hi,
Can someone pls send me a sample of how to implement checkboxes? I've tried
to but think I may be missing something in an action class/config
I'm often confused about the way I should code the paths in my
Struts application.
I'm trying to write a Struts example application for reuse in
my company.
I've got problems about URL resolving (relative, absolute, ...)
when using framesets along with jsp and other html files.
Is there a way to
Hi Ted,
it would be great if you could also add our company to your list.
http://www.livinglogic.de
mailto:[EMAIL PROTECTED]
We are based in Germany and have gathered quite some experience with this
framework through the course of some projects we have done with it lately.
Thanks a lot.
---
if u putting the orderedsandwiches in the session scope in action class ,
then no Need of having bean:define tag in the JSP .
Also instead of keeping that in the session scope in the action class. U can
very well populate the form bean with the contents of that array
use following in JSP page .
Localization single
source code base for all language versions of your product
you can create your resource file and place it in
the class path, using bean tagtib can refer the resource file.
in web.xml add the resource file
init-param
param-nameapplication/param-name
param-value
Those of you who are using Struts-SilverStream 3.7.X, I have a couple of questions -
1.) How are you getting a connection from the connection pool? Do you use struts
connection pooling, or SilverStreams? (If SilverStreams, any example code on getting a
connection?)
2.) When you deploy
Ryan,
There is a posting on the SS forum silverstream.deployment regarding
accessing the connection pool. It is called Obtaining connection cache in
WAR class and is dated 30/04/01. It is not really 'struts' related as such
but more deployment of a war within SS but we are succesfully deploying
hi Ryan,
1.) How are you getting a connection from the connection
pool? Do you use struts connection pooling, or SilverStreams?
(If SilverStreams, any example code on getting a connection?)
In apps we have built here using Struts, we get our connections from the
Silverstream connection pool.
I used Jbuilder Enterprise 4
-Original Message-
From: David Bolsover [SMTP:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:15 AM
To: Struts User
Subject: JBuilder
Hi
I'm looking to develop a struts based database portal using JBuilder Pro 5
as my development
Hi:
We want to use tokens for sensitive form submissions. It looks like
struts can do this. However, the feature is hidden (at least to me) and
undocumented.
Following David Geary's Advanced JSP book (and somewhat Core J2EE
Patterns by Alur et al.), I would like to set a token when I send
How can I get
html:form name=myform action=index.jsp
to produce
form name=myform action=index.jsp
instead of
form name=myform action=/index.jsp
???
I'm starting to use Struts in my project which has its own controller. All
of my JSPs use relative URLs to this controller. I do not want
Basically:
A forward will use the same request.
A redirect will create a new request.
HTH,
Pete
Holger Wiechert wrote:
Hi,
I know, this is a totally newbie question, but the struts manuals handle this issue
quite marginal.
So, what's the difference between a forward and a
that's a classic portal problem, I've built a container based form
autentication, the user log in then can edit his profile, I want to
use the same ActionClass I use for registration so I have a link that
points to:
myActionClass.do?action=edit
inside the actionclass I've a bean that (when
Hello all,
Please have the patience to go thru'..
Assume that I have 2 pages... test1.jsp and test2.jsp. A link present in
test1.jsp opens up a child window with test2.jsp. I also have the following
in the config file:
action path=/test2
type=com.nri.xenos.uibase.ui.Test2Action
Here is one option:
When you retrieve the data from the database in Test2Action, place it in the
session. Then the next time Test2Action is
executed, check for its existence in the session. If it exists, use it,
otherwise, refresh from the database.
When Test1Action is executed, remove the
Title: RE: JavaBeans creation
try netbeans its a cool ide and its free..
syd
-Original Message-
From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 11:32 PM
To: '[EMAIL PROTECTED]'
Subject: RE: JavaBeans creation
hi
why not trying to use JDeveloper
Can someone tell me if there is a way to configure
an action to match a path regardless of how deep it is in a directory?
That is, I want "/display.do" to be triggered in each case below:
"/charts/display.do""/news/display.do
"/events/outdoors/display.do"
How can I accomplish
this?
I
thought
url-pattern*.do/url-pattern
would
do it.
If
there is another mapping infront of the *.do then *.dowon't get
called.
Here
are some other examples:
servlet-mappingservlet-namewatermelon/servlet-nameurl-pattern/fruit/summer/*/url-pattern/servlet-mapping
Hi,
Our
architecture is close to Model 2 architecture and we are using almost exactly
J2EE Blueprint(s)
with
WebLogic 6.0. I am newbie to Struts and it looks like Struts would fit our
requirements. But we had
a
concern that, Struts supportsbest, only HTML based
Has anyone gotten back to you on this? I'm having the same problem...
-Original Message-
From: Narasimhan, Shyamala [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 9:21 AM
To: [EMAIL PROTECTED]
Subject: specifying multiple forms in an action mapping
hi
i would like
there's any example or tutorial for using the data-source tag
in struts-config.xml?
TIA, matteo
i have followed some old threads about this but see no
resolution to how to map the struts form bean to EJB value objects; they all
seem to allude to a mysterious an non-existent struts 1.1. is it
recommended to do validation from within the form bean and then create a value
object w/the
The short answer is you can't.
Though, you could create a single ActionForm as a wrapper around other
forms and then access them through the infamous dotted syntax.
If that doesn't work for you, if you talked a bit more about why you
want multiple forms, someone may have a better answer ;-)
The ActionMappings, ActionForms, and ActionServlet are very tightly
coupled, and there is not much advantage in trying to use one without
the other two.
You can put he Struts bean and logic tags to good use in other projects,
but the html:form tags really require an ActionForm, ActionServlet,
I am new to Struts, and I have tried to deploy not
only a sample application, but one that I have created
myself. I continue to get the same error, and I was
wondering if anyone could help me with this problem. I
think that something must not be configured correctly.
Location:
One approach is to have more than one ActionMapping leading to the same
Action. To instatiate the form, use a mapping with validate=false, to
insert or update the form, use a mapping with validate=true.
So you might have one mapping to myActionClass (with validate false)
and another to
If you check the documentation for your JDBC driver, the properties you
need to set should be evident given the stock example:
!--
data-sources
data-source
autoCommit=false
description=Example Data Source Configuration
driverClass=org.postgresql.Driver
the application.properties file needs to be in the classpath of the
webserver. depending on the webserver you may have to point to this
resource specifically.
-paul
-Original Message-
From: Java Junkie [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 2:16 PM
To: Struts
Subject:
Hello! I've discovered a bug in the struts initialisation:
If the data source specified in struts-config.xml is not valid, then
the initialisation steps that are normally performed after setting up
the data source are skipped! The steps are below:
2001-07-09 05:23:33 - path=/pt :jsp: init
Jerzy,
Looking at the code of BaseHandlerTag (from which most of the html:...
tags inherit) everything looks in place to handle this attribute (it was
added on June 13th). I suggest you change your copy of the struts-html.tld
to include this attribute and see if it works.
Niall
-Original
Action has a number of methods for transaction tokens [saveToken(),
isTokenValid(), resetToken()] and the example shows use of them (look at
EditRegistration.java and SaveRegistration.java).
You can also specify a transaction=true attribute on the LinkTag so that
the transaction token is
Have you defined the struts-logic.tld at the top of your jsp?
-Original Message-
From: Moons Manuel [mailto:[EMAIL PROTECTED]]
Sent: 09 July 2001 13:43
To: '[EMAIL PROTECTED]'
Subject: iterate problem
Hello everyone.
I am currently having some problems with iterating over an
What JDK are you running on? sounds like 1.1 - you'll either need to get
1.2/1.3 or get the collections.jar (I think thats what its called).
cheers
dim
On Mon, 9 Jul 2001 23:29, David van Coevorden wrote:
Hi
As a newbie I am trying to run the example app on
Tomcat 3.2.2.
I can login
I'm not sure when other ppl do but I create a form bean which takes the value
object in the constructor and delegates. That way its easy to update the
bean with a bulk setter.
cheers
dim
On Tue, 10 Jul 2001 06:54, Paul Beer wrote:
i have followed some old threads about this but see no
Hi
I am using an img( i.e.html:img) for different links of my page. This img is using usemap for these different links.For this situation I could not achieve the URLrewriting when the cookies are disabled.
If I can use html:link instead of href of the area tag of map tag, then the prob would be
If what you want is to have one Action class that can handle input from
multiple forms, then you just need to add a different action mapping in
struts-config.xml for each input form, giving each a distinct path. In the
Action itself, you would need to check to see which kind of form (or which
I wanted to know what you finally decided on
regarding my recent documentation submission. Also, I wanted to know if
you saw the pictorals and thought they were accurate.
Ona side note, I have been
struggling with a struts component that seems simple, yet I am stuck and cant
understand it.
Hi I have a question
My Iterate tag goes like this
logic:iterate id="view"
name="updateOrderForm"property="views"
type="example.testorder.OverDueOrderView"
trtdhtml:text
property='%= "view[" + index+ "]"+".orderNo" %' /
/tdtdhtml:text property='%= "view["+index+
"]"+".salesDiv" %'
Sydney, Australia: Pizza, powered by Struts.
Today, Pizza Hut (tm) began taking Internet orders using a web application
developed by Multitask Consulting.
The site uses WebSphere Application Server 3.5.3, Struts 1.0 and DB2 7.1
running on Windows NT.
Struts was used as the web application
I am experiencing some difficulties trying to upload a file form a form. My
formbean stores the file in a FormFile object.
The problem is that strings passed from the form gets trunchcated while
executing the post request to the server.
If found that what was causing this is the
80 matches
Mail list logo