Re: why do we need to create packages

2006-06-06 Thread Antonio Petrelli
vijay r ha scritto: That's fine. I know why packages are for. But why is it necessary to create packages to keep our ActionForm classes, Action classes. Name collision is the problem which the development team has to tackle. What if the development team decides to name classes starting with their

RE: why do we need to create packages

2006-06-06 Thread Sharadha Yadav
Problem could be that the class you are creating is of the same name as the packages that get included as part of API ..that's what comes to my mind Thanks and Regards, Sharadha Yadav M.S. Infosys Technology Ltd. -Original Message- From: vijay r [mailto:[EMAIL PROTECTED] Sent: Wed

RE: [shale] extending clay

2006-06-06 Thread hermod.opstvedt
Hi What would be really nice is if you would make the plugin publically available. Hermod -Original Message- From: Ryan Wynn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 5:11 AM To: Struts User Subject: [shale] extending clay I'm writing an eclipse plugin to create a visua

Re: why do we need to create packages

2006-06-06 Thread vijay r
That's fine. I know why packages are for. But why is it necessary to create packages to keep our ActionForm classes, Action classes. Name collision is the problem which the development team has to tackle. What if the development team decides to name classes starting with their Employee ID, probabi

RE: why do we need to create packages

2006-06-06 Thread Sharadha Yadav
Packages are created to avoid collision in namespace... Supposing you have two different classes with same name, you need to associate the class with a package to make clear that the class comes from a particular package... Thanks and Regards, Sharadha Yadav M.S. Infosys Technology Ltd.

why do we need to create packages

2006-06-06 Thread vijay r
Hello, I was wondering why do we need to create packages to keep our ActionForms, Action classes. Can't we do without creating packages. I created the .class files in WEB-INF\classes directory and gave no package names in struts-config.xml file. It gave NullPoniterException - Error creating form

Re: html:text inside a custom tag

2006-06-06 Thread Hanmay Udgiri
I could not get both Dave and Scott Can u explain more briefly On 6/7/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Hanmay Udgiri wrote: > Hi > Can we use bean:message in the custom tag java class(in the doStartTag > method) > You could use a JSP-based tag instead of a Java tag, let's say /WEB-

Re: [shale] extending clay

2006-06-06 Thread Ryan Wynn
Attached is my modified ClayXmlParser which digests description elements and sets them into extended ComponentBeans. My mistake, forgot to add digester rules for attributes and symbols. Attached is the fixed version. package clay_plugin.parser; import java.io.IOException; import java.io.InputSt

Re: [shale] extending clay

2006-06-06 Thread Ryan Wynn
On 6/6/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: >From: "Ryan Wynn" <[EMAIL PROTECTED]> > I have had to work around the use of private instance variables in a > couple other scenarios in trying to build this plugin. I was just > wondering if anyone was opposed to changing some of these instanc

Re: Action Mapping

2006-06-06 Thread Joe Germuska
At 3:00 PM -0700 6/6/06, James Bost wrote: I am working on URL cleaning in my struts web application. How can I create a custom ActionMapper and how to use it? If you're talking about Struts 1.x, there's no ActionMapper class, and ActionMapping is more like a configuration object than a piece

Re: [shale] extending clay

2006-06-06 Thread Gary VanMatre
>From: "Ryan Wynn" <[EMAIL PROTECTED]> > > I'm writing an eclipse plugin to create a visual builder for clay > components. What I would like to do is extend the ClayXmlParser to > add a rule that will capture the description from the xml and set in > into the ComponentBean. The reason I want to

[shale] extending clay

2006-06-06 Thread Ryan Wynn
I'm writing an eclipse plugin to create a visual builder for clay components. What I would like to do is extend the ClayXmlParser to add a rule that will capture the description from the xml and set in into the ComponentBean. The reason I want to be able to do this is to display the description

Re: [shale] - Dialog issues

2006-06-06 Thread Craig McClanahan
On 6/6/06, Greg Allen <[EMAIL PROTECTED]> wrote: > That's really odd ... the "no matching navigation cases" is coming from the > MyFaces navigation handler implementation ... but, if you are within a > dialog, Shale should never have delegated to the default one in the first > place. Ar

Re: processCachedMessages in 1.3.x

2006-06-06 Thread Michael Jouravlev
On 6/6/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: On 6/6/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > What action or command in 1.3.x corresponds to > RequestProcessor.processCachedMessages() from 1.2.x ? I looked at the > source code of 1.3.2 snapshot but could not find the appropriate

RE: [shale] - Dialog issues

