460 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
76
views
I keep running into an error with AMPL wherein whenever I try to model my mod file I get an error: d is not defined [closed]
I keep running into an error with AMPL wherein whenever I try to model my mod file I get an error:
giap.mod, line 23 (offset 1996): d is not defined
context: {(d, b) >>> : <<< d ...
0
votes
1
answer
85
views
Why am I getting error: No result defined for action [] and result input?
Here is my Struts file in which I mapped all action files
struts.xml:
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts....
2
votes
1
answer
91
views
HTTP Status 404 in Struts 2 web application and result JSP
Here is my set up:
Specs:
Tomcat 7.0.109
jdk1.8.0_11
IDEA20232.5
When I enter the 'test5_5' method of this action, it will redirect to a 404 page.
if(NumberUtils.notNullEquals(result.getResult(...
-1
votes
1
answer
78
views
Struts response raw string
I have a Struts project where I need to send a response as a raw string
struts.xml:
<struts>
<constant name="struts.devMode" value="true"></constant>
<...
1
vote
1
answer
706
views
In Apache Struts, how can I redirect to an external URL without writing an Action class?
In my Struts application, I need to create an endpoint (URL) which simply tells the user's browser to redirect to an external URL.
It looks like this can be done by creating a new Action class and ...
1
vote
2
answers
232
views
ASP.NET MVC controller to either return error or model
I have an ASP.NET MVC action that returns a model to the user.
But if the data is not found I want to return NotFound. ASP.NET MVC doesn't like it since the return type is of that model.
How can I ...
0
votes
1
answer
204
views
Parameter not passing from @Url.Action to method
I'm trying to pass a field value from my model via @Url.Action to a method in my controller but it continues to come through as null. The link I'm sending the field value from looks like this
<...
0
votes
0
answers
357
views
How to execute the viewcomponent and read the viewcomponent's parameters from the controller?
I am using the below code to execute view component in .cshtml
@await Component.InvokeAsync("FileUpload",Model)
Inside that view component, there is a file uploader.
After select a file ...
1
vote
1
answer
2k
views
object type is showing as an empty array in .net 6
I am migrating from .netcore 2.1 to .net 6. I have an endpoint that has a return type of Task I have a class that has properties of type object.
And after some checks I am returning an ok result of my ...
0
votes
2
answers
3k
views
IActionResult not returning string response as string
I am migrating my web api's to .net core code.
This is my current api, which is correctly returning string as expected
[HttpPost]
public string ValidateEwpInspectionNumber(string ewpNumber, string ...
0
votes
1
answer
77
views
can not go other view by Search By date
I have a view (named searchForm) that contain input tag to picking time and search and show it in "other View Page" (searcheResultPage),
But i have a great problem that after calling method ...
2
votes
1
answer
784
views
Can't convert 'System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult<System.Collections.Generic ... to System.Collections.Generic
Though some answers are in this area, none answer my question.
This function is a part of a Projects repository. Projects have a lot of items, but there are times when only the "Header" ...
0
votes
1
answer
88
views
How can I have multiple submit buttons pass the same value from view to controller?
I have a form where you can delete a patient. There is also a second button which deletes a patient and also the user. These 2 buttons have different behaviours which I call in de "Delete" ...
1
vote
3
answers
1k
views
Get JsonResult within ActionResult
My data is being generated at a JsonResult which output is below.
public JsonResult SampleAAA(Guid xxxxx){
//Code ...
return Json(new
{
success = true,
listA,
...
1
vote
1
answer
85
views
Show different View Data in view with different class in ASP.NET Core
This is my controller:
public async Task<IActionResult>ActiveEmailAccount(EmailActiveAccountViewModel active)
{
if (ModelState.IsValid)
{
var result = await ...