somayeh khodadad

Greenhorn
+ Follow
since Oct 31, 2010
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 somayeh khodadad

thanks for your answer,
I think that if i use your soloution the session will never expire and I don't want this to happen.
Just I want to prevent the session to be expired when the server is sending response to the client.
5 years ago
Hi,
I have a web application that monitors all incoming and outgoing call contacts of an office . I used comet technology to send messages from server to the client.
Sometimes the process of sending response to the client , takes more time than session timeout that it causes the session to be expired.
My question is that how can i refresh lastAccessedTime of httpSession at the server side to prevent session timeout ?

5 years ago

hi everybody,

I use Spring Security Acl in my application and everything works fine, but i have two questions :

1) How can I get all acl entry of a sid ? (or how can i get all permissions of domain objects that assigned to a user )

2) Is it correct that i query on the acl tables directly to get my required data instead of using JdbcMutableAclService ?


Thanks in advance.
6 years ago

hi everybody,
according to this document : http://static.springsource.org/spring/docs/current/spring-framework-reference/html/remoting.html , I've written a web service that using JAX-WS in spring.
Now, i want to test my web service by an application in php. Therefore I need the WSDL file , but I don't know how to create it.

I would be glad if someone could help.
6 years ago
hi everybody,

I have an application that uses these jar files:
spring.jar
spring-binding-1.0.1.jar
springmodules-validator-0.2.jar
spring-webflow-1.0.1.jar
spring-beans.jar(2.5.5)

when I run my application, I get an error like this:
java.lang.NoClassDefFoundError: org/springframework/core/AliasRegistry

I have searched the error and noticed that my spring jar files are not in a same version.
The problem is that I can't find my required jar files in a same version ,I need a site to download these files in a same version,

Thanks
6 years ago
hi everybody,
i'm new at using web services and i couldn't find any suitable tutorial for deserializing array of object in the client side.

I've written a client that calling a method of the web service that returning an array of object. but when i run my client i get an exception that i think it is related to my deserializer code.

i'll be glad if someone can help me,
thanks.

this is WSDL of web service:




This is my client code :




this is Exception :



7 years ago
hi,
at first i want to know, does anyone know where can i find the explanation of coolmenu4-config.js ???

but my main question is that, does coolmenu4 have any options to scroll menu when all menu items do not place in a page, or in the other hand width of menu is more than width of page ?

thanks.
8 years ago
hi everybody,
i know how to use spring:message tag in my project. but up to now i have used it just for latin characters. Now i want to use it for another language like persian and i don't know what should i do.

i'll be grateful if you help me.
Thanks.

8 years ago
hi dear Jeanne ,
thanks for your advice. my problem solved.
i used servlet and put cookie.setPath("/") in my servlet. then every application have access to cookies which were created in servlet



8 years ago
JSP
hi everybody,
I have a jsp page. I used frameset tag and i have two frames in my page. The first frame loads a web page that i have defined some shortcut keys for it and they work well in this page. but i have a problem when the focus of main page is on second frame . at this time when i press one of that shortcut keys, the keys doesn't work and I have to focus on first frame to handle the key event.
I want to know how can i use that shortcut keys in the main jsp page when the focus is not on first frame ?

thanks in advance,
Somayeh

thanks for your advice i'll try servlet and tell you the result .
8 years ago
JSP

hi dear Ilari,
yes, i can access to cookie in applicationA after setting the cookie, but not in applicationB .
8 years ago
JSP
hi
thanks for your answer dear Jeanne.
i've used both of cookie.setPath("/") and cookie.setDomain("localhost") in my code before. but i can't see that cookie in my applicationB :(

I attach my code with this post , I would be thankfull if you check it for me.
Somayeh.
------------------------------------------------------------------
<!-- http://localhost:8080/applicationA/setcookie.jsp -->

<%@ page language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
Cookie cookie = new Cookie ("cookieName","cookieValue");
cookie.setMaxAge(365 * 24 * 60 * 60);
response.addCookie(cookie);

cookie.setPath("/");
cookie.setDomain("localhost");
%>

<html>
<head>
<title>Cookie Saved</title>
</head>
<h1>Cookie created and saved</h1>

</html>

---------------------------------------

<!-- http://localhost:8080/applicationB/showcookie.jsp -->

<%@ page language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
<title>Show Saved Cookie</title>
</head>
<h1>Show cookies</h1>
<body>
<p>
List of Cookies:<br/>
<c:forEach items="<%=(request.getCookies())%>" var="c">
  
<b><c:out value="${c.name}" /></b>:
<c:out value="${c.value}" /><br>
</c:forEach>
</body>
</html>

8 years ago
JSP
hi there,
i want to know how can i use a cookie of an application in another application ?

for example,I have an jsp page at (http://localhost:8080/applicationA/setcookie.jsp ) that creates a new cookie and sets name and value for it. Then i want to use that cookie in another page in applicationB at (http://localhost:8080/applicationB/usecookie.jsp) .

is it correct to use (cookie.setDomain("/localhost") after creating new cookie ???

thanks in advance.
Somayeh.
8 years ago
JSP