Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Spring 에서 새로고침시 중복처리 되는 문제...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
검은몽스  
View profile   Translate to Translated (View Original)
 More options Mar 26 2011, 1:28 am
From: 검은몽스 <kbta...@gmail.com>
Date: Fri, 25 Mar 2011 22:28:49 -0700 (PDT)
Local: Sat, Mar 26 2011 1:28 am
Subject: Spring 에서 새로고침시 중복처리 되는 문제...
현재 스프링 2.5 MVC 어노테이션 방식으로 웹 요청 처리를 하고 있어요....

보통 글 등록을 하고 목록으로 리다이렉트를 하는데....   여기는 글등록을 하고 다시 글등록폼으로 해달라네요..  ㅡㅡ^

그래서 새로고침을 하게 되면 중복으로 글이 등록이 되는데...

예전 스트럿츠에서 Token으로 처리를 해본적이있는데 스프링에서는 어떤식으로 처리를 하는지요?

검색을 해보니.. SessionStatus를 사용하면 된다고 하는데 ..

현재 여기 시스템이 내부는 마이플랫폼, 기타등등으로 구축이 되어있고 일부 기능만 저희가 스프링을 써서 일부만 개발을 하고 있는
상황인데.

어떤식으로 처리를 하셨는지 도움좀 부탁드려요~~~


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sewon Ann  
View profile   Translate to Translated (View Original)
 More options Mar 26 2011, 2:22 am
From: Sewon Ann <king...@gmail.com>
Date: Sat, 26 Mar 2011 15:22:52 +0900
Local: Sat, Mar 26 2011 2:22 am
Subject: Re: [KSUG] Spring 에서 새로고침시 중복처리 되는 문제...

글 등록 후 다시 글 등록 폼으로 갈 때에도 redirect를 하면 되지 않나요?

/edit.htm -> /post.html -> (리다이렉트) -> /edit.html 로 가면 새로고침 해도 문제가 없을 듯 한데요.
혹시 /post.html 에서 다시 수정화면으로 이동할 때 리다이렉트가 아닌 forwarding 방식으로 보내신 건 아닌가요?

2011/3/26 검은몽스 <kbta...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kimjunho  
View profile   Translate to Translated (View Original)
 More options Mar 27 2011, 4:38 am
From: kimjunho <jju...@hotmail.com>
Date: Sun, 27 Mar 2011 17:38:09 +0900
Local: Sun, Mar 27 2011 4:38 am
Subject: RE: [KSUG] Spring 에서 새로고침시 중복처리 되는 문제...

물론 forwarding으로 처리하면 되겠지만 파라메터 값을 유지할 필요가
있는경우는 불가능 합니다.

말씀하신 SessionStatus 를 사용하면 세션이 없는 오류가 나게 되어있고 또한
무조건 적용이 불가능 합니다.

sessionAttribute 값이 form값으로 넘어오지 않는 경우(session에 존재하지
않는경우) 오류가 발생하게 됩니다.

사용해본 결과 둘다 부족한 점이 있어서 어플리케이션 단에서 따로 로직으로
처리해 주셔야 할 것 같습니다.(보통 세션값 체크)

틀린점이 있다면 다른 고수님들 의견 부탁드립니다.

From: ksug@googlegroups.com [mailto:ksug@googlegroups.com] On Behalf Of
Sewon Ann
Sent: Saturday, March 26, 2011 3:23 PM
To: ksug@googlegroups.com
Cc: 검은몽스
Subject: Re: [KSUG] Spring 에서 새로고침시 중복처리 되는 문제...

글 등록 후 다시 글 등록 폼으로 갈 때에도 redirect를 하면 되지 않나요?

/edit.htm -> /post.html -> (리다이렉트) -> /edit.html 로 가면 새로고침 해도
문제가 없을 듯 한데요.

혹시 /post.html 에서 다시 수정화면으로 이동할 때 리다이렉트가 아닌
forwarding 방식으로 보내신 건 아닌가요?

2011/3/26 검은몽스 <kbta...@gmail.com>

현재 스프링 2.5 MVC 어노테이션 방식으로 웹 요청 처리를 하고 있어요....

보통 글 등록을 하고 목록으로 리다이렉트를 하는데....   여기는 글등록을 하고
다시 글등록폼으로 해달라네요..  ㅡㅡ^

그래서 새로고침을 하게 되면 중복으로 글이 등록이 되는데...

예전 스트럿츠에서 Token으로 처리를 해본적이있는데 스프링에서는 어떤식으로
처리를 하는지요?

검색을 해보니.. SessionStatus를 사용하면 된다고 하는데 ..

현재 여기 시스템이 내부는 마이플랫폼, 기타등등으로 구축이 되어있고 일부
기능만 저희가 스프링을 써서 일부만 개발을 하고 있는
상황인데.

어떤식으로 처리를 하셨는지 도움좀 부탁드려요~~~

--
Google 그룹스 'Korea Spring User Group' 그룹에 가입했으므로 본 메일이
전송되었습니다.
이 그룹에 게시하려면 ksug@googlegroups.com(으)로 이메일을 보내세요.
그룹에서 탈퇴하려면 ksug+unsubscribe@googlegroups.com
<mailto:ksug%2Bunsubscribe@googlegroups.com> 로 이메일을 보내주세요.
더 많은 옵션을 보려면 http://groups.google.com/group/ksug?hl=ko에서 그룹을
방문하세요.

--
Google 그룹스 'Korea Spring User Group' 그룹에 가입했으므로 본 메일이
전송되었습니다.
이 그룹에 게시하려면 ksug@googlegroups.com(으)로 이메일을 보내세요.
그룹에서 탈퇴하려면 ksug+unsubscribe@googlegroups.com로 이메일을 보내주세요.
더 많은 옵션을 보려면 http://groups.google.com/group/ksug?hl=ko에서 그룹을
방문하세요.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jae myung Park  
View profile   Translate to Translated (View Original)
 More options Mar 27 2011, 9:04 pm
From: Jae myung Park <kbta...@gmail.com>
Date: Mon, 28 Mar 2011 10:04:43 +0900
Local: Sun, Mar 27 2011 9:04 pm
Subject: Re: [KSUG] Spring 에서 새로고침시 중복처리 되는 문제...

답변해주셔서 감사합니다...    리다이렉트로 해결하니깐 될듯해요~^^

2011년 3월 27일 오후 5:38, kimjunho <jju...@hotmail.com>님의 말:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »