Re: I get exception : Path http://www.mywebsite.com/ does not start with a "/" character

2006-04-04 Thread Antonio Petrelli
Legolas Woodland ha scritto: The server return an exception like : java.lang.IllegalArgumentException: Path http://www.mysite.com/ does not start with a "/" character ... forward="forwarder"; return mapping.findForward( forward ); } } Please post your action mappi

RE: Displaying messages from multiple resource bundles

2006-04-04 Thread Anuradha S.Athreya
As I mentioned earlier, I do have entries for difference bundles in the struts-config.xml, I have a common Message.jsp which displays a message(s) created during request processing. This message should be picked up from the bundle it belongs to. I don't want to specify the key value here since

RE: Displaying messages from multiple resource bundles

2006-04-04 Thread Rakesh.Bhat
Hi Using the struts-config.xml file to configure your message resources is preferred as it gives you quite a bit of additional flexibility: You can list multiple message-resources tags to load messages from multiple files. If you do this, use the key attribute to give a unique name to each bundl

Displaying messages from multiple resource bundles

2006-04-04 Thread Anuradha S.Athreya
I am displaying messages in JSP using resource bundle. I have 2 separate bundles. Depending on the message I would like it to be picked up from the particular bundle to which that message belongs to. How do I specify the multiple bundles? this doesnt seem to work:

Re: Struts and AJAX

2006-04-04 Thread Frank W. Zammetti
Struts Wiki page: http://wiki.apache.org/struts/AjaxStruts See especially the article referenced on this page for a decent introduction as well as example Struts app. Probably the best starting point. After that, have a look at AjaxTags here: http://javawebparts.sourceforge.net (Click jav

RE: Struts and AJAX

2006-04-04 Thread Rakesh.Bhat
This http://www.omnytex.com/articles/xhrstruts/ might help u. Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - "Add Value Reduce Risk" www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : +91(080) 5759-6873 Emai

Struts and AJAX

2006-04-04 Thread thamizh arasu
Hi, I have developed application with struts. now i want to use ajax in my struts application. using ajax we can avoid refreshing the whole page. instead of that it enough to refresh the part of the page. I like this functionality. if any one know the way to start struts with ajax please let m

Re: Some questions

2006-04-04 Thread Frank W. Zammetti
Sorry, I didn't see these questions initially... 1) I tried using Eclipse, as I've always did, for developing. What IDE do you suggest? It's a matter of opinion. Certainly Eclipse is very popular. IDEA is also pretty popular around these parts. NetBeans has a bit of a following. The only

Re: Some questions

2006-04-04 Thread Kimani Darisha
u should ignore this guy, he has never wrote a single web application. On 4/4/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: > Mário Lopes wrote: > > Hi. > > > > First off, a little bit of my background. I've been developing with > > Java for a long time now. None of it was web based development.

Re: Is there a struts Taglib document?

2006-04-04 Thread Frank W. Zammetti
http://struts.apache.org/struts-taglib/index.html red phoenix wrote: Is there a struts taglib document about ,,,the chm file form is better. If you have it,please give it to me. Thanks! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM:

Is there a struts Taglib document?

2006-04-04 Thread red phoenix
Is there a struts taglib document about ,,,the chm file form is better. If you have it,please give it to me. Thanks!

Re: Some questions

2006-04-04 Thread Frank W. Zammetti
Jonathan Revusky wrote: For starters, development on Struts 1.x, a.k.a. Struts Classic, has been more or less stagnant since about 2002. Umm, since we all like dealing with "facts that are not in dispute"... Struts 1.0, released June 2001 Struts 1.0.1, released January 2002 Struts 1.02, relea

Re: Some questions

2006-04-04 Thread Jonathan Revusky
Mário Lopes wrote: Hi. First off, a little bit of my background. I've been developing with Java for a long time now. None of it was web based development. On this field, I've programmed with PHP, .NET, Ruby on Rails, Python, etc.. Now that I'm encharged of developing a Java/JSP/Servlets applica

Re: how to get the version of struts during runtime

2006-04-04 Thread Ted Husted
On 4/4/06, Ted Husted <[EMAIL PROTECTED]> wrote: > For the minor version number (1.1, 1.2, 1.3), you could check the DTD, > but I don't know of a reliable way to check for milestones (1.2.8 > versus 1.2.9). > > -Ted. Actually, I take that back. You could check the manifest.mf file in the JAR and e

Re: how to get the version of struts during runtime

2006-04-04 Thread Ted Husted
For the minor version number (1.1, 1.2, 1.3), you could check the DTD, but I don't know of a reliable way to check for milestones (1.2.8 versus 1.2.9). -Ted. On 4/4/06, Günther Wieser <[EMAIL PROTECTED]> wrote: > hi, > > i would need to check the version of struts running during runtime, to be >

Re: [OT] Best way to serve PDF with iText

2006-04-04 Thread Dave Newton
Garner Shawn wrote: > Only think I can think of is that as a servlet the it wouldn't have > access to the struts user session data Why not? Is there more than one session? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For

[OT] Best way to serve PDF with iText

2006-04-04 Thread Garner Shawn
I was wondering if anyone could give me any pros or cons of serving a dynamically generated PDF file via a servlet or a struts action. Only think I can think of is that as a servlet the it wouldn't have access to the struts user session data and would have to post necessary information for it to s

Re: how to get the version of struts during runtime

2006-04-04 Thread Leon Rosenberg
On 4/4/06, Günther Wieser <[EMAIL PROTECTED]> wrote: > hi, > > i would need to check the version of struts running during runtime, to be > more specific when my derived action servlet runs through its init method > (derived from ActionServlet of course). > reason is, if the minor version has change

Re: [OT] Filter Help!

2006-04-04 Thread Matthew Vincent
Hello everyone, If this is not the right place to post this could you please let me know where. I have searched the forums and Google and cannot find an answer. I have a Servlet filter that checks to see the content length of the request. long contentLength = request.getContentLength(); I

I get exception : Path http://www.mywebsite.com/ does not start with a "/" character

2006-04-04 Thread Legolas Woodland
Hi Thank you for reading my post when i click on some of my links in the web application The server return an exception like : java.lang.IllegalArgumentException: Path http://www.mysite.com/ does not start with a "/" character org.apache.struts.action.RequestProcessor.doForward(RequestProcessor

Re: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Michael Jouravlev
On 4/4/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > Thanx for the answer, where in documenation is it > written that styleId is id?? Current Struts website is too busy and font in the left menu is too small, which is especially striking comparing to gigantic wiki font. "JSP Taglib" is l

Re: Has anyone intregrated DWR with AJAX?

2006-04-04 Thread Joe Germuska
At 11:31 AM -0700 4/4/06, Ashish Kulkarni wrote: hi I have a website which is developed using struts, I am looking to convert some of it to AJAX and working on different approaches, In my current application, i have a common Action class which has all the common functions like getting the informa

Re: Has anyone intregrated DWR with AJAX?

2006-04-04 Thread Greg Ludington
You may want to ask this on the DWR users list; in version 1.1 there is some support for accessing form beans directly from DWR. The base documentation page for DWR/Struts is here: http://getahead.ltd.uk/dwr/server/struts On 4/4/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > hi > I have a webs

Has anyone intregrated DWR with AJAX?

2006-04-04 Thread Ashish Kulkarni
hi I have a website which is developed using struts, I am looking to convert some of it to AJAX and working on different approaches, In my current application, i have a common Action class which has all the common functions like getting the information stored in ServletContext, or Session or getti

Re: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Dave Newton
Ashish Kulkarni wrote: > where in documenation is it written that styleId is id?? > http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-html.html#text "Identifier to be assigned to this HTML element (renders an "id" attribute)." Dave -

RE: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Slattery, Tim - BLS
> Thanx for the answer, where in documenation is it > written that styleId is id?? http://struts.apache.org/struts-taglib/tagreference-struts-html.html#htm l:text -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EM

RE: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Ashish Kulkarni
Hi Thanx for the answer, where in documenation is it written that styleId is id?? Ashish --- "Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote: > > I am trying to do a test application using struts, > DWR > > I am having problem with document.getElementById > > method in javascript, this works fin

get info error

2006-04-04 Thread Angel Navarro
Hi, in my struts web application have (web.xml): java.lang.Throwable /templates/error/error.jsp and i want to get the description error in error.jsp. in logging file have: java.lang.Throwable: Could not complete parsing, unmatched tags: html at weblogic.servlet.jsp

RE: Issue while migrating from 1.0 to 1.1

2006-04-04 Thread Slattery, Tim - BLS
> Which outputs > ae.size()=1 > error.mandatory.login.password > > So, the issue is with the tag itself So the errors collection is getting stored in the right place. I think we have to look at your properties file. Apparently the tag is finding *some* properties file, since i

RE: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Slattery, Tim - BLS
> I am trying to do a test application using struts, DWR > I am having problem with document.getElementById > method in javascript, this works fine in IE 6.0 and > opera > I am using struts tag > > > and then in my javascript doing the following > document.getElementById('last').value= data; >

issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Ashish Kulkarni
Hi I am trying to do a test application using struts, DWR I am having problem with document.getElementById method in javascript, this works fine in IE 6.0 and opera I am using struts tag and then in my javascript doing the following document.getElementById('last').value= data; Firefox gives me

RE: Issue while migrating from 1.0 to 1.1

2006-04-04 Thread Olivier Citeau
In fact there is always an actionError object. When trying to debug I used request.getParameterNames instead of request.getAttributeNames So using <% org.apache.struts.action.ActionErrors ae = (org.apache.struts.action.ActionErrors)request.getAttribute(org.apache.struts.Globals.ERROR

how to get the version of struts during runtime

2006-04-04 Thread Günther Wieser
hi, i would need to check the version of struts running during runtime, to be more specific when my derived action servlet runs through its init method (derived from ActionServlet of course). reason is, if the minor version has changed, a warning should be written to the logs; if a major change of

Re: action not work

2006-04-04 Thread Antonio Petrelli
Dave Newton ha scritto: Antonio Petrelli wrote: red phoenix ha scritto: when I use http://localhost:8080/B.do, it can work. Uh? Are you sure? It should be http://localhost:8080/webappName/B.do Not if you're deploying to the root webapp. Uh right... Too few hours spen

Re: action not work

2006-04-04 Thread Dave Newton
Antonio Petrelli wrote: > red phoenix ha scritto: >> when I use http://localhost:8080/B.do, it can work. > Uh? Are you sure? It should be http://localhost:8080/webappName/B.do Not if you're deploying to the root webapp. Dave -

RE: Issue while migrating from 1.0 to 1.1

2006-04-04 Thread Olivier Citeau
Hi Tim, In fact no action is involved, only a form and a jsp. In struts-config.xml I have validate=true So Struts calls from.validate() which returns a non empty ActionErrors object. Since ActionErrors object is non empty, both version of Struts redirect to the same jsp page and do

Re: Error while configure struts Datasource

2006-04-04 Thread Antonio Petrelli
red phoenix ha scritto: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource Google is your friend. Search: org.apache.commons.dbcp.BasicDataSource The first result is a javadoc page, the second if the homepage of Jakarta Commons DBCP: http://jakarta.apache.org/commons

Re: action not work

2006-04-04 Thread Antonio Petrelli
red phoenix ha scritto: I have a submit button in A.jsp,and I want to submit to B.do from A.jsp,but when I click this submit button,it should submit to B.do and show some information on screen,but in fact it doesn't work, What do you mean by "it doesn't work"? It is a 404, a 500, what? when I

DynaValidator* examples?

2006-04-04 Thread Brian Long
Hello All. I'm using Struts 1.2.9 and Tiles. Can anyone point me at a decent example of using multi-page forms with one of the DynaValidator* classes? Thanks in advance, -Brian -- Brian M. Long Middleware Services, Virginia Tech "Ancora Imparo (I am still learning)" - Michaelangelo, age 87

Re: NullPointerException in while initializing message resource

2006-04-04 Thread RathinaGanesh MeenakshiSundaram
Hi, You should specify the full package location of the message-resource file.. The parameter should be like this.. Hope this helps..! Thanks, Ganesh. On 4/4/06, Ramkumar Krishnan <[EMAIL PROTECTED]> wrote: > > Hi All, > I am getting Null PointerException when i tried to view my login page.

RE: Issue while migrating from 1.0 to 1.1

2006-04-04 Thread Slattery, Tim - BLS
> Now here is my issue. > In the form, if the user forgets a mandatory field, I do > something like : > errors.add (... > ... > return errors If I'm following correctly, this returns an ActionErrors collection to your Action. > I do not use saveErrors(), because I use it only i

Re: Error Message on Tomcat when classes are put in shared-Folder

2006-04-04 Thread Wendy Smoak
On 4/4/06, starki78 <[EMAIL PROTECTED]> wrote: > I've classes within a web-application and everything works fine. > > Then I put these classes to the shared folder, I get this error: > > java.lang.NullPointerException > > org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils

Error Message on Tomcat when classes are put in shared-Folder

2006-04-04 Thread starki78
Hello! I've classes within a web-application and everything works fine. Then I put these classes to the shared folder, I get this error: java.lang.NullPointerException org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1161) org.apache.struts.taglib.TagUt

Re: Switch Action

2006-04-04 Thread Ted Husted
On 4/4/06, Sahil Gupta <[EMAIL PROTECTED]> wrote: > Hi, > > Can anyone tell me how to use Switch Action in my project. My project > consists of more than one module and I need to forward from one to > another file in different modules. > > Are there any good links available to get more information

Re: Some questions

2006-04-04 Thread Mário Lopes
Thank you for your suggestions, I hope they'll increase my productivity! :-) Regards, Mário Lopes On 4/4/06, Bart Busschots <[EMAIL PROTECTED]> wrote: > Mário Lopes wrote: > > Hi. > > > > First off, a little bit of my background. I've been developing with > > Java for a long time now. None of it

[ANN] JAVAWUG BOF XVII / Thursday 20th April 2006 @ 19:00 / Oracl e City of London

2006-04-04 Thread Pilgrim, Peter
Dear All I would like to formally announce that JAVAWUG (Java Web User Group) is holding the seventeenth Birds-of-Feather (Meet up XVII) at the Oracle City of London offices on Thursday, 20th April 2006. The meeting will take place in a room with Audio/Visual facilities between 7-9:30 pm. Ther

Re: Some questions

2006-04-04 Thread Bart Busschots
Mário Lopes wrote: Hi. First off, a little bit of my background. I've been developing with Java for a long time now. None of it was web based development. On this field, I've programmed with PHP, .NET, Ruby on Rails, Python, etc.. Now that I'm encharged of developing a Java/JSP/Servlets applica

Re: how to use message resource key for href

2006-04-04 Thread Vinit Sharma
But I faced a problem with the fmt tag, the variable link contains the key instead of the text value. Any clue?? On 4/4/06, Vinit Sharma <[EMAIL PROTECTED]> wrote: > > Thanks, > > I used a in combination with . But fmt tag looks > neat. > > :) > > > On 4/4/06, Nicolas De Loof < [EMAIL PROTECTED]

Re: Some questions

2006-04-04 Thread Manfred Wolff
On 4/4/06, Mário Lopes <[EMAIL PROTECTED]> wrote: >>Hi. >> >>1) I tried using Eclipse, as I've always did, for developing. What IDE >>do you suggest? >> >> Eclipse is a good choice. >>2) I noticed that each time I did a simple change I had to build with >>ant to package a .war and then res

