Struts based opensource e-Learning/Distance Learning framework

2006-08-02 Thread Raghu Kanchustambham
Hi, I am interested in building a e-Learning/Distance learning framework. Was wondering if there is any framework that exists that I can use as a starting point. First preference would be for a struts based application since I need to integrate it with my existing struts code. But anything in Jav

Re: [ANN] WebWork 2.2.1: Released and Ready for Struts!

2006-02-07 Thread Raghu Kanchustambham
Hi Ted, While ideally an announcement like this should bring across "joy", ironically enough it brings some "concerns" to developers like me! I am uninitiated in WebWork yet. I have just learnt a bit of struts some 4 months ago. Just when I thought I learnt a little the "floor (read framework)" mo

Re: Narrow down on an element in a select list with every key press

2006-01-30 Thread Raghu Kanchustambham
; (If you want to try what I am talking about, just try creating an > account/user on any website and in the country drop down list try > choosing India. You may try hotmail. ) > > Thanks for your suggestion. > > Regards, > > Shivani > > > > -Original Message

Re: Narrow down on an element in a select list with every key press

2006-01-30 Thread Raghu Kanchustambham
Shivani, You may want to take a look at the suggest tag provided by Struts-layout taglibrary. http://struts.application-servers.com/suggest/index.html I have personally used this tag and it is quite easy to get it working. The best thing is that you do not need to write a single line of Javascrip

Re: One Pass JSP Parsing Woes! - how to generate Dynamic JSP and enforce those tags get parsed/translated?

2006-01-29 Thread Raghu Kanchustambham
on e) { e.printStackTrace(); } tag.release(); } } On 1/30/06, Kai Mai <[EMAIL PROTECTED]> wrote: > Raghu, > can you be more specific about your solution? how about giving some coding > examples? > > Thanks. > Kai > > On 1/27/06, Raghu

Exception Handling in struts - Sitemesh messes it up! :(

2006-01-27 Thread Raghu Kanchustambham
Hi, Before I introduced Sitemesh into my ecosystem, I used to handle exceptions in a "declarative" fashion in the struts-config.xml. For example, an entry in struts-config.xml like: would handle a good subset of my Database exceptions. Now comes sitemesh, which is really a "servlet-filter".

Re: One Pass JSP Parsing Woes! - how to generate Dynamic JSP and enforce those tags get parsed/translated?

2006-01-27 Thread Raghu Kanchustambham
On 1/25/06, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to generate a *dynamic* menu. > I have a regular 'java' function which spits out menu tags (struts > layout taglib related). > The intention is to use Sitemesh to create the menu dep

One Pass JSP Parsing Woes! - how to generate Dynamic JSP and enforce those tags get parsed/translated?

2006-01-25 Thread Raghu Kanchustambham
Hi, I am trying to generate a *dynamic* menu. I have a regular 'java' function which spits out menu tags (struts layout taglib related). The intention is to use Sitemesh to create the menu depending on the access permissions of the logged in user without any "dirty coding" in JSP's. <%=Resource.ge

Re: To use form validation in conjunction with validation.xml

2006-01-21 Thread Raghu Kanchustambham
t); > > Which should call the base class validate (which will use your validation.xml) > > On 1/20/06, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > > Thanks Rick! You spotted it correct...It now executes the validate > > function of the form :-) > > > >

Re: To use form validation in conjunction with validation.xml

2006-01-20 Thread Raghu Kanchustambham
ed. Do I need to do something else to ensure validation.xml is called and so is the code in validationform's validate function? Regards, Raghu ps: I have not changed my action mappings from what I have last posted. On 1/20/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > On 1/20/06, Ragh

Re: A couple of simple questions

2006-01-20 Thread Raghu Kanchustambham
> 4) When using IE on an ASP application, there is a way to click on a word > document in the browser, it brings up Word to edit the document, and when > you save the document in Word, it uploads it back to the website. > > a. Is there a way to do this in the J2EE world? > b. And if not,

Re: To use form validation in conjunction with validation.xml

2006-01-20 Thread Raghu Kanchustambham
o you have validate=true set for > the form? > > Mind you, I'm not a fan of using automatic validation:) I prefer to call > validate manually from my Action class. I explain my reasons here > http://www.learntechnology.net/validate-manually.do > > > > On 1/20/06, Rag

Re: To use form validation in conjunction with validation.xml

2006-01-20 Thread Raghu Kanchustambham
But I need to get the first step correct... that is to make sure my validate function is being called in addition to validation.xml rules. Could you help me with that? Thanks. Raghu On 1/20/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > > Raghu Kanchustambham wrote the followin

To use form validation in conjunction with validation.xml

2006-01-20 Thread Raghu Kanchustambham
Hi, When I want to retain validation.xml for validation of most of my fields on the form. However, the rules for one particular field is too complex to be done with just the validation.xml. I intend to check for it in the validation form action. What I see is that the action form's validate functio

Re: [OT] Utility to create DDL from a database

2006-01-20 Thread Raghu Kanchustambham
The easiest way for you is to exploit the SET FOREIGN_KEY_CHECKS property. I know this is supported by MySQL for sure. And something similar if not the same, should be available with other databases too. SET FOREIGN_KEY_CHECKS=0; //script generated SET FOREIGN_KEY_CHECKS=1; Remember to set it

Re: fill combo box based onClick of previous combo box

2006-01-20 Thread Raghu Kanchustambham
While you can do it yourself, I strongly recommend take a look at the Struts Layout tags. http://struts.application-servers.com/ To be specific, for the dependent combo, check http://struts.application-servers.com/faqs/field.html#Interdependent_combo_box It is very easy to get it up and running w

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Raghu Kanchustambham
Assuming you want to do "form-based" validation, can you check if your forms.ObjectTypeForm extends from one of the valid validationform objects? If it extends a simple "ActionForm", validation will not work. HTH, Raghu On 1/11/06, Mahadevan Venkataraman <[EMAIL PROTECTED]> wrote: > > Hi, > > I

Re: Workflow Implementation

2006-01-11 Thread Raghu Kanchustambham
Thats too broad a question - :-) So you will get "broad" answers for that! :-) You can take a look at jBPM project - I think jboss has taken up the "ownership" for the project. While I have not used it, I believe there is some activity and interest in the project. If you are looking at providing

Re: which one is best for DATA PERSISTENCE

2006-01-10 Thread Raghu Kanchustambham
And why is that ? On 1/10/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hi, > > I would suggest you begin with iBATIS. > > http://ibatis.apache.org > > > > Thanks and Regards, > S.Ramkumar > Associate Consultant - Investment Banking > PrimeSourcing(tm) "Add Value Reduce Risk" > i-flex s

Re: Validation Problem - very urgent please reply

2006-01-10 Thread Raghu Kanchustambham
The trick is to point the "input" variable in your struts-config.xml to the action class that "generated" the JSP page rather than the JSP page itself. On failure of validation, you should redirect it to the "preparation" action class for the form that solicits information for you - the action

Re: Web Push Technology

2006-01-04 Thread Raghu Kanchustambham
this makes sense. What do you think? ~Raghu~ On 1/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > On Wed, January 4, 2006 1:03 pm, Raghu Kanchustambham said: > > I would disagree on your conclusion that pull is *the* way to achieve > your > > 'push alert&#x

Re: Web Push Technology

2006-01-04 Thread Raghu Kanchustambham
Or perhaps, as mentioned earlier in this thread, having an applet to which the server could "push" information should do the trick. I would disagree on your conclusion that pull is *the* way to achieve your 'push alert' on http. Some points on which you will base your decision maybe as follows:

Re: dropdown

