Thank you.
From: Murray Collingwood [mailto:[EMAIL PROTECTED]
Sent: Mon 9/12/2005 10:49 PM
To: Struts Users Mailing List
Subject: Re: Struts Development Tool
Hi Raj
The main one seems to be Eclipse.
I'm using NetBeans which is a little behind what Eclipse is
I have about 5 messages which will be passed on from my Action - View
(JSP) using ActionMessage. But at any time only one of these five messages
will be displayed in the View.
To accommodate every message in the JSP, Do I have to include this piece
of code repeatedly .
html:messages
Hi if have the following simple example.
A Hashtable is created and used for a options-list.
Is it possible with bean:define to create the
Hashtable without java-code?
When does it make sense to use the bean:define tag in this example
or generally?
Thanks a lot for suggestions
Starki
html
Le Lundi 12 Septembre 2005 16:36, Letícia Álvares Barbalho a écrit :
I did what you suggested and changed from byte[] to String, leaving to
conversion to hibernate's level. It did solve the problem, thank you.
But I'm wondering here... I still got a problem with the charset, don't I?
Well
Just my 2 cents:
We had a horrible/stupid problem creep up on us with the sign extension in
java when working with bytes (which are 2s complement, just like all other
primitive number types). Strange things would happen when the value of the
byte was greater then 127. In hindsight, it was an
hi
I would like to access the DataSource object from a plugin in my Struts
application.
I use struts 1.2 with modules.
In the root struts-config.xml the data source is discribe as :
data-sources
data-source type=org.apache.commons.dbcp.BasicDataSource
key=dataBase1
set-property
hi
Eclipse with the good plugins.
http://www.theserverside.com/news/thread.tss?thread_id=35683
R Rajendran a écrit :
Hi everyone,
Could anyone of you let me know the available Struts Development tools (IDE)
for Windows environment.
Thanks
Raj
Well, actually, as far as I tested, the problem happened for all values
entered. I suppose the real reason is like David said: probably struts
doesn't make the conversion, or at least doesn't make the right conversion.
I wrote converter functions and so far they are working well. So I suppose
Hi,
When I connect Struts to Postgresql 8.0 database using DataSource object I get
the following error messages:
Source:
DataSource dataSource = null;
try {
dataSource = getDataSource(request);
conn = dataSource.getConnection();
stmt = conn.createStatement();
String
Hi all.,
I have a problem with passing parameter from JSP to Servelt.
I am passing the meetingId ,memberId , userName , password these four
parameres to Servelt.
'password' is one way hashed format, i get it from DataBase and passing by URL
encoding like follows.
Hi Senthil,
You will have to encode the password. Have a look at the Jakarta commons
codec library http://jakarta.apache.org/commons/codec/, they have a
org.apache.commons.codec.net.URLCodec that should help you.
Yours truly,
Ron
-Original Message-
From: senthil Kumar [mailto:[EMAIL
On 9/13/05, David G. Friedman [EMAIL PROTECTED] wrote:
Raj,
Have you double checked that you can reach it from the command line on the
server BEFORE trying it in Tomcat? I've encountered problems where a slight
mistake in the MySQL configuration often causes this problem, not usually
the
It works fine with command line. I could connect to the db and query.
Thanks
Raj
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Tue 9/13/2005 5:00 AM
To: Struts Users Mailing List
Subject: RE: Struts to Postgresql db connection refused
Raj,
Have
I tried this command it works:
psql -Upostgres -d omsdb -h 192.168.1.22 -p 5432
Thanks
Raj
From: Adrian Maier [mailto:[EMAIL PROTECTED]
Sent: Tue 9/13/2005 5:24 AM
To: Struts Users Mailing List
Subject: Re: Struts to Postgresql db connection refused
On
The problem is most certainly a problem with access right (ref. pg_hba.conf)...
So this problem is not really a Struts problem; you should learn how to use the
PostgreSQL
server before you try to use it from Struts
BTJ
R Rajendran wrote:
I tried this command it works:
psql -Upostgres
I heard that Exadel Studio 3 supports Eclipse 3.1.
[EMAIL PROTECTED] 9/9/2005 9:26:30 AM
I've used myeclipse for 6-9 months and I've really come to like the
JSP and XML editors. I've found the Struts editing to be useless
unless your project is set up exactly the way the plugin expects it to
Now, we're a friendly lot here and all, but what does this message
have to do with Struts?
Of course, I'm not helping things to point out to you that JavaScript
has built-in functions for encoding and decoding URIs, and any time
you construct a URL, you should be sure to encode your parameter
On 9/13/05, David G. Friedman [EMAIL PROTECTED] wrote:
Raj,
Have you double checked that you can reach it from the command line on the
server BEFORE trying it in Tomcat? I've encountered problems where a slight
mistake in the MySQL configuration often causes this problem, not usually
the
I am running into a class hierarchy mismatch with taglibs and jasper2 out
of tomcat 5.5 and precompiling jsp pages built with the struts taglibs.
I have:
Jboss AS 4.0.2
Tomcat 5.5 (bundled)
Struts 1.2.4
The error I am getting at compile time is:
[javac]
Thibault-
/*This is straight from the Struts doc available at*/
http://www.jajakarta.org/struts/struts1.2/documentation/ja/target/faqs/database.html
/*for a single DataSource*/
public ActionForward
execute(ActionMapping mapping,
ActionForm form,
Martin
you are in an action therefore you have getDataSource(request) available
but i am in a plugin therefore i don't have request element.
Any idea ?
Thibaut
Martin Gainty a écrit :
Thibault-
/*This is straight from the Struts doc available at*/
Hi!
You would normally populate the list in an action not in the jsp.
Tamas
On 9/13/05, starki78 [EMAIL PROTECTED] wrote:
Hi if have the following simple example.
A Hashtable is created and used for a options-list.
Is it possible with bean:define to create the
Hashtable without
Hi,
I am working on a project that uses Tiles and Structs.
I have the following Tiles definition;
!-- Menu definition --
definition name=Infra.WebComponemt.AdminMenuItems
path=/Infra/WebComponemt/Layouts/menuLayout.jsp
put name=title value=User Administration Menu /
form name=next action=/jsp/awp/awpoutput.jsp target=display /
script language=javascript
document.next.submit();
/script
The problem I have is that the form tag in Struts has no name!
Why?
So how can I execute the java-script? Which name should I use instead?
Regards
Antonio
gollinger wrote:
form name=next action=/jsp/awp/awpoutput.jsp target=display /
script language=javascript
document.next.submit();
/script
The problem I have is that the form tag in Struts has no name!
Why?
So how can I execute the java-script? Which name should I use instead?
Regards
Clark-
Ant has not upgraded the JSPC task for the JSP Servlet 2.0 spec as of yet to
quote
There are known problems with Tomcat 5.x that won't get fixed in Ant,
please use Tomcat's jspc task instead.
The latest version of Tomcat 5.x supports JSP Servlet 2.0 via the Jasper2
task from Tomcat
Hello Thibault
You will want to set this up in your init method of your plugin
so if your DataSource is setup with a key parameter is already identified as
database1
data-sources
data-source type=org.apache.commons.dbcp.BasicDataSource
key=dataBase1
set-property
Jason-
If there is no name associated with your declared HTML form then use
document.forms[0] (basically the first form defined for the HTML document)
Personally I caution against using this convention as the caller does not
properly identify the form (by name)
Anyone else ?
M-
- Original
I'll agree that's a poor answer. The best answer is to fix the tag so
it always generates a name, but sometimes a fast answer is the one you
have to take.
Martin Gainty wrote:
Jason-
If there is no name associated with your declared HTML form then use
document.forms[0] (basically the first
Hi,
If you use the struts form tag, this will use the name of your form bean set within your
struts-config for the action you are posting too.
Regards,
Gareth
Martin Gainty wrote:
Jason-
If there is no name associated with your declared HTML form then use
document.forms[0] (basically the
Greetings
I am very pleased to announce that the ``Struts / JSF London Network''
is meeting for the twelfth bird-of-feather discussions
This event will be taking place at the
``Belgo Central Restaurant'' at 6:45PM on Tuesday, 20th September, 2005.
50 Earlham Street,
Covent Garden,
London,
Yep. Shoot me. DUH! That's what I get for getting
up early and reading my e-mail first thing in the
morning.
Do I win the 'dork of the day award' if I say 'DOH! ?
Regards,
David
-Original Message-
From: Adrian Maier [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 8:24 AM
At 11:10 AM 9/13/2005, Martin Gainty wrote:
Clark-
Ant has not upgraded the JSPC task for the JSP Servlet 2.0 spec as of yet
to quote
There are known problems with Tomcat 5.x that won't get fixed in Ant,
please use Tomcat's jspc task instead.
Yup, been there, gotten it to work for a while
Raj.
You can also download WWW.STRUTSBOX.DE for eclipse 3.1
Regards
Steve
-Original Message-
From: R Rajendran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 12:09 AM
To: Struts Users Mailing List
Subject: RE: Struts Development Tool
Thank you.
Any idea?
Xavier Vanderstukken wrote:
I have a jsp page with 3links :
- One open a popup and write a file in this popup
- One to display some text informations on the same page
- One to upload a file to the server (in fact the file displayed in
the first link)
The three link seems to work
Here in Brazil we have egen and jCompany.
http://www.powerlogic.com.br - I think this portal is still only in
portuguese - an IDE made based in Eclipse.
http://www.egen.com.br/ - This is a very good IDE.
an opensource option is the Netbeans 5.0
Hope that it helps
Rafael Mauricio Nami
try this http://www.exadel.com,
2005/9/14, Steve Beaver [EMAIL PROTECTED]:
Raj.
You can also download WWW.STRUTSBOX.DE http://WWW.STRUTSBOX.DE for
eclipse 3.1
Regards
Steve
-Original Message-
From: R Rajendran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005
Hi,
Its a good suggestion but I still can't get it to work,
My JPP code is:
html:select property=ccy styleClass=dropdown styleId=ccy
[EMAIL PROTECTED] wrote:
It's a good suggestion but I still can't get it to work,
My JPP code is:
html:select property=ccy styleClass=dropdown styleId=ccy
Why do you write that your Struts Action is the place that your code is
printing the raw file yet your stack trace shows you are in a JSP? Is your
JSP invoking an action? If so that's your problem: everything is probably
already committed, Stream-wise that is. How are you getting to this action
Clark-
The only way I know you can achieve 100% compatibility would be if
You recompile the entire struts package library with J2SE 5.0
which means compiling
TagLibs, JSP Pages and Servlet, external providers and jars (basically
everything) with the 5.0 JDK to conform to the 2.0 JSP Servlet
David-
Oracle JDeveloper has good support for Struts check out the MVC example code
located at
http://www.oracle.com/technology/oramag/oracle/04-sep/o54jdev.html
HTH,
Martin-
- Original Message -
From: david van [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
The problem occurs after a click on this link :
html:link href=#
onclick=window.open('getContent.do?searchid=${id}childrentype=FOO');
styleId=simplelink
But also if I manually call the action on a new browser tab.
The getContent.do write a datahandler to the stream :
Is there a way to display all inputs/textareas of a struts form as plain
text for a printer-friendly version of a page?
This would be similar to how the readonly attribute of a form currently
works in struts, by changing all fields to readonly. However, in this case,
I am looking for
Im not sure how to do this in struts, although you could use JSTL to
print out only the values for 'print' version and the actual inputs, etc
for the live version...
Very simple example:
c:choose
c:when test=${myValue=='print'}
${myValue}
/c:when
c:otherwise
html:text name=name
Xavier,
Does getContent.do return anything? I ask because your error was shown to
be JSP level, not servlet level. Are you returning 'null' from your action
or do you invoke a forward to go to a JSP after you have closed
your output stream with os.close() ? At that point I expect
Hi,
I've tried quite a number of variations on this including the one
suggested in the previous email but no joy so far. This variant:
html:select property=ccy styleClass=dropdown
styleId=ccyLst
getContent.do return null
Here is the stack after a click on the link that open the popup, what is
the meaning of href=# ? Is it reloading the current page? Because
getContent.do returns null however I found reference to tile, tags in
the stack?
13-sept.-2005 23:26:16
Try adding a 'return false;' to the end of your a tag's onClick method to
prevent submits back to the server.
Regards,
David
-Original Message-
From: Xavier Vanderstukken [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 5:30 PM
To: Struts Users Mailing List
Subject: Re: Target
If there is no name associated with your declared HTML form then use
document.forms[0] (basically the first form defined for the HTML document)
Personally I caution against using this convention as the caller does not
properly identify the form (by name)
Hi Martin!
Why do you caution
It's generally something to avoid because you may at some point change
the order of your forms and then find that your code no longer works.
Think of what happens if you put a form before this one later... now the
form you want is actually form[1], and things break until you find and
change
Hi there,
How can I add some parameters to redirected forwards? I have situation like
this: saveItem.do saves some object to the database and redirects to
showSavedItem.do, which is based on itemId in request parameter (passed
usually by URL). I want to make this as a redirect to prevent
Hi Wojtek,
You'll need to return an ActionRedirect (subclass of ActionForward).
This class includes an addParameter() method. You can use the
constructor to copy the ActionConfig you get from mapping.findForward(),
i.e.:
ActionRedirect ar = new
On 9/14/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
It's generally something to avoid because you may at some point change
the order of your forms and then find that your code no longer works.
Think of what happens if you put a form before this one later... now the
form you want is
THX :]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Anuradha S.Athreya wrote:
I have about 5 messages which will be passed on from my Action - View
(JSP) using ActionMessage. But at any time only one of these five messages
will be displayed in the View.
To accommodate every message in the JSP, Do I have to include this piece
of code repeatedly .
I'm not sure what you're trying to achieve here. At what point do you
want the URL to remain hidden? What you have below just controls what
gets rendered on the HTML page. The address bar will contain the URL
used to get that page, not the URL to UsersAdministrationPage.jsp, or
any other link
I'm not sure about this; at worst, wouldn't it be sufficient to
recompile just the Struts taglibs against the Servlet 2.4 / JSP 2.0
APIs? There should be no need to upgrade to J2SE 5 or to recompile any
other part of Struts as far as I can see.
That being said, I'm not sure any of this is
Thanks Niall, yes, that's exactly what I'm talking about (thanks for the
link).
OK, so the issue is the impact on backwards compatibility if the tags
change such that empty values suppress attribute rendering. One
possibility would be to test for null or empty string, without trimming.
That
Jeff Deskins wrote:
Is there a way to display all inputs/textareas of a struts form as plain
text for a printer-friendly version of a page?
This would be similar to how the readonly attribute of a form currently
works in struts, by changing all fields to readonly. However, in this case,
I am
Are you sure about this? According to the API docs for both the 1.6.1
and the 1.7.0 releases of BeanUtils RowSetDynaClass does define a
getRows() method. So, either ccyLst identifies a bean of some other type
or it's set to null.
How is ccyLst defined and initialized?
L.
[EMAIL PROTECTED]
Tamas Szabo wrote:
Isn't there a struts tag which for a given action path it gives me the
name of the associated form?
No there isn't, though it'd be trivial to write. What you can do,
though, is something like this:
bean:define id=formTag name=org.apache.struts.taglib.html.FORM/
I agree, not trimming!
Personally I don't have a problem with making the change (i.e. checking for
zero length strings) in the html taglib, since an easy one line change will
catch alot of them. I'm not that interested in doing it for the other
taglibs though.
The way to do it would be to attach
Laurie Harper wrote:
Why do you say that's a bad practice? It's actually both supported and
recommended; in fact, the 'name' attribute is deprecated in favour of
the 'id' attribute so 'id' is the only way to target CSS to a particular
page element rather than an entire display class.
...
Xavier Vanderstukken wrote:
IS that class really performs a redirect request?
Can I use the setRedirect method to false to performs a forward with
parameters?
Interesting question... someone can correct me if I'm wrong, but I
believe the answer is no. Well, to be more precise, you *may* be
With return false; the problem still occurs :
java.lang.IllegalStateException: getOutputStream() a déjà été appelé pour
cette réponse
org.apache.catalina.connector.Response.getWriter(Response.java:596)
66 matches
Mail list logo