2006-06-06 Thread Greg Allen
> That's really odd ... the "no matching navigation cases" is coming from the > MyFaces navigation handler implementation ... but, if you are within a > dialog, Shale should never have delegated to the default one in the first > place. Are you sure that you correctly entered the dialog

Re: processCachedMessages in 1.3.x

2006-06-06 Thread Niall Pemberton
On 6/6/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: What action or command in 1.3.x corresponds to RequestProcessor.processCachedMessages() from 1.2.x ? I looked at the source code of 1.3.2 snapshot but could not find the appropriate class. Good catch, its missing. Niall Thanks, Michae

Re: html:text inside a custom tag

2006-06-06 Thread Scott Van Wart
Hanmay Udgiri wrote: Hi Can we use bean:message in the custom tag java class(in the doStartTag method) You could use a JSP-based tag instead of a Java tag, let's say /WEB-INF/tags/mytag.tag: <%@ taglib uri="/tags/struts-bean" prefix="bean" %> - Scott

Re: content-type

2006-06-06 Thread Scott Van Wart
Leo Asanov wrote: This wouldn't work for me because content type have to be different under different circumstances, but response.setContentType works just fine. Thanks!! Be very careful with this, as if you send anything but a text-based content type, you could be in for a surprise. The JS

Re: [shale] - Dialog issues

2006-06-06 Thread Craig McClanahan
On 6/6/06, Greg Allen <[EMAIL PROTECTED]> wrote: I am having some problems with the shale dialogs. I have defined my dialogs (correctly, I believe) in the dialog-config.xml as follows: However, when I successfully authentica

processCachedMessages in 1.3.x

2006-06-06 Thread Michael Jouravlev
What action or command in 1.3.x corresponds to RequestProcessor.processCachedMessages() from 1.2.x ? I looked at the source code of 1.3.2 snapshot but could not find the appropriate class. Thanks, Michael. - To unsubscribe, e-

Action Mapping

2006-06-06 Thread James Bost
I am working on URL cleaning in my struts web application. How can I create a custom ActionMapper and how to use it? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: [shale] subviews with backing beans

2006-06-06 Thread Craig McClanahan
On 6/6/06, Bahadır Yağan <[EMAIL PROTECTED]> wrote: Hi. With shale's ViewController a managed bean named "index" is automatically associated with index.jsp. What I need is to have the same for subviews. Say, I included "loginForm.jsp" from index.jsp, is it possible to have the same association

Format USDollars

2006-06-06 Thread Raghuveer
How to format Money Data type(SQL server )by below format for USD. $x,xxx,xxx,xxx.xx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Image change on error

2006-06-06 Thread Samere, Adam J
The message attribute is a boolean indicated whether messages should be checked for under Globals.ERROR_KEY or Globals.MESSAGE_KEY. You probably want to use the name or property attributes. See the online docs. -Original Message- From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED

AW: Image change on error

2006-06-06 Thread marcus biel \(innoWake gmbh\)
Nope, this was too fast - it does not work, because it now always changes the image - seems like it always finds the error message! :-( Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

AW: Image change on error

2006-06-06 Thread marcus biel \(innoWake gmbh\)
Sorry, ignore my message, this was dumb! Now it does work! :-) Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Image change on error

2006-06-06 Thread marcus biel \(innoWake gmbh\)
Hi, when I got a specific error in my form, I want to exchange a specific image like an icon in red representing the field, and I also want to exchange the css style, so that the form field gets a red border and / or red background. Any idea of how to get this done? I tried: but it didn't

RE: How to terminate the uploading process of Struts?

2006-06-06 Thread Samere, Adam J
You may be able to configure this in your web server. -Original Message- From: Al Eridani [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 10:29 AM To: Struts Users Mailing List Subject: Re: How to terminate the uploading process of Struts? On 6/4/06, Truong Xuan Tinh <[EMAIL PROTE

Re: How to terminate the uploading process of Struts?

2006-06-06 Thread Al Eridani
On 6/4/06, Truong Xuan Tinh <[EMAIL PROTECTED]> wrote: Hi experts, Can we terminate the uploading process of Struts when the uploaded data size is exceeded the max file size configured in the controller of Struts. I believe that this is not a Struts issue. I remember I tried years ago (not u

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Samere, Adam J
There wasn't the last time I looked You'll probably find it worth your time to grab JSTL. There are many other useful features that are not available in the Struts libraries, since it would just be duplicated efforts. If there is some reason you are absolutely forbidden from using JSTL, you mi

Re: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Dave Newton
Shoukat, Faisal wrote: > > > However I don't know how to add the second tag > > Any one know? > That's not valid XML. You need to either use EL: or nesting: Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Shoukat, Faisal
Is there an equivalent of this with struts libraires -Original Message- From: Samere, Adam J [mailto:[EMAIL PROTECTED] Sent: 06 June 2006 14:02 To: Struts Users Mailing List Subject: RE: Adding JSP tag as a parameter to another jsp tag Assuming your test:example tag's property attribut

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Samere, Adam J
Assuming your test:example tag's property attribute supports expressions, you could set the value of the into a page scoped variable then write it into the property attribute using an expression. For example, using c:set from JSTL: -Original Message- From: Shoukat, Faisal [mailto:[EMAI

[shale] - Dialog issues

2006-06-06 Thread Greg Allen
I am having some problems with the shale dialogs. I have defined my dialogs (correctly, I believe) in the dialog-config.xml as follows: However, when I successfully authenticate I don't end up on my home page, but remain on t

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Shoukat, Faisal
Hi, Can anyone advise on how to call a jsp tag as a parameter to another jsp tag: For example: (this is completely hypothetical but matches my case) Now in the property element I Want to call another tag which is already written which returns me the string required for example So it would lo

Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Shoukat, Faisal
Hi, Can anyone advise on how to call a jsp tag as a parameter to another jsp tag: For example: (this is completely hypothetical but matches my case) Now in the property element I Want to call another tag which is already written which returns me the string required for example So it would lo

Re: Struts Editing in IDE

2006-06-06 Thread Dave Newton
Andy Dailey wrote: > [...] allow easy development of applications using struts. Oooo, ooo, I have one: jumbo shrimp! I love this game! I just wrote Ruby scripts that create all the artifacts I need... They'll insert action mappings, form bean defs, tile definition, JSP stub, Action stub, and m

Re: How to prevent a page from loading

2006-06-06 Thread Dave Newton
Frank W. Zammetti wrote: > Couple of things you could do... first, make sure all your requests go > through Struts. That way, they'd be copying a URL with .do, so when > they paste it in, they are again going through Struts. Then, you can > check in your code that a session has been established,

Re: html:text inside a custom tag

2006-06-06 Thread Dave Newton
I HARIKRISHNA wrote: > No You cant use > > Hanmay Udgiri <[EMAIL PROTECTED]> wrote: Hi > Can we use bean:message in the custom tag java class(in the doStartTag > method) > ...but you _can_ use the same _methods_ that the tag uses. Dave

Re: how can i pass an arraylist from jsp to action class

2006-06-06 Thread Dave Newton
Sreekanth PK wrote: > how can i pass an arraylist from jsp to action class with out the help > of session or application variable Am not able to use > request.setAtrribute in jsp to do this why?? > Because that's backwards. The only way to get from a JSP to an Action is to submit a form (m

How to create custom ActionMapper

2006-06-06 Thread Mukta
I am working on URL cleaning in my struts web application. How can I create a custom ActionMapper and how to use it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Reset Image Button

2006-06-06 Thread Samere, Adam J
You may just need to return false after calling reset. onclick="document.MyForm.reset(); return false;" Or just use a standard img or the html:img tag instead of html:image -Original Message- From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 7:50

RE: Reset Image Button

2006-06-06 Thread Sahil Gupta
Hi, Try using this as below, I have used this way in my project Regards, Sahil Gupta Extn : 339 Mobile: 91 9899468288 Email : [EMAIL PROTECTED] ** NetEdge Computing Global Solutions Private Limited. A-14, Sector-7, NOIDA U.P.

Reset Image Button

2006-06-06 Thread marcus biel \(innoWake gmbh\)
Is there a way to create an image button that IS a reset button? I tried this: and this: But unfortunately, it didn't work! :-( Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: Hi, need of help

2006-06-06 Thread Ted Husted
On 5/26/06, Medicherla Lakshmi <[EMAIL PROTECTED]> wrote: Am Lakshmi. Am working on a web application in struts in a company. Am alone over here on java. Everyone is on .Net. Am new to huge development on java and never worked on any project in java till now since i was on vc++. This is my

Re: Validating in Action?

2006-06-06 Thread Oshima Tlholoe
What you can do is if ( !"ur logic for validation") { ActionMessages actionMsg = new ActionMessages(); actionMsg.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("key in the resource bundle")); saveMessages(request,actionMsg); return mapping.findForward("ur output view") } On ur jsp, tag.

Re: Image Buttons in IE

2006-06-06 Thread David Delbecq
Hi, indeed ie does not support properly the value of a html tag. It does send the html-stripped content of button instead of it's value. The best solutions it to add a onClick="someScriptToSetHiddenField("action","add");" http://www.jguru.com/faq/view.jsp?EID=897290 marcus biel (innoWake g

Re: Unable to compile org.apache.struts.action.Action class

2006-06-06 Thread Aiping
Hi, Using the command prompt, and navigate to the parent directory gives me the following error: C:\Program Files\apache-tomcat-5.5.17\webapps\wileystruts\WEB-INF\classes>javac wiley.LookupAction.java error: Can't read: wiley.LookupAction.java 1 error C:\Program Files\apache-tomc

AW: Path success does not start with a "/" character

2006-06-06 Thread m.metz
ohhh sure ... you're so right. I'm such an idiot ;-) ... thanks a lot. but sometimes you don't see the forest cause of the lots of trees ;-) Markus-Alexander Metz Accenture Technologie Solutions AG Peter Merian-Strasse 82 CH-4002 Basel tel: ++41 44 236 18 34 [EMAIL PROTECTED] -Ursprü

Re: Path success does not start with a "/" character

2006-06-06 Thread Jorge Martín Cuervo
El mar, 06 de 06 de 2006 a las 11:21, [EMAIL PROTECTED] escribió: > Hi > > I have an problem with my struts application where I don't know the reason. I > always get the following exception: > > java.lang.IllegalArgumentException: Path success does not start with a "/" > character > >

Image Buttons in IE

2006-06-06 Thread marcus biel \(innoWake gmbh\)
Hi, I've got 2 image buttons, they work great in firefox. Internet Explorer doesn't seem to support the value tag - and therefor I get submitted an empty String. Any idea, how I could get this to run for Internet Explorer? (I think I found a solution for regular forms, but I am using a DynaAct

AW: Path success does not start with a "/" character

2006-06-06 Thread m.metz
this might not be the reason. as you see in my struts-config, the forward for case "success" ist written as followed: this might be correct - how I guess. Markus-Alexander Metz Accenture Technologie Solutions AG Peter Merian-Strasse 82 CH-4002 Basel tel: ++41 44 236 18 34 [EMAIL PROTECTE

Re: Path success does not start with a "/" character

2006-06-06 Thread Antonio Petrelli
The execute Method of the actions is: public ActionForward execute(ActionMapping arg0, ActionForm arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws Exception { return new ActionForward("success"); } Ehm it is wrong, the right one is:

RE: Path success does not start with a "/" character

2006-06-06 Thread Hakhnazaryan, Arus
look at your struts-config.xml , probably you wrote your forward path for case "success" without / -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 2:22 PM To: user@struts.apache.org Subject: Path success does not start with a "/" characte

Path success does not start with a "/" character

2006-06-06 Thread m.metz
Hi I have an problem with my struts application where I don't know the reason. I always get the following exception: java.lang.IllegalArgumentException: Path success does not start with a "/" character org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)

Re: Unable to compile org.apache.struts.action.Action class

2006-06-06 Thread Hemant Johnson Burgula
Hi, I guess you are trying to compile the said class from Edit plus. Pls go to the command prompt and navigate to the parent directory of willy and then javac willy.filename.java. Inspite of this if you get an error class not found then we will have to look into the classpath. pls tr

Unable to compile org.apache.struts.action.Action class

2006-06-06 Thread Aiping
Hi, I am having trouble compile a file called LookupAction.java. The error is: Class wiley.LookupForm not found. Currently the LookupAction.java and LookupForm both resides in the same package "wiley". The sources code of the files used are: // LookupForm.java package wiley; import javax.

Re: [Fwd: Conditional display of components]

2006-06-06 Thread Angelo zerr
Hello, you can use FormView. With FormView you can set a state for a particulary HTML input (butto, text,...). State manage your render (hidden, visible, ,...) for your input. So it's not in your JSP taht you have your condition (logic:equal) but it's your Struts action which decide which input mu

AW: Validating in Action?

2006-06-06 Thread marcus biel \(innoWake gmbh\)
>You can use the ActionMessage constructor that takes a string and a >boolean indicating whether or not the string is a key to be looked up in >a resource bundle. By setting this to false, the string is taken as a >literal. > >public ActionForward execute(ActionMapping mapping, ActionForm form, >

[shale] subviews with backing beans

2006-06-06 Thread Bahadır Yağan
Hi. With shale's ViewController a managed bean named "index" is automatically associated with index.jsp. What I need is to have the same for subviews. Say, I included "loginForm.jsp" from index.jsp, is it possible to have the same association with my backing bean "loginForm" ? I don't know i