2005-12-30 Thread Raghu Kanchustambham
The error means that your action form does not have a getter method for the described property. If you make sure you have the required property in the actionform and try it, it should work fine. Post the code of action form and struts-config.xmlif you still cant solve it. Just a thought: Why is yo

Re: Multiple Drop Down Menus

2005-12-21 Thread Raghu Kanchustambham
Try Struts-Layout has some options for doing "related" dropdowns. You may want to check it and avoid a lot of javascript coding. HTH, Raghu On 12/21/05, Neil Erdwien <[EMAIL PROTECTED]> wrote: > > If the amount of data needed for drop down B isn't large, I'd load it > into Javascript objects wh

Struts-layout suggest tag and Internet explorer

2005-12-20 Thread Raghu Kanchustambham
Hi, The suggest tag seems to work fine in Mozilla but not in Internet Explorer. This code is working fine with Mozilla... It generates 4 suggest boxes in mozilla but behaves like a simple text box (with no suggestions) on Internet explorer. What am I doing wrong? Best Regards, Raghu

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Raghu Kanchustambham
Have a strDate which is of type string. The setStrDate() needs to be coded in such a way that it sets the date attribute also which is of type Date. The getDate() which returns Date object can be used in the "business" layers. For example, my Hibernate mappings map to getDate and not to getStrDate

Re: validation javascripts

2005-12-15 Thread Raghu Kanchustambham
>> I'm not sure it matters much which order they're applied in, though, since all have to pass >> anyway. Order does matter... That will decide which *one* of the error messages to display to the user when one of these tests fail. On 12/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Deepa

Re: [OT] obsfucating struts web application

2005-12-11 Thread Raghu Kanchustambham
mention, > and it knows how to edit web.xml, etc. In my opinion, it is well worth the > price ($400 for a single license last time I checked). > > Erik > > > -Original Message- > From: Raghu Kanchustambham <[EMAIL PROTECTED]> > Sent: Dec 9, 2005 4:38 AM &g

Re: [OT] obsfucating struts web application

2005-12-09 Thread Raghu Kanchustambham
Laurie.. are you sure this will work? Let us say i have a mapping that maps to a TelephoneAction in my strus-config.xml... the class name will get 'garbled' after obfuscation. When a hit is made, the struts runtime will look up the TelephoneAction class to forward the request and notices there is

Re: tabs is struts

2005-12-08 Thread Raghu Kanchustambham
Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there is any way to use tabs in struts. Is there is any html bean tag > for this ? > > >

Re: Problem with validations

2005-12-05 Thread Raghu Kanchustambham
rule to be able to invoke > other validation rules (or control which of the validations specified by > the 'depends' value is actually enforced)? I actually think that could > be quite useful in some cases, but probably not very many. Can you think > of any concrete examples

Re: Problem with validations

2005-12-05 Thread Raghu Kanchustambham
7;date' validation otherwise. Not sure if that made sense > or not... > > L. > > Raghu Kanchustambham wrote: > > Just wondering Laurie ... why cant I use other "validation rules" along > with > > validwhen? I dont see any fundamental reason why I need to re

Re: Problem with validations

2005-12-05 Thread Raghu Kanchustambham
Just wondering Laurie ... why cant I use other "validation rules" along with validwhen? I dont see any fundamental reason why I need to resort to regular expressions when I use validwhen tag. For example, it would be great if I could say .. validwhen (some test) .. use the date validation! Is ther

Re: Preserving the query string while validating a form & using dynamic initialization with DynaAction

2005-12-04 Thread Raghu Kanchustambham
You could still do them "declaritively" ... read them off an "external" file.. and *process* it in your setup actions... a little more work than you would have liked though! :-) On 12/5/05, Shivani Sawhney <[EMAIL PROTECTED]> wrote: > > Hi, > Thanks for the reply. There's absolutely no reason t

Re: [QA]Does STRUTS v1.1 work well under J2SE_1.5?

2005-12-04 Thread Raghu Kanchustambham
I started off "learning" struts with the combination of struts 1.1 and jdk1.5. I dint have any issues. However, I quickly moved to 1.2.x soon when I realized that since I am starting off fresh, why not just take the latest stable version from struts. I still dont have problems making it work with j

Re: help using validate inside ActionForm

2005-12-04 Thread Raghu Kanchustambham
While the "if" loops in the validate function of the form will work... i somehow think you are coupling the workflow with the validation rules. Why dont you look at the validation framework so that you "externalize" your validation logic into xml files? You can perform validation on a per form bas

Re: Preserving the query string while validating a form & using dynamic initialization with DynaAction

2005-12-03 Thread Raghu Kanchustambham
there any way that I could get the form value to be evaluated rather > than just outputting it as is? > > Regards, > > Shivani > > > > > -Original Message- > From: Raghu Kanchustambham [mailto:[EMAIL PROTECTED] > Sent: 03 December, 2005 1:35 PM > To: St

Re: Preserving the query string while validating a form & using dynamic initialization with DynaAction

2005-12-03 Thread Raghu Kanchustambham
> Query 1: There are two approaches I can think of right now. You will need to "burn" this querystring information into (a) the form object or (b) the session. (a) If you are using dynaction form, then just adding another variable to hold the id0 in the config.xml definition should be less pain

Re: [OT] performance of JDBC only, without Hibernate or iBatis

2005-11-28 Thread Raghu Kanchustambham
ate seems to be a decent approach if you have LOTS of memory, > and a new database that you can structure specifically for it. For a > legacy database that is expensive to change, it is worthless IMO. > > Saying that "you should use it unless you have a strong reason not to" &

Re: [OT] performance of JDBC only, without Hibernate or iBatis

2005-11-27 Thread Raghu Kanchustambham
These are two different caching scenarios we are talking about. Tomcat connection pooling caches "Connection" objects.. not your domain objects. However, Hibernate caches business objects (POJOs). You could use Tomcat's connection pool along with Hibernate's pooling of business objects. I do beli

Re: conditional validation

2005-11-27 Thread Raghu Kanchustambham
> Taglib? > > http://struts.apache.org/struts-doc-1.2.7/userGuide/struts-logic.html#lessEqual > HTH, > M- > - Original Message - > From: "Raghu Kanchustambham" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Sunday, November 27, 2005 3:

Re: conditional validation

2005-11-27 Thread Raghu Kanchustambham
be able to say "validwhen" through some expression followed by "floatRange" validation etc... currently I am using regular expressions to mimic the floatRange when used on a conditional basis. If it doesnt exist already, is it very difficult to build it? Thanks. Regards, Raghu

Re: conditional validation

2005-11-24 Thread Raghu Kanchustambham
- On 11/25/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Raghu Kanchustambham wrote: > > Hi, > > I have the following situation: > > 1. educationDetails[0].degree.id is not chosen. (drop down return value &

conditional validation

2005-11-24 Thread Raghu Kanchustambham
Hi, I have the following situation: 1. educationDetails[0].degree.id is not chosen. (drop down return value = -1). OR 2. educationDetails[0].degree.id > 0 (the user chose one of the options from the drop down) which implies the marks should be atleast 35% and not more than 100% I tried the atta

Re: why cant the struts action class provide a getSession() api ?

2005-11-22 Thread Raghu Kanchustambham
Thanks Max and Craig for your responses. I agree with the overheads of pooling a stateful "entity" probably doesn't justify its inclusion. I was not looking for an api which gives me a session object after taking the request object as an input parameter which as Craig points out is too simplistic.

why cant the struts action class provide a getSession() api ?

2005-11-22 Thread Raghu Kanchustambham
Hi, I believe supporting a getSession() call is useful in the Action class. let me walk you through a situation: public class MyAppBaseAction extends DispatchAction { //some helper functions isAuthorized( arguments ) { } } public class MyAction1 extends MyAppBaseAction {

Accessing logincontext and other useful information in action classes?

2005-11-20 Thread Raghu Kanchustambham
Hi, what is the best way to access authentication/authorization related information in my action class? I configured the BASIC JAAS authentication with my tomcat. The authentication goes fine.. but in case I want to know some information about the roles... how can I get the "LoginContext" in my ac

session.invalidate doesnt log me out...

2005-11-20 Thread Raghu Kanchustambham
Hi, Shouldnt session.invalidate() log me out? request.getSession().invalidate(); try { response.sendRedirect("home.jsp"); } catch (IOException e) { e.printStackTrace(); } I am using JAAS Basic authentication on tomcat. When the above code is executed and the redirection happens back, i expected

Re: jaas authorization with struts

2005-11-20 Thread Raghu Kanchustambham
o see. It might be exactly what you're looking for. > > L. > > Raghu Kanchustambham wrote: > > Hi, > > I could successfully place my authentication scheme in place using the > > article at > > http://www.jroller.com/comments/tomdz?anchor=using_jaas_with_stru

Validator framework with indexed properties

2005-11-20 Thread Raghu Kanchustambham
Hi, I was hoping that the following should work ... but I guess I am missing something somewhere.. validation with other properties is working fine.. but not with the indexed properties. Struts-config.xml: validation.xml: I am trying to validate the indexed property

Re: Reporting Tools

2005-11-20 Thread Raghu Kanchustambham
You can try Jasper reports... Havent used it a lot myself .. but looks like a decent open source tool for generating reports with support for PDF, excel etc... ~raghu On 11/20/05, Rivka Shisman <[EMAIL PROTECTED]> wrote: > > Hi friends > > > > Can you recommend me a reporting tool that works nic

jaas authorization with struts

2005-11-19 Thread Raghu Kanchustambham
Hi, I could successfully place my authentication scheme in place using the article at http://www.jroller.com/comments/tomdz?anchor=using_jaas_with_struts_a I also could place "resource" level authorization in place. However the definition of resource is the "traditional" action mapping. However I

How to find the version number of the struts installation?

2005-11-19 Thread Raghu Kanchustambham
If I need to find the version of jdk .. i would use something like java --version. How would I know which version of struts jar are there on my machine? Any suggestions of easily & reliably finding it ? Thanks. Raghu

Re: Validator framework hijacks requests! :(

2005-11-19 Thread Raghu Kanchustambham
ve never used nested business objects in dyna forms like you are. > > L. > > Raghu Kanchustambham wrote: > > Thanks Laurie for the detailed explanation. > > I am still not able to get the validation working .. after spending > almost > > a frustrating one week on i

Re: Validator framework hijacks requests! :(

2005-11-18 Thread Raghu Kanchustambham
g! :( I will post that also if you think it will help debug the issue. Thanks again Laurie for the suggestions you have given so far. Even though this problem persists, it still made me learn quite a bit about the validator framework. Hopefully you can spot the mistake in this too ! :) Best Regards, R

struts layout collection client side sorting

2005-11-17 Thread Raghu Kanchustambham
Hi, I have the following code: http://enquiry.id/>}" sortable="true"/> http://enquiry.id/>}">enroll http://enquiry.id/>}">View / http://enquiry.id/>}"> Update When I code this way, I see "sort" icons in the header of the table that is generated. When I click on them, sorting happe

Re: Validator framework hijacks requests! :(

2005-11-15 Thread Raghu Kanchustambham
dn't. Set validate="false" on the > mapping for the setup operations, and make it the input for the other > mapping which will have validate="true". > > L. > > Raghu Kanchustambham wrote: > > Thanks Laurie for the suggestion. > > >>>>

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Raghu Kanchustambham
ctly to the JSP). > > You don't need to use session scope for anything if you don't want to, > you just have to make sure that you always display your JSP via your > preCreate action. > > If that doesn't make sense, post your action mappings from > struts-config

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Raghu Kanchustambham
raghu On 11/12/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > > There's nothing wrong with ussing session scoped forms. You can attached > these lists right to the > form, if you want - just make sure you remove the form from memory when > you're finished. > >

Re: Validator framework introduces errors

2005-11-12 Thread Raghu Kanchustambham
idator. > 4) You're using the correct version of validator for your version of > Struts. > > --- Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > > > Hi, > > The minute I introduced Validator framework in my application . > > it started giving me the follo

Validator framework hijacks requests! :(

2005-11-12 Thread Raghu Kanchustambham
? Thanks much. Regards, Raghu On 11/12/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > I didnt see the contents E.G. for your c.tld ?? > Martin- > - Original Message ----- > From: "Raghu Kanchustambham" <[EMAIL PROTECTED]> > To: "Struts Users

Re: Fw: Validator framework introduces errors

2005-11-12 Thread Raghu Kanchustambham
y <%= request.getParameter("nextOperation")%> false true " /> <[EMAIL PROTECTED] file="StudentDemographics.jsp"%> ${operationVar} cancel On 11/12/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > I did&#

Validator framework introduces errors

2005-11-12 Thread Raghu Kanchustambham
Hi, The minute I introduced Validator framework in my application . it started giving me the following error when I accessed the JSP centreList is used as a parameter for the dropdown. The minute I remove the validation.xml from the path... the application runs fine again! :( very strang

Re: logic:iterate and html:radio

2005-11-02 Thread Raghu Kanchustambham
Try the indexed="true" property. I think that should do the trick. On 11/3/05, Bijay Sahoo <[EMAIL PROTECTED]> wrote: > > Hi All, > I am new to struts,and have a problem and want some suggestion,my problem > is > : > I get some questions from database (Dont know how many) may be 10,11,20... > an

or ... how to have indexed tags?

2005-11-02 Thread Raghu Kanchustambham
Hello, I am evaluating using Struts-Layout tags ( http://struts.application-servers.com/ ) instead of . A few questions: 1. Can they co-exist? That is can I have 5 fields of my form of type and another 5 of the types? 2. More importantly, how to index them in case of multiple entries? for e

Re: c:forEach does not recognize HashSet when combined with nested EL ?

2005-11-01 Thread Raghu Kanchustambham
Sader <[EMAIL PROTECTED]> wrote: > > You need to tell your loop to use the key or the value from your set. > > > > > > ... > > that should fix it up. > > > > On 11/1/05, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > > Hi, > > Pl

c:forEach does not recognize HashSet when combined with nested EL ?

2005-11-01 Thread Raghu Kanchustambham
Hi, Please look at the following code: studentEnrollment is a bean that I have attached to the DynaActionForm that is configured. That bean has a Set called paymentDetails. I intend to iterate over this HashSet and its just not working. Its not even entering the loop. A little hack that makes t

iteration - selection based on the row number

2005-10-17 Thread Raghu Kanchustambham
Hi, I am using the to iterate over a list and create some dynamic drop boxes on consecutive rows. For example: On first row, I want to solicit "Batchelors" related information from the student. In the second row, I want to solicit "Masters" related information. So the value XXX should be somethin

logic tag - to check form elements

2005-09-28 Thread Raghu Kanchustambham
I have a hidden html varibale called operation. Now I want to conditionally display some buttons based on the value of this hidden field. I am trying something like this... # display update related buttons This doesnt seem to work. What am I doing wrong? I know that if 'operation' was a

use bean:message tag for configurable parameters?

2005-09-28 Thread Raghu Kanchustambham
Hi, When I use the following line...it prints a 4 on the screen. { selectbox.size has been defined as 4 in application.properties file } However, the following code doesnt seem to work. Can somebody explain what is wrong with this? I want a select box of size 4 here. The intent is to 'externali