[OT] Searching for data access framework.

2011-12-05 Thread Balwinder

Hi All,

Can anyone suggest me a framework that can abstract the data call and 
its source, if there exists any? Example if I want to authenticate a 
user then my query shall not depend upon the data source, it could be 
any LDAP server, database or any file in a file system or anything else.


Thanks in advance.

Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [OT] Searching for data access framework.

2011-12-05 Thread Balwinder

Hi Wes,

What I need is something like, if I want to access data from a database, 
i can use SQL, but if i change the source to LDAP then the access 
mechanism will change from SQL to LDAP specifics, now if the same data 
goes to flat file than again my mechanism will change, so all I need is 
some framework that if when source is changed its access mechanism 
should remain same. Hope this explains what I am looking for.


Regards,
Balwinder Kumar

On 12/5/2011 10:35 PM, Wes Wannemacher wrote:

I am not sure if I understand your question correctly, but the first
thing that comes to mind -

http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html

I would say to combine a disciplined approach of separation with a
domain model layer, a business logic (transactional) layer and then
IoC with Spring...

If you were looking for more detail than that, we'll need some more
details on your problem.

-Wes

On Mon, Dec 5, 2011 at 12:02 PM, Balwinderbalwinder@gmail.com  wrote:

Hi All,

Can anyone suggest me a framework that can abstract the data call and its
source, if there exists any? Example if I want to authenticate a user then
my query shall not depend upon the data source, it could be any LDAP server,
database or any file in a file system or anything else.

Thanks in advance.

Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org







-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [OT] Searching for data access framework.

2011-12-05 Thread Balwinder
Thanks Lukasz, this is exactly what I am looking for, hope there will 
not be any licensing issue if I want to use it.


Regards,
Balwinder Kumar
On 12/5/2011 10:45 PM, Łukasz Lenart wrote:

Check JDO

http://www.datanucleus.org/products/index.html


Regards



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[OT] JQuery or dojo?

2011-08-16 Thread Balwinder

Hi All,

Can any one suggest, for ajax which framework is better?

Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [OT] JQuery or dojo?

2011-08-16 Thread Balwinder

Dave,

My criteria is:

Able to ajaxify my app seamlessly.
Quick in implementation.
Ease of maintenance.
Quick to learn.


Regards,
Balwinder Kumar

On 8/16/2011 10:26 PM, Dave Newton wrote:

What are your criteria?

IMO they're different things, Dojo is more of an app framework, although
there's overlap in functionality at the low level.

Dave
  On Aug 16, 2011 12:38 PM, Balwinderbalwinder@gmail.com  wrote:

Hi All,

Can any one suggest, for ajax which framework is better?

Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2-plugin install error

2010-12-08 Thread Balwinder Kumar

Thanks Burton. Your suggestion got this problem resolved.

On 08-12-2010 06:43, Burton Rhodes wrote:

You may have a corrupt file in your local repository.  Try deleting
the C:\Users\Balwinder\.m2\repository\org\apache\struts directory and
try again



On Tue, Dec 7, 2010 at 10:26 AM, Balwinder Kumar
balwinder@gmail.com  wrote:

I am getting below error while executing maven install. Any pointer how to
fix?

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Struts Plugins
[INFO]   Struts 2 Spring Plugin
[INFO]   Struts 2 JUnit Plugin
[INFO]   Struts 2 Codebehind Plugin
[INFO]   Struts 2 Convention Plugin
[INFO]   Struts 2 Configuration Browser Plugin
[INFO]   Struts 2 Java Templates Plugin
[INFO]   Struts 2 Jasper Reports Plugin
[INFO]   Struts 2 JFreeChart Plugin
[INFO]   Struts 2 JSF Plugin
[INFO]   Struts 2 Pell Multipart Plugin
[INFO]   Struts 2 Plexus Plugin
[INFO]   Struts 2 Sitegraph Plugin
[INFO]   Struts 2 Sitemesh Plugin
[INFO]   Struts 2 Struts 1 Plugin
[INFO]   Struts 2 Tiles Plugin
[INFO]   Struts 2 Dojo Plugin
[INFO]   Struts 2 REST Plugin
[INFO]   Struts 2 Portlet Plugin
[INFO]   Struts 2 TestNG Plugin
[INFO]   Struts 2 DWR Plugin
[INFO]   Struts 2 OVal Plugin
[INFO]   Struts 2 OSGi Plugin
[INFO]   Struts 2 JSON Plugin
[INFO]   Struts 2 Embedded JSP Plugin
[INFO]   Struts 2 GXP Plugin
[INFO]

[INFO] Building Struts Plugins
[INFO]task-segment: [install]
[INFO]

[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on =  'false'.
[INFO] Setting property: resource.loader =  'classpath'.
[INFO] Setting property: resource.manager.logwhenfound =  'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [bundle:manifest {execution: bundle-manifest}]
[WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle]
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-source}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing C:\Struts\struts2\plugins\pom.xml to
C:\Users\Balwinder\.m2\repository\org\apache\struts\struts2-plugins\2.2.2-SNAPSHOT\struts2-plugins-2.2.2-SNAPSHOT.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error installing artifact's metadata: Error installing metadata:
Error updating group repository metadata

only whitespace content allowed before start tag and not \u0 (position:
START_DOCUMENT seen \u0... @1:1)
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 10 seconds
[INFO] Finished at: Tue Dec 07 21:47:10 IST 2010
[INFO] Final Memory: 24M/58M
[INFO]


Thanks in advance.

Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts2-plugin install error

2010-12-07 Thread Balwinder Kumar
I am getting below error while executing maven install. Any pointer how 
to fix?


[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Struts Plugins
[INFO]   Struts 2 Spring Plugin
[INFO]   Struts 2 JUnit Plugin
[INFO]   Struts 2 Codebehind Plugin
[INFO]   Struts 2 Convention Plugin
[INFO]   Struts 2 Configuration Browser Plugin
[INFO]   Struts 2 Java Templates Plugin
[INFO]   Struts 2 Jasper Reports Plugin
[INFO]   Struts 2 JFreeChart Plugin
[INFO]   Struts 2 JSF Plugin
[INFO]   Struts 2 Pell Multipart Plugin
[INFO]   Struts 2 Plexus Plugin
[INFO]   Struts 2 Sitegraph Plugin
[INFO]   Struts 2 Sitemesh Plugin
[INFO]   Struts 2 Struts 1 Plugin
[INFO]   Struts 2 Tiles Plugin
[INFO]   Struts 2 Dojo Plugin
[INFO]   Struts 2 REST Plugin
[INFO]   Struts 2 Portlet Plugin
[INFO]   Struts 2 TestNG Plugin
[INFO]   Struts 2 DWR Plugin
[INFO]   Struts 2 OVal Plugin
[INFO]   Struts 2 OSGi Plugin
[INFO]   Struts 2 JSON Plugin
[INFO]   Struts 2 Embedded JSP Plugin
[INFO]   Struts 2 GXP Plugin
[INFO] 


[INFO] Building Struts Plugins
[INFO]task-segment: [install]
[INFO] 

[INFO] Setting property: classpath.resource.loader.class = 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [bundle:manifest {execution: bundle-manifest}]
[WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle]
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive 
invocation.

[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-source}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing C:\Struts\struts2\plugins\pom.xml to 
C:\Users\Balwinder\.m2\repository\org\apache\struts\struts2-plugins\2.2.2-SNAPSHOT\struts2-plugins-2.2.2-SNAPSHOT.pom
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Error installing artifact's metadata: Error installing metadata: 
Error updating group repository metadata


only whitespace content allowed before start tag and not \u0 (position: 
START_DOCUMENT seen \u0... @1:1)
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time: 10 seconds
[INFO] Finished at: Tue Dec 07 21:47:10 IST 2010
[INFO] Final Memory: 24M/58M
[INFO] 



Thanks in advance.

Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: i18n database backed

2010-02-12 Thread Balwinder Kumar

Chris, What sort of benefit database will offer over properties files?

Regards,
Balwinder Kumar
CRANFORD, CHRIS wrote:

Anyone have any suggested ways to support i18n internationalization
backed by a database table rather than property files?



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: javax.el.ELException Select Tag

2009-10-30 Thread Balwinder Kumar

org.apache.commons.collections.map.ListOrderedMap will preserve the order.

Regards,
Balwinder Kumar
Bhaarat Sharma wrote:

however, this does not gurantee the order (because of the HashMap)...

something else can be used to preserve the order

On Thu, Oct 29, 2009 at 12:31 PM, Bhaarat Sharma bhaara...@gmail.comwrote:

  

got it.

it should be list=#...@java.util.hashmap@{'1':'January',
'2':'February','3':'March'}

source:
http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html


http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.htmlmailing
list archives FTW


On Thu, Oct 29, 2009 at 12:12 PM, Bhaarat Sharma bhaara...@gmail.comwrote:



how can I keep it from interpreting it as EL expression its OGNL..

I am using Sun App Server 9.1

could there be a setting on the server?


On Thu, Oct 29, 2009 at 12:10 PM, Bhaarat Sharma bhaara...@gmail.comwrote:

  

:(

still it gives this error:

javax.el.ELException: Error Parsing: %{#{'ALL':'All  Programs', 'BU':'all
BU programs'}}


On Thu, Oct 29, 2009 at 12:02 PM, James Cook james.c...@wecomm.comwrote:



Hi,

I checked the javadoc for select and this is what is listed.

s:select label=Months
   name=months
   headerKey=-1 headerValue=Select Month
   list=#{'01':'Jan', '02':'Feb', [...]}
   value=selectedMonth
   required=true
 /

This is what I used last night. So #{} worked for me.

-Original Message-
From: Dale Newfield [mailto:d...@newfield.org]
Sent: 29 October 2009 15:54
To: Struts Users Mailing List
Subject: Re: javax.el.ELException Select Tag

Bhaarat Sharma wrote:
  

so it should be:

s:select label=programType id=programType name=programType
 list=%{'ALL':'All Programs', 'BU':'BY Problems',


'TS':'TS
  

Programs'}
 value=selectedProgram required=true/


No: list='%{#{All:All Programs, BU:BY Problems...}}'

-Dale


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  


  



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Initializing Application

2009-07-15 Thread Balwinder Kumar

Hi All,

I am trying to develop a framework based on Struts 2, I am finding it 
very difficult to  decide  where to put the code that is  generally 
called in  ActionServlet  init method. Any pointer towards this.

Thanks in advance.

Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Initializing Application

2009-07-15 Thread Balwinder Kumar
Thanks Pawel and David for your response. I would like to evaluate both 
option before proceeding.


Regards,
Balwinder Kumar

Paweł Wielgus wrote:

Hi,
i'm initing my apps by implementing ServletContextListener and
registering it in web.xml like that:
web-app
listener

listener-classcom.my.ServletContextListenerImplementation/listener-class
/listener
/web-app

It has nothing to do with struts but i hope that's what You are looking for.

Best greetings,
Paweł Wielgus.


2009/7/15 David Canos davidca...@gmail.com:
  

I think Struts 2 uses a Struts2Filter to do the init issues of the each
request

2009/7/15 Balwinder Kumar balwinder@gmail.com



Hi All,

I am trying to develop a framework based on Struts 2, I am finding it very
difficult to  decide  where to put the code that is  generally called in
 ActionServlet  init method. Any pointer towards this.
Thanks in advance.

Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  




Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Balwinder Kumar
This is probably due to the fact that the version of Java useed in 
deployment environment is lower than the version of Java used for 
compiling Hibernate classes.



Dimitrios Christodoulakis wrote:

It seems that indeed the filters are not starting properly: The catalina.out
log indicates the following:

00:45:40,018 ERROR [/myapp]:3639 - Exception starting filter struts2
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
...
...

00:45:40,044 ERROR [/myapp]:3639 - Exception starting filter HibernateFilter
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
...
...

is it right to assume that bad verison number in .class file means Tomcat
5.5 is unable to run this struts2-hibernate combination? -- Any advice on
deciphering the above errors?

--I tried to run it locally on tomcat 5.5 using eclipse, but turns out I
cannot even assign this project to 5.5 because - according to eclipse: The
server does not support version 2.5 of the J2EE Web module specification.

 So, as a next step would you recommend I upgrade to Tomcat 6.0 on godaddy,
or try to integrate Apache with the existing tomcat 5.5 first to see what
happens?

Wes, you mentioned below your favorite way of integrating http + tomcat,
would you be able to provide a few general steps how to go about doing this?

Many thanks for any help



On Sun, Jun 21, 2009 at 12:09 PM, Dimitrios Christodoulakis 
dimi@gmail.com wrote:
  

Thanks for the input. I'll test it locally under 5.5. and  will dig deeper


in the logs and see what I can find. I will let you know.
  

Appreciate the insight.

On Sun, Jun 21, 2009 at 11:00 AM, Wes Wannemacher w...@wantii.com wrote:


I'm with dave. Check the logs, in particular, look for messages about
whether or not the filter started properly. Also check the httpd
configuration. There are a few ways to integrate httpd and tomcat.
Many people will use mod_jk but lately I am in favor of having tomcat
listen on localhost and have httpd reverse proxy all requests. There
was a belief for a while that httpd should serve static content and
tomcat serve jsps only. But any more I find tomcat's performance to be
good enough to serve the static content as well.

On 6/21/09, Dave Newton newton.d...@yahoo.com wrote:
  

Dimitrios Christodoulakis wrote:


I am having some issues deploying a struts2 application at godaddy and
  

was
  

wondering if anyone has dealt with something similar in the past. The
application runs fine on my local machine with tomcat 6.0. My next
  

step
  

was
to upload and deploy at godaddy dedicated server which is running
  

tomcat
  

5.5
  

Does it run locally under 5.5?



The upload of the war file and expansion works fine, and the static
  

html
  

display fine too. But as soon as a struts2 action is called, I always
  

get
  

the 404 not found error: The requested URL /Menu.action was not found
  

on
  

this server.
  

What's in the logs?

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

  


  




Re: Jasper Plugin cannot find file

2009-04-21 Thread Balwinder Kumar
I would suggest that first give the complete absolute path and check if 
the program is working fine, just to ensure, there is a problem with 
path only.


Once established problem is with path only, I may help you further.

Regards,
Balwinder Kumar

Security Management wrote:

I'm using the tutorial here:
http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html

I have put a file here:

/jasper/report.jrxml

I can look in my war file and verify it.

I'm trying to compile and render with it.  Here is my action code:

action name=saveReport class=com.secmgmt.struts2.actions.SaveReport
result name=success type=jasper
param name=location/jasper/scrounger_report.jasper/param
param name=dataSourcepersonList/param
param name=formatPDF/param
/result
/action

I've also tried:
param name=locationmy-webapp/jasper/scrounger_report.jasper/param

Which is what the tutorial has.

In my action, I have:
try
{
JasperCompileManager.compileReportToFile(
my-webapp/jasper/scrounger_report.jrxml,
my-webapp/jasper/scrounger_report.jasper);
}
catch (Exception e)
{
e.printStackTrace();
return ERROR;
}

But I always get a file not found error, I've tried just the
/jasper/...jrxml too, without the appname (which I think is the correct way)
but no luck.

What path should I be using if the file is in /jasper/scrounger_report.jrxml
in my war file?

Thanks
-Original Message-
From: stanl...@gmail.com [mailto:stanl...@gmail.com] 
Sent: Tuesday, April 21, 2009 2:29 PM

To: Struts Users Mailing List
Subject: Re: How to do matematical operation in jsp.

Nice reference Wes!  BTW, I noticed you are not using the new cover letter
for the TPS reports, so I'm going to have to go ahead and ask you to read
that memo one more time.

Peace,
the Bob's

On Tue, Apr 21, 2009 at 11:11 AM, Wes Wannemacher w...@wantii.com wrote:

  

[snip]


OTOH, siphoning the $.0039079850466805510222911834716796875
  

into


offshore accounts will eventually make you rich.

Dave Expecting his 10% cut Newton

  

[/snip]

But, you have to be careful when moving the money into your own account...

[quote]
We're not just talking about while-collar, resort prison, we're
talking Federal Pound Me In the *** Prison!
[/quote]

You have to be especially careful of mundane details like decimal places.

-Wes

--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  




Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Balwinder

nauke. wrote:

Hi all,

Is there a way to access values in ApplicationResources.properties in
Javascript functions?
I've found a way where I can just pass a value from the app resource file as
a parameter, but discovered that I return alerts with different messages
based on some criteria.

Any ideas?

Thanks heaps

  

Try this
script
var someVar = 'bean:message key=app.mykey bundle=MESSAGE';
/script


hope this will serve the purpose.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FireFox 3 and Form Bean in Session

2008-08-05 Thread Balwinder

Hi All,

In my development, I put a form bean into session scope, when I access 
the page in Firefox 3, it  is retaining the values of this form bean 
even if I log out  and login as a different user, when I just wanted to 
retain the values in the same login session. This is not the case if I 
use IE. I am using Struts1.1 and Tomcat 4.1.30.


Any help is highly appreciated. Thanks in advance.

Thanks,
Balwinder Kumar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting tag error

2007-03-01 Thread balwinder

Hi Everyone,

I am developing application in struts 1.1 and in my tomcat5.5 localhost 
log file i am getting


INFO: Could not load TagExtraInfo class 
org.apache.struts.taglib.nested.NestedWriteNestingTei: 
org.apache.struts.taglib.nested.NestedWriteNestingTei


printed very frequently.

I tried a lot but couldn't find a  reasonable  cause.

I need help. Any suggestion and help is highly appreciated.

Thanks and Regards,
Balwinder Kumar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Session Object Storage Capacity.

2007-01-07 Thread Balwinder

Hi Everyone!!!

While working with struts application, i cmae across a very weird but 
important question.
I just wanted to know how much data we can store in our Page, 
PageContext, Request, Session, and Application objects?


Thanks.

Thanks and regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamically adding row!

2006-11-14 Thread Balwinder

Hi All!

I am trying to add a row in a table dynamically to add new record in 
Struts web application.


Iam using struts 1.1 and need to implement non-Ajax solution.

Will display tags has solution to this situation?

Any help  will be appreciated.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Lost Error Message!!

2006-11-13 Thread Balwinder

Hi!!

Iam losing error message when iam setting redirect=true in  action 
mapping, iam doing this to avoid resubmit of data on page refresh ie if 
user press F5 function key.


Any help would be highly appreciated.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Last Page Regenration

2006-11-13 Thread Balwinder

Nitin M. Mandolkar wrote:


This solution is also good. If later on you find the filter code block
is taking more time and creating some performance issues in that case
you can easily remove it. By making few changes in web.xml. 


Even the URL pattern can help you more to apply it for specific pages
rather than applying it to all pages. 

Nitin 


-Original Message-
From: Chetan Pandey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 11:57 PM

To: 'Struts Users Mailing List'
Subject: RE: Last Page Regenration

Use Filters.

On every page a User visits make it visit a Filter.

Record the page when it is visited and store it in the DB.

That what when he logs in fetch this value and send User to this page.

Make sure you put your Filter Info in web.xml in the following manner:

filter
filter-namemyFilter/filter-name
filter-classcomplete.path.to.Filter/filter-class
/filter

filter-mapping
filter-name myFilter /filter-name
url-pattern*.do/url-pattern
/filter-mapping

Just Remember Writing Filters is trivial.

Chetan

-Original Message-
From: Balwinder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 09, 2006 2:56 PM

To: Struts Users Mailing List
Subject: Last Page Regenration

Hi All !!

I have a situation in my application, i want to implement a 
functionality that does, if a user accidentally close his browser 
window, on his next request(in new window) to the application he should 
be displayed with the last page he visited this should happen after 
login(authentication). I want this to implement without cookies.


Any help would be highly appreciated.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


Hi  Nitin and Chetan Pandey,

Thanks for your help. For some reaon iam currently giving up this 
feature in our web app.


any way thanks a lot.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Lost Error Message!!

2006-11-13 Thread Balwinder

Anil Kumar T wrote:


Would the svaeToken(), isTokenValid() helps you..?

-Original Message-
From: Juan Espinosa [mailto:[EMAIL PROTECTED]

Sent: Monday, November 13, 2006 6:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Lost Error Message!!

Im not very sure, but i think that when you use redirect= true a new
request
is built(when the redirect is made) and there you loose all your data
that
is in the request.


To avoid the resubmit there is others solutions.

Regards,


Juan

-Mensaje original-
De: Balwinder [mailto:[EMAIL PROTECTED]

Enviado el: Lunes, 13 de Noviembre de 2006 09:10 a.m.
Para: Struts Users Mailing List
Asunto: Lost Error Message!!

Hi!!

Iam losing error message when iam setting redirect=true in  action
mapping,
iam doing this to avoid resubmit of data on page refresh ie if user
press F5
function key.

Any help would be highly appreciated.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.3/531 - Release Date:
12/11/2006



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


No, using struts 1.0.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Transaction control in Struts

2006-11-08 Thread Balwinder

Hi everyone!!

What option struts provide for handling transaction(atomicity) in 
application.


Thanks in advance.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Regeneration of last page visited.

2006-11-08 Thread Balwinder

Hi All,

I have a situation, it goes like this; If user is accessing application 
(build on struts) and accidentally he close the browser, on revisit to 
the same application by the same user, user after login should get the 
last page he was working on.


I am working on cookies option but somehow i feel that it is not good, i 
need an  alternate solution that deals at server level.


Any help is highly appreciated.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Last Page Regenration

2006-11-08 Thread Balwinder

Hi All !!

I have a situation in my application, i want to implement a 
functionality that does, if a user accidentally close his browser 
window, on his next request(in new window) to the application he should 
be displayed with the last page he visited this should happen after 
login(authentication). I want this to implement without cookies.


Any help would be highly appreciated.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Downloading file

2006-11-03 Thread Balwinder

Hi All,

I am developing an application in struts in which I needed to download a 
file from a server.  When iam clicking on download button, file lose its 
extension and it with the action ie .do and does not open with the 
associated application.


Any help is highly appreciated.

Thanks in advance.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Downloading file

2006-11-03 Thread Balwinder

Mike Baroukh wrote:



You must use content-disposition header :

response.setHeader(Content-Disposition, attachment; 
filename=\+myfilename+\);


You can also add a mime type with something like

String mimeType = getServletContext().getMimeType(myfilename);
response.setHeader(Content-Type, 
mimeType==null?x-type/unknown:mimeType);





Mike

Balwinder a écrit :


Hi All,

I am developing an application in struts in which I needed to 
download a file from a server.  When iam clicking on download button, 
file lose its extension and it with the action ie .do and does not 
open with the associated application.


Any help is highly appreciated.

Thanks in advance.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Thanks a lot!!Iam through this  problem, it is working now.

Thanks and Regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: bean write. escape HTML

2006-10-26 Thread Balwinder

Puneet Lakhina wrote:


I am writing something on a JSP page using bean write. But its escaping
HTML. i.e suppose I have a bean named msgs with the value 
h1Message/h1

(without the quotes)

I get the literal string h1Message/h1 on my JSP Page. i.e it escapes
HTML. which means the generated HTML is lt;h1gt;Messagelt;/gt;

I dont want that to be done. I want Message with h1 tags.

I hope I make sense.

I am using struts 1.1


Use filter attribute of bean:write.
If this attribute is set to |true|, the rendered property value will be 
filtered for characters that are sensitive in HTML, and any such 
characters will be replaced by their entity equivalents.


I hope this solves your problem.

Cheers
Balwinder Kumar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Action output in new window without menu/toolbar

2006-09-20 Thread Balwinder

Martin Kindler wrote:


Hi

I am using Struts 1.2.x and try to achieve the following:
on a page I have a form whose action calls a Struts action. The result shall
be displayed in a new window.
No problem so far. But:
The new window should have no menu- and toolbar.

Is this possible? and if, how?

Martin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


Hi,

Use javascript function, 
window.open(URL,windowName,menubar=no,toolbar=no);.


Happy coding!!
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Action output in new window without menu/toolbar

2006-09-20 Thread Balwinder

Martin Kindler wrote:


Thanks,
but how do I use it with a form?

I have in my html-code
form action=URL2StrutsAction.do target=_blank

Martin

 


-Ursprüngliche Nachricht-
Von: Balwinder [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 20. September 2006 13:17

An: Struts Users Mailing List
Betreff: Re: Action output in new window without menu/toolbar


Martin Kindler wrote:

   


Hi

I am using Struts 1.2.x and try to achieve the following:
on a page I have a form whose action calls a Struts action. 
 

The result 
   


shall be displayed in a new window. No problem so far. But:
The new window should have no menu- and toolbar.

Is this possible? and if, how?

Martin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 


Hi,

Use javascript function, 
window.open(URL,windowName,menubar=no,toolbar=no);.


Happy coding!!
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 

If  iam getting your problem in a right way then you might be calling 
this action on some event (ie on submit of some form or clicking on some 
view link or so).


On that very event call javascript and use this code.

Happy Coding!!
Balwinder

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: AW: Action output in new window without menu/toolbar

2006-09-20 Thread Balwinder

Martin Kindler wrote:


Thank you Balwinder and Patil!

For all those who are as stupid as I am the solution is very simple:

form action=URL2StrutsAction.do 
 onsubmit='open(, outputWindow, menubar=false, toolbar=false);'

 target=outputWindow

Martin

 


-Ursprüngliche Nachricht-
Von: Balwinder [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 20. September 2006 14:04

An: Struts Users Mailing List
Betreff: Re: AW: Action output in new window without menu/toolbar


Martin Kindler wrote:

   


Thanks,
but how do I use it with a form?

I have in my html-code
form action=URL2StrutsAction.do target=_blank

Martin



 


-Ursprüngliche Nachricht-
Von: Balwinder [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 20. September 2006 13:17
An: Struts Users Mailing List
Betreff: Re: Action output in new window without menu/toolbar


Martin Kindler wrote:

  

   


Hi

I am using Struts 1.2.x and try to achieve the following:
on a page I have a form whose action calls a Struts action.


 


The result
  

   

shall be displayed in a new window. No problem so far. 
 

But: The new 
   


window should have no menu- and toolbar.

Is this possible? and if, how?

Martin


---
 


--
   


To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





 


Hi,

Use javascript function,
window.open(URL,windowName,menubar=no,toolbar=no);.

Happy coding!!
Balwinder Kumar


   


-
   


To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 

If  iam getting your problem in a right way then you might be calling 
this action on some event (ie on submit of some form or 
clicking on some 
view link or so).


On that very event call javascript and use this code.

Happy Coding!!
Balwinder

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


Thanks Martin even this is something new for me.

Thanks,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how can i use two properties files?

2006-09-19 Thread Balwinder Kumar
Hi

Configure struts config like this
message-resources parameter=com.resources.MessageResources
null=false/

message-resources parameter=comresources.ImageResources
null=false key=image/

in jsp

you can use image message resources as
bean:message bundle='image' key='image.myImageKey'/
and default message resources can be used as
bean:message  key='application.somekey'/

I hope this would solve your problem.

Bals


-Original Message-
From: SrinivasaReddy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 5:51 PM
To: Struts Users Mailing List
Subject: Re: how can i use two properties files?


Ex code here
message-resources parameter=com.resources.MessageResources
null=false/

!-- Image Resorces --

message-resources parameter=comresources.ImageResources
null=false key=esell.image/

!-- Error Message Resources --

message-resources
parameter=comresources.ErrorMessageResources null=false
key=esell.error /

!-- Button Message Resources --

message-resources
parameter=comresources.ButtonMessageResources null=false
key=esell.button /

!-- Registration Questions --

message-resources
parameter=com...resources.Questions.properties null=false
key=esell.questions/





In jsp:

If it is from Image resources: html:img srcKey=image.title_bg01
bundle=esell.image/

If It is from Message resources bean:message key=selectdist_message/
no need or bundle bcoz there is no bundle name in messge-resources ie it is
default message resources


Regards
Srinivasa Reddy



- Original Message -
From: Mallik [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Tuesday, September 19, 2006 5:42 PM
Subject: how can i use two properties files?



 Hi Friends
 my application in big and it moduled into 4
 i wnat to use one properties file for each module
 let me know how to configure in struts-config.xml
 and how can i specify which file to use
 thanks inadvance
 ur's
 Mallik


 --
 View this message in context:

http://www.nabble.com/how-can-i-use-two-properties-files--tf2298661.html#a63
86912
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: R: How to OR condition in JSP using Struts

2006-09-18 Thread Balwinder

Marcello Savino wrote:


Try something like this

c:when test='${myVar == 1 or myVar2!=2}' 
/c:when

Hih, marcello

-Messaggio originale-
Da: Hanmay Udgiri [mailto:[EMAIL PROTECTED] 
Inviato: domenica 17 settembre 2006 21.21

A: Struts Users Mailing List
Oggetto: How to OR condition in JSP using Struts

Hi
I want to check an OR condition in struts using logic tags.??
Can we use logic tags to check OR condition??


 


Hi,

A simple approach is

nested:equal property=testProperty value=orCondition1
doSomething
/nested:equal
nested:equal property=testProperty value=orCondition2
doSomething
/nested:equal

i hope this will solve your problem.

Thanks and regards,
Balwinder Kumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]