Re: how to use message resource key for href

2006-04-04 Thread Vinit Sharma
Thanks, I used a in combination with . But fmt tag looks neat. :) On 4/4/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: > > > Perhaps somethig like this may work : > > > > Some text > > > Nico. > > Vinit Sharma a écrit : > > Hi, > > > > My requirement is to use a message resource key for html:

Re: how to use message resource key for href

2006-04-04 Thread Nicolas De Loof
Perhaps somethig like this may work : Some text Nico. Vinit Sharma a écrit : Hi, My requirement is to use a message resource key for html:link href attribute instead of passing a hardcoded value. Below: Some text I want to replace, ${item.link} with a key from resource file, btw my ${

NullPointerException in while initializing message resource

2006-04-04 Thread Ramkumar Krishnan
Hi All, I am getting Null PointerException when i tried to view my login page. Struts is not able to find the message resources. This is configuration in my struts-config.xml i am getting java.lang.NullPointerException at org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java

how to use message resource key for href

2006-04-04 Thread Vinit Sharma
Hi, My requirement is to use a message resource key for html:link href attribute instead of passing a hardcoded value. Below: Some text I want to replace, ${item.link} with a key from resource file, btw my ${ item.link} returns a key only. Can some one give an insight. Thanks, -- Vinit Shar