Avatar of onaled777
onaled777
Flag for United States of America asked on

"forward:" causing error on Weblogic with Spring framework code

Does any know why this does not appear to work in weblogic. The code is shown below:

But basically, instead of staying in its own controller, the "forward:" kicks the application back to the main controller or home page.

I have tried this in the tomcat server that comes with Spring Source and the forwarding does not present an issue.

Does any one know how to resolve this in web logic.


//This is the called to forward:

	@RequestMapping("processDelete")
	public String processDelete(Model model, @RequestParam(value="tumbleValue", required=true) String tumbleValue) throws Exception {
		
		alarmConfigService.deleteTumblingAlarmException(tumbleValue, tumbleType);
		
		return "forward:";
	}

Open in new window

//This is the begin() method:

	@RequestMapping()
	public String begin(Model model, @RequestParam(value="alarmTypeCfgId", required=false) Long alarmTypeCfgIdObj) throws Exception {
		logger.info("begin("+alarmTypeCfgId+") -- "+this.getControllerUrl());

		if(alarmTypeCfgIdObj!=null) {
			alarmTypeCfgId = alarmTypeCfgIdObj.longValue();
		}
		
		alarmTypeConfig = alarmConfigService.getTumblingAlarmType(tumbleType, alarmTypeCfgId);
		results = alarmConfigService.getTumblingAlarmExceptionList(tumbleType);
		
		setModel(model);
		return TO_INDEX;
	}

Open in new window

Java EE

Avatar of undefined
Last Comment
onaled777

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Sathish David Kumar N

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
onaled777

ASKER
thanks.  I just ended up calling the beging method again.  But this I will  definitely give a try.  Thanks for your input.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck