Validation of Primitive Data Types

2003-11-20 Thread sreekant_gottimukkala
Hello All, I am trying to use STRUTS Validator for validating some attributes of primitive data type like double, int etc. However this fails as those attributes are defaulted to their corresponding default values for the datatypes like 0.0 for double and 0 for int. I guess we can get around it

Multiple modules in a .EAR without code replication

2003-11-11 Thread sreekant_gottimukkala
I am creating a STRUTS based app with .EAR as the deployable in which I want to host 2 .WARs, one for the internal user and the other for external user. I want to have exactly the same code base for both WARs including any resources and property/configuration files etc but for one Action class.

Populating the next Form

2003-11-10 Thread sreekant_gottimukkala
Hi, I have ActionA and FormA associated to screenA, similarly ActionB and FormB associated to screenB. Upon click of a button on ScreenA, I need to dispatch ScreenB with some values prefilled. I was wondering where should I be writing the logic to populate the FormB for showing those values

Display Mode | Edit Mode

2003-10-21 Thread sreekant_gottimukkala
Does STRUTS provide any feature so that the same jsp can be used for showing the page in Display Mode as well as Edit Mode without having to manually code the same in JSP ? Regards Sreekant G @ 98404-65630 This mail was scanned by Interscan Virus Wall of Mailserver2 at SNR, TCS, Chennai

html:link and JspWriter

2003-10-01 Thread sreekant_gottimukkala
Please have a look at the piece of code below %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %! void showMenu(JspWriter out) { for(int i=1; i10; i++) { out.print(html:link action= + i + + i +

Re: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread sreekant_gottimukkala
I have a few questions reg the below Is this recreatable is there a certain place where you get this OutOfMemory exception Are you using JNI Also Can you please send the stack trace. Regards Sreekant G @ 98404-65630

Any potential drawbacks with this design

2003-09-08 Thread sreekant_gottimukkala
Hi All, Please give me your comments/suggestions on the below design. I need to perform some common functionality across all the application action classes, so I have written an abstract MyOwnAction class inheriting from STRUTS Action class. All application action classes will be extending

RE: Any potential drawbacks with this design

2003-09-08 Thread sreekant_gottimukkala
I did look into the subclassing the RequestProcessor class as well. I am not sure if it can do the following -- throw Exceptions. -- NOT call the corresponding action class (instead return to a default page) depending on some conditions. Is there any advantage subclassing the RequestProcessor

RE: Any potential drawbacks with this design

2003-09-08 Thread sreekant_gottimukkala
+1 Regards Sreekant G @ 98404-65630 Andrew Hill

Probelm with global-exceptions routing.

2003-09-05 Thread sreekant_gottimukkala
I have written my own RequestProcessor class (MyRequestProcessor.java) by extending the STRUTS provided RequesrProcessor class. I have overridden the processPreprocess() method as below. Also I have defined the java.lang.NullPointerException in the global-exceptions of struts-config.xml as shown

RE: Probelm with global-exceptions routing.

2003-09-05 Thread sreekant_gottimukkala
Basically what I wanted to do in the processPreprocess() method of MyRequestProcessor class was Check if there were any User related credentials in the session, if yes let the process continute. If not then throw the Logon page. Is there any otherway I can achieve this so that the application

SubClass RequestProcessor or Action class

2003-09-01 Thread sreekant_gottimukkala
HI All, As a general practice all the application action classes are inherited from org.apache.struts.action.Action class. What are the Pro's and Con's of inheriting the application action classes from org.apache.struts.action.RequestProcessor class instead ? Regards Sreekant G This mail was

Tomcat Vs Tomcat plugin

2003-08-29 Thread sreekant_gottimukkala
I am trying to run the struts-example webapp under standalone Tomcat 4.0.x and I was successful. How ever, when I installed the Tomcat plugin for Eclipse and launched the same struts-example webapp under the Tomcat plugin for Eclipse, it fails in the very first screen throwing the below stack. Any

Remote Debugging facility

2003-08-29 Thread sreekant_gottimukkala
Has any one successfully used the Remote Debugging facility of ECLIPSE with TOMCAT 4.0.X ? I tried using it but am getting a message that says Failed to connect to remote VM, Connection refused. Below is how I setup TOMCAT ECLIPSE for debugging. Added the below statement to CATALINA.bat SET

Debugging App under SunOne JVM

2003-08-29 Thread sreekant_gottimukkala
Has anyone tried remote debugging an App under SunOne JVM using ECLIPSE Remote Debugging facility. Regards Sreekant G @ 98404-65630 This mail was scanned by Interscan Virus Wall of Mailserver2 at SNR, TCS, Chennai - To

J2EE IDE

2003-08-27 Thread sreekant_gottimukkala
Can someone please suggest me a free J2EE IDE suitable for development of webapps using STRUTS. I know of some IDE's like the FORTE, ECLIPSE, NETBEANS. However I wanted to ckeckout if anyone has already evaluated any of these since I am not sure which one is easy to use and has reasonably good

RequestProcessor and Action classes

2003-08-27 Thread sreekant_gottimukkala
HI All, As a general practice all the application action classes are inherited from org.apache.struts.action.Action class. What are the Pro's and Con's of inheriting from org.apache.struts.action.RequestProcessor class instead ? Please bear with me if I am making no sense at all as I don't claim

STRUTS as a project in ECLIPSE

2003-08-27 Thread sreekant_gottimukkala
How do I import the Source distribution of STRUTS as a project in ECLIPSE ? Regards Sreekant G This mail was scanned by Interscan Virus Wall of Mailserver2 at SNR, TCS, Chennai - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Hooking Security Check in ActionServlet.java

2003-08-26 Thread sreekant_gottimukkala
Hi All, I am trying to implement my own security piece, towards that I would like to plug in the call to my security check logic. My requirement is that for every action on a form/page security should be validated, Thus I need to plug my security check call at a place which will be called at

Re: Why write javascript in validation.xml file

2003-08-21 Thread sreekant_gottimukkala
Is the generated javascript compatible for both IE and NS ?? Regards Sreekant G @ 98404-65630 Nagendra

Security and Roles related

2003-08-19 Thread sreekant_gottimukkala
Does STRUTS provide integration with any security framework independent of the underlying application server. Basically I am looking at services like isUserInRole(), getRole() and the sort. Regards Sreekant G @ 98404-65630 This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral

struts-university : doesn't pickup the port number

2003-08-14 Thread sreekant_gottimukkala
The weolcome page of the struts-university example uses html:img page =/assets/view.gif alt=view height=24 width=24 vspace=4 hspace=4 /. When the custom tag resolves the image source path it resolves it as http://localhost/struts-university/assets/view.gif where as it should be resolving it as

Domain Value LookUp

2003-08-07 Thread sreekant_gottimukkala
Though this is not directly related to STRUTS, I was wondering if someone has come across something like below that can be integrated with STRUTS. Is anyone aware of any generic component for Domain Value LookUp. Domain Values might be based on one or more contexts. e.g list of states is

[OT] Performance Improvement

2003-08-07 Thread sreekant_gottimukkala
Any idea on the performance (turn-around-time) improvement achieved by using OSCache ? A rough range might do. Thanks Sreekant G. TCS AMBATTUR This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral Road TCS Chennai

Regarding STRUTS ActionForm

2003-08-04 Thread sreekant_gottimukkala
Can the ActionForm contain some other Message Objects as attributes ? If so where should the getters and setters for the child MO be coded ? For example in the below structure MyActionForm is the ActionForm that contains the user defined MO's MyDepartment and MyProject. First of all is

Re: Regarding STRUTS ActionForm

2003-08-04 Thread sreekant_gottimukkala
Thanks for the response, Is it possible to map more than one ActionForm to a page, If not in the below example how would the framework understand to populate the departmentName entered in the form give that the page is associated with the MyActionForm below. Thanks Sreekant G. TCS AMBATTUR

Best place to hook the Security Call

2003-08-04 Thread sreekant_gottimukkala
Which is the best place to hook the security call for an application in the STRUTS framework so that for every request security check is made. Does STRUTS provide integration with any Security framework ? thanks in advance. Sreekant G. This mail was scanned by Interscan Virus Wall of Mailserver

Re: Best place to hook the Security Call

2003-08-04 Thread sreekant_gottimukkala
I agree with Alen, but at the same time if all the containers are supporting J2EE security standards then porting to different containers should not be an issue. SecurityFilter as I just browsed through seems interesting but all the latest J2EE containers will have to support Servlet 2.3 for

RE: Best place to hook the Security Call

2003-08-04 Thread sreekant_gottimukkala
So where does JAAS (Java Authentication and Authorization Service) come into picture in the J2EE world ? The other day I was reading a whitepaper that said STRUTS provides integration with JAAS. What would that mean ? Thanks Sreekant G. TCS AMBATTUR