ashish kulkarni

Ranch Hand
+ Follow
since Aug 15, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ashish kulkarni


If i have a var in ksh

path=/apps/path/script/test.sh

from this i want to get only test.sh

how can i do this
5 years ago
Hi
I am trying to add date validation in validation.xml file, i have it setup as
below, it validates properly data entry like 0A/01/2012 or 01/A2/2012
but it makes date 01/01/2ee3 to be a valid date which is clearly not,

what am i missing


<constant>
<constant-name>dateFormat</constant-name>
<constant-value>MM/dd/yyyy</constant-value>
</constant>

<field property="expirationDate" depends="required,date">
<arg key="label.expirationDate"/>
<var><var-name>datePattern</var-name><var-value>${dateFormat}</var-value></var>
</field>





Ashish
7 years ago
Hi
I have a table which is displayed to users with only 1 row, users can add more rows to this table, i have javascript which adds new rows to this table,
How can i define my FormBean to handle this data entered in this table, it should be like a list of data which i can then insert into database.

Any ideas

7 years ago
I have few questions, if you can answer any would be great help

  • I have configured LDAP to do authentication, and i am able to load the roles and authorize pattern by ROLES, i would like to know if i can add ROLES and user id for authorization for example, in below code /displayMyData will be available for all users in ROLE ROLE_ROLEADMINS, but i would like to make it available for a particular user id MYUSERID, so i dont want him to add to this ROLE, but give access to only 1 function, is it possible to do so, and if yes HOW?
    I know you can give acccess by IP address using hasIpAddress




  • Can I get all the roles from a database table, instead of hard coding them in XML file


  • I can print user name on JSP page using tag <security:authentication property="principal.username"/>
    Is there any tag to print all the roles on JSP page for the logged in user for testing purpose


  • How can i access LDAP context and user id in controller class so i read more properties or do some function after user logs in,

  • 8 years ago
    I am using spring 3.0 and hibernate 3.0, i am using spring to manage hibernate transaction, when ever i have error when inserting or updating data in database i get following exception

    The code in controller is as below, so i am catching saveAirport method, so i am expecting the page getting redirected to reference/add_airport.jsp, but it throws error, any ideas how to handle this issue


    Hi
    I got that working, i changed the mapping in web.xml from



    To

    8 years ago
    Does anyone have an example of how to do it,
    If my controller is like, it does not have Model, how can i get instance of Model in my controller

    8 years ago
    Is there any good way of putting messages from controller to JSP pages, for examples in JSF i can use FacesContext and populate messages in this context and they are available to be displayed in JSP page,
    Is there a similar kind of mechanism in spring and mvc
    8 years ago
    What i have done in my backingbean i have added redirect like below and looks like it is working

    8 years ago
    JSF
    Are there are good tag libraries to display table data in spring? like JSF has t:dataTable?
    8 years ago
    Hi
    I am trying to integrate Spring 3.0 with current JSF 1.1 project, so i got spring added and it works well, now i want to send request from jsf backing bean to spring controller, so in my faces-config.xml i changed as below



    I have a Spring controller defined as @RequestMapping(value = "/details") and in my web.xml i have added


    When i directly call URL http://localhost:8080/myapp/spring/details it works fine, but when jsf is forwarding this request it adds .faces so the URL looks like below

    http://localhost:8080/myapp/spring/details.faces

    So how can i get it working any ideas
    8 years ago
    JSF
    Hi
    I am trying to integrate Spring 3.0 with current JSF 1.1 project, so i got spring added and it works well, now i want to send request from jsf backing bean to spring controller, so in my faces-config.xml i changed as below



    I have a Spring controller defined as @RequestMapping(value = "/details") and in my web.xml i have added


    When i directly call URL http://localhost:8080/myapp/spring/details it works fine, but when jsf is forwarding this request it adds .faces so the URL looks like below

    http://localhost:8080/myapp/spring/details.faces

    So how can i get it working any ideas
    8 years ago
    I got it working by changing servlet-contxt.xml file

    From



    To

    8 years ago
    msgSrc.getMessage("label.firstname", null, null);

    This also does not work

    I get below error


    org.springframework.context.NoSuchMessageException: No message found under code 'label.firstname' for locale 'null'.
    org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:135)
    com.tauck.spring.HomeController.home(HomeController.java:40)

    8 